diff --git a/docs/2.5/build/admin/main.98a2899e5bcc9925cb22.css b/docs/2.5/build/admin/main.8f64cfdd3d1485d595b9.css similarity index 100% rename from docs/2.5/build/admin/main.98a2899e5bcc9925cb22.css rename to docs/2.5/build/admin/main.8f64cfdd3d1485d595b9.css diff --git a/docs/2.5/build/admin/manifest.json b/docs/2.5/build/admin/manifest.json index 38c5155..3797efb 100644 --- a/docs/2.5/build/admin/manifest.json +++ b/docs/2.5/build/admin/manifest.json @@ -1,6 +1,6 @@ { - "main.css": "build/admin/main.98a2899e5bcc9925cb22.css", - "main.js": "build/bundle.98a2899e.js", + "main.css": "build/admin/main.8f64cfdd3d1485d595b9.css", + "main.js": "build/bundle.8f64cfdd.js", "build/admin/fonts/fa-brands-400.woff": "build/admin/fonts/fa-brands-400.2285773e6b4b172f07d9b777c81b0775.woff", "build/admin/fonts/fa-brands-400.eot": "build/admin/fonts/fa-brands-400.23f19bb08961f37aaf692ff943823453.eot", "build/admin/fonts/fa-brands-400.svg": "build/admin/fonts/fa-brands-400.2f517e09eb2ca6650ff5bec5a95157ab.svg", @@ -72,6 +72,6 @@ "build/admin/images/checkerBackground.gif": "build/admin/images/checkerBackground.9883f9a87851b3f982e6e6ac284c2f4e.gif", "build/admin/images/smartphone.png": "build/admin/images/smartphone.e3d89c406dd49757ee727c788d3bfd14.png", "build/admin/images/tablet.png": "build/admin/images/tablet.783ad1038b2c58628e187a9db538ab19.png", - "build/bundle.98a2899e.js.LICENSE.txt": "build/bundle.98a2899e.js.LICENSE.txt", + "build/bundle.8f64cfdd.js.LICENSE.txt": "build/bundle.8f64cfdd.js.LICENSE.txt", "index.html": "index.html" } \ No newline at end of file diff --git a/docs/2.5/build/bundle.98a2899e.js b/docs/2.5/build/bundle.8f64cfdd.js similarity index 52% rename from docs/2.5/build/bundle.98a2899e.js rename to docs/2.5/build/bundle.8f64cfdd.js index e32b02d..6fea205 100644 --- a/docs/2.5/build/bundle.98a2899e.js +++ b/docs/2.5/build/bundle.8f64cfdd.js @@ -1,8 +1,8 @@ -/*! For license information please see bundle.98a2899e.js.LICENSE.txt */ -!function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,__webpack_require__),qe.l=!0,qe.exports}__webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)__webpack_require__.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1097)}([function(ce,ze,Ve){"use strict";ce.exports=Ve(1154)},function(ce,ze,Ve){"use strict";Ve.r(ze),function(ce,qe){Ve.d(ze,"$mobx",(function(){return ar})),Ve.d(ze,"FlowCancellationError",(function(){return FlowCancellationError})),Ve.d(ze,"IDerivationState",(function(){return Et})),Ve.d(ze,"ObservableMap",(function(){return Ri})),Ve.d(ze,"ObservableSet",(function(){return Ei})),Ve.d(ze,"Reaction",(function(){return wn})),Ve.d(ze,"_allowStateChanges",(function(){return allowStateChanges})),Ve.d(ze,"_allowStateChangesInsideComputed",(function(){return allowStateChangesInsideComputed})),Ve.d(ze,"_allowStateReadsEnd",(function(){return allowStateReadsEnd})),Ve.d(ze,"_allowStateReadsStart",(function(){return allowStateReadsStart})),Ve.d(ze,"_endAction",(function(){return _endAction})),Ve.d(ze,"_getAdministration",(function(){return getAdministration})),Ve.d(ze,"_getGlobalState",(function(){return getGlobalState})),Ve.d(ze,"_interceptReads",(function(){return interceptReads})),Ve.d(ze,"_isComputingDerivation",(function(){return isComputingDerivation})),Ve.d(ze,"_resetGlobalState",(function(){return resetGlobalState})),Ve.d(ze,"_startAction",(function(){return _startAction})),Ve.d(ze,"action",(function(){return Tn})),Ve.d(ze,"autorun",(function(){return autorun})),Ve.d(ze,"comparer",(function(){return mt})),Ve.d(ze,"computed",(function(){return Ft})),Ve.d(ze,"configure",(function(){return configure})),Ve.d(ze,"createAtom",(function(){return createAtom})),Ve.d(ze,"decorate",(function(){return decorate})),Ve.d(ze,"entries",(function(){return entries})),Ve.d(ze,"extendObservable",(function(){return extendObservable})),Ve.d(ze,"extendShallowObservable",(function(){return extendShallowObservable})),Ve.d(ze,"flow",(function(){return flow})),Ve.d(ze,"get",(function(){return get})),Ve.d(ze,"getAtom",(function(){return getAtom})),Ve.d(ze,"getDebugName",(function(){return getDebugName})),Ve.d(ze,"getDependencyTree",(function(){return getDependencyTree})),Ve.d(ze,"getObserverTree",(function(){return getObserverTree})),Ve.d(ze,"has",(function(){return has})),Ve.d(ze,"intercept",(function(){return intercept})),Ve.d(ze,"isAction",(function(){return isAction})),Ve.d(ze,"isArrayLike",(function(){return isArrayLike})),Ve.d(ze,"isBoxedObservable",(function(){return Jt})),Ve.d(ze,"isComputed",(function(){return isComputed})),Ve.d(ze,"isComputedProp",(function(){return isComputedProp})),Ve.d(ze,"isFlowCancellationError",(function(){return isFlowCancellationError})),Ve.d(ze,"isObservable",(function(){return isObservable})),Ve.d(ze,"isObservableArray",(function(){return isObservableArray})),Ve.d(ze,"isObservableMap",(function(){return Ci})),Ve.d(ze,"isObservableObject",(function(){return isObservableObject})),Ve.d(ze,"isObservableProp",(function(){return isObservableProp})),Ve.d(ze,"isObservableSet",(function(){return Oi})),Ve.d(ze,"keys",(function(){return keys})),Ve.d(ze,"observable",(function(){return xt})),Ve.d(ze,"observe",(function(){return observe})),Ve.d(ze,"onBecomeObserved",(function(){return onBecomeObserved})),Ve.d(ze,"onBecomeUnobserved",(function(){return onBecomeUnobserved})),Ve.d(ze,"onReactionError",(function(){return onReactionError})),Ve.d(ze,"reaction",(function(){return reaction})),Ve.d(ze,"remove",(function(){return remove})),Ve.d(ze,"runInAction",(function(){return runInAction})),Ve.d(ze,"set",(function(){return set})),Ve.d(ze,"spy",(function(){return spy})),Ve.d(ze,"toJS",(function(){return toJS})),Ve.d(ze,"trace",(function(){return trace})),Ve.d(ze,"transaction",(function(){return transaction})),Ve.d(ze,"untracked",(function(){return untracked})),Ve.d(ze,"values",(function(){return values})),Ve.d(ze,"when",(function(){return when}));var Ye="An invariant failed, however the error is obfuscated because this is an production build.",We=[];Object.freeze(We);var Qe={};Object.freeze(Qe);var Xe={};function getGlobal(){return"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:Xe}function getNextId(){return++bn.mobxGuid}function fail(ce){throw invariant(!1,ce),"X"}function invariant(ce,ze){if(!ce)throw new Error("[mobx] "+(ze||Ye))}function once(ce){var ze=!1;return function(){if(!ze)return ze=!0,ce.apply(this,arguments)}}var noop=function(){};function unique(ce){var ze=[];return ce.forEach((function(ce){-1===ze.indexOf(ce)&&ze.push(ce)})),ze}function isObject(ce){return null!==ce&&"object"==typeof ce}function isPlainObject(ce){if(null===ce||"object"!=typeof ce)return!1;var ze=Object.getPrototypeOf(ce);return ze===Object.prototype||null===ze}function convertToMap(ce){if(isES6Map(ce)||Ci(ce))return ce;if(Array.isArray(ce))return new Map(ce);if(isPlainObject(ce)){var ze=new Map;for(var Ve in ce)ze.set(Ve,ce[Ve]);return ze}return fail("Cannot convert to map from '"+ce+"'")}function addHiddenProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!0,configurable:!0,value:Ve})}function addHiddenFinalProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!1,configurable:!0,value:Ve})}function createInstanceofPredicate(ce,ze){var Ve="isMobX"+ce;return ze.prototype[Ve]=!0,function(ce){return isObject(ce)&&!0===ce[Ve]}}function areBothNaN(ce,ze){return"number"==typeof ce&&"number"==typeof ze&&isNaN(ce)&&isNaN(ze)}function isArrayLike(ce){return Array.isArray(ce)||isObservableArray(ce)}function isES6Map(ce){return void 0!==getGlobal().Map&&ce instanceof getGlobal().Map}function isES6Set(ce){return ce instanceof Set}function iteratorToArray(ce){for(var ze=[];;){var Ve=ce.next();if(Ve.done)break;ze.push(Ve.value)}return ze}function primitiveSymbol(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function toPrimitive(ce){return null===ce?null:"object"==typeof ce?""+ce:ce}function forOf(ce,ze){for(var Ve=ce.next();!Ve.done;)ze(Ve.value),Ve=ce.next()}function iteratorSymbol(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function declareIterator(ce,ze){addHiddenFinalProp(ce,iteratorSymbol(),ze)}function makeIterable(ce){return ce[iteratorSymbol()]=getSelf,ce}function toStringTagSymbol(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function getSelf(){return this}var ot=function(){function Atom(ce){void 0===ce&&(ce="Atom@"+getNextId()),this.name=ce,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Et.NOT_TRACKING}return Atom.prototype.onBecomeUnobserved=function(){},Atom.prototype.onBecomeObserved=function(){},Atom.prototype.reportObserved=function(){return reportObserved(this)},Atom.prototype.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},Atom.prototype.toString=function(){return this.name},Atom}(),st=createInstanceofPredicate("Atom",ot);function createAtom(ce,ze,Ve){void 0===ze&&(ze=noop),void 0===Ve&&(Ve=noop);var qe=new ot(ce);return onBecomeObserved(qe,ze),onBecomeUnobserved(qe,Ve),qe}function identityComparer(ce,ze){return ce===ze}var mt={identity:identityComparer,structural:function structuralComparer(ce,ze){return deepEqual(ce,ze)},default:function defaultComparer(ce,ze){return areBothNaN(ce,ze)||identityComparer(ce,ze)},shallow:function shallowComparer(ce,ze){return deepEqual(ce,ze,1)}},extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,qe=arguments.length;Ve0)&&!(qe=We.next()).done;)Qe.push(qe.value)}catch(ce){Ye={error:ce}}finally{try{qe&&!qe.done&&(Ve=We.return)&&Ve.call(We)}finally{if(Ye)throw Ye.error}}return Qe}function __spread(){for(var ce=[],ze=0;ze2&&incorrectlyUsedAsDecorator("box");var Ve=asCreateObservableOptions(ze);return new Wt(ce,getEnhancerFromOptions(Ve),Ve.name,!0,Ve.equals)},shallowBox:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),xt.box(ce,{name:ze,deep:!1})},array:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("array");var Ve=asCreateObservableOptions(ze);return new Xn(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowArray:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),xt.array(ce,{name:ze,deep:!1})},map:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("map");var Ve=asCreateObservableOptions(ze);return new Ri(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowMap:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),xt.map(ce,{name:ze,deep:!1})},set:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("set");var Ve=asCreateObservableOptions(ze);return new Ei(ce,getEnhancerFromOptions(Ve),Ve.name)},object:function(ce,ze,Ve){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("object"),extendObservable({},ce,ze,asCreateObservableOptions(Ve))},shallowObject:function(ce,ze){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("shallowObject"),xt.object(ce,{},{name:ze,deep:!1})},ref:Dt,shallow:Ct,deep:wt,struct:kt},xt=function createObservable(ce,ze,Ve){if("string"==typeof arguments[1])return wt.apply(null,arguments);if(isObservable(ce))return ce;var qe=isPlainObject(ce)?xt.object(ce,ze,Ve):Array.isArray(ce)?xt.array(ce,ze):isES6Map(ce)?xt.map(ce,ze):isES6Set(ce)?xt.set(ce,ze):ce;if(qe!==ce)return qe;fail(!1)};function incorrectlyUsedAsDecorator(ce){fail("Expected one or two arguments to observable."+ce+". Did you accidentally try to use observable."+ce+" as decorator?")}Object.keys(St).forEach((function(ce){return xt[ce]=St[ce]}));var Et,Pt,Tt=createPropDecorator(!1,(function(ce,ze,Ve,qe,Ye){var We=Ve.get,Qe=Ve.set,Xe=Ye[0]||{};defineComputedProperty(ce,ze,__assign({get:We,set:Qe},Xe))})),Lt=Tt({equals:mt.structural}),Ft=function computed(ce,ze,Ve){if("string"==typeof ze)return Tt.apply(null,arguments);if(null!==ce&&"object"==typeof ce&&1===arguments.length)return Tt.apply(null,arguments);var qe="object"==typeof ze?ze:{};return qe.get=ce,qe.set="function"==typeof ze?ze:qe.set,qe.name=qe.name||ce.name||"",new Qt(qe)};Ft.struct=Lt,function(ce){ce[ce.NOT_TRACKING=-1]="NOT_TRACKING",ce[ce.UP_TO_DATE=0]="UP_TO_DATE",ce[ce.POSSIBLY_STALE=1]="POSSIBLY_STALE",ce[ce.STALE=2]="STALE"}(Et||(Et={})),function(ce){ce[ce.NONE=0]="NONE",ce[ce.LOG=1]="LOG",ce[ce.BREAK=2]="BREAK"}(Pt||(Pt={}));var Bt=function Bt(ce){this.cause=ce};function isCaughtException(ce){return ce instanceof Bt}function shouldCompute(ce){switch(ce.dependenciesState){case Et.UP_TO_DATE:return!1;case Et.NOT_TRACKING:case Et.STALE:return!0;case Et.POSSIBLY_STALE:for(var ze=allowStateReadsStart(!0),Ve=untrackedStart(),qe=ce.observing,Ye=qe.length,We=0;We0;bn.computationDepth>0&&ze&&fail(!1),bn.allowStateChanges||!ze&&"strict"!==bn.enforceActions||fail(!1)}function trackDerivedFunction(ce,ze,Ve){var qe=allowStateReadsStart(!0);changeDependenciesStateTo0(ce),ce.newObserving=new Array(ce.observing.length+100),ce.unboundDepsCount=0,ce.runId=++bn.runId;var Ye,We=bn.trackingDerivation;if(bn.trackingDerivation=ce,!0===bn.disableErrorBoundaries)Ye=ze.call(Ve);else try{Ye=ze.call(Ve)}catch(ce){Ye=new Bt(ce)}return bn.trackingDerivation=We,bindDependencies(ce),0===ce.observing.length&&warnAboutDerivationWithoutDependencies(ce),allowStateReadsEnd(qe),Ye}function warnAboutDerivationWithoutDependencies(ce){}function bindDependencies(ce){for(var ze=ce.observing,Ve=ce.observing=ce.newObserving,qe=Et.UP_TO_DATE,Ye=0,We=ce.unboundDepsCount,Qe=0;Qeqe&&(qe=Xe.dependenciesState)}for(Ve.length=Ye,ce.newObserving=null,We=ze.length;We--;){0===(Xe=ze[We]).diffValue&&removeObserver(Xe,ce),Xe.diffValue=0}for(;Ye--;){var Xe;1===(Xe=Ve[Ye]).diffValue&&(Xe.diffValue=0,addObserver(Xe,ce))}qe!==Et.UP_TO_DATE&&(ce.dependenciesState=qe,ce.onBecomeStale())}function clearObserving(ce){var ze=ce.observing;ce.observing=[];for(var Ve=ze.length;Ve--;)removeObserver(ze[Ve],ce);ce.dependenciesState=Et.NOT_TRACKING}function untracked(ce){var ze=untrackedStart(),Ve=ce();return untrackedEnd(ze),Ve}function untrackedStart(){var ce=bn.trackingDerivation;return bn.trackingDerivation=null,ce}function untrackedEnd(ce){bn.trackingDerivation=ce}function allowStateReadsStart(ce){var ze=bn.allowStateReads;return bn.allowStateReads=ce,ze}function allowStateReadsEnd(ce){bn.allowStateReads=ce}function changeDependenciesStateTo0(ce){if(ce.dependenciesState!==Et.UP_TO_DATE){ce.dependenciesState=Et.UP_TO_DATE;for(var ze=ce.observing,Ve=ze.length;Ve--;)ze[Ve].lowestObserverState=Et.UP_TO_DATE}}var Vt=0,Ht=1,Ut=Object.getOwnPropertyDescriptor((function(){}),"name");Ut&&Ut.configurable;function createAction(ce,ze){var res=function(){return executeAction(ce,ze,this,arguments)};return res.isMobxAction=!0,res}function executeAction(ce,ze,Ve,qe){var Ye=_startAction(ce,Ve,qe);try{return ze.apply(Ve,qe)}catch(ce){throw Ye.error=ce,ce}finally{_endAction(Ye)}}function _startAction(ce,ze,Ve){var qe=isSpyEnabled()&&!!ce,Ye=0;if(qe){Ye=Date.now();var We=Ve&&Ve.length||0,Qe=new Array(We);if(We>0)for(var Xe=0;Xe0&&!ce.__mobxGlobals&&(mn=!1),ce.__mobxGlobals&&ce.__mobxGlobals.version!==(new ln).version&&(mn=!1),mn?ce.__mobxGlobals?(ce.__mobxInstanceCount+=1,ce.__mobxGlobals.UNCHANGED||(ce.__mobxGlobals.UNCHANGED={}),ce.__mobxGlobals):(ce.__mobxInstanceCount=1,ce.__mobxGlobals=new ln):(setTimeout((function(){gn||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new ln)}();function getGlobalState(){return bn}function resetGlobalState(){var ce=new ln;for(var ze in ce)-1===rn.indexOf(ze)&&(bn[ze]=ce[ze]);bn.allowStateChanges=!bn.enforceActions}function hasObservers(ce){return ce.observers&&ce.observers.length>0}function getObservers(ce){return ce.observers}function addObserver(ce,ze){var Ve=ce.observers.length;Ve&&(ce.observersIndexes[ze.__mapid]=Ve),ce.observers[Ve]=ze,ce.lowestObserverState>ze.dependenciesState&&(ce.lowestObserverState=ze.dependenciesState)}function removeObserver(ce,ze){if(1===ce.observers.length)ce.observers.length=0,queueForUnobservation(ce);else{var Ve=ce.observers,qe=ce.observersIndexes,Ye=Ve.pop();if(Ye!==ze){var We=qe[ze.__mapid]||0;We?qe[Ye.__mapid]=We:delete qe[Ye.__mapid],Ve[We]=Ye}delete qe[ze.__mapid]}}function queueForUnobservation(ce){!1===ce.isPendingUnobservation&&(ce.isPendingUnobservation=!0,bn.pendingUnobservations.push(ce))}function startBatch(){bn.inBatch++}function endBatch(){if(0==--bn.inBatch){runReactions();for(var ce=bn.pendingUnobservations,ze=0;ze0&&queueForUnobservation(ce),!1)}function propagateChanged(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.UP_TO_DATE&&(qe.isTracing!==Pt.NONE&&logTraceInfo(qe,ce),qe.onBecomeStale()),qe.dependenciesState=Et.STALE}}}function propagateChangeConfirmed(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.POSSIBLY_STALE?qe.dependenciesState=Et.STALE:qe.dependenciesState===Et.UP_TO_DATE&&(ce.lowestObserverState=Et.UP_TO_DATE)}}}function propagateMaybeChanged(ce){if(ce.lowestObserverState===Et.UP_TO_DATE){ce.lowestObserverState=Et.POSSIBLY_STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.UP_TO_DATE&&(qe.dependenciesState=Et.POSSIBLY_STALE,qe.isTracing!==Pt.NONE&&logTraceInfo(qe,ce),qe.onBecomeStale())}}}function logTraceInfo(ce,ze){if(console.log("[mobx.trace] '"+ce.name+"' is invalidated due to a change in: '"+ze.name+"'"),ce.isTracing===Pt.BREAK){var Ve=[];printDepTree(getDependencyTree(ce),Ve,1),new Function("debugger;\n/*\nTracing '"+ce.name+"'\n\nYou are entering this break point because derivation '"+ce.name+"' is being traced and '"+ze.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(ce instanceof Qt?ce.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+Ve.join("\n")+"\n*/\n ")()}}function printDepTree(ce,ze,Ve){ze.length>=1e3?ze.push("(and many more)"):(ze.push(""+new Array(Ve).join("\t")+ce.name),ce.dependencies&&ce.dependencies.forEach((function(ce){return printDepTree(ce,ze,Ve+1)})))}var wn=function(){function Reaction(ce,ze,Ve,qe){void 0===ce&&(ce="Reaction@"+getNextId()),void 0===qe&&(qe=!1),this.name=ce,this.onInvalidate=ze,this.errorHandler=Ve,this.requiresObservable=qe,this.observing=[],this.newObserving=[],this.dependenciesState=Et.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pt.NONE}return Reaction.prototype.onBecomeStale=function(){this.schedule()},Reaction.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,bn.pendingReactions.push(this),runReactions())},Reaction.prototype.isScheduled=function(){return this._isScheduled},Reaction.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(ce){this.reportExceptionInDerivation(ce)}}endBatch()}},Reaction.prototype.track=function(ce){startBatch();var ze,Ve=isSpyEnabled();Ve&&(ze=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var qe=trackDerivedFunction(this,ce,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(qe)&&this.reportExceptionInDerivation(qe.cause),Ve&&spyReportEnd({time:Date.now()-ze}),endBatch()},Reaction.prototype.reportExceptionInDerivation=function(ce){var ze=this;if(this.errorHandler)this.errorHandler(ce,this);else{if(bn.disableErrorBoundaries)throw ce;var Ve="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";bn.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Ve,ce),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:Ve,error:""+ce}),bn.globalReactionErrorHandlers.forEach((function(Ve){return Ve(ce,ze)}))}},Reaction.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},Reaction.prototype.getDisposer=function(){var ce=this.dispose.bind(this);return ce.$mobx=this,ce},Reaction.prototype.toString=function(){return"Reaction["+this.name+"]"},Reaction.prototype.trace=function(ce){void 0===ce&&(ce=!1),trace(this,ce)},Reaction}();function onReactionError(ce){return bn.globalReactionErrorHandlers.push(ce),function(){var ze=bn.globalReactionErrorHandlers.indexOf(ce);ze>=0&&bn.globalReactionErrorHandlers.splice(ze,1)}}var Cn=100,reactionScheduler=function(ce){return ce()};function runReactions(){bn.inBatch>0||bn.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){bn.isRunningReactions=!0;for(var ce=bn.pendingReactions,ze=0;ce.length>0;){++ze===Cn&&(console.error("Reaction doesn't converge to a stable state after "+Cn+" iterations. Probably there is a cycle in the reactive function: "+ce[0]),ce.splice(0));for(var Ve=ce.splice(0),qe=0,Ye=Ve.length;qe",ce):2===arguments.length&&"function"==typeof ze?createAction(ce,ze):1===arguments.length&&"string"==typeof ce?namedActionDecorator(ce):!0!==qe?namedActionDecorator(ze).apply(null,arguments):void(ce[ze]=createAction(ce.name||ze,Ve.value))};function runInAction(ce,ze){return executeAction("string"==typeof ce?ce:ce.name||"","function"==typeof ce?ce:ze,this,void 0)}function isAction(ce){return"function"==typeof ce&&!0===ce.isMobxAction}function defineBoundAction(ce,ze,Ve){addHiddenProp(ce,ze,createAction(ze,Ve.bind(ce)))}function autorun(ce,ze){void 0===ze&&(ze=Qe);var Ve,qe=ze&&ze.name||ce.name||"Autorun@"+getNextId();if(!ze.scheduler&&!ze.delay)Ve=new wn(qe,(function(){this.track(reactionRunner)}),ze.onError,ze.requiresObservable);else{var Ye=createSchedulerFromOptions(ze),We=!1;Ve=new wn(qe,(function(){We||(We=!0,Ye((function(){We=!1,Ve.isDisposed||Ve.track(reactionRunner)})))}),ze.onError,ze.requiresObservable)}function reactionRunner(){ce(Ve)}return Ve.schedule(),Ve.getDisposer()}Tn.bound=function boundActionDecorator(ce,ze,Ve,qe){return!0===qe?(defineBoundAction(ce,ze,Ve.value),null):Ve?{configurable:!0,enumerable:!1,get:function(){return defineBoundAction(this,ze,Ve.value||Ve.initializer.call(this)),this[ze]},set:dontReassignFields}:{enumerable:!1,configurable:!0,set:function(ce){defineBoundAction(this,ze,ce)},get:function(){}}};var run=function(ce){return ce()};function createSchedulerFromOptions(ce){return ce.scheduler?ce.scheduler:ce.delay?function(ze){return setTimeout(ze,ce.delay)}:run}function reaction(ce,ze,Ve){void 0===Ve&&(Ve=Qe),"boolean"==typeof Ve&&(Ve={fireImmediately:Ve});var qe,Ye,We,Xe=Ve.name||"Reaction@"+getNextId(),ot=Tn(Xe,Ve.onError?(qe=Ve.onError,Ye=ze,function(){try{return Ye.apply(this,arguments)}catch(ce){qe.call(this,ce)}}):ze),st=!Ve.scheduler&&!Ve.delay,gt=createSchedulerFromOptions(Ve),yt=!0,bt=!1,vt=Ve.compareStructural?mt.structural:Ve.equals||mt.default,wt=new wn(Xe,(function(){yt||st?reactionRunner():bt||(bt=!0,gt(reactionRunner))}),Ve.onError,Ve.requiresObservable);function reactionRunner(){if(bt=!1,!wt.isDisposed){var ze=!1;wt.track((function(){var Ve=ce(wt);ze=yt||!vt(We,Ve),We=Ve})),yt&&Ve.fireImmediately&&ot(We,wt),yt||!0!==ze||ot(We,wt),yt&&(yt=!1)}}return wt.schedule(),wt.getDisposer()}function onBecomeObserved(ce,ze,Ve){return interceptHook("onBecomeObserved",ce,ze,Ve)}function onBecomeUnobserved(ce,ze,Ve){return interceptHook("onBecomeUnobserved",ce,ze,Ve)}function interceptHook(ce,ze,Ve,qe){var Ye="function"==typeof qe?getAtom(ze,Ve):getAtom(ze),We="function"==typeof qe?qe:Ve,Qe=Ye[ce];return"function"!=typeof Qe?fail(!1):(Ye[ce]=function(){Qe.call(this),We.call(this)},function(){Ye[ce]=Qe})}function configure(ce){var ze=ce.enforceActions,Ve=ce.computedRequiresReaction,qe=ce.computedConfigurable,Ye=ce.disableErrorBoundaries,We=ce.arrayBuffer,Qe=ce.reactionScheduler,Xe=ce.reactionRequiresObservable,ot=ce.observableRequiresReaction;if(!0===ce.isolateGlobalState&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),gn=!0,mn&&(0==--getGlobal().__mobxInstanceCount&&(getGlobal().__mobxGlobals=void 0),bn=new ln)),void 0!==ze){var st=void 0;switch(ze){case!0:case"observed":st=!0;break;case!1:case"never":st=!1;break;case"strict":case"always":st="strict";break;default:fail("Invalid value for 'enforceActions': '"+ze+"', expected 'never', 'always' or 'observed'")}bn.enforceActions=st,bn.allowStateChanges=!0!==st&&"strict"!==st}void 0!==Ve&&(bn.computedRequiresReaction=!!Ve),void 0!==Xe&&(bn.reactionRequiresObservable=!!Xe),void 0!==ot&&(bn.observableRequiresReaction=!!ot,bn.allowStateReads=!bn.observableRequiresReaction),void 0!==qe&&(bn.computedConfigurable=!!qe),void 0!==Ye&&(!0===Ye&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),bn.disableErrorBoundaries=!!Ye),"number"==typeof We&&reserveArrayBuffer(We),Qe&&setReactionScheduler(Qe)}function decorate(ce,ze){var Ve="function"==typeof ce?ce.prototype:ce,_loop_1=function(ce){var qe=ze[ce];Array.isArray(qe)||(qe=[qe]);var Ye=Object.getOwnPropertyDescriptor(Ve,ce),We=qe.reduce((function(ze,qe){return qe(Ve,ce,ze)}),Ye);We&&Object.defineProperty(Ve,ce,We)};for(var qe in ze)_loop_1(qe);return ce}function extendShallowObservable(ce,ze,Ve){return extendObservable(ce,ze,Ve,vt)}function extendObservable(ce,ze,Ve,qe){var Ye=(qe=asCreateObservableOptions(qe)).defaultDecorator||(!1===qe.deep?Dt:wt);initializeInstance(ce),asObservableObject(ce,qe.name,Ye.enhancer),startBatch();try{for(var We=Object.getOwnPropertyNames(ze),Qe=0,Xe=We.length;Qe0&&(ze.dependencies=unique(ce.observing).map(nodeToDependencyTree)),ze}function getObserverTree(ce,ze){return nodeToObserverTree(getAtom(ce,ze))}function nodeToObserverTree(ce){var ze={name:ce.name};return hasObservers(ce)&&(ze.observers=getObservers(ce).map(nodeToObserverTree)),ze}var Ln=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}function isFlowCancellationError(ce){return ce instanceof FlowCancellationError}function flow(ce){1!==arguments.length&&fail("Flow expects one 1 argument and cannot be used as decorator");var ze=ce.name||"";return function(){var Ve,qe=arguments,Ye=++Ln,We=Tn(ze+" - runid: "+Ye+" - init",ce).apply(this,qe),Qe=void 0,Xe=new Promise((function(ce,qe){var Xe=0;function onFulfilled(ce){var Ve;Qe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Xe++,We.next).call(We,ce)}catch(ce){return qe(ce)}next(Ve)}function onRejected(ce){var Ve;Qe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Xe++,We.throw).call(We,ce)}catch(ce){return qe(ce)}next(Ve)}function next(ze){if(!ze||"function"!=typeof ze.then)return ze.done?ce(ze.value):(Qe=Promise.resolve(ze.value)).then(onFulfilled,onRejected);ze.then(next,qe)}Ve=qe,onFulfilled(void 0)}));return Xe.cancel=Tn(ze+" - runid: "+Ye+" - cancel",(function(){try{Qe&&cancelPromise(Qe);var ce=We.return(void 0),ze=Promise.resolve(ce.value);ze.then(noop,noop),cancelPromise(ze),Ve(new FlowCancellationError)}catch(ce){Ve(ce)}})),Xe}}function cancelPromise(ce){"function"==typeof ce.cancel&&ce.cancel()}function interceptReads(ce,ze,Ve){var qe;if(Ci(ce)||isObservableArray(ce)||Jt(ce))qe=getAdministration(ce);else{if(!isObservableObject(ce))return fail(!1);if("string"!=typeof ze)return fail(!1);qe=getAdministration(ce,ze)}return void 0!==qe.dehancer?fail(!1):(qe.dehancer="function"==typeof ze?ze:Ve,function(){qe.dehancer=void 0})}function intercept(ce,ze,Ve){return"function"==typeof Ve?interceptProperty(ce,ze,Ve):interceptInterceptable(ce,ze)}function interceptInterceptable(ce,ze){return getAdministration(ce).intercept(ze)}function interceptProperty(ce,ze,Ve){return getAdministration(ce,ze).intercept(Ve)}function _isComputed(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(!1===isObservableObject(ce))return!1;if(!ce.$mobx.values[ze])return!1;var Ve=getAtom(ce,ze);return en(Ve)}return en(ce)}function isComputed(ce){return arguments.length>1?fail(!1):_isComputed(ce)}function isComputedProp(ce,ze){return"string"!=typeof ze?fail(!1):_isComputed(ce,ze)}function _isObservable(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(isObservableObject(ce)){var Ve=ce.$mobx;return Ve.values&&!!Ve.values[ze]}return!1}return isObservableObject(ce)||!!ce.$mobx||st(ce)||Sn(ce)||en(ce)}function isObservable(ce){return 1!==arguments.length&&fail(!1),_isObservable(ce)}function isObservableProp(ce,ze){return"string"!=typeof ze?fail(!1):_isObservable(ce,ze)}function keys(ce){return isObservableObject(ce)?ce.$mobx.getKeys():Ci(ce)||Oi(ce)?iteratorToArray(ce.keys()):isObservableArray(ce)?ce.map((function(ce,ze){return ze})):fail(!1)}function values(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return ce[ze]})):Ci(ce)?keys(ce).map((function(ze){return ce.get(ze)})):Oi(ce)?iteratorToArray(ce.values()):isObservableArray(ce)?ce.slice():fail(!1)}function entries(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return[ze,ce[ze]]})):Ci(ce)?keys(ce).map((function(ze){return[ze,ce.get(ze)]})):Oi(ce)?iteratorToArray(ce.entries()):isObservableArray(ce)?ce.map((function(ce,ze){return[ze,ce]})):fail(!1)}function set(ce,ze,Ve){if(2!==arguments.length||Oi(ce))if(isObservableObject(ce)){var qe=ce.$mobx;qe.values[ze]?qe.write(ce,ze,Ve):defineObservableProperty(ce,ze,Ve,qe.defaultEnhancer)}else if(Ci(ce))ce.set(ze,Ve);else if(Oi(ce))ce.add(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),startBatch(),ze>=ce.length&&(ce.length=ze+1),ce[ze]=Ve,endBatch()}else{startBatch();var Ye=ze;try{for(var We in Ye)set(ce,We,Ye[We])}finally{endBatch()}}}function remove(ce,ze){if(isObservableObject(ce))ce.$mobx.remove(ze);else if(Ci(ce))ce.delete(ze);else if(Oi(ce))ce.delete(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),ce.splice(ze,1)}}function has(ce,ze){if(isObservableObject(ce)){var Ve=getAdministration(ce);return Ve.getKeys(),!!Ve.values[ze]}return Ci(ce)||Oi(ce)?ce.has(ze):isObservableArray(ce)?ze>=0&&ze0}function registerInterceptor(ce,ze){var Ve=ce.interceptors||(ce.interceptors=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function interceptChange(ce,ze){var Ve=untrackedStart();try{var qe=ce.interceptors;if(qe)for(var Ye=0,We=qe.length;Ye0}function registerListener(ce,ze){var Ve=ce.changeListeners||(ce.changeListeners=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function notifyListeners(ce,ze){var Ve=untrackedStart(),qe=ce.changeListeners;if(qe){for(var Ye=0,We=(qe=qe.slice()).length;Ye0?ce.map(this.dehancer):ce},ObservableArrayAdministration.prototype.intercept=function(ce){return registerInterceptor(this,ce)},ObservableArrayAdministration.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),ze&&ce({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,ce)},ObservableArrayAdministration.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},ObservableArrayAdministration.prototype.setArrayLength=function(ce){if("number"!=typeof ce||ce<0)throw new Error("[mobx.array] Out of range: "+ce);var ze=this.values.length;if(ce!==ze)if(ce>ze){for(var Ve=new Array(ce-ze),qe=0;qe0&&ce+ze+1>Kn&&reserveArrayBuffer(ce+ze+1)},ObservableArrayAdministration.prototype.spliceWithArray=function(ce,ze,Ve){var qe=this;checkIfStateModificationsAreAllowed(this.atom);var Ye=this.values.length;if(void 0===ce?ce=0:ce>Ye?ce=Ye:ce<0&&(ce=Math.max(0,Ye+ce)),ze=1===arguments.length?Ye-ce:null==ze?0:Math.max(0,Math.min(ze,Ye-ce)),void 0===Ve&&(Ve=We),hasInterceptors(this)){var Qe=interceptChange(this,{object:this.array,type:"splice",index:ce,removedCount:ze,added:Ve});if(!Qe)return We;ze=Qe.removedCount,Ve=Qe.added}Ve=0===Ve.length?Ve:Ve.map((function(ce){return qe.enhancer(ce,void 0)}));var Xe=Ve.length-ze;this.updateArrayLength(Ye,Xe);var ot=this.spliceItemsIntoValues(ce,ze,Ve);return 0===ze&&0===Ve.length||this.notifyArraySplice(ce,Ve,ot),this.dehanceValues(ot)},ObservableArrayAdministration.prototype.spliceItemsIntoValues=function(ce,ze,Ve){var qe;if(Ve.length<1e4)return(qe=this.values).splice.apply(qe,__spread([ce,ze],Ve));var Ye=this.values.slice(ce,ce+ze);return this.values=this.values.slice(0,ce).concat(Ve,this.values.slice(ce+ze)),Ye},ObservableArrayAdministration.prototype.notifyArrayChildUpdate=function(ce,ze,Ve){var qe=!this.owned&&isSpyEnabled(),Ye=hasListeners(this),We=Ye||qe?{object:this.array,type:"update",index:ce,newValue:ze,oldValue:Ve}:null;qe&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),Ye&¬ifyListeners(this,We),qe&&spyReportEnd()},ObservableArrayAdministration.prototype.notifyArraySplice=function(ce,ze,Ve){var qe=!this.owned&&isSpyEnabled(),Ye=hasListeners(this),We=Ye||qe?{object:this.array,type:"splice",index:ce,removed:Ve,added:ze,removedCount:Ve.length,addedCount:ze.length}:null;qe&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),Ye&¬ifyListeners(this,We),qe&&spyReportEnd()},ObservableArrayAdministration}(),Xn=function(ce){function ObservableArray(ze,Ve,qe,Ye){void 0===qe&&(qe="ObservableArray@"+getNextId()),void 0===Ye&&(Ye=!1);var We=ce.call(this)||this,Qe=new Zn(qe,Ve,We,Ye);if(addHiddenFinalProp(We,"$mobx",Qe),ze&&ze.length){var Xe=allowStateChangesStart(!0);We.spliceWithArray(0,0,ze),allowStateChangesEnd(Xe)}return Gn&&Object.defineProperty(Qe.array,"0",ei),We}return __extends(ObservableArray,ce),ObservableArray.prototype.intercept=function(ce){return this.$mobx.intercept(ce)},ObservableArray.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),this.$mobx.observe(ce,ze)},ObservableArray.prototype.clear=function(){return this.splice(0)},ObservableArray.prototype.concat=function(){for(var ce=[],ze=0;ze-1&&(this.splice(ze,1),!0)},ObservableArray.prototype.move=function(ce,ze){function checkIndex(ce){if(ce<0)throw new Error("[mobx.array] Index out of bounds: "+ce+" is negative");var ze=this.$mobx.values.length;if(ce>=ze)throw new Error("[mobx.array] Index out of bounds: "+ce+" is not smaller than "+ze)}if(checkIndex.call(this,ce),checkIndex.call(this,ze),ce!==ze){var Ve,qe=this.$mobx.values;Ve=ce6?ot-6:0),mt=6;mt>",Xe=Xe||Ye,null==Ve[Ye]){if(ze){var qe=null===Ve[Ye]?"null":"undefined";return new Error("The "+Qe+" `"+Xe+"` is marked as required in `"+We+"`, but its value is `"+qe+"`.")}return null}return ce.apply(void 0,[Ve,Ye,We,Qe,Xe].concat(st))}))}var ze=checkType.bind(null,!1);return ze.isRequired=checkType.bind(null,!0),ze}function isSymbol(ce,ze){return"symbol"===ce||("Symbol"===ze["@@toStringTag"]||"function"==typeof Symbol&&ze instanceof Symbol)}function getPropType(ce){var ze=_typeof(ce);return Array.isArray(ce)?"array":ce instanceof RegExp?"object":isSymbol(ze,ce)?"symbol":ze}function getPreciseType(ce){var ze=getPropType(ce);if("object"===ze){if(ce instanceof Date)return"date";if(ce instanceof RegExp)return"regexp"}return ze}function createObservableTypeCheckerCreator(ce,ze){return createChainableTypeChecker((function(Ve,Ye,We,Qe,Xe){return Object(qe.untracked)((function(){if(ce&&getPropType(Ve[Ye])===ze.toLowerCase())return null;var Qe;switch(ze){case"Array":Qe=qe.isObservableArray;break;case"Object":Qe=qe.isObservableObject;break;case"Map":Qe=qe.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(ze))}var ot=Ve[Ye];if(!Qe(ot)){var st=getPreciseType(ot),mt=ce?" or javascript `"+ze.toLowerCase()+"`":"";return new Error("Invalid prop `"+Xe+"` of type `"+st+"` supplied to `"+We+"`, expected `mobx.Observable"+ze+"`"+mt+".")}return null}))}))}function createObservableArrayOfTypeChecker(ce,ze){return createChainableTypeChecker((function(Ve,Ye,We,Qe,Xe){for(var ot=arguments.length,st=new Array(ot>5?ot-5:0),mt=5;mt2?qe-2:0),We=2;We2?qe-2:0),We=2;We",We=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;setHiddenProp(this,rn,!1),setHiddenProp(this,ln,!1);var Qe=ce.bind(this),Xe=!1,ot=new qe.Reaction("".concat(Ve,"#").concat(We,".render()"),(function(){if(!Xe&&(Xe=!0,"function"==typeof ze.componentWillReact&&ze.componentWillReact(),!0!==ze[Ht])){var ce=!0;try{setHiddenProp(ze,ln,!0),ze[rn]||Ye.Component.prototype.forceUpdate.call(ze),ce=!1}finally{setHiddenProp(ze,ln,!1),ce&&ot.dispose()}}}));return ot.reactComponent=this,reactiveRender[Vt]=ot,this.render=reactiveRender,reactiveRender.call(this)}var bn={componentWillUnmount:function componentWillUnmount(){if(!0!==Wt&&(this.render[Vt]&&this.render[Vt].dispose(),this[Ht]=!0,Ut)){var ce=findDOMNode$2(this);ce&&Qt&&Qt.delete(ce),en.emit({event:"destroy",component:this,node:ce})}},componentDidMount:function componentDidMount(){Ut&&reportRendering(this)},componentDidUpdate:function componentDidUpdate(){Ut&&reportRendering(this)},shouldComponentUpdate:function shouldComponentUpdate(ce,ze){return Wt&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==ze||!shallowEqual(this.props,ce)}};function makeObservableProp(ce,ze){var Ve=newSymbol("reactProp_".concat(ze,"_valueHolder")),Ye=newSymbol("reactProp_".concat(ze,"_atomHolder"));function getAtom(){return this[Ye]||setHiddenProp(this,Ye,Object(qe.createAtom)("reactive "+ze)),this[Ye]}Object.defineProperty(ce,ze,{configurable:!0,enumerable:!0,get:function get(){return getAtom.call(this).reportObserved(),this[Ve]},set:function set(ce){this[ln]||shallowEqual(this[Ve],ce)?setHiddenProp(this,Ve,ce):(setHiddenProp(this,Ve,ce),setHiddenProp(this,rn,!0),getAtom.call(this).reportChanged(),setHiddenProp(this,rn,!1))}})}function observer(ce,ze){if("string"==typeof ce)throw new Error("Store names should be provided as array");if(Array.isArray(ce))return Jt||(Jt=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),ze?inject.apply(null,ce)(observer(ze)):function(ze){return observer(ce,ze)};var Ve=ce;if(!0===Ve.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Ve.__proto__===Ye.PureComponent&&console.warn("Mobx observer: You are using 'observer' on React.PureComponent. These two achieve two opposite goals and should not be used together"),mn&&Ve.$$typeof===mn){var qe=Ve.render;if("function"!=typeof qe)throw new Error("render property of ForwardRef was not a function");return Object(Ye.forwardRef)((function ObserverForwardRef(){var ce=arguments;return We.a.createElement(wn,null,(function(){return qe.apply(void 0,ce)}))}))}if(!("function"!=typeof Ve||Ve.prototype&&Ve.prototype.render||Ve.isReactClass||Ye.Component.isPrototypeOf(Ve))){var Qe,Xe,ot=observer((Xe=Qe=function(ce){function _class(){return _classCallCheck(this,_class),_possibleConstructorReturn(this,_getPrototypeOf(_class).apply(this,arguments))}return _inherits(_class,ce),_createClass(_class,[{key:"render",value:function render(){return Ve.call(this,this.props,this.context)}}]),_class}(Ye.Component),Qe.displayName=Ve.displayName||Ve.name,Qe.contextTypes=Ve.contextTypes,Qe.propTypes=Ve.propTypes,Qe.defaultProps=Ve.defaultProps,Xe));return kt(ot,Ve),ot}if(!Ve)throw new Error("Please pass a valid component to 'observer'");var st=Ve.prototype||Ve;mixinLifecycleEvents(st),Ve.isMobXReactObserver=!0,makeObservableProp(st,"props"),makeObservableProp(st,"state");var mt=st.render;return st.render=function(){return makeComponentReactive.call(this,mt)},Ve}function mixinLifecycleEvents(ce){["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(ze){patch$1(ce,ze)})),ce.shouldComponentUpdate?ce.shouldComponentUpdate!==bn.shouldComponentUpdate&&console.warn("Use `shouldComponentUpdate` in an `observer` based component breaks the behavior of `observer` and might lead to unexpected results. Manually implementing `sCU` should not be needed when using mobx-react."):ce.shouldComponentUpdate=bn.shouldComponentUpdate}var wn=observer((function(ce){var ze=ce.children,Ve=ce.inject,qe=ce.render,Ye=ze||qe;if(void 0===Ye)return null;if(!Ve)return Ye();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var Qe=inject(Ve)(Ye);return We.a.createElement(Qe,null)}));wn.displayName="Observer";var Cn=function ObserverPropsCheck(ce,ze,Ve,qe,Ye){var We="children"===ze?"render":"children";return"function"==typeof ce[ze]&&"function"==typeof ce[We]?new Error("Invalid prop,do not use children and render in the same time in`"+Ve):"function"!=typeof ce[ze]&&"function"!=typeof ce[We]?new Error("Invalid prop `"+Ye+"` of type `"+_typeof(ce[ze])+"` supplied to `"+Ve+"`, expected `function`."):void 0};function componentWillMount(){var ce=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=ce&&this.setState(ce)}function componentWillReceiveProps(ce){this.setState(function updater(ze){var Ve=this.constructor.getDerivedStateFromProps(ce,ze);return null!=Ve?Ve:null}.bind(this))}function componentWillUpdate(ce,ze){try{var Ve=this.props,qe=this.state;this.props=ce,this.state=ze,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ve,qe)}finally{this.props=Ve,this.state=qe}}wn.propTypes={render:Cn,children:Cn},componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var Sn={children:!0,key:!0,ref:!0},En=function(ce){function Provider(ce,ze){var Ve;return _classCallCheck(this,Provider),(Ve=_possibleConstructorReturn(this,_getPrototypeOf(Provider).call(this,ce,ze))).state={},copyStores(ce,Ve.state),Ve}return _inherits(Provider,ce),_createClass(Provider,[{key:"render",value:function render(){return Ye.Children.only(this.props.children)}},{key:"getChildContext",value:function getChildContext(){var ce={};return copyStores(this.context.mobxStores,ce),copyStores(this.props,ce),{mobxStores:ce}}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){if(!ce)return null;if(!ze)return ce;if(Object.keys(ce).filter(validStoreName).length!==Object.keys(ze).filter(validStoreName).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!ce.suppressChangedStoreWarning)for(var Ve in ce)validStoreName(Ve)&&ze[Ve]!==ce[Ve]&&console.warn("MobX Provider: Provided store '"+Ve+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return ce}}]),Provider}(Ye.Component);function copyStores(ce,ze){if(ce)for(var Ve in ce)validStoreName(Ve)&&(ze[Ve]=ce[Ve])}function validStoreName(ce){return!Sn[ce]&&"suppressChangedStoreWarning"!==ce}En.contextTypes={mobxStores:xt},En.childContextTypes={mobxStores:xt.isRequired},function polyfill(ce){var ze=ce.prototype;if(!ze||!ze.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof ce.getDerivedStateFromProps&&"function"!=typeof ze.getSnapshotBeforeUpdate)return ce;var Ve=null,qe=null,Ye=null;if("function"==typeof ze.componentWillMount?Ve="componentWillMount":"function"==typeof ze.UNSAFE_componentWillMount&&(Ve="UNSAFE_componentWillMount"),"function"==typeof ze.componentWillReceiveProps?qe="componentWillReceiveProps":"function"==typeof ze.UNSAFE_componentWillReceiveProps&&(qe="UNSAFE_componentWillReceiveProps"),"function"==typeof ze.componentWillUpdate?Ye="componentWillUpdate":"function"==typeof ze.UNSAFE_componentWillUpdate&&(Ye="UNSAFE_componentWillUpdate"),null!==Ve||null!==qe||null!==Ye){var We=ce.displayName||ce.name,Qe="function"==typeof ce.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+We+" uses "+Qe+" but also contains the following legacy lifecycles:"+(null!==Ve?"\n "+Ve:"")+(null!==qe?"\n "+qe:"")+(null!==Ye?"\n "+Ye:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof ce.getDerivedStateFromProps&&(ze.componentWillMount=componentWillMount,ze.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof ze.getSnapshotBeforeUpdate){if("function"!=typeof ze.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");ze.componentWillUpdate=componentWillUpdate;var Xe=ze.componentDidUpdate;ze.componentDidUpdate=function componentDidUpdatePolyfill(ce,ze,Ve){var qe=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Xe.call(this,ce,ze,qe)}}return ce}(En);newSymbol("disposeOnUnmount");if(!Ye.Component)throw new Error("mobx-react requires React to be available");if(!qe.spy)throw new Error("mobx-react requires mobx to be available");"function"==typeof Qe.unstable_batchedUpdates&&Object(qe.configure)({reactionScheduler:Qe.unstable_batchedUpdates});if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":_typeof(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Tn={spy:qe.spy,extras:{getDebugName:qe.getDebugName}},Ln={renderReporter:en,componentByNodeRegistry:Qt,componentByNodeRegistery:Qt,trackComponents:function trackComponents(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");Ut||(Ut=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(Ln,Tn)}},function(ce,ze,Ve){(function(ce,qe){var Ye;!function(){var We=ze,Qe=(ce&&ce.exports,"object"==typeof qe&&qe);Qe.global!==Qe&&Qe.window;var Xe="A range’s `stop` value must be greater than or equal to the `start` value.",ot="Invalid code point value. Code points range from U+000000 to U+10FFFF.",st=55296,mt=56319,gt=56320,yt=57343,bt=/\\x00([^0123456789]|$)/g,vt={},wt=vt.hasOwnProperty,forEach=function(ce,ze){for(var Ve=-1,qe=ce.length;++Ve=Ve&&zeVe)return ce;if(ze<=qe&&Ve>=Ye)ce.splice(We,2);else{if(ze>=qe&&Ve=qe&&ze<=Ye)ce[We+1]=ze;else if(Ve>=qe&&Ve<=Ye)return ce[We]=Ve+1,ce;We+=2}}return ce},dataAdd=function(ce,ze){var Ve,qe,Ye=0,We=null,Qe=ce.length;if(ze<0||ze>1114111)throw RangeError(ot);for(;Ye=Ve&&zeze)return ce.splice(null!=We?We+2:0,0,ze,ze+1),ce;if(ze==qe)return ze+1==ce[Ye+2]?(ce.splice(Ye,4,Ve,ce[Ye+3]),ce):(ce[Ye+1]=ze+1,ce);We=Ye,Ye+=2}return ce.push(ze,ze+1),ce},dataAddData=function(ce,ze){for(var Ve,qe,Ye=0,We=ce.slice(),Qe=ze.length;Ye1114111||Ve<0||Ve>1114111)throw RangeError(ot);for(var qe,Ye,We=0,Qe=!1,st=ce.length;WeVe)return ce;qe>=ze&&qe<=Ve&&(Ye>ze&&Ye-1<=Ve?(ce.splice(We,2),We-=2):(ce.splice(We-1,2),We-=2))}else{if(qe==Ve+1||qe==Ve)return ce[We]=ze,ce;if(qe>Ve)return ce.splice(We,0,ze,Ve+1),ce;if(ze>=qe&&ze=qe&&ze=Ye&&(ce[We]=ze,ce[We+1]=Ve+1,Qe=!0)}We+=2}return Qe||ce.push(ze,Ve+1),ce},dataContains=function(ce,ze){var Ve=0,qe=ce.length,Ye=ce[Ve],We=ce[qe-1];if(qe>=2&&(zeWe))return!1;for(;Ve=Ye&&ze=40&&ce<=43||46==ce||47==ce||63==ce||ce>=91&&ce<=94||ce>=123&&ce<=125?"\\"+St(ce):ce>=32&&ce<=126?St(ce):ce<=255?"\\x"+pad(hex(ce),2):"\\u"+pad(hex(ce),4)},codePointToStringUnicode=function(ce){return ce<=65535?codePointToString(ce):"\\u{"+ce.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(ce){var ze,Ve=ce.length,qe=ce.charCodeAt(0);return qe>=st&&qe<=mt&&Ve>1?(ze=ce.charCodeAt(1),1024*(qe-st)+ze-gt+65536):qe},createBMPCharacterClasses=function(ce){var ze,Ve,qe="",Ye=0,We=ce.length;if(dataIsSingleton(ce))return codePointToString(ce[0]);for(;Ye=st&&Ve<=mt&&(We.push(ze,st),qe.push(st,Ve+1)),Ve>=gt&&Ve<=yt&&(We.push(ze,st),qe.push(st,56320),Ye.push(gt,Ve+1)),Ve>yt&&(We.push(ze,st),qe.push(st,56320),Ye.push(gt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>=st&&ze<=mt?(Ve>=st&&Ve<=mt&&qe.push(ze,Ve+1),Ve>=gt&&Ve<=yt&&(qe.push(ze,56320),Ye.push(gt,Ve+1)),Ve>yt&&(qe.push(ze,56320),Ye.push(gt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>=gt&&ze<=yt?(Ve>=gt&&Ve<=yt&&Ye.push(ze,Ve+1),Ve>yt&&(Ye.push(ze,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>yt&&ze<=65535?Ve<=65535?We.push(ze,Ve+1):(We.push(ze,65536),Qe.push(65536,Ve+1)):Qe.push(ze,Ve+1),Xe+=2;return{loneHighSurrogates:qe,loneLowSurrogates:Ye,bmp:We,astral:Qe}},optimizeSurrogateMappings=function(ce){for(var ze,Ve,qe,Ye,We,Qe,Xe=[],ot=[],st=!1,mt=-1,gt=ce.length;++mt1&&(ce=Dt.call(arguments)),this instanceof regenerate?(this.data=[],ce?this.add(ce):this):(new regenerate).add(ce)};regenerate.version="1.4.2";var xt=regenerate.prototype;!function(ce,ze){var Ve;for(Ve in ze)wt.call(ze,Ve)&&(ce[Ve]=ze[Ve])}(xt,{add:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataAddData(ze.data,ce.data),ze):(arguments.length>1&&(ce=Dt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.add(ce)})),ze):(ze.data=dataAdd(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},remove:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataRemoveData(ze.data,ce.data),ze):(arguments.length>1&&(ce=Dt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.remove(ce)})),ze):(ze.data=dataRemove(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},addRange:function(ce,ze){var Ve=this;return Ve.data=dataAddRange(Ve.data,isNumber(ce)?ce:symbolToCodePoint(ce),isNumber(ze)?ze:symbolToCodePoint(ze)),Ve},removeRange:function(ce,ze){var Ve=this,qe=isNumber(ce)?ce:symbolToCodePoint(ce),Ye=isNumber(ze)?ze:symbolToCodePoint(ze);return Ve.data=dataRemoveRange(Ve.data,qe,Ye),Ve},intersection:function(ce){var ze=this,Ve=ce instanceof regenerate?dataToArray(ce.data):ce;return ze.data=dataIntersection(ze.data,Ve),ze},contains:function(ce){return dataContains(this.data,isNumber(ce)?ce:symbolToCodePoint(ce))},clone:function(){var ce=new regenerate;return ce.data=this.data.slice(0),ce},toString:function(ce){var ze=createCharacterClassesFromData(this.data,!!ce&&ce.bmpOnly,!!ce&&ce.hasUnicodeFlag);return ze?ze.replace(bt,"\\0$1"):"[]"},toRegExp:function(ce){var ze=this.toString(ce&&-1!=ce.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(ze,ce||"")},valueOf:function(){return dataToArray(this.data)}}),xt.toArray=xt.valueOf,void 0===(Ye=function(){return regenerate}.call(ze,Ve,ze,ce))||(ce.exports=Ye)}()}).call(this,Ve(322)(ce),Ve(146))},function(ce,ze,Ve){var qe;!function(){"use strict";var Ve={}.hasOwnProperty;function classNames(){for(var ce="",ze=0;ze{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Qe=Ve(289),Xe=Ve(11);var ot=new class{constructor(){this.observers={}}updateStorageEventListener(){const ce=Object.values(this.observers).flat().length;ce>0&&!this.storageEventListener?(this.storageEventListener=ce=>{ce.key&&this.observers[ce.key]&&this.notifyObservers(ce.key,this.parseValue(ce.newValue))},window.addEventListener("storage",this.storageEventListener)):0===ce&&this.storageEventListener&&window.removeEventListener("storage",this.storageEventListener)}notifyObservers(ce,ze){const Ve=this.observers[ce]||[];for(const ce of Ve)ce(ze)}set(ce,ze){ze?window.localStorage.setItem(ce,JSON.stringify(ze)):window.localStorage.removeItem(ce),this.notifyObservers(ce,ze)}observe(ce,ze,Ve){if(this.observers[ce]||(this.observers[ce]=[]),this.observers[ce].push(ze),this.updateStorageEventListener(),Ve){const Ve=window.localStorage.getItem(ce);ze(this.parseValue(Ve))}return()=>{var Ve;const qe=null===(Ve=this.observers[ce])||void 0===Ve?void 0:Ve.indexOf(ze);qe>-1&&this.observers[ce].splice(qe,1),this.updateStorageEventListener()}}parseValue(ce){try{return ce?JSON.parse(ce):void 0}catch(ce){return}}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ArrowMenu",(function(){return qe.a})),Ve.d(ze,"Backdrop",(function(){return Ye.a})),Ve.d(ze,"Breadcrumb",(function(){return bt})),Ve.d(ze,"Button",(function(){return vt.a})),Ve.d(ze,"ButtonGroup",(function(){return wt.a})),Ve.d(ze,"Checkbox",(function(){return Ct.b})),Ve.d(ze,"CheckboxGroup",(function(){return Ct.a})),Ve.d(ze,"CircleSelection",(function(){return Di})),Ve.d(ze,"CircularProgressbar",(function(){return Ti})),Ve.d(ze,"CroppedText",(function(){return er.a})),Ve.d(ze,"DatePicker",(function(){return tr.a})),Ve.d(ze,"Dialog",(function(){return nr.a})),Ve.d(ze,"Divider",(function(){return rr.a})),Ve.d(ze,"DropdownButton",(function(){return ar.a})),Ve.d(ze,"Email",(function(){return sr.a})),Ve.d(ze,"FileUploadButton",(function(){return Mr})),Ve.d(ze,"Form",(function(){return Lr.a})),Ve.d(ze,"GhostIndicator",(function(){return jr.a})),Ve.d(ze,"Grid",(function(){return Ir.a})),Ve.d(ze,"Heading",(function(){return zr.a})),Ve.d(ze,"Icon",(function(){return Xe.a})),Ve.d(ze,"ImageRectangleSelection",(function(){return Oo})),Ve.d(ze,"InfiniteScroller",(function(){return Bo})),Ve.d(ze,"Input",(function(){return Vo.a})),Ve.d(ze,"Loader",(function(){return Ao.a})),Ve.d(ze,"Matrix",(function(){return Cs})),Ve.d(ze,"Menu",(function(){return Ds.a})),Ve.d(ze,"Masonry",(function(){return rs})),Ve.d(ze,"MultiItemSelection",(function(){return ks.a})),Ve.d(ze,"MultiSelect",(function(){return Ss.a})),Ve.d(ze,"Navigation",(function(){return Dl})),Ve.d(ze,"Number",(function(){return kl.a})),Ve.d(ze,"Overlay",(function(){return Sl.a})),Ve.d(ze,"Phone",(function(){return xl.a})),Ve.d(ze,"Popover",(function(){return El.a})),Ve.d(ze,"PublishIndicator",(function(){return Ol.a})),Ve.d(ze,"QRCode",(function(){return Pl.a})),Ve.d(ze,"RectangleSelection",(function(){return Co})),Ve.d(ze,"ResourceLocator",(function(){return Tl.a})),Ve.d(ze,"SingleSelect",(function(){return Al.a})),Ve.d(ze,"Table",(function(){return Ml.a})),Ve.d(ze,"Tabs",(function(){return Lc})),Ve.d(ze,"Toggler",(function(){return jc.a})),Ve.d(ze,"Toolbar",(function(){return Ic.a})),Ve.d(ze,"Url",(function(){return Fc.a})),Ve.d(ze,"withContainerSize",(function(){return en}));var qe=Ve(66),Ye=Ve(292),We=Ve(0),Qe=Ve.n(We),Xe=Ve(19),ot="item--JBXEuBcQDf";class st extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return Qe.a.createElement("button",{className:ot,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var mt="breadcrumb--jdrCHACx20",gt="arrow--lv7hi+9eWz";class yt extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Qe.a.Children.count(ce);return Qe.a.Children.map(ce,((ce,Ve)=>{const qe=Ve===ze-1;return Qe.a.createElement("li",null,Qe.a.cloneElement(ce,{value:ce.props.value,onClick:qe?void 0:this.handleItemClick}),!qe&&Qe.a.createElement(Xe.a,{className:gt,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Qe.a.createElement("ul",{className:mt},ze)}}yt.Item=st;var bt=yt,vt=Ve(40),wt=Ve(373),Ct=Ve(89),Dt=Ve(3),kt=Ve(1),St=Ve(231),xt=Ve(263),Et="container--baL4m3Gu4c";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en=function withContainerSize_withContainerSize(ce){var ze,Ve,qe,Ye;let We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,Xe=Object(Dt.b)((Ve=class extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",qe,this),_initializerDefineProperty(this,"containerHeight",Ye,this),this.readContainerDimensions=ce=>{Object(xt.a)(Object(kt.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(xt.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return Qe.a.createElement("div",{className:We,ref:this.readContainerDimensions},Qe.a.createElement(ce,ze))}},qe=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ye=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return Xe.displayName=Object(St.a)("withContainerSize",ce),Xe},rn=Ve(5),ln=Ve.n(rn),mn="circle--NnB-qkoymQ",gn="disabled--gKhvmpaZ6r",bn="filled--eLtabihmGu",wn="label--PlOe0erCxd",Cn="resize-handle--WLzLuwLGF0";function ModifiableCircle_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ModifiableCircle_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Sn=Object(Dt.b)((Qt=class extends Qe.a.Component{constructor(){super(...arguments),ModifiableCircle_initializerDefineProperty(this,"moveMode",Lt,this),ModifiableCircle_initializerDefineProperty(this,"resizeMode",Ft,this),ModifiableCircle_initializerDefineProperty(this,"resizeAngle",Bt,this),ModifiableCircle_initializerDefineProperty(this,"clickAnchor",Vt,this),this.setCircleRef=ce=>{this.circleRef=ce},ModifiableCircle_initializerDefineProperty(this,"handleMoveMouseDown",Ht,this),ModifiableCircle_initializerDefineProperty(this,"handleResizeMouseDown",Ut,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseUp",Wt,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseMove",Jt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:qe,left:Ye,skin:We,top:Xe}=this.props,ot=ze||0!==qe?2*qe:30,st=0===qe?14:5*Math.sqrt(qe),mt=ln()(mn,{[gn]:ce,[bn]:"filled"===We});return Qe.a.createElement("div",{className:mt,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:Ye+"px",top:Xe+"px",width:ot+"px",height:ot+"px"}},!!Ve&&Qe.a.createElement("div",{className:wn,style:{fontSize:`${st}px`}},Ve),!!ze&&!ce&&Qe.a.createElement("div",{className:Cn,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*qe}px) 50%`,transform:`translate(calc(-50% + ${qe}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},Qt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},Lt=ModifiableCircle_applyDecoratedDescriptor((Tt=Qt).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ft=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeAngle",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Tt.prototype,"setClickAnchor"),Tt.prototype),Ht=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Ut=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Wt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Jt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let qe=0,Ye=0,We=0;if(this.moveMode&&(qe=ce.pageX-this.clickAnchor.pageX,Ye=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),qe=ze.left+ze.width/2,Ye=ze.top+ze.height/2,{clientX:Qe,clientY:Xe}=ce,ot=Qe-qe,st=Xe-Ye;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:qe,top:Ye,radius:We})}}}),Pt=Tt))||Pt;var En=Sn;class Tn{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Ln{normalize(ce){const{left:ze,top:Ve,radius:qe=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(qe)}}}class Fn{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(qe,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const qe=Math.sqrt(ze**2+Ve**2);return void 0===ce?qe:Math.min(ce,qe)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Yn,Un,Gn,Kn="container--x72g+zGssO",Jn="selection--1sIfZsGxj7";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Zn=Object(Dt.b)((Gn=class ce extends Qe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:qe,minRadius:Ye,round:We,resizable:Qe}=ce;if(!ze||!Ve)return[];const Xe=[new Tn(ze,Ve)];return Qe&&Xe.push(new Fn(ze,Ve,qe,Ye)),We&&Xe.push(new Ln),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:qe}=this.props,Ye=Ve?Math.min(ce,ze)/2:qe&&qe.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:Ye}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:qe,resizable:Ye,skin:We}=this.props,{left:Xe,top:ot,radius:st}=this.value,mt=Qe.a.createElement(En,{disabled:ze,label:Ve,left:Xe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:qe,radius:st,resizable:Ye,skin:We,top:ot});return ce?Qe.a.createElement("div",{className:Jn},ce,mt):mt}},Gn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((Un=Gn).prototype,"value",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"value"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"normalizers",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"normalizers"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"maximumSelection",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"maximumSelection"),Un.prototype),Yn=Un))||Yn;const Xn=function withPercentageValues(ce){var ze,Ve,qe;let Ye=Object(Dt.b)((qe=class extends Qe.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:qe}=this.props;qe(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return Qe.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return Qe.a.createElement(ce,Ve)}},qe.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMaxRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(St.a)("withPercentageValues",ce),Ye}(Zn);class ei extends Qe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Qe.a.createElement(Xn,this.props):Qe.a.createElement(Zn,this.props)}}const si=en(ei,Kn);class _i extends Qe.a.Component{render(){const{children:ce}=this.props;return ce?Qe.a.createElement(si,this.props):Qe.a.createElement(ei,this.props)}}_i.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1};var Ri,Ci,Di=_i,Ei=Ve(666),Oi={root:"root--yJll1ztQzl",path:"path--swUm4jqYBg",trail:"trail--6CBMlsbgTS",text:"text--90c8fP1XQV",background:"background--nDHRRoQPng"};var Ti=((Ci=class extends Qe.a.PureComponent{get percentageText(){const{hidePercentageText:ce,percentage:ze}=this.props;return ce?null:`${ze}%`}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Qe.a.createElement("div",{style:Ve},Qe.a.createElement(Ei.a,{background:!0,classes:{root:Oi.root,path:Oi.path,tail:Oi.tail,text:Oi.text,background:Oi.background},text:this.percentageText,value:ze}))}}).defaultProps={hidePercentageText:!1,percentage:0,size:100},function CircularProgressbar_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Ri=Ci).prototype,"percentageText",[kt.computed],Object.getOwnPropertyDescriptor(Ri.prototype,"percentageText"),Ri.prototype),Ri),er=Ve(196),tr=Ve(331),nr=Ve(101),rr=Ve(573),ar=Ve(789),sr=Ve(629),lr=Ve(227);class dr extends Qe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe,accept:Ye}=this.props;return Qe.a.createElement(lr.a,{accept:Ye,onDrop:this.handleDrop,style:{}},(Ye=>{let{getInputProps:We,getRootProps:Xe}=Ye;return Qe.a.createElement("div",Xe(),Qe.a.createElement(vt.a,{disabled:ze,icon:Ve,skin:qe},ce),Qe.a.createElement("input",We()))}))}}dr.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0};var ur,pr,vr,_r,Rr,Cr,Dr,Er,Tr,Ar,Mr=dr,Lr=Ve(73),jr=Ve(374),Ir=Ve(164),zr=Ve(574),Br=Ve(9),Nr=Ve.n(Br),Vr=Ve(11),Hr="rectangle--066hwsjKmr",qr="disabled--gHK2SgRPMj",Yr="has-backdrop--GXF0k4lKKe",Ur="backdrop--3-j6ARYoaR",Wr="label--H0eMjOOEFh",$r="resize-handle--JBEXrm+Q04",Gr="min-size-notification--wAux9Bhk8a";function ModifiableRectangle_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ModifiableRectangle_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Kr=Object(Dt.b)((Ar=class extends Qe.a.Component{constructor(){super(...arguments),ModifiableRectangle_initializerDefineProperty(this,"moveMode",vr,this),ModifiableRectangle_initializerDefineProperty(this,"resizeMode",_r,this),ModifiableRectangle_initializerDefineProperty(this,"clickAnchor",Rr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMoveMouseDown",Cr,this),ModifiableRectangle_initializerDefineProperty(this,"handleResizeMouseDown",Dr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseUp",Er,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseMove",Tr,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:qe,left:Ye,minSizeReached:Xe,top:ot,width:st}=this.props,mt=ln()(Hr,{[qr]:ze,[Yr]:!!ce});return Qe.a.createElement(We.Fragment,null,Qe.a.createElement("div",{className:mt,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:Ye+"px",top:ot+"px",width:st+"px",height:Ve+"px"}},!!ce&&Qe.a.createElement("div",{className:Ur,style:{outlineWidth:ce+"px"}}),!!qe&&Qe.a.createElement("div",{className:Wr,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},qe),!ze&&Qe.a.createElement("div",{className:$r,onMouseDown:this.handleResizeMouseDown,role:"slider"})),Xe&&Qe.a.createElement("div",{className:Gr,style:{left:Ye+"px",top:ot+Ve+"px",width:st+"px"}},Object(Vr.b)("sulu_media.min_size_notification")))}},Ar.defaultProps={backdropSize:0,left:0,top:0},vr=ModifiableRectangle_applyDecoratedDescriptor((pr=Ar).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_r=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Rr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(pr.prototype,"setClickAnchor"),pr.prototype),Cr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Dr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Er=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Tr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,qe=0,Ye=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:qe,width:Ye,height:We}))}}}),ur=pr))||ur;var Jr=Kr;class Zr{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class ga{constructor(ce,ze,Ve,qe){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze,Ve=ce.height;const qe=Ve*(this.minWidth/this.minHeight);return qe>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=qe,{...ce,width:ze,height:Ve}}}class ya{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class ba{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}function RectangleSelection_withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var va,_a,wa,ka="container--U70ucJ+wc+",xa="selection--m+Q1xuG3wW";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Aa=Object(Dt.b)((wa=class ce extends Qe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:qe,minHeight:Ye,round:We}=ce;if(!ze||!Ve)return[];const Qe=[new ba(ze,Ve,qe,Ye)];return qe&&Ye&&Qe.push(new ga(ze,Ve,qe,Ye)),Qe.push(new Zr(ze,Ve)),We&&Qe.push(new ya),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:qe}=this.props;ze(ce?{...ce,left:ce.left/qe,top:ce.top/Ve,width:ce.width/qe,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return Qe.a.createElement(ce,ze)}},qe.defaultProps={minHeight:void 0,minWidth:void 0},RectangleSelection_withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(St.a)("withPercentageValues",ce),Ye}(Aa);class Ja extends Qe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Qe.a.createElement(Ba,this.props):Qe.a.createElement(Aa,this.props)}}const io=en(Ja,ka);class po extends Qe.a.Component{render(){const{children:ce}=this.props;return ce?Qe.a.createElement(io,this.props):Qe.a.createElement(Ja,this.props)}}po.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1};var ho,go,_o,Co=po;function ImageRectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ko=Object(Dt.b)((go=class extends Qe.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="imageLoaded",Ye=this,(qe=_o)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(kt.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>Nr.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:qe}=this.props;let Ye=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return Ye&&Ye>Ve&&(Ye=Ve,We=ze&&ce?Ye*ze/ce:void 0),We&&We>qe&&(We=qe,Ye=ce&&ze?We*ce/ze:void 0),{width:We,height:Ye}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return Qe.a.createElement(Co,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},Qe.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},_o=ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"imageLoaded",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledImageHeight",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledImageHeight"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledImageWidth",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledImageWidth"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinDimensions",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinDimensions"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinWidth"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinHeight"),go.prototype),ho=go))||ho;var Oo=en(ko,"container--Vv0ZpcwdCq"),Po=Ve(51),To=Ve.n(Po),Ao=Ve(54),jo="indicator--KaLifLf2++";class Fo extends Qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=To()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:qe}=this.scrollContainer.getBoundingClientRect(),{bottom:Ye}=ce.getBoundingClientRect();if(Ye-qe<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:qe}=this.props;let Ye=null;return Ve?Ye=Qe.a.createElement(Ao.a,null):ze===ce&&(Ye=Object(Vr.b)("sulu_admin.reached_end_of_list")),Qe.a.createElement("section",{ref:this.setRef},Qe.a.createElement("div",null,qe),Qe.a.createElement("div",{className:jo},Ye))}}Fo.defaultProps={loading:!1};var Bo=Fo,Vo=Ve(48),Ho=Ve(667),Uo=Ve.n(Ho),Wo=Ve(668),$o=Ve.n(Wo),es="masonry--AWozSpqC-B";const ts={gutter:30,transitionDuration:250};class ns extends Qe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new $o.a(this.masonryRef,ts),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:ts.gutter};return Qe.a.Children.map(ce,(ce=>Qe.a.createElement("li",{style:ze},Qe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),qe=ze.filter((ze=>!ce.includes(ze)));let Ye=0;const We=Ve.filter((ze=>{const Ve=Ye===ce.indexOf(ze);return Ve&&Ye++,Ve})),Qe=Ve.filter((ce=>!We.includes(ce)));qe.length>0&&this.masonry.remove(qe),Qe.length>0&&this.masonry.appended(Qe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(qe.length>0||Qe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Uo()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Qe.a.createElement("ul",{className:es,ref:this.setMasonryRef},ze)}}var rs=ns,os=Ve(6),ss="item--xqojrTMDhX",ls="selected--dRsgDHpFpR",cs="disabled--sAd25lN6SW";class ds extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:qe,value:Ye}=this.props,We=ln()(ss,{[ls]:Ye,[cs]:ce}),ot=qe||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Qe.a.createElement("button",{className:We,onClick:ce?void 0:this.handleClick,title:ot,type:"button"},Qe.a.createElement(Xe.a,{name:ze}))}}ds.defaultProps={disabled:!1,value:!1};var us,ps,hs,fs="row--aSlrhfNwZ1",ms="name--XxJtvn4FEr",gs="items--pLW+pKD8EA",ys="row-button--MQ+s7gSvc-";let bs=Object(Dt.b)((hs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe,values:Ye}=this.props;if(!qe)return;const We={...Ye};We[ce]=ze,qe(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return Qe.a.Children.map(ce,((ce,qe)=>Qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${qe}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const qe={};Qe.a.Children.map(ce,(ce=>{qe[ce.props.name]=this.allItemsDeactivated})),Ve(ze,qe)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return Qe.a.createElement("button",{className:ys,onClick:this.handleAllButtonClick,type:"button"},Object(os.translate)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:qe}=this.props;return Qe.a.createElement("tr",{className:fs},Qe.a.createElement("td",{className:ms},qe||Ve),Qe.a.createElement("td",{className:gs},this.cloneItems(ze),!ce&&this.renderAllButton()))}},hs.defaultProps={disabled:!1,values:{}},function Row_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((ps=hs).prototype,"allItemsDeactivated",[kt.computed],Object.getOwnPropertyDescriptor(ps.prototype,"allItemsDeactivated"),ps.prototype),us=ps))||us;var vs=bs,_s="matrix--AvkqDmcoBh",ws="disabled--ctmi-wsXx1";class Rs extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:qe}=this.props,Ye={...qe};Ye[ce]=ze,Ve(Ye)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return Qe.a.Children.map(ce,((ce,qe)=>Qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${qe}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,qe=ln()(_s,ze,{[ws]:Ve});return Qe.a.createElement("table",{className:qe},Qe.a.createElement("tbody",null,this.cloneRows(ce)))}}Rs.defaultProps={disabled:!1,values:{}},Rs.Row=vs,Rs.Item=ds;var Cs=Rs,Ds=Ve(330),ks=Ve(305),Ss=Ve(201),xs="item--OZf49536VS",Es="active--7AESPQFbWN",Os="title--pwfeVsTsX8",Ps="icon--VGpoIA5pHd",Ts="text--QSD5XTiAMJ",As="children-indicator--+ALd8XzkJU";class Ms extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:qe}=this.props;let{active:Ye}=this.props;ze&&Qe.a.Children.forEach(ze,(ce=>{ce.props.active&&(Ye=!0)}));const We=ln()(xs,{[Es]:Ye});return Qe.a.createElement("div",{className:We},Qe.a.createElement("button",{className:Os,onClick:this.handleClick,type:"button"},qe&&Qe.a.createElement(Xe.a,{className:Ps,name:qe}),Qe.a.createElement("span",{className:Ts},ce),ze&&Qe.a.createElement(Xe.a,{className:As,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Qe.a.createElement("div",null,ze))}}var Ls,js,Is,zs,Fs,Bs="navigation--8H2kpS4qdT",Ns="header--EP70Fxerc5",Vs="logo--JGrymgcOg0",Hs="pin--H9rumr9SnA",qs="active--uqqICUi6mh",Ys="pin-icon--CQ9DYaBJoV",Us="items--wUmdQ3WTD-",Ws="footer--KYLSJTz8-J",$s="user-section--B6KDHCygo4",Gs="button--1Ce5e4ygu1",Ks="active--BOepQBpCBt",Js="user-image--igQVt-0Nnf",Zs="image--Lt+8aE7b1z",Qs="placeholder--+LSyot+SQF",Xs="username--hvs-izEVXU",pl="menu--XI3C9Cf-03",gl="open--1k+3dWcBsr",yl="menu-button--HpNB4yCgZB";function UserSection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function UserSection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let bl=Object(Dt.b)((js=class extends Qe.a.Component{constructor(){super(...arguments),UserSection_initializerDefineProperty(this,"open",Is,this),UserSection_initializerDefineProperty(this,"handleButtonClick",zs,this),UserSection_initializerDefineProperty(this,"close",Fs,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ln()(pl,this.open&&gl),qe=ln()(Gs,this.open&&Ks);return Qe.a.createElement("div",{className:$s},Qe.a.createElement("button",{className:qe,onClick:this.handleButtonClick,type:"button"},Qe.a.createElement("div",{className:Js},ze&&Qe.a.createElement("img",{alt:ce,className:Zs,src:ze,title:ce}),!ze&&Qe.a.createElement(Xe.a,{className:Qs,name:"su-user"})),Qe.a.createElement("span",{className:Xs},ce),Qe.a.createElement(Xe.a,{name:this.open?"su-angle-down":"su-angle-up"})),Qe.a.createElement("div",{className:Ve,hidden:!this.open},Qe.a.createElement(vt.a,{className:yl,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(os.translate)("sulu_admin.edit_profile")),Qe.a.createElement(vt.a,{className:yl,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(os.translate)("sulu_admin.logout"))))}},Is=UserSection_applyDecoratedDescriptor(js.prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zs=UserSection_applyDecoratedDescriptor(js.prototype,"handleButtonClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Fs=UserSection_applyDecoratedDescriptor(js.prototype,"close",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ls=js))||Ls;var vl,_l,wl,Rl,Cl=bl;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Dl=Object(Dt.b)(((Rl=class extends Qe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="expandedChild",Ye=this,(qe=wl)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;Qe.a.Children.forEach(ce,(ce=>{ce.props.children&&Qe.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return Qe.a.Children.map(this.props.children,(ce=>Qe.a.cloneElement(ce,{children:ce.props.children?Qe.a.Children.map(ce.props.children,(ce=>{if(ce)return Qe.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:qe,onProfileClick:Ye,suluVersion:We,onPinToggle:ot}=this.props,st=ln()(Hs,{[qs]:ce});return Qe.a.createElement("div",{className:Bs},Qe.a.createElement("div",{className:Ns},Qe.a.createElement("span",{className:Vs,title:We},Qe.a.createElement(Xe.a,{name:"su-sulu-logo"})),ot&&Qe.a.createElement("button",{className:st,onClick:this.handlePinToggle,type:"button"},Qe.a.createElement(Xe.a,{className:Ys,name:"su-stick-right"}))),Qe.a.createElement("div",{className:Us},this.cloneChildren()),Qe.a.createElement("div",{className:Ws},Qe.a.createElement(Cl,{onLogoutClick:qe,onProfileClick:Ye,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},Rl.Item=Ms,wl=Navigation_applyDecoratedDescriptor((_l=Rl).prototype,"expandedChild",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(_l.prototype,"setExpandedChild",[kt.action],Object.getOwnPropertyDescriptor(_l.prototype,"setExpandedChild"),_l.prototype),vl=_l))||vl,kl=Ve(380),Sl=Ve(131),xl=Ve(630),El=Ve(118),Ol=Ve(173),Pl=Ve(575),Tl=Ve(576),Al=Ve(32),Ml=Ve(94),Ll={tab:"tab--rWvejpn6nW",selected:"selected--syqy7rGSiD",hidden:"hidden--g+9vlGHUBA",inline:"inline--RUXsRQRjRM",badges:"badges---IFZroBxKO"};class jl extends Qe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:qe,selected:Ye}=this.props,We=ln()(Ll.tab,Ll[qe],{[Ll.hidden]:Ve,[Ll.selected]:Ye});return Qe.a.createElement("li",{className:We,ref:this.setTabRef},Qe.a.createElement("button",{disabled:Ye,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Qe.a.createElement("div",{className:Ll.badges},ce)))}}jl.defaultProps={badges:[],hidden:!1,selected:!1};var Il=jl,zl="collapsed-tab--HFh4Nvw6ES";class Fl extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Qe.a.createElement("li",{className:zl},Qe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var Bl={"collapsed-tab-list":"collapsed-tab-list--YnrB-ina1D",collapsedTabList:"collapsed-tab-list--YnrB-ina1D",root:"root--v1XyosJxtJ",inline:"inline--5hFyCj368E"};class Nl extends Qe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ln()(Bl.collapsedTabList,Bl[ze]);return Qe.a.createElement("ul",{className:Ve},ce)}}var Vl,Hl,Ul,Wl,$l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc={tabs:"tabs--7jNP0Rq1U-",inline:"inline--8YKYizyuDD",nested:"nested--UoGl0eqIyL","tabs-container-wrapper":"tabs-container-wrapper--OyQXhuN19b",tabsContainerWrapper:"tabs-container-wrapper--OyQXhuN19b",button:"button--kvUJ+UhDPg","tabs-container":"tabs-container--+3Mb+dH9Db",tabsContainer:"tabs-container--+3Mb+dH9Db"};function Tabs_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Tabs_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Mc=Object(Dt.b)((Ec=class extends Qe.a.Component{constructor(){super(...arguments),Tabs_initializerDefineProperty(this,"tabsWidth",Ul,this),Tabs_initializerDefineProperty(this,"tabsContainerWrapperWidth",Wl,this),Tabs_initializerDefineProperty(this,"tabsContainerWidth",$l,this),Tabs_initializerDefineProperty(this,"tabWidths",ec,this),Tabs_initializerDefineProperty(this,"tabRefs",nc,this),Tabs_initializerDefineProperty(this,"dropdownOpen",ic,this),Tabs_initializerDefineProperty(this,"lastSelectedIndex",oc,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},Tabs_initializerDefineProperty(this,"setTabsWidth",lc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWrapperWidth",pc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWidth",hc,this),Tabs_initializerDefineProperty(this,"updateTabWidths",fc,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},Tabs_initializerDefineProperty(this,"setTabRef",mc,this),Tabs_initializerDefineProperty(this,"handleDropdownToggle",gc,this),Tabs_initializerDefineProperty(this,"handleDropdownClose",_c,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},Tabs_initializerDefineProperty(this,"handleCollapsedTabClick",kc,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Qe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(Qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(To()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return Qe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const qe=this.childIndices;qe.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of qe){const qe=this.tabWidths.get(ce);if(void 0===qe){if(Ve.length>0)break;return this.childIndices}if(ze+qe>this.tabsContainerWrapperWidth)break;ze+=qe,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:qe}=this.props;return Qe.a.Children.map(ce,((ce,Ye)=>{const We=ze[Ye];if(!ce)return null;const Xe=this.isSelected(We);return Qe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:We,selected:Xe,type:qe,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Qe.a.Children.map(ce,((ce,Ve)=>{const qe=ze[Ve];return ce?Qe.a.createElement(Fl,{index:qe,key:qe,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ln()(Oc.tabs,Oc[ce],ze);return Qe.a.createElement("div",{className:Ve,ref:this.setTabsRef},Qe.a.createElement("div",{className:Oc.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Qe.a.createElement("ul",{className:Oc.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Qe.a.createElement(Qe.a.Fragment,null,Qe.a.createElement("button",{className:Oc.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Qe.a.createElement(Xe.a,{name:"su-more-horizontal"})),Qe.a.createElement(El.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Qe.a.createElement("div",{ref:ze,style:Ve},Qe.a.createElement(Nl,{type:ce},this.createCollapsedTabs()))))))}},Ec.Tab=Il,Ul=Tabs_applyDecoratedDescriptor((Hl=Ec).prototype,"tabsWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Wl=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabsContainerWrapperWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$l=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabsContainerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabWidths",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),nc=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabRefs",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ic=Tabs_applyDecoratedDescriptor(Hl.prototype,"dropdownOpen",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oc=Tabs_applyDecoratedDescriptor(Hl.prototype,"lastSelectedIndex",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),pc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsContainerWrapperWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),hc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsContainerWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),fc=Tabs_applyDecoratedDescriptor(Hl.prototype,"updateTabWidths",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),mc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),gc=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleDropdownToggle",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),_c=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleDropdownClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),kc=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleCollapsedTabClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),Tabs_applyDecoratedDescriptor(Hl.prototype,"visibleTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"visibleTabIndices"),Hl.prototype),Tabs_applyDecoratedDescriptor(Hl.prototype,"collapsedTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"collapsedTabIndices"),Hl.prototype),Tabs_applyDecoratedDescriptor(Hl.prototype,"hasCollapsedTabs",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"hasCollapsedTabs"),Hl.prototype),Vl=Hl))||Vl;var Lc=Mc,jc=Ve(162),Ic=Ve(145),Fc=Ve(375)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return logWarning}));const qe="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class Ye extends Error{constructor(ce,ze,Ve){super(getErrorMessage(ce,Ve)),this.name="CKEditorError",this.context=ze,this.data=Ve}is(ce){return"CKEditorError"===ce}static rethrowUnexpectedError(ce,ze){if(ce.is&&ce.is("CKEditorError"))throw ce;const Ve=new Ye(ce.message,ze);throw Ve.stack=ce.stack,Ve}}function logWarning(ce,ze){console.warn(...formatConsoleArguments(ce,ze))}function getLinkToDocumentationMessage(ce){return`\nRead more: ${qe}#error-${ce}`}function getErrorMessage(ce,ze){const Ve=new WeakSet;return ce+(ze?` ${JSON.stringify(ze,((ce,ze)=>{if("object"==typeof ze&&null!==ze){if(Ve.has(ze))return`[object ${ze.constructor.name}]`;Ve.add(ze)}return ze}))}`:"")+getLinkToDocumentationMessage(ce)}function formatConsoleArguments(ce,ze){const Ve=getLinkToDocumentationMessage(ce);return ze?[ce,ze,Ve]:[ce,Ve]}},function(ce,ze,Ve){var qe,Ye;!function(){"use strict";qe=function(){var noop=function(){},ce="undefined",ze=typeof window!==ce&&typeof window.navigator!==ce&&/Trident\/|MSIE /.test(window.navigator.userAgent),Ve=["trace","debug","info","warn","error"],qe={},Ye=null;function bindMethod(ce,ze){var Ve=ce[ze];if("function"==typeof Ve.bind)return Ve.bind(ce);try{return Function.prototype.bind.call(Ve,ce)}catch(ze){return function(){return Function.prototype.apply.apply(Ve,[ce,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function realMethod(Ve){return"debug"===Ve&&(Ve="log"),typeof console!==ce&&("trace"===Ve&&ze?traceForIE:void 0!==console[Ve]?bindMethod(console,Ve):void 0!==console.log?bindMethod(console,"log"):noop)}function replaceLoggingMethods(){for(var ze=this.getLevel(),qe=0;qe=0&&ze<=st.levels.SILENT)return ze;throw new TypeError("log.setLevel() called with invalid level: "+ce)}"string"==typeof ze?mt+=":"+ze:"symbol"==typeof ze&&(mt=void 0),st.name=ze,st.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},st.methodFactory=We||defaultMethodFactory,st.getLevel=function(){return null!=ot?ot:null!=Xe?Xe:Qe},st.setLevel=function(ce,ze){return ot=normalizeLevel(ce),!1!==ze&&persistLevelIfPossible(ot),replaceLoggingMethods.call(st)},st.setDefaultLevel=function(ce){Xe=normalizeLevel(ce),getPersistedLevel()||st.setLevel(ce,!1)},st.resetLevel=function(){ot=null,clearPersistedLevel(),replaceLoggingMethods.call(st)},st.enableAll=function(ce){st.setLevel(st.levels.TRACE,ce)},st.disableAll=function(ce){st.setLevel(st.levels.SILENT,ce)},st.rebuild=function(){if(Ye!==st&&(Qe=normalizeLevel(Ye.getLevel())),replaceLoggingMethods.call(st),Ye===st)for(var ce in qe)qe[ce].rebuild()},Qe=normalizeLevel(Ye?Ye.getLevel():"WARN");var gt=getPersistedLevel();null!=gt&&(ot=normalizeLevel(gt)),replaceLoggingMethods.call(st)}(Ye=new Logger).getLogger=function getLogger(ce){if("symbol"!=typeof ce&&"string"!=typeof ce||""===ce)throw new TypeError("You must supply a name when creating a logger.");var ze=qe[ce];return ze||(ze=qe[ce]=new Logger(ce,Ye.methodFactory)),ze};var We=typeof window!==ce?window.log:void 0;return Ye.noConflict=function(){return typeof window!==ce&&window.log===Ye&&(window.log=We),Ye},Ye.getLoggers=function getLoggers(){return qe},Ye.default=Ye,Ye},void 0===(Ye="function"==typeof qe?qe.call(ze,Ve,ze,ce):qe)||(ce.exports=Ye)}()},function(ce,ze,Ve){(function(ce){ce.exports=function(){"use strict";var ze,qe;function hooks(){return ze.apply(null,arguments)}function setHookCallback(ce){ze=ce}function isArray(ce){return ce instanceof Array||"[object Array]"===Object.prototype.toString.call(ce)}function isObject(ce){return null!=ce&&"[object Object]"===Object.prototype.toString.call(ce)}function hasOwnProp(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}function isObjectEmpty(ce){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ce).length;var ze;for(ze in ce)if(hasOwnProp(ce,ze))return!1;return!0}function isUndefined(ce){return void 0===ce}function isNumber(ce){return"number"==typeof ce||"[object Number]"===Object.prototype.toString.call(ce)}function isDate(ce){return ce instanceof Date||"[object Date]"===Object.prototype.toString.call(ce)}function map(ce,ze){var Ve,qe=[],Ye=ce.length;for(Ve=0;Ve>>0;for(ze=0;ze0)for(Ve=0;Ve=0?Ve?"+":"":"-")+Math.pow(10,Math.max(0,Ye)).toString().substr(1)+qe}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},yt={};function addFormatToken(ce,ze,Ve,qe){var Ye=qe;"string"==typeof qe&&(Ye=function(){return this[qe]()}),ce&&(yt[ce]=Ye),ze&&(yt[ze[0]]=function(){return zeroFill(Ye.apply(this,arguments),ze[1],ze[2])}),Ve&&(yt[Ve]=function(){return this.localeData().ordinal(Ye.apply(this,arguments),ce)})}function removeFormattingTokens(ce){return ce.match(/\[[\s\S]/)?ce.replace(/^\[|\]$/g,""):ce.replace(/\\/g,"")}function makeFormatFunction(ce){var ze,Ve,qe=ce.match(st);for(ze=0,Ve=qe.length;ze=0&&mt.test(ce);)ce=ce.replace(mt,replaceLongDateFormatTokens),mt.lastIndex=0,Ve-=1;return ce}var bt={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"};function longDateFormat(ce){var ze=this._longDateFormat[ce],Ve=this._longDateFormat[ce.toUpperCase()];return ze||!Ve?ze:(this._longDateFormat[ce]=Ve.match(st).map((function(ce){return"MMMM"===ce||"MM"===ce||"DD"===ce||"dddd"===ce?ce.slice(1):ce})).join(""),this._longDateFormat[ce])}var vt="Invalid date";function invalidDate(){return this._invalidDate}var wt="%d",Ct=/\d{1,2}/;function ordinal(ce){return this._ordinal.replace("%d",ce)}var Dt={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(ce,ze,Ve,qe){var Ye=this._relativeTime[Ve];return isFunction(Ye)?Ye(ce,ze,Ve,qe):Ye.replace(/%d/i,ce)}function pastFuture(ce,ze){var Ve=this._relativeTime[ce>0?"future":"past"];return isFunction(Ve)?Ve(ze):Ve.replace(/%s/i,ze)}var kt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(ce){return"string"==typeof ce?kt[ce]||kt[ce.toLowerCase()]:void 0}function normalizeObjectUnits(ce){var ze,Ve,qe={};for(Ve in ce)hasOwnProp(ce,Ve)&&(ze=normalizeUnits(Ve))&&(qe[ze]=ce[Ve]);return qe}var St={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(ce){var ze,Ve=[];for(ze in ce)hasOwnProp(ce,ze)&&Ve.push({unit:ze,priority:St[ze]});return Ve.sort((function(ce,ze){return ce.priority-ze.priority})),Ve}var xt,Et=/\d/,Pt=/\d\d/,Tt=/\d{3}/,Lt=/\d{4}/,Ft=/[+-]?\d{6}/,Bt=/\d\d?/,Vt=/\d\d\d\d?/,Ht=/\d\d\d\d\d\d?/,Ut=/\d{1,3}/,Wt=/\d{1,4}/,Jt=/[+-]?\d{1,6}/,Qt=/\d+/,en=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,ln=/Z|[+-]\d\d(?::?\d\d)?/gi,mn=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bn=/^[1-9]\d?/,wn=/^([1-9]\d|\d)/;function addRegexToken(ce,ze,Ve){xt[ce]=isFunction(ze)?ze:function(ce,qe){return ce&&Ve?Ve:ze}}function getParseRegexForToken(ce,ze){return hasOwnProp(xt,ce)?xt[ce](ze._strict,ze._locale):new RegExp(unescapeFormat(ce))}function unescapeFormat(ce){return regexEscape(ce.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(ce,ze,Ve,qe,Ye){return ze||Ve||qe||Ye})))}function regexEscape(ce){return ce.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(ce){return ce<0?Math.ceil(ce)||0:Math.floor(ce)}function toInt(ce){var ze=+ce,Ve=0;return 0!==ze&&isFinite(ze)&&(Ve=absFloor(ze)),Ve}xt={};var Cn={};function addParseToken(ce,ze){var Ve,qe,Ye=ze;for("string"==typeof ce&&(ce=[ce]),isNumber(ze)&&(Ye=function(ce,Ve){Ve[ze]=toInt(ce)}),qe=ce.length,Ve=0;Ve68?1900:2e3)};var Jn,Zn=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(ce,ze){return function(Ve){return null!=Ve?(set$1(this,ce,Ve),hooks.updateOffset(this,ze),this):get(this,ce)}}function get(ce,ze){if(!ce.isValid())return NaN;var Ve=ce._d,qe=ce._isUTC;switch(ze){case"Milliseconds":return qe?Ve.getUTCMilliseconds():Ve.getMilliseconds();case"Seconds":return qe?Ve.getUTCSeconds():Ve.getSeconds();case"Minutes":return qe?Ve.getUTCMinutes():Ve.getMinutes();case"Hours":return qe?Ve.getUTCHours():Ve.getHours();case"Date":return qe?Ve.getUTCDate():Ve.getDate();case"Day":return qe?Ve.getUTCDay():Ve.getDay();case"Month":return qe?Ve.getUTCMonth():Ve.getMonth();case"FullYear":return qe?Ve.getUTCFullYear():Ve.getFullYear();default:return NaN}}function set$1(ce,ze,Ve){var qe,Ye,We,Qe,Xe;if(ce.isValid()&&!isNaN(Ve)){switch(qe=ce._d,Ye=ce._isUTC,ze){case"Milliseconds":return void(Ye?qe.setUTCMilliseconds(Ve):qe.setMilliseconds(Ve));case"Seconds":return void(Ye?qe.setUTCSeconds(Ve):qe.setSeconds(Ve));case"Minutes":return void(Ye?qe.setUTCMinutes(Ve):qe.setMinutes(Ve));case"Hours":return void(Ye?qe.setUTCHours(Ve):qe.setHours(Ve));case"Date":return void(Ye?qe.setUTCDate(Ve):qe.setDate(Ve));case"FullYear":break;default:return}We=Ve,Qe=ce.month(),Xe=29!==(Xe=ce.date())||1!==Qe||isLeapYear(We)?Xe:28,Ye?qe.setUTCFullYear(We,Qe,Xe):qe.setFullYear(We,Qe,Xe)}}function stringGet(ce){return isFunction(this[ce=normalizeUnits(ce)])?this[ce]():this}function stringSet(ce,ze){if("object"==typeof ce){var Ve,qe=getPrioritizedUnits(ce=normalizeObjectUnits(ce)),Ye=qe.length;for(Ve=0;Ve=0?(Xe=new Date(ce+400,ze,Ve,qe,Ye,We,Qe),isFinite(Xe.getFullYear())&&Xe.setFullYear(ce)):Xe=new Date(ce,ze,Ve,qe,Ye,We,Qe),Xe}function createUTCDate(ce){var ze,Ve;return ce<100&&ce>=0?((Ve=Array.prototype.slice.call(arguments))[0]=ce+400,ze=new Date(Date.UTC.apply(null,Ve)),isFinite(ze.getUTCFullYear())&&ze.setUTCFullYear(ce)):ze=new Date(Date.UTC.apply(null,arguments)),ze}function firstWeekOffset(ce,ze,Ve){var qe=7+ze-Ve;return-(7+createUTCDate(ce,0,qe).getUTCDay()-ze)%7+qe-1}function dayOfYearFromWeeks(ce,ze,Ve,qe,Ye){var We,Qe,Xe=1+7*(ze-1)+(7+Ve-qe)%7+firstWeekOffset(ce,qe,Ye);return Xe<=0?Qe=daysInYear(We=ce-1)+Xe:Xe>daysInYear(ce)?(We=ce+1,Qe=Xe-daysInYear(ce)):(We=ce,Qe=Xe),{year:We,dayOfYear:Qe}}function weekOfYear(ce,ze,Ve){var qe,Ye,We=firstWeekOffset(ce.year(),ze,Ve),Qe=Math.floor((ce.dayOfYear()-We-1)/7)+1;return Qe<1?qe=Qe+weeksInYear(Ye=ce.year()-1,ze,Ve):Qe>weeksInYear(ce.year(),ze,Ve)?(qe=Qe-weeksInYear(ce.year(),ze,Ve),Ye=ce.year()+1):(Ye=ce.year(),qe=Qe),{week:qe,year:Ye}}function weeksInYear(ce,ze,Ve){var qe=firstWeekOffset(ce,ze,Ve),Ye=firstWeekOffset(ce+1,ze,Ve);return(daysInYear(ce)-qe+Ye)/7}function localeWeek(ce){return weekOfYear(ce,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addRegexToken("w",Bt,bn),addRegexToken("ww",Bt,Pt),addRegexToken("W",Bt,bn),addRegexToken("WW",Bt,Pt),addWeekParseToken(["w","ww","W","WW"],(function(ce,ze,Ve,qe){ze[qe.substr(0,1)]=toInt(ce)}));var Ci={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(ce){var ze=this.localeData().week(this);return null==ce?ze:this.add(7*(ce-ze),"d")}function getSetISOWeek(ce){var ze=weekOfYear(this,1,4).week;return null==ce?ze:this.add(7*(ce-ze),"d")}function parseWeekday(ce,ze){return"string"!=typeof ce?ce:isNaN(ce)?"number"==typeof(ce=ze.weekdaysParse(ce))?ce:null:parseInt(ce,10)}function parseIsoWeekday(ce,ze){return"string"==typeof ce?ze.weekdaysParse(ce)%7||7:isNaN(ce)?null:ce}function shiftWeekdays(ce,ze){return ce.slice(ze,7).concat(ce.slice(0,ze))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(ce){return this.localeData().weekdaysMin(this,ce)})),addFormatToken("ddd",0,0,(function(ce){return this.localeData().weekdaysShort(this,ce)})),addFormatToken("dddd",0,0,(function(ce){return this.localeData().weekdays(this,ce)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addRegexToken("d",Bt),addRegexToken("e",Bt),addRegexToken("E",Bt),addRegexToken("dd",(function(ce,ze){return ze.weekdaysMinRegex(ce)})),addRegexToken("ddd",(function(ce,ze){return ze.weekdaysShortRegex(ce)})),addRegexToken("dddd",(function(ce,ze){return ze.weekdaysRegex(ce)})),addWeekParseToken(["dd","ddd","dddd"],(function(ce,ze,Ve,qe){var Ye=Ve._locale.weekdaysParse(ce,qe,Ve._strict);null!=Ye?ze.d=Ye:getParsingFlags(Ve).invalidWeekday=ce})),addWeekParseToken(["d","e","E"],(function(ce,ze,Ve,qe){ze[qe]=toInt(ce)}));var Di="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ei="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Oi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ti=gn,er=gn,tr=gn;function localeWeekdays(ce,ze){var Ve=isArray(this._weekdays)?this._weekdays:this._weekdays[ce&&!0!==ce&&this._weekdays.isFormat.test(ze)?"format":"standalone"];return!0===ce?shiftWeekdays(Ve,this._week.dow):ce?Ve[ce.day()]:Ve}function localeWeekdaysShort(ce){return!0===ce?shiftWeekdays(this._weekdaysShort,this._week.dow):ce?this._weekdaysShort[ce.day()]:this._weekdaysShort}function localeWeekdaysMin(ce){return!0===ce?shiftWeekdays(this._weekdaysMin,this._week.dow):ce?this._weekdaysMin[ce.day()]:this._weekdaysMin}function handleStrictParse$1(ce,ze,Ve){var qe,Ye,We,Qe=ce.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],qe=0;qe<7;++qe)We=createUTC([2e3,1]).day(qe),this._minWeekdaysParse[qe]=this.weekdaysMin(We,"").toLocaleLowerCase(),this._shortWeekdaysParse[qe]=this.weekdaysShort(We,"").toLocaleLowerCase(),this._weekdaysParse[qe]=this.weekdays(We,"").toLocaleLowerCase();return Ve?"dddd"===ze?-1!==(Ye=Jn.call(this._weekdaysParse,Qe))?Ye:null:"ddd"===ze?-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))?Ye:null:-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:"dddd"===ze?-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:"ddd"===ze?-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))?Ye:null}function localeWeekdaysParse(ce,ze,Ve){var qe,Ye,We;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,ce,ze,Ve);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),qe=0;qe<7;qe++){if(Ye=createUTC([2e3,1]).day(qe),Ve&&!this._fullWeekdaysParse[qe]&&(this._fullWeekdaysParse[qe]=new RegExp("^"+this.weekdays(Ye,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[qe]=new RegExp("^"+this.weekdaysShort(Ye,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[qe]=new RegExp("^"+this.weekdaysMin(Ye,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[qe]||(We="^"+this.weekdays(Ye,"")+"|^"+this.weekdaysShort(Ye,"")+"|^"+this.weekdaysMin(Ye,""),this._weekdaysParse[qe]=new RegExp(We.replace(".",""),"i")),Ve&&"dddd"===ze&&this._fullWeekdaysParse[qe].test(ce))return qe;if(Ve&&"ddd"===ze&&this._shortWeekdaysParse[qe].test(ce))return qe;if(Ve&&"dd"===ze&&this._minWeekdaysParse[qe].test(ce))return qe;if(!Ve&&this._weekdaysParse[qe].test(ce))return qe}}function getSetDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=get(this,"Day");return null!=ce?(ce=parseWeekday(ce,this.localeData()),this.add(ce-ze,"d")):ze}function getSetLocaleDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=(this.day()+7-this.localeData()._week.dow)%7;return null==ce?ze:this.add(ce-ze,"d")}function getSetISODayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;if(null!=ce){var ze=parseIsoWeekday(ce,this.localeData());return this.day(this.day()%7?ze:ze-7)}return this.day()||7}function weekdaysRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=Ti),this._weekdaysStrictRegex&&ce?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=er),this._weekdaysShortStrictRegex&&ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tr),this._weekdaysMinStrictRegex&&ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(ce,ze){return ze.length-ce.length}var ce,ze,Ve,qe,Ye,We=[],Qe=[],Xe=[],ot=[];for(ce=0;ce<7;ce++)ze=createUTC([2e3,1]).day(ce),Ve=regexEscape(this.weekdaysMin(ze,"")),qe=regexEscape(this.weekdaysShort(ze,"")),Ye=regexEscape(this.weekdays(ze,"")),We.push(Ve),Qe.push(qe),Xe.push(Ye),ot.push(Ve),ot.push(qe),ot.push(Ye);We.sort(cmpLenRev),Qe.sort(cmpLenRev),Xe.sort(cmpLenRev),ot.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+ot.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+We.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(ce,ze){addFormatToken(ce,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),ze)}))}function matchMeridiem(ce,ze){return ze._meridiemParse}function localeIsPM(ce){return"p"===(ce+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",Bt,wn),addRegexToken("h",Bt,bn),addRegexToken("k",Bt,bn),addRegexToken("HH",Bt,Pt),addRegexToken("hh",Bt,Pt),addRegexToken("kk",Bt,Pt),addRegexToken("hmm",Vt),addRegexToken("hmmss",Ht),addRegexToken("Hmm",Vt),addRegexToken("Hmmss",Ht),addParseToken(["H","HH"],Ln),addParseToken(["k","kk"],(function(ce,ze,Ve){var qe=toInt(ce);ze[Ln]=24===qe?0:qe})),addParseToken(["a","A"],(function(ce,ze,Ve){Ve._isPm=Ve._locale.isPM(ce),Ve._meridiem=ce})),addParseToken(["h","hh"],(function(ce,ze,Ve){ze[Ln]=toInt(ce),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe)),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe,2)),ze[Yn]=toInt(ce.substr(Ye)),getParsingFlags(Ve).bigHour=!0})),addParseToken("Hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe))})),addParseToken("Hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe,2)),ze[Yn]=toInt(ce.substr(Ye))}));var nr=/[ap]\.?m?\.?/i,rr=makeGetSet("Hours",!0);function localeMeridiem(ce,ze,Ve){return ce>11?Ve?"pm":"PM":Ve?"am":"AM"}var ar,sr={calendar:ot,longDateFormat:bt,invalidDate:vt,ordinal:wt,dayOfMonthOrdinalParse:Ct,relativeTime:Dt,months:Xn,monthsShort:ei,week:Ci,weekdays:Di,weekdaysMin:Oi,weekdaysShort:Ei,meridiemParse:nr},lr={},dr={};function commonPrefix(ce,ze){var Ve,qe=Math.min(ce.length,ze.length);for(Ve=0;Ve0;){if(qe=loadLocale(Ye.slice(0,ze).join("-")))return qe;if(Ve&&Ve.length>=ze&&commonPrefix(Ye,Ve)>=ze-1)break;ze--}We++}return ar}function isLocaleNameSane(ce){return!(!ce||!ce.match("^[^/\\\\]*$"))}function loadLocale(ze){var qe=null;if(void 0===lr[ze]&&void 0!==ce&&ce&&ce.exports&&isLocaleNameSane(ze))try{qe=ar._abbr,Ve(1787)("./"+ze),getSetGlobalLocale(qe)}catch(ce){lr[ze]=null}return lr[ze]}function getSetGlobalLocale(ce,ze){var Ve;return ce&&((Ve=isUndefined(ze)?getLocale(ce):defineLocale(ce,ze))?ar=Ve:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ce+" not found. Did you forget to load it?")),ar._abbr}function defineLocale(ce,ze){if(null!==ze){var Ve,qe=sr;if(ze.abbr=ce,null!=lr[ce])deprecateSimple("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 http://momentjs.com/guides/#/warnings/define-locale/ for more info."),qe=lr[ce]._config;else if(null!=ze.parentLocale)if(null!=lr[ze.parentLocale])qe=lr[ze.parentLocale]._config;else{if(null==(Ve=loadLocale(ze.parentLocale)))return dr[ze.parentLocale]||(dr[ze.parentLocale]=[]),dr[ze.parentLocale].push({name:ce,config:ze}),null;qe=Ve._config}return lr[ce]=new Locale(mergeConfigs(qe,ze)),dr[ce]&&dr[ce].forEach((function(ce){defineLocale(ce.name,ce.config)})),getSetGlobalLocale(ce),lr[ce]}return delete lr[ce],null}function updateLocale(ce,ze){if(null!=ze){var Ve,qe,Ye=sr;null!=lr[ce]&&null!=lr[ce].parentLocale?lr[ce].set(mergeConfigs(lr[ce]._config,ze)):(null!=(qe=loadLocale(ce))&&(Ye=qe._config),ze=mergeConfigs(Ye,ze),null==qe&&(ze.abbr=ce),(Ve=new Locale(ze)).parentLocale=lr[ce],lr[ce]=Ve),getSetGlobalLocale(ce)}else null!=lr[ce]&&(null!=lr[ce].parentLocale?(lr[ce]=lr[ce].parentLocale,ce===getSetGlobalLocale()&&getSetGlobalLocale(ce)):null!=lr[ce]&&delete lr[ce]);return lr[ce]}function getLocale(ce){var ze;if(ce&&ce._locale&&ce._locale._abbr&&(ce=ce._locale._abbr),!ce)return ar;if(!isArray(ce)){if(ze=loadLocale(ce))return ze;ce=[ce]}return chooseLocale(ce)}function listLocales(){return Qe(lr)}function checkOverflow(ce){var ze,Ve=ce._a;return Ve&&-2===getParsingFlags(ce).overflow&&(ze=Ve[En]<0||Ve[En]>11?En:Ve[Tn]<1||Ve[Tn]>daysInMonth(Ve[Sn],Ve[En])?Tn:Ve[Ln]<0||Ve[Ln]>24||24===Ve[Ln]&&(0!==Ve[Fn]||0!==Ve[Yn]||0!==Ve[Un])?Ln:Ve[Fn]<0||Ve[Fn]>59?Fn:Ve[Yn]<0||Ve[Yn]>59?Yn:Ve[Un]<0||Ve[Un]>999?Un:-1,getParsingFlags(ce)._overflowDayOfYear&&(zeTn)&&(ze=Tn),getParsingFlags(ce)._overflowWeeks&&-1===ze&&(ze=Gn),getParsingFlags(ce)._overflowWeekday&&-1===ze&&(ze=Kn),getParsingFlags(ce).overflow=ze),ce}var ur=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vr=/Z|[+-]\d\d(?::?\d\d)?/,_r=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Rr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cr=/^\/?Date\((-?\d+)/i,Dr=/^(?:(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(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Er={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(ce){var ze,Ve,qe,Ye,We,Qe,Xe=ce._i,ot=ur.exec(Xe)||pr.exec(Xe),st=_r.length,mt=Rr.length;if(ot){for(getParsingFlags(ce).iso=!0,ze=0,Ve=st;zedaysInYear(We)||0===ce._dayOfYear)&&(getParsingFlags(ce)._overflowDayOfYear=!0),Ve=createUTCDate(We,0,ce._dayOfYear),ce._a[En]=Ve.getUTCMonth(),ce._a[Tn]=Ve.getUTCDate()),ze=0;ze<3&&null==ce._a[ze];++ze)ce._a[ze]=Qe[ze]=qe[ze];for(;ze<7;ze++)ce._a[ze]=Qe[ze]=null==ce._a[ze]?2===ze?1:0:ce._a[ze];24===ce._a[Ln]&&0===ce._a[Fn]&&0===ce._a[Yn]&&0===ce._a[Un]&&(ce._nextDay=!0,ce._a[Ln]=0),ce._d=(ce._useUTC?createUTCDate:createDate).apply(null,Qe),Ye=ce._useUTC?ce._d.getUTCDay():ce._d.getDay(),null!=ce._tzm&&ce._d.setUTCMinutes(ce._d.getUTCMinutes()-ce._tzm),ce._nextDay&&(ce._a[Ln]=24),ce._w&&void 0!==ce._w.d&&ce._w.d!==Ye&&(getParsingFlags(ce).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(ce){var ze,Ve,qe,Ye,We,Qe,Xe,ot,st;null!=(ze=ce._w).GG||null!=ze.W||null!=ze.E?(We=1,Qe=4,Ve=defaults(ze.GG,ce._a[Sn],weekOfYear(createLocal(),1,4).year),qe=defaults(ze.W,1),((Ye=defaults(ze.E,1))<1||Ye>7)&&(ot=!0)):(We=ce._locale._week.dow,Qe=ce._locale._week.doy,st=weekOfYear(createLocal(),We,Qe),Ve=defaults(ze.gg,ce._a[Sn],st.year),qe=defaults(ze.w,st.week),null!=ze.d?((Ye=ze.d)<0||Ye>6)&&(ot=!0):null!=ze.e?(Ye=ze.e+We,(ze.e<0||ze.e>6)&&(ot=!0)):Ye=We),qe<1||qe>weeksInYear(Ve,We,Qe)?getParsingFlags(ce)._overflowWeeks=!0:null!=ot?getParsingFlags(ce)._overflowWeekday=!0:(Xe=dayOfYearFromWeeks(Ve,qe,Ye,We,Qe),ce._a[Sn]=Xe.year,ce._dayOfYear=Xe.dayOfYear)}function configFromStringAndFormat(ce){if(ce._f!==hooks.ISO_8601)if(ce._f!==hooks.RFC_2822){ce._a=[],getParsingFlags(ce).empty=!0;var ze,Ve,qe,Ye,We,Qe,Xe,ot=""+ce._i,mt=ot.length,gt=0;for(Xe=(qe=expandFormat(ce._f,ce._locale).match(st)||[]).length,ze=0;ze0&&getParsingFlags(ce).unusedInput.push(We),ot=ot.slice(ot.indexOf(Ve)+Ve.length),gt+=Ve.length),yt[Ye]?(Ve?getParsingFlags(ce).empty=!1:getParsingFlags(ce).unusedTokens.push(Ye),addTimeToArrayFromToken(Ye,Ve,ce)):ce._strict&&!Ve&&getParsingFlags(ce).unusedTokens.push(Ye);getParsingFlags(ce).charsLeftOver=mt-gt,ot.length>0&&getParsingFlags(ce).unusedInput.push(ot),ce._a[Ln]<=12&&!0===getParsingFlags(ce).bigHour&&ce._a[Ln]>0&&(getParsingFlags(ce).bigHour=void 0),getParsingFlags(ce).parsedDateParts=ce._a.slice(0),getParsingFlags(ce).meridiem=ce._meridiem,ce._a[Ln]=meridiemFixWrap(ce._locale,ce._a[Ln],ce._meridiem),null!==(Qe=getParsingFlags(ce).era)&&(ce._a[Sn]=ce._locale.erasConvertYear(Qe,ce._a[Sn])),configFromArray(ce),checkOverflow(ce)}else configFromRFC2822(ce);else configFromISO(ce)}function meridiemFixWrap(ce,ze,Ve){var qe;return null==Ve?ze:null!=ce.meridiemHour?ce.meridiemHour(ze,Ve):null!=ce.isPM?((qe=ce.isPM(Ve))&&ze<12&&(ze+=12),qe||12!==ze||(ze=0),ze):ze}function configFromStringAndArray(ce){var ze,Ve,qe,Ye,We,Qe,Xe=!1,ot=ce._f.length;if(0===ot)return getParsingFlags(ce).invalidFormat=!0,void(ce._d=new Date(NaN));for(Ye=0;Yethis?this:ce:createInvalid()}));function pickBy(ce,ze){var Ve,qe;if(1===ze.length&&isArray(ze[0])&&(ze=ze[0]),!ze.length)return createLocal();for(Ve=ze[0],qe=1;qethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var ce,ze={};return copyConfig(ze,this),(ze=prepareConfig(ze))._a?(ce=ze._isUTC?createUTC(ze._a):createLocal(ze._a),this._isDSTShifted=this.isValid()&&compareArrays(ze._a,ce.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var jr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ir=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(ce,ze){var Ve,qe,Ye,We=ce,Qe=null;return isDuration(ce)?We={ms:ce._milliseconds,d:ce._days,M:ce._months}:isNumber(ce)||!isNaN(+ce)?(We={},ze?We[ze]=+ce:We.milliseconds=+ce):(Qe=jr.exec(ce))?(Ve="-"===Qe[1]?-1:1,We={y:0,d:toInt(Qe[Tn])*Ve,h:toInt(Qe[Ln])*Ve,m:toInt(Qe[Fn])*Ve,s:toInt(Qe[Yn])*Ve,ms:toInt(absRound(1e3*Qe[Un]))*Ve}):(Qe=Ir.exec(ce))?(Ve="-"===Qe[1]?-1:1,We={y:parseIso(Qe[2],Ve),M:parseIso(Qe[3],Ve),w:parseIso(Qe[4],Ve),d:parseIso(Qe[5],Ve),h:parseIso(Qe[6],Ve),m:parseIso(Qe[7],Ve),s:parseIso(Qe[8],Ve)}):null==We?We={}:"object"==typeof We&&("from"in We||"to"in We)&&(Ye=momentsDifference(createLocal(We.from),createLocal(We.to)),(We={}).ms=Ye.milliseconds,We.M=Ye.months),qe=new Duration(We),isDuration(ce)&&hasOwnProp(ce,"_locale")&&(qe._locale=ce._locale),isDuration(ce)&&hasOwnProp(ce,"_isValid")&&(qe._isValid=ce._isValid),qe}function parseIso(ce,ze){var Ve=ce&&parseFloat(ce.replace(",","."));return(isNaN(Ve)?0:Ve)*ze}function positiveMomentsDifference(ce,ze){var Ve={};return Ve.months=ze.month()-ce.month()+12*(ze.year()-ce.year()),ce.clone().add(Ve.months,"M").isAfter(ze)&&--Ve.months,Ve.milliseconds=+ze-+ce.clone().add(Ve.months,"M"),Ve}function momentsDifference(ce,ze){var Ve;return ce.isValid()&&ze.isValid()?(ze=cloneWithOffset(ze,ce),ce.isBefore(ze)?Ve=positiveMomentsDifference(ce,ze):((Ve=positiveMomentsDifference(ze,ce)).milliseconds=-Ve.milliseconds,Ve.months=-Ve.months),Ve):{milliseconds:0,months:0}}function createAdder(ce,ze){return function(Ve,qe){var Ye;return null===qe||isNaN(+qe)||(deprecateSimple(ze,"moment()."+ze+"(period, number) is deprecated. Please use moment()."+ze+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ye=Ve,Ve=qe,qe=Ye),addSubtract(this,createDuration(Ve,qe),ce),this}}function addSubtract(ce,ze,Ve,qe){var Ye=ze._milliseconds,We=absRound(ze._days),Qe=absRound(ze._months);ce.isValid()&&(qe=null==qe||qe,Qe&&setMonth(ce,get(ce,"Month")+Qe*Ve),We&&set$1(ce,"Date",get(ce,"Date")+We*Ve),Ye&&ce._d.setTime(ce._d.valueOf()+Ye*Ve),qe&&hooks.updateOffset(ce,We||Qe))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var zr=createAdder(1,"add"),Br=createAdder(-1,"subtract");function isString(ce){return"string"==typeof ce||ce instanceof String}function isMomentInput(ce){return isMoment(ce)||isDate(ce)||isString(ce)||isNumber(ce)||isNumberOrStringArray(ce)||isMomentInputObject(ce)||null==ce}function isMomentInputObject(ce){var ze,Ve,qe=isObject(ce)&&!isObjectEmpty(ce),Ye=!1,We=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Qe=We.length;for(ze=0;zeVe.valueOf():Ve.valueOf()9999?formatMoment(Ve,ze?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?ze?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(Ve,"Z")):formatMoment(Ve,ze?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ce,ze,Ve,qe,Ye="moment",We="";return this.isLocal()||(Ye=0===this.utcOffset()?"moment.utc":"moment.parseZone",We="Z"),ce="["+Ye+'("]',ze=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Ve="-MM-DD[T]HH:mm:ss.SSS",qe=We+'[")]',this.format(ce+ze+Ve+qe)}function format(ce){ce||(ce=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var ze=formatMoment(this,ce);return this.localeData().postformat(ze)}function from(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({to:this,from:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function fromNow(ce){return this.from(createLocal(),ce)}function to(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({from:this,to:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function toNow(ce){return this.to(createLocal(),ce)}function locale(ce){var ze;return void 0===ce?this._locale._abbr:(null!=(ze=getLocale(ce))&&(this._locale=ze),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Nr=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(ce){return void 0===ce?this.localeData():this.locale(ce)}));function localeData(){return this._locale}var Vr=1e3,Hr=60*Vr,qr=60*Hr,Yr=3506328*qr;function mod$1(ce,ze){return(ce%ze+ze)%ze}function localStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?new Date(ce+400,ze,Ve)-Yr:new Date(ce,ze,Ve).valueOf()}function utcStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?Date.UTC(ce+400,ze,Ve)-Yr:Date.UTC(ce,ze,Ve)}function startOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year(),0,1);break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3,1);break;case"month":ze=Ve(this.year(),this.month(),1);break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date());break;case"hour":ze=this._d.valueOf(),ze-=mod$1(ze+(this._isUTC?0:this.utcOffset()*Hr),qr);break;case"minute":ze=this._d.valueOf(),ze-=mod$1(ze,Hr);break;case"second":ze=this._d.valueOf(),ze-=mod$1(ze,Vr)}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function endOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year()+1,0,1)-1;break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ze=Ve(this.year(),this.month()+1,1)-1;break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date()+1)-1;break;case"hour":ze=this._d.valueOf(),ze+=qr-mod$1(ze+(this._isUTC?0:this.utcOffset()*Hr),qr)-1;break;case"minute":ze=this._d.valueOf(),ze+=Hr-mod$1(ze,Hr)-1;break;case"second":ze=this._d.valueOf(),ze+=Vr-mod$1(ze,Vr)-1}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var ce=this;return[ce.year(),ce.month(),ce.date(),ce.hour(),ce.minute(),ce.second(),ce.millisecond()]}function toObject(){var ce=this;return{years:ce.year(),months:ce.month(),date:ce.date(),hours:ce.hours(),minutes:ce.minutes(),seconds:ce.seconds(),milliseconds:ce.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function localeEras(ce,ze){var Ve,qe,Ye,We=this._eras||getLocale("en")._eras;for(Ve=0,qe=We.length;Ve=0)return ot[qe]}function localeErasConvertYear(ce,ze){var Ve=ce.since<=ce.until?1:-1;return void 0===ze?hooks(ce.since).year():hooks(ce.since).year()+(ze-ce.offset)*Ve}function getEraName(){var ce,ze,Ve,qe=this.localeData().eras();for(ce=0,ze=qe.length;ce(We=weeksInYear(ce,qe,Ye))&&(ze=We),setWeekAll.call(this,ce,ze,Ve,qe,Ye))}function setWeekAll(ce,ze,Ve,qe,Ye){var We=dayOfYearFromWeeks(ce,ze,Ve,qe,Ye),Qe=createUTCDate(We.year,0,We.dayOfYear);return this.year(Qe.getUTCFullYear()),this.month(Qe.getUTCMonth()),this.date(Qe.getUTCDate()),this}function getSetQuarter(ce){return null==ce?Math.ceil((this.month()+1)/3):this.month(3*(ce-1)+this.month()%3)}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(ce,ze,Ve,qe){var Ye=Ve._locale.erasParse(ce,qe,Ve._strict);Ye?getParsingFlags(Ve).era=Ye:getParsingFlags(Ve).invalidEra=ce})),addRegexToken("y",Qt),addRegexToken("yy",Qt),addRegexToken("yyy",Qt),addRegexToken("yyyy",Qt),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],Sn),addParseToken(["yo"],(function(ce,ze,Ve,qe){var Ye;Ve._locale._eraYearOrdinalRegex&&(Ye=ce.match(Ve._locale._eraYearOrdinalRegex)),Ve._locale.eraYearOrdinalParse?ze[Sn]=Ve._locale.eraYearOrdinalParse(ce,Ye):ze[Sn]=parseInt(ce,10)})),addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addRegexToken("G",en),addRegexToken("g",en),addRegexToken("GG",Bt,Pt),addRegexToken("gg",Bt,Pt),addRegexToken("GGGG",Wt,Lt),addRegexToken("gggg",Wt,Lt),addRegexToken("GGGGG",Jt,Ft),addRegexToken("ggggg",Jt,Ft),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(ce,ze,Ve,qe){ze[qe.substr(0,2)]=toInt(ce)})),addWeekParseToken(["gg","GG"],(function(ce,ze,Ve,qe){ze[qe]=hooks.parseTwoDigitYear(ce)})),addFormatToken("Q",0,"Qo","quarter"),addRegexToken("Q",Et),addParseToken("Q",(function(ce,ze){ze[En]=3*(toInt(ce)-1)})),addFormatToken("D",["DD",2],"Do","date"),addRegexToken("D",Bt,bn),addRegexToken("DD",Bt,Pt),addRegexToken("Do",(function(ce,ze){return ce?ze._dayOfMonthOrdinalParse||ze._ordinalParse:ze._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],Tn),addParseToken("Do",(function(ce,ze){ze[Tn]=toInt(ce.match(Bt)[0])}));var Ur=makeGetSet("Date",!0);function getSetDayOfYear(ce){var ze=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ce?ze:this.add(ce-ze,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addRegexToken("DDD",Ut),addRegexToken("DDDD",Tt),addParseToken(["DDD","DDDD"],(function(ce,ze,Ve){Ve._dayOfYear=toInt(ce)})),addFormatToken("m",["mm",2],0,"minute"),addRegexToken("m",Bt,wn),addRegexToken("mm",Bt,Pt),addParseToken(["m","mm"],Fn);var Wr=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addRegexToken("s",Bt,wn),addRegexToken("ss",Bt,Pt),addParseToken(["s","ss"],Yn);var $r,Gr,Kr=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addRegexToken("S",Ut,Et),addRegexToken("SS",Ut,Pt),addRegexToken("SSS",Ut,Tt),$r="SSSS";$r.length<=9;$r+="S")addRegexToken($r,Qt);function parseMs(ce,ze){ze[Un]=toInt(1e3*("0."+ce))}for($r="S";$r.length<=9;$r+="S")addParseToken($r,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}Gr=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Jr=Moment.prototype;function createUnix(ce){return createLocal(1e3*ce)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(ce){return ce}Jr.add=zr,Jr.calendar=calendar$1,Jr.clone=clone,Jr.diff=diff,Jr.endOf=endOf,Jr.format=format,Jr.from=from,Jr.fromNow=fromNow,Jr.to=to,Jr.toNow=toNow,Jr.get=stringGet,Jr.invalidAt=invalidAt,Jr.isAfter=isAfter,Jr.isBefore=isBefore,Jr.isBetween=isBetween,Jr.isSame=isSame,Jr.isSameOrAfter=isSameOrAfter,Jr.isSameOrBefore=isSameOrBefore,Jr.isValid=isValid$2,Jr.lang=Nr,Jr.locale=locale,Jr.localeData=localeData,Jr.max=Ar,Jr.min=Tr,Jr.parsingFlags=parsingFlags,Jr.set=stringSet,Jr.startOf=startOf,Jr.subtract=Br,Jr.toArray=toArray,Jr.toObject=toObject,Jr.toDate=toDate,Jr.toISOString=toISOString,Jr.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Jr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Jr.toJSON=toJSON,Jr.toString=toString,Jr.unix=unix,Jr.valueOf=valueOf,Jr.creationData=creationData,Jr.eraName=getEraName,Jr.eraNarrow=getEraNarrow,Jr.eraAbbr=getEraAbbr,Jr.eraYear=getEraYear,Jr.year=Zn,Jr.isLeapYear=getIsLeapYear,Jr.weekYear=getSetWeekYear,Jr.isoWeekYear=getSetISOWeekYear,Jr.quarter=Jr.quarters=getSetQuarter,Jr.month=getSetMonth,Jr.daysInMonth=getDaysInMonth,Jr.week=Jr.weeks=getSetWeek,Jr.isoWeek=Jr.isoWeeks=getSetISOWeek,Jr.weeksInYear=getWeeksInYear,Jr.weeksInWeekYear=getWeeksInWeekYear,Jr.isoWeeksInYear=getISOWeeksInYear,Jr.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,Jr.date=Ur,Jr.day=Jr.days=getSetDayOfWeek,Jr.weekday=getSetLocaleDayOfWeek,Jr.isoWeekday=getSetISODayOfWeek,Jr.dayOfYear=getSetDayOfYear,Jr.hour=Jr.hours=rr,Jr.minute=Jr.minutes=Wr,Jr.second=Jr.seconds=Kr,Jr.millisecond=Jr.milliseconds=Gr,Jr.utcOffset=getSetOffset,Jr.utc=setOffsetToUTC,Jr.local=setOffsetToLocal,Jr.parseZone=setOffsetToParsedOffset,Jr.hasAlignedHourOffset=hasAlignedHourOffset,Jr.isDST=isDaylightSavingTime,Jr.isLocal=isLocal,Jr.isUtcOffset=isUtcOffset,Jr.isUtc=isUtc,Jr.isUTC=isUtc,Jr.zoneAbbr=getZoneAbbr,Jr.zoneName=getZoneName,Jr.dates=deprecate("dates accessor is deprecated. Use date instead.",Ur),Jr.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Jr.years=deprecate("years accessor is deprecated. Use year instead",Zn),Jr.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Jr.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var Zr=Locale.prototype;function get$1(ce,ze,Ve,qe){var Ye=getLocale(),We=createUTC().set(qe,ze);return Ye[Ve](We,ce)}function listMonthsImpl(ce,ze,Ve){if(isNumber(ce)&&(ze=ce,ce=void 0),ce=ce||"",null!=ze)return get$1(ce,ze,Ve,"month");var qe,Ye=[];for(qe=0;qe<12;qe++)Ye[qe]=get$1(ce,qe,Ve,"month");return Ye}function listWeekdaysImpl(ce,ze,Ve,qe){"boolean"==typeof ce?(isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||""):(Ve=ze=ce,ce=!1,isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||"");var Ye,We=getLocale(),Qe=ce?We._week.dow:0,Xe=[];if(null!=Ve)return get$1(ze,(Ve+Qe)%7,qe,"day");for(Ye=0;Ye<7;Ye++)Xe[Ye]=get$1(ze,(Ye+Qe)%7,qe,"day");return Xe}function listMonths(ce,ze){return listMonthsImpl(ce,ze,"months")}function listMonthsShort(ce,ze){return listMonthsImpl(ce,ze,"monthsShort")}function listWeekdays(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdays")}function listWeekdaysShort(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysShort")}function listWeekdaysMin(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysMin")}Zr.calendar=calendar,Zr.longDateFormat=longDateFormat,Zr.invalidDate=invalidDate,Zr.ordinal=ordinal,Zr.preparse=preParsePostFormat,Zr.postformat=preParsePostFormat,Zr.relativeTime=relativeTime,Zr.pastFuture=pastFuture,Zr.set=set,Zr.eras=localeEras,Zr.erasParse=localeErasParse,Zr.erasConvertYear=localeErasConvertYear,Zr.erasAbbrRegex=erasAbbrRegex,Zr.erasNameRegex=erasNameRegex,Zr.erasNarrowRegex=erasNarrowRegex,Zr.months=localeMonths,Zr.monthsShort=localeMonthsShort,Zr.monthsParse=localeMonthsParse,Zr.monthsRegex=monthsRegex,Zr.monthsShortRegex=monthsShortRegex,Zr.week=localeWeek,Zr.firstDayOfYear=localeFirstDayOfYear,Zr.firstDayOfWeek=localeFirstDayOfWeek,Zr.weekdays=localeWeekdays,Zr.weekdaysMin=localeWeekdaysMin,Zr.weekdaysShort=localeWeekdaysShort,Zr.weekdaysParse=localeWeekdaysParse,Zr.weekdaysRegex=weekdaysRegex,Zr.weekdaysShortRegex=weekdaysShortRegex,Zr.weekdaysMinRegex=weekdaysMinRegex,Zr.isPM=localeIsPM,Zr.meridiem=localeMeridiem,getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1===toInt(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var ga=Math.abs;function abs(){var ce=this._data;return this._milliseconds=ga(this._milliseconds),this._days=ga(this._days),this._months=ga(this._months),ce.milliseconds=ga(ce.milliseconds),ce.seconds=ga(ce.seconds),ce.minutes=ga(ce.minutes),ce.hours=ga(ce.hours),ce.months=ga(ce.months),ce.years=ga(ce.years),this}function addSubtract$1(ce,ze,Ve,qe){var Ye=createDuration(ze,Ve);return ce._milliseconds+=qe*Ye._milliseconds,ce._days+=qe*Ye._days,ce._months+=qe*Ye._months,ce._bubble()}function add$1(ce,ze){return addSubtract$1(this,ce,ze,1)}function subtract$1(ce,ze){return addSubtract$1(this,ce,ze,-1)}function absCeil(ce){return ce<0?Math.floor(ce):Math.ceil(ce)}function bubble(){var ce,ze,Ve,qe,Ye,We=this._milliseconds,Qe=this._days,Xe=this._months,ot=this._data;return We>=0&&Qe>=0&&Xe>=0||We<=0&&Qe<=0&&Xe<=0||(We+=864e5*absCeil(monthsToDays(Xe)+Qe),Qe=0,Xe=0),ot.milliseconds=We%1e3,ce=absFloor(We/1e3),ot.seconds=ce%60,ze=absFloor(ce/60),ot.minutes=ze%60,Ve=absFloor(ze/60),ot.hours=Ve%24,Qe+=absFloor(Ve/24),Xe+=Ye=absFloor(daysToMonths(Qe)),Qe-=absCeil(monthsToDays(Ye)),qe=absFloor(Xe/12),Xe%=12,ot.days=Qe,ot.months=Xe,ot.years=qe,this}function daysToMonths(ce){return 4800*ce/146097}function monthsToDays(ce){return 146097*ce/4800}function as(ce){if(!this.isValid())return NaN;var ze,Ve,qe=this._milliseconds;if("month"===(ce=normalizeUnits(ce))||"quarter"===ce||"year"===ce)switch(ze=this._days+qe/864e5,Ve=this._months+daysToMonths(ze),ce){case"month":return Ve;case"quarter":return Ve/3;case"year":return Ve/12}else switch(ze=this._days+Math.round(monthsToDays(this._months)),ce){case"week":return ze/7+qe/6048e5;case"day":return ze+qe/864e5;case"hour":return 24*ze+qe/36e5;case"minute":return 1440*ze+qe/6e4;case"second":return 86400*ze+qe/1e3;case"millisecond":return Math.floor(864e5*ze)+qe;default:throw new Error("Unknown unit "+ce)}}function makeAs(ce){return function(){return this.as(ce)}}var ya=makeAs("ms"),ba=makeAs("s"),va=makeAs("m"),_a=makeAs("h"),wa=makeAs("d"),ka=makeAs("w"),xa=makeAs("M"),Aa=makeAs("Q"),Ba=makeAs("y"),Ja=ya;function clone$1(){return createDuration(this)}function get$2(ce){return ce=normalizeUnits(ce),this.isValid()?this[ce+"s"]():NaN}function makeGetter(ce){return function(){return this.isValid()?this._data[ce]:NaN}}var io=makeGetter("milliseconds"),po=makeGetter("seconds"),ho=makeGetter("minutes"),go=makeGetter("hours"),_o=makeGetter("days"),Co=makeGetter("months"),ko=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Oo=Math.round,Po={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(ce,ze,Ve,qe,Ye){return Ye.relativeTime(ze||1,!!Ve,ce,qe)}function relativeTime$1(ce,ze,Ve,qe){var Ye=createDuration(ce).abs(),We=Oo(Ye.as("s")),Qe=Oo(Ye.as("m")),Xe=Oo(Ye.as("h")),ot=Oo(Ye.as("d")),st=Oo(Ye.as("M")),mt=Oo(Ye.as("w")),gt=Oo(Ye.as("y")),yt=We<=Ve.ss&&["s",We]||We0,yt[4]=qe,substituteTimeAgo.apply(null,yt)}function getSetRelativeTimeRounding(ce){return void 0===ce?Oo:"function"==typeof ce&&(Oo=ce,!0)}function getSetRelativeTimeThreshold(ce,ze){return void 0!==Po[ce]&&(void 0===ze?Po[ce]:(Po[ce]=ze,"s"===ce&&(Po.ss=ze-1),!0))}function humanize(ce,ze){if(!this.isValid())return this.localeData().invalidDate();var Ve,qe,Ye=!1,We=Po;return"object"==typeof ce&&(ze=ce,ce=!1),"boolean"==typeof ce&&(Ye=ce),"object"==typeof ze&&(We=Object.assign({},Po,ze),null!=ze.s&&null==ze.ss&&(We.ss=ze.s-1)),qe=relativeTime$1(this,!Ye,We,Ve=this.localeData()),Ye&&(qe=Ve.pastFuture(+this,qe)),Ve.postformat(qe)}var To=Math.abs;function sign(ce){return(ce>0)-(ce<0)||+ce}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var ce,ze,Ve,qe,Ye,We,Qe,Xe,ot=To(this._milliseconds)/1e3,st=To(this._days),mt=To(this._months),gt=this.asSeconds();return gt?(ce=absFloor(ot/60),ze=absFloor(ce/60),ot%=60,ce%=60,Ve=absFloor(mt/12),mt%=12,qe=ot?ot.toFixed(3).replace(/\.?0+$/,""):"",Ye=gt<0?"-":"",We=sign(this._months)!==sign(gt)?"-":"",Qe=sign(this._days)!==sign(gt)?"-":"",Xe=sign(this._milliseconds)!==sign(gt)?"-":"",Ye+"P"+(Ve?We+Ve+"Y":"")+(mt?We+mt+"M":"")+(st?Qe+st+"D":"")+(ze||ce||ot?"T":"")+(ze?Xe+ze+"H":"")+(ce?Xe+ce+"M":"")+(ot?Xe+qe+"S":"")):"P0D"}var Ao=Duration.prototype;return Ao.isValid=isValid$1,Ao.abs=abs,Ao.add=add$1,Ao.subtract=subtract$1,Ao.as=as,Ao.asMilliseconds=ya,Ao.asSeconds=ba,Ao.asMinutes=va,Ao.asHours=_a,Ao.asDays=wa,Ao.asWeeks=ka,Ao.asMonths=xa,Ao.asQuarters=Aa,Ao.asYears=Ba,Ao.valueOf=Ja,Ao._bubble=bubble,Ao.clone=clone$1,Ao.get=get$2,Ao.milliseconds=io,Ao.seconds=po,Ao.minutes=ho,Ao.hours=go,Ao.days=_o,Ao.weeks=weeks,Ao.months=Co,Ao.years=ko,Ao.humanize=humanize,Ao.toISOString=toISOString$1,Ao.toString=toISOString$1,Ao.toJSON=toISOString$1,Ao.locale=locale,Ao.localeData=localeData,Ao.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Ao.lang=Nr,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",en),addRegexToken("X",mn),addParseToken("X",(function(ce,ze,Ve){Ve._d=new Date(1e3*parseFloat(ce))})),addParseToken("x",(function(ce,ze,Ve){Ve._d=new Date(toInt(ce))})),hooks.version="2.30.1",setHookCallback(createLocal),hooks.fn=Jr,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Jr,hooks.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-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,Ve(322)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var qe=Ve(9),Ye=Ve.n(qe),We=Ve(689);let Qe;function setTranslations(ce,ze){Qe=Object.keys(ce).reduce(((Ve,qe)=>{try{Ve[qe]=new We.a(ce[qe],ze)}catch(ze){Ye.a.error("The translation key "+qe+' could not be translated. It is translated to "'+ce[qe]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Qe&&ce in Qe?Qe[ce].format(ze):(Ye.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return We})),Ve.d(ze,"c",(function(){return Bytes_transformBytesToReadableString})),Ve.d(ze,"d",(function(){return Ye.b}));var qe=Ve(488);Ve(378),Ve(367);var Bytes_transformBytesToReadableString=ce=>{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Ye=(Ve(366),Ve(15));var We=new class{constructor(){this.observers={}}updateStorageEventListener(){const ce=Object.values(this.observers).flat().length;ce>0&&!this.storageEventListener?(this.storageEventListener=ce=>{ce.key&&this.observers[ce.key]&&this.notifyObservers(ce.key,this.parseValue(ce.newValue))},window.addEventListener("storage",this.storageEventListener)):0===ce&&this.storageEventListener&&window.removeEventListener("storage",this.storageEventListener)}notifyObservers(ce,ze){const Ve=this.observers[ce]||[];for(const ce of Ve)ce(ze)}set(ce,ze){ze?window.localStorage.setItem(ce,JSON.stringify(ze)):window.localStorage.removeItem(ce),this.notifyObservers(ce,ze)}observe(ce,ze,Ve){if(this.observers[ce]||(this.observers[ce]=[]),this.observers[ce].push(ze),this.updateStorageEventListener(),Ve){const Ve=window.localStorage.getItem(ce);ze(this.parseValue(Ve))}return()=>{var Ve;const qe=null===(Ve=this.observers[ce])||void 0===Ve?void 0:Ve.indexOf(ze);qe>-1&&this.observers[ce].splice(qe,1),this.updateStorageEventListener()}}parseValue(ce){try{return ce?JSON.parse(ce):void 0}catch(ce){return}}}},function(ce,ze,Ve){"use strict";function requireInRuntime(ce,ze){if(!(ze in ce))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+ze);return ce[ze]}Ve.r(ze),Ve.d(ze,"default",(function(){return requireInRuntime}))},function(ce,ze,Ve){"use strict";function evalInContext(ce,ze,Ve){return new Function("require","state","setState",ce+"\n{"+Ve+"}").bind(null,ze)}Ve.r(ze),Ve.d(ze,"default",(function(){return evalInContext}))},function(ce,ze,Ve){"use strict";var qe=Ve(432);Ve.d(ze,"a",(function(){return qe.setTranslations})),Ve.d(ze,"b",(function(){return qe.translate}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(20),Ye=Ve(156),We=Ve(8),Qe=Ve(92);class Xe{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=qe.a._createAt(ce),this.end=ze?qe.a._createAt(ze):qe.a._createAt(ce),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Ye.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const ce=this.start.getParentPath(),ze=this.end.getParentPath();return"same"==Object(Qe.a)(ce,ze)}get root(){return this.start.root}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),qe=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&qe}containsItem(ce){const ze=qe.a._createBefore(ce);return this.containsPosition(ze)||this.start.isEqual(ze)}is(ce){return"range"===ce||"model:range"===ce}isEqual(ce){return this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new Xe(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new Xe(ce.end,this.end))):ze.push(new Xe(this.start,this.end)),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new Xe(ze,Ve)}return null}getJoined(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ve=this.isIntersecting(ce);if(Ve||(Ve=this.start.isBefore(ce.start)?ze?this.end.isTouching(ce.start):this.end.isEqual(ce.start):ze?ce.end.isTouching(this.start):ce.end.isEqual(this.start)),!Ve)return null;let qe=this.start,Ye=this.end;return ce.start.isBefore(qe)&&(qe=ce.start),ce.end.isAfter(Ye)&&(Ye=ce.end),new Xe(qe,Ye)}getMinimalFlatRanges(){const ce=[],ze=this.start.getCommonPath(this.end).length,Ve=qe.a._createAt(this.start);let Ye=Ve.parent;for(;Ve.path.length>ze+1;){const ze=Ye.maxOffset-Ve.offset;0!==ze&&ce.push(new Xe(Ve,Ve.getShiftedBy(ze))),Ve.path=Ve.path.slice(0,-1),Ve.offset++,Ye=Ye.parent}for(;Ve.path.length<=this.end.path.length;){const ze=this.end.path[Ve.path.length-1],qe=ze-Ve.offset;0!==qe&&ce.push(new Xe(Ve,Ve.getShiftedBy(qe))),Ve.offset=ze,Ve.path.push(0)}return ce}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new Ye.a(ce)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new Ye.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new Ye.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}getTransformedByOperation(ce){switch(ce.type){case"insert":return this._getTransformedByInsertOperation(ce);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(ce);case"split":return[this._getTransformedBySplitOperation(ce)];case"merge":return[this._getTransformedByMergeOperation(ce)]}return[new Xe(this.start,this.end)]}getTransformedByOperations(ce){const ze=[new Xe(this.start,this.end)];for(const Ve of ce)for(let ce=0;ce1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(ce.position,ce.howMany,ze)}_getTransformedByMoveOperation(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.sourcePosition,qe=ce.howMany,Ye=ce.targetPosition;return this._getTransformedByMove(Ve,Ye,qe,ze)}_getTransformedBySplitOperation(ce){const ze=this.start._getTransformedBySplitOperation(ce);let Ve=this.end._getTransformedBySplitOperation(ce);return this.end.isEqual(ce.insertionPosition)&&(Ve=this.end.getShiftedBy(1)),ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),new Xe(ze,Ve)}_getTransformedByMergeOperation(ce){if(this.start.isEqual(ce.targetPosition)&&this.end.isEqual(ce.deletionPosition))return new Xe(this.start);let ze=this.start._getTransformedByMergeOperation(ce),Ve=this.end._getTransformedByMergeOperation(ce);return ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),ze.isAfter(Ve)?(ce.sourcePosition.isBefore(ce.targetPosition)?(ze=qe.a._createAt(Ve),ze.offset=0):(ce.deletionPosition.isEqual(ze)||(Ve=ce.deletionPosition),ze=ce.targetPosition),new Xe(ze,Ve)):new Xe(ze,Ve)}_getTransformedByInsertion(ce,ze){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(ce))return[new Xe(this.start,ce),new Xe(ce.getShiftedBy(ze),this.end._getTransformedByInsertion(ce,ze))];{const Ve=new Xe(this.start,this.end);return Ve.start=Ve.start._getTransformedByInsertion(ce,ze),Ve.end=Ve.end._getTransformedByInsertion(ce,ze),[Ve]}}_getTransformedByMove(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){const qe=this.start._getTransformedByMove(ce,ze,Ve);return[new Xe(qe)]}const Ye=Xe._createFromPositionAndShift(ce,Ve),We=ze._getTransformedByDeletion(ce,Ve);if(this.containsPosition(ze)&&!qe&&(Ye.containsPosition(this.start)||Ye.containsPosition(this.end))){const qe=this.start._getTransformedByMove(ce,ze,Ve),Ye=this.end._getTransformedByMove(ce,ze,Ve);return[new Xe(qe,Ye)]}let Qe;const ot=this.getDifference(Ye);let st=null;const mt=this.getIntersection(Ye);if(1==ot.length?st=new Xe(ot[0].start._getTransformedByDeletion(ce,Ve),ot[0].end._getTransformedByDeletion(ce,Ve)):2==ot.length&&(st=new Xe(this.start,this.end._getTransformedByDeletion(ce,Ve))),Qe=st?st._getTransformedByInsertion(We,Ve,null!==mt||qe):[],mt){const ce=new Xe(mt.start._getCombined(Ye.start,We),mt.end._getCombined(Ye.start,We));2==Qe.length?Qe.splice(1,0,ce):Qe.push(ce)}return Qe}_getTransformedByDeletion(ce,ze){let Ve=this.start._getTransformedByDeletion(ce,ze),qe=this.end._getTransformedByDeletion(ce,ze);return null==Ve&&null==qe?null:(null==Ve&&(Ve=ce),null==qe&&(qe=ce),new Xe(Ve,qe))}static _createFromPositionAndShift(ce,ze){const Ve=ce,qe=ce.getShiftedBy(ze);return ze>0?new this(Ve,qe):new this(qe,Ve)}static _createIn(ce){return new this(qe.a._createAt(ce,0),qe.a._createAt(ce,ce.maxOffset))}static _createOn(ce){return this._createFromPositionAndShift(qe.a._createBefore(ce),ce.offsetSize)}static _createFromRanges(ce){if(0===ce.length)throw new We.a("range-create-from-ranges-empty-array",null);if(1==ce.length)return ce[0].clone();const ze=ce[0];ce.sort(((ce,ze)=>ce.start.isAfter(ze.start)?1:-1));const Ve=ce.indexOf(ze),Ye=new this(ze.start,ze.end);if(Ve>0)for(let ze=Ve-1;ce[ze].end.isEqual(Ye.start);ze++)Ye.start=qe.a._createAt(ce[ze].start);for(let ze=Ve+1;ze3&&void 0!==arguments[3]&&arguments[3];if(Object(We.a)(ze))return void this._setObjectToTarget(ce,ze,qe);const Ye=ze.split(".");ze=Ye.pop();for(const ze of Ye)Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze];if(Object(We.a)(Ve))return Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze],void this._setObjectToTarget(ce,Ve,qe);qe&&void 0!==ce[ze]||(ce[ze]=Ve)}_getFromSource(ce,ze){const Ve=ze.split(".");ze=Ve.pop();for(const ze of Ve){if(!Object(We.a)(ce[ze])){ce=null;break}ce=ce[ze]}return ce?cloneConfig(ce[ze]):void 0}_setObjectToTarget(ce,ze,Ve){Object.keys(ze).forEach((qe=>{this._setToTarget(ce,qe,ze[qe],Ve)}))}}function cloneConfig(ce){return Object(Qe.a)(ce,leaveDOMReferences)}function leaveDOMReferences(ce){return Object(Xe.a)(ce)?ce:void 0}var st=Ve(129),mt=Ve(8),gt=Ve(39),yt=Ve(25);class bt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this._context=ce,this._plugins=new Map,this._availablePlugins=new Map;for(const ce of ze)ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce);this._contextPlugins=new Map;for(const[ce,ze]of Ve)this._contextPlugins.set(ce,ze),this._contextPlugins.set(ze,ce),ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce)}*[Symbol.iterator](){for(const ce of this._plugins)"function"==typeof ce[0]&&(yield ce)}get(ce){const ze=this._plugins.get(ce);if(!ze){let ze=ce;throw"function"==typeof ce&&(ze=ce.pluginName||ce.name),new mt.a("plugincollection-plugin-not-loaded",this._context,{plugin:ze})}return ze}has(ce){return this._plugins.has(ce)}init(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const qe=this,Ye=this._context;!function findAvailablePluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;ce.forEach((ce=>{isPluginConstructor(ce)&&(ze.has(ce)||(ze.add(ce),ce.pluginName&&!qe._availablePlugins.has(ce.pluginName)&&qe._availablePlugins.set(ce.pluginName,ce),ce.requires&&findAvailablePluginConstructors(ce.requires,ze)))}))}(ce),validatePlugins(ce);const We=[...function getPluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return ce.map((ce=>isPluginConstructor(ce)?ce:qe._availablePlugins.get(ce))).reduce(((ce,Ve)=>ze.has(Ve)?ce:(ze.add(Ve),Ve.requires&&(validatePlugins(Ve.requires,Ve),getPluginConstructors(Ve.requires,ze).forEach((ze=>ce.add(ze)))),ce.add(Ve))),new Set)}(ce.filter((ce=>!isPluginRemoved(ce,ze))))];!function substitutePlugins(ce,ze){for(const Ve of ze){if("function"!=typeof Ve)throw new mt.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:Ve});const ze=Ve.pluginName;if(!ze)throw new mt.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:Ve});if(Ve.requires&&Ve.requires.length)throw new mt.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:ze});const Ye=qe._availablePlugins.get(ze);if(!Ye)throw new mt.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:ze});const We=ce.indexOf(Ye);if(-1===We){if(qe._contextPlugins.has(Ye))return;throw new mt.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:ze})}if(Ye.requires&&Ye.requires.length)throw new mt.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:ze});ce.splice(We,1,Ve),qe._availablePlugins.set(ze,Ve)}}(We,Ve);const Qe=function loadPlugins(ce){return ce.map((ce=>{const ze=qe._contextPlugins.get(ce)||new ce(Ye);return qe._add(ce,ze),ze}))}(We);return initPlugins(Qe,"init").then((()=>initPlugins(Qe,"afterInit"))).then((()=>Qe));function isPluginConstructor(ce){return"function"==typeof ce}function isContextPlugin(ce){return isPluginConstructor(ce)&&ce.isContextPlugin}function isPluginRemoved(ce,ze){return ze.some((ze=>ze===ce||(getPluginName(ce)===ze||getPluginName(ze)===ce)))}function getPluginName(ce){return isPluginConstructor(ce)?ce.pluginName||ce.name:ce}function validatePlugins(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ce.map((ce=>isPluginConstructor(ce)?ce:qe._availablePlugins.get(ce)||ce)).forEach((ce=>{checkMissingPlugin(ce,ze),checkContextPlugin(ce,ze),checkRemovedPlugin(ce,ze)}))}function checkMissingPlugin(ce,ze){if(!isPluginConstructor(ce)){if(ze)throw new mt.a("plugincollection-soft-required",Ye,{missingPlugin:ce,requiredBy:getPluginName(ze)});throw new mt.a("plugincollection-plugin-not-found",Ye,{plugin:ce})}}function checkContextPlugin(ce,ze){if(isContextPlugin(ze)&&!isContextPlugin(ce))throw new mt.a("plugincollection-context-required",Ye,{plugin:getPluginName(ce),requiredBy:getPluginName(ze)})}function checkRemovedPlugin(ce,Ve){if(Ve&&isPluginRemoved(ce,ze))throw new mt.a("plugincollection-required",Ye,{plugin:getPluginName(ce),requiredBy:getPluginName(Ve)})}function initPlugins(ce,ze){return ce.reduce(((ce,Ve)=>Ve[ze]?qe._contextPlugins.has(Ve)?ce:ce.then(Ve[ze].bind(Ve)):ce),Promise.resolve())}}destroy(){const ce=[];for(const[,ze]of this)"function"!=typeof ze.destroy||this._contextPlugins.has(ze)||ce.push(ze.destroy());return Promise.all(ce)}_add(ce,ze){this._plugins.set(ce,ze);const Ve=ce.pluginName;if(Ve){if(this._plugins.has(Ve))throw new mt.a("plugincollection-plugin-name-conflict",null,{pluginName:Ve,plugin1:this._plugins.get(Ve).constructor,plugin2:ce});this._plugins.set(Ve,ze)}}}Object(yt.a)(bt,gt.c);var vt=Ve(634);class wt{constructor(ce){this.config=new ot(ce,this.constructor.defaultConfig);const ze=this.constructor.builtinPlugins;this.config.define("plugins",ze),this.plugins=new bt(this,ze);const Ve=this.config.get("language")||{};this.locale=new vt.a({uiLanguage:"string"==typeof Ve?Ve:Ve.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new st.a,this._contextOwner=null}initPlugins(){const ce=this.config.get("plugins")||[],ze=this.config.get("substitutePlugins")||[];for(const Ve of ce.concat(ze)){if("function"!=typeof Ve)throw new mt.a("context-initplugins-constructor-only",null,{Plugin:Ve});if(!0!==Ve.isContextPlugin)throw new mt.a("context-initplugins-invalid-plugin",null,{Plugin:Ve})}return this.plugins.init(ce,[],ze)}destroy(){return Promise.all(Array.from(this.editors,(ce=>ce.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(ce,ze){if(this._contextOwner)throw new mt.a("context-addeditor-private-context");this.editors.add(ce),ze&&(this._contextOwner=ce)}_removeEditor(ce){return this.editors.has(ce)&&this.editors.remove(ce),this._contextOwner===ce?this.destroy():Promise.resolve()}_getEditorConfig(){const ce={};for(const ze of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ze)||(ce[ze]=this.config.get(ze));return ce}static create(ce){return new Promise((ze=>{const Ve=new this(ce);ze(Ve.initPlugins().then((()=>Ve)))}))}}var Ct=Ve(360),Dt=Ve(536);class kt{constructor(){this._commands=new Map}add(ce,ze){this._commands.set(ce,ze)}get(ce){return this._commands.get(ce)}execute(ce){const ze=this.get(ce);if(!ze)throw new mt.a("commandcollection-command-not-found",this,{commandName:ce});for(var Ve=arguments.length,qe=new Array(Ve>1?Ve-1:0),Ye=1;Ye2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof ze){const ce=ze;ze=(ze,Ve)=>{this.editor.execute(ce),Ve()}}super.set(ce,ze,Ve)}}var Lt=Ve(42),Ft=Ve(365);class Bt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=ce.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=ce.context||new wt({language:ze}),this._context._addEditor(this,!ce.context);const Ve=Array.from(this.constructor.builtinPlugins||[]);this.config=new ot(ce,this.constructor.defaultConfig),this.config.define("plugins",Ve),this.config.define(this._context._getEditorConfig()),this.plugins=new bt(this,Ve,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new kt,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Et.a;const qe=new Ft.a;this.data=new St.a(this.model,qe),this.editing=new Dt.a(this.model,qe),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new xt.a([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Tt(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(ce){throw new mt.a("editor-isreadonly-has-no-setter")}enableReadOnlyMode(ce){if("string"!=typeof ce&&"symbol"!=typeof ce)throw new mt.a("editor-read-only-lock-id-invalid",null,{lockId:ce});this._readOnlyLocks.has(ce)||(this._readOnlyLocks.add(ce),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(ce){if("string"!=typeof ce&&"symbol"!=typeof ce)throw new mt.a("editor-read-only-lock-id-invalid",null,{lockId:ce});this._readOnlyLocks.has(ce)&&(this._readOnlyLocks.delete(ce),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const ce=this.config,ze=ce.get("plugins"),Ve=ce.get("removePlugins")||[],qe=ce.get("extraPlugins")||[],Ye=ce.get("substitutePlugins")||[];return this.plugins.init(ze.concat(qe),Ve,Ye)}destroy(){let ce=Promise.resolve();return"initializing"==this.state&&(ce=new Promise((ce=>this.once("ready",ce)))),ce.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(){try{return this.commands.execute(...arguments)}catch(ce){mt.a.rethrowUnexpectedError(ce,this)}}focus(){this.editing.view.focus()}}Object(yt.a)(Bt,Lt.a);class Vt{constructor(ce){this.editor=ce,this._components=new Map}*names(){for(const ce of this._components.values())yield ce.originalName}add(ce,ze){this._components.set(getNormalized(ce),{callback:ze,originalName:ce})}create(ce){if(!this.has(ce))throw new mt.a("componentfactory-item-missing",this,{name:ce});return this._components.get(getNormalized(ce)).callback(this.editor.locale)}has(ce){return this._components.has(getNormalized(ce))}}function getNormalized(ce){return String(ce).toLowerCase()}var Ht=Ve(117);class Ut{constructor(ce){this.editor=ce,this.componentFactory=new Vt(ce),this.focusTracker=new Ht.a,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(ce.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const ce of this._editableElementsMap.values())ce.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(ce,ze){this._editableElementsMap.set(ce,ze),ze.ckeditorInstance||(ze.ckeditorInstance=this.editor)}getEditableElement(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(ce)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const ce=this.editor,ze=ce.config.get("ui.viewportOffset");if(ze)return ze;const Ve=ce.config.get("toolbar.viewportTopOffset");return Ve?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:Ve}):{top:0}}}Object(yt.a)(Ut,Lt.a);var Wt=Ve(388);function attachToForm(ce){if(!Object(Wt.a)(ce.updateSourceElement))throw new mt.a("attachtoform-missing-elementapi-interface",ce);const ze=ce.sourceElement;if(ze&&"textarea"===ze.tagName.toLowerCase()&&ze.form){let Ve;const qe=ze.form,onSubmit=()=>ce.updateSourceElement();Object(Wt.a)(qe.submit)&&(Ve=qe.submit,qe.submit=()=>{onSubmit(),Ve.apply(qe)}),qe.addEventListener("submit",onSubmit),ce.on("destroy",(()=>{qe.removeEventListener("submit",onSubmit),Ve&&(qe.submit=Ve)}))}}var Jt={setData(ce){this.data.set(ce)},getData(ce){return this.data.get(ce)}},Qt=Ve(519);var en={updateSourceElement(){if(!this.sourceElement)throw new mt.a("editor-missing-sourceelement",this);Object(Qt.a)(this.sourceElement,this.data.get())}};Ct.a,Symbol.iterator;var rn=Ve(677),ln=Ve(678);const mn={cancel:'',caption:'',check:'',cog:'',eraser:'',lowVision:'',image:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:rn.a,quote:'',threeVerticalDots:ln.a}},function(ce,ze,Ve){"use strict";var qe=Ve(706);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"d",(function(){return getTextNodeAtPosition})),Ve.d(ze,"b",(function(){return getNodeAfterPosition})),Ve.d(ze,"c",(function(){return getNodeBeforePosition}));var qe=Ve(156),Ye=Ve(92),We=Ve(8);Ve(325);class Qe{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(!ce.is("element")&&!ce.is("documentFragment"))throw new We.a("model-position-root-invalid",ce);if(!(ze instanceof Array)||0===ze.length)throw new We.a("model-position-path-incorrect-format",ce,{path:ze});ce.is("rootElement")?ze=ze.slice():(ze=[...ce.getPath(),...ze],ce=ce.root),this.root=ce,this.path=ze,this.stickiness=Ve}get offset(){return this.path[this.path.length-1]}set offset(ce){this.path[this.path.length-1]=ce}get parent(){let ce=this.root;for(let ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new qe.a(ze);return Ve.skip(ce),Ve.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const ce=this.parent;return ce.is("documentFragment")?[ce]:ce.getAncestors({includeSelf:!0})}findAncestor(ce){const ze=this.parent;return ze.is("element")?ze.findAncestor(ce,{includeSelf:!0}):null}getCommonPath(ce){if(this.root!=ce.root)return[];const ze=Object(Ye.a)(this.path,ce.path),Ve="string"==typeof ze?Math.min(this.path.length,ce.path.length):ze;return this.path.slice(0,Ve)}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let qe=0;for(;ze[qe]==Ve[qe]&&ze[qe];)qe++;return 0===qe?null:ze[qe-1]}getShiftedBy(ce){const ze=this.clone(),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}isAfter(ce){return"after"==this.compareWith(ce)}isBefore(ce){return"before"==this.compareWith(ce)}isEqual(ce){return"same"==this.compareWith(ce)}isTouching(ce){let ze=null,Ve=null;switch(this.compareWith(ce)){case"same":return!0;case"before":ze=Qe._createAt(this),Ve=Qe._createAt(ce);break;case"after":ze=Qe._createAt(ce),Ve=Qe._createAt(this);break;default:return!1}let qe=ze.parent;for(;ze.path.length+Ve.path.length;){if(ze.isEqual(Ve))return!0;if(ze.path.length>Ve.path.length){if(ze.offset!==qe.maxOffset)return!1;ze.path=ze.path.slice(0,-1),qe=qe.parent,ze.offset++}else{if(0!==Ve.offset)return!1;Ve.path=Ve.path.slice(0,-1)}}}is(ce){return"position"===ce||"model:position"===ce}hasSameParentAs(ce){if(this.root!==ce.root)return!1;const ze=this.getParentPath(),Ve=ce.getParentPath();return"same"==Object(Ye.a)(ze,Ve)}getTransformedByOperation(ce){let ze;switch(ce.type){case"insert":ze=this._getTransformedByInsertOperation(ce);break;case"move":case"remove":case"reinsert":ze=this._getTransformedByMoveOperation(ce);break;case"split":ze=this._getTransformedBySplitOperation(ce);break;case"merge":ze=this._getTransformedByMergeOperation(ce);break;default:ze=Qe._createAt(this)}return ze}_getTransformedByInsertOperation(ce){return this._getTransformedByInsertion(ce.position,ce.howMany)}_getTransformedByMoveOperation(ce){return this._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)}_getTransformedBySplitOperation(ce){const ze=ce.movedRange;return ze.containsPosition(this)||ze.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(ce.splitPosition,ce.moveTargetPosition):ce.graveyardPosition?this._getTransformedByMove(ce.graveyardPosition,ce.insertionPosition,1):this._getTransformedByInsertion(ce.insertionPosition,1)}_getTransformedByMergeOperation(ce){const ze=ce.movedRange;let Ve;return ze.containsPosition(this)||ze.start.isEqual(this)?(Ve=this._getCombined(ce.sourcePosition,ce.targetPosition),ce.sourcePosition.isBefore(ce.targetPosition)&&(Ve=Ve._getTransformedByDeletion(ce.deletionPosition,1))):Ve=this.isEqual(ce.deletionPosition)?Qe._createAt(ce.deletionPosition):this._getTransformedByMove(ce.deletionPosition,ce.graveyardPosition,1),Ve}_getTransformedByDeletion(ce,ze){const Ve=Qe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(Ye.a)(ce.getParentPath(),this.getParentPath())){if(ce.offsetthis.offset)return null;Ve.offset-=ze}}else if("prefix"==Object(Ye.a)(ce.getParentPath(),this.getParentPath())){const qe=ce.path.length-1;if(ce.offset<=this.path[qe]){if(ce.offset+ze>this.path[qe])return null;Ve.path[qe]-=ze}}return Ve}_getTransformedByInsertion(ce,ze){const Ve=Qe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(Ye.a)(ce.getParentPath(),this.getParentPath()))(ce.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(ce instanceof Qe)return new Qe(ce.root,ce.path,ce.stickiness);{const qe=ce;if("end"==ze)ze=qe.maxOffset;else{if("before"==ze)return this._createBefore(qe,Ve);if("after"==ze)return this._createAfter(qe,Ve);if(0!==ze&&!ze)throw new We.a("model-createpositionat-offset-required",[this,ce])}if(!qe.is("element")&&!qe.is("documentFragment"))throw new We.a("model-position-parent-incorrect",[this,ce]);const Ye=qe.getPath();return Ye.push(ze),new this(qe.root,Ye,Ve)}}static _createAfter(ce,ze){if(!ce.parent)throw new We.a("model-position-after-root",[this,ce],{root:ce});return this._createAt(ce.parent,ce.endOffset,ze)}static _createBefore(ce,ze){if(!ce.parent)throw new We.a("model-position-before-root",ce,{root:ce});return this._createAt(ce.parent,ce.startOffset,ze)}static fromJSON(ce,ze){if("$graveyard"===ce.root){const Ve=new Qe(ze.graveyard,ce.path);return Ve.stickiness=ce.stickiness,Ve}if(!ze.getRoot(ce.root))throw new We.a("model-position-fromjson-no-root",ze,{rootName:ce.root});return new Qe(ze.getRoot(ce.root),ce.path,ce.stickiness)}}function getTextNodeAtPosition(ce,ze){const Ve=ze.getChild(ze.offsetToIndex(ce.offset));return Ve&&Ve.is("$text")&&Ve.startOffset1?ze-1:0),Qe=1;Qe1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new qe.a(ze);return Ve.skip(ce),Ve.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let qe=0;for(;ze[qe]==Ve[qe]&&ze[qe];)qe++;return 0===qe?null:ze[qe-1]}is(ce){return"position"===ce||"view:position"===ce}isEqual(ce){return this.parent==ce.parent&&this.offset==ce.offset}isBefore(ce){return"before"==this.compareWith(ce)}isAfter(ce){return"after"==this.compareWith(ce)}compareWith(ce){if(this.root!==ce.root)return"different";if(this.isEqual(ce))return"same";const ze=this.parent.is("node")?this.parent.getPath():[],Ve=ce.parent.is("node")?ce.parent.getPath():[];ze.push(this.offset),Ve.push(ce.offset);const qe=Object(Ye.a)(ze,Ve);switch(qe){case"prefix":return"before";case"extension":return"after";default:return ze[qe]0&&void 0!==arguments[0]?arguments[0]:{};return ce.startPosition=this,new qe.a(ce)}clone(){return new Xe(this.parent,this.offset)}static _createAt(ce,ze){if(ce instanceof Xe)return new this(ce.parent,ce.offset);{const Ve=ce;if("end"==ze)ze=Ve.is("$text")?Ve.data.length:Ve.childCount;else{if("before"==ze)return this._createBefore(Ve);if("after"==ze)return this._createAfter(Ve);if(0!==ze&&!ze)throw new We.a("view-createpositionat-offset-required",Ve)}return new Xe(Ve,ze)}}static _createAfter(ce){if(ce.is("$textProxy"))return new Xe(ce.textNode,ce.offsetInText+ce.data.length);if(!ce.parent)throw new We.a("view-position-after-root",ce,{root:ce});return new Xe(ce.parent,ce.index+1)}static _createBefore(ce){if(ce.is("$textProxy"))return new Xe(ce.textNode,ce.offsetInText);if(!ce.parent)throw new We.a("view-position-before-root",ce,{root:ce});return new Xe(ce.parent,ce.index)}}},function(ce,ze,Ve){"use strict";function mix(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{Object.getOwnPropertyNames(ze).concat(Object.getOwnPropertySymbols(ze)).forEach((Ve=>{if(Ve in ce.prototype)return;const qe=Object.getOwnPropertyDescriptor(ze,Ve);qe.enumerable=!1,Object.defineProperty(ce.prototype,Ve,qe)}))}))}Ve.d(ze,"a",(function(){return mix}))},function(ce,ze,Ve){var qe;!function(Ye,We){if(Ye){for(var Qe,Xe={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},ot={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},st={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},mt={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},gt=1;gt<20;++gt)Xe[111+gt]="f"+gt;for(gt=0;gt<=9;++gt)Xe[gt+96]=gt.toString();Mousetrap.prototype.bind=function(ce,ze,Ve){var qe=this;return ce=ce instanceof Array?ce:[ce],qe._bindMultiple.call(qe,ce,ze,Ve),qe},Mousetrap.prototype.unbind=function(ce,ze){return this.bind.call(this,ce,(function(){}),ze)},Mousetrap.prototype.trigger=function(ce,ze){var Ve=this;return Ve._directMap[ce+":"+ze]&&Ve._directMap[ce+":"+ze]({},ce),Ve},Mousetrap.prototype.reset=function(){var ce=this;return ce._callbacks={},ce._directMap={},ce},Mousetrap.prototype.stopCallback=function(ce,ze){if((" "+ze.className+" ").indexOf(" mousetrap ")>-1)return!1;if(_belongsTo(ze,this.target))return!1;if("composedPath"in ce&&"function"==typeof ce.composedPath){var Ve=ce.composedPath()[0];Ve!==ce.target&&(ze=Ve)}return"INPUT"==ze.tagName||"SELECT"==ze.tagName||"TEXTAREA"==ze.tagName||ze.isContentEditable},Mousetrap.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Mousetrap.addKeycodes=function(ce){for(var ze in ce)ce.hasOwnProperty(ze)&&(Xe[ze]=ce[ze]);Qe=null},Mousetrap.init=function(){var ce=Mousetrap(We);for(var ze in ce)"_"!==ze.charAt(0)&&(Mousetrap[ze]=function(ze){return function(){return ce[ze].apply(ce,arguments)}}(ze))},Mousetrap.init(),Ye.Mousetrap=Mousetrap,ce.exports&&(ce.exports=Mousetrap),void 0===(qe=function(){return Mousetrap}.call(ze,Ve,ze,ce))||(ce.exports=qe)}function _addEvent(ce,ze,Ve){ce.addEventListener?ce.addEventListener(ze,Ve,!1):ce.attachEvent("on"+ze,Ve)}function _characterFromEvent(ce){if("keypress"==ce.type){var ze=String.fromCharCode(ce.which);return ce.shiftKey||(ze=ze.toLowerCase()),ze}return Xe[ce.which]?Xe[ce.which]:ot[ce.which]?ot[ce.which]:String.fromCharCode(ce.which).toLowerCase()}function _eventModifiers(ce){var ze=[];return ce.shiftKey&&ze.push("shift"),ce.altKey&&ze.push("alt"),ce.ctrlKey&&ze.push("ctrl"),ce.metaKey&&ze.push("meta"),ze}function _preventDefault(ce){ce.preventDefault?ce.preventDefault():ce.returnValue=!1}function _stopPropagation(ce){ce.stopPropagation?ce.stopPropagation():ce.cancelBubble=!0}function _isModifier(ce){return"shift"==ce||"ctrl"==ce||"alt"==ce||"meta"==ce}function _getReverseMap(){if(!Qe)for(var ce in Qe={},Xe)ce>95&&ce<112||Xe.hasOwnProperty(ce)&&(Qe[Xe[ce]]=ce);return Qe}function _pickBestAction(ce,ze,Ve){return Ve||(Ve=_getReverseMap()[ce]?"keydown":"keypress"),"keypress"==Ve&&ze.length&&(Ve="keydown"),Ve}function _keysFromString(ce){return"+"===ce?["+"]:(ce=ce.replace(/\+{2}/g,"+plus")).split("+")}function _getKeyInfo(ce,ze){var Ve,qe,Ye,We=[];for(Ve=_keysFromString(ce),Ye=0;Ye1?_bindSequence(ce,Xe,Ve,qe):(Qe=_getKeyInfo(ce,qe),ze._callbacks[Qe.key]=ze._callbacks[Qe.key]||[],_getMatches(Qe.key,Qe.modifiers,{type:Qe.action},Ye,ce,We),ze._callbacks[Qe.key][Ye?"unshift":"push"]({callback:Ve,modifiers:Qe.modifiers,action:Qe.action,seq:Ye,level:We,combo:ce}))}ze._handleKey=function(ce,ze,Ve){var qe,Ye=_getMatches(ce,ze,Ve),We={},ot=0,st=!1;for(qe=0;qe{if(this.setTwoFactorMethods([]),!1===ce.completed)return this.setLoading(!1),void(ce.twoFactorMethods&&ce.twoFactorMethods.length&&this.setTwoFactorMethods(ce.twoFactorMethods));if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),Dt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.loginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.twoFactorLogin=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.twoFactorLoginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),this.setTwoFactorError(!0),401!==ce.status)return Promise.reject(ce)}))),this.updatePersistentSettings=wt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});Ct.b.patch(Ct.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1,this.twoFactorMethods=[],this.twoFactorError=!1}get systemLocale(){return this.user?this.user.locale:Ct.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}setTwoFactorMethods(ce){this.twoFactorMethods=ce}setTwoFactorError(ce){this.twoFactorError=ce}get contentLocale(){const ce=this.persistentSettings.get(St);if(ce)return ce;const{localizations:ze}=kt.a,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:Ct.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(St,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return Ct.b.get(Ct.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}validatePassword(ce){const ze=Ct.a.passwordPattern;return!ze||new RegExp(ze).test(ce)}}).prototype,"persistentSettings",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(qe.prototype,"user",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"contact",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loggedIn",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"loading",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"loginError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"forgotPasswordSuccess",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=_applyDecoratedDescriptor(qe.prototype,"twoFactorMethods",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yt=_applyDecoratedDescriptor(qe.prototype,"twoFactorError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"clear",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"systemLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"systemLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoggedIn",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoggedIn"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoginError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoginError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForgotPasswordSuccess",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForgotPasswordSuccess"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorMethods",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorMethods"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"contentLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"contentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUser",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUser"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"updateContentLocale",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateContentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setContact",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setContact"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setFullName",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setFullName"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setPersistentSetting",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setPersistentSetting"),qe.prototype),qe);ze.a=xt},function(ce,ze,Ve){"use strict";var qe=Ve(1788);function api(ce,ze,Ve){if(3===arguments.length)return api.set(ce,ze,Ve);if(2===arguments.length)return api.get(ce,ze);var qe=api.bind(api,ce);for(var Ye in api)api.hasOwnProperty(Ye)&&(qe[Ye]=api[Ye].bind(qe,ce));return qe}ce.exports=api,api.get=function get(ce,ze){for(var Ve=Array.isArray(ze)?ze:api.parse(ze),qe=0;qe{Ve.locale=ce})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=We.a.bind(this,this)}createCollection(ce){const ze=new Ye.a(ce);return this._viewCollections.add(ze),ze}registerChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.add(ze)}deregisterChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.remove(ze)}setTemplate(ce){this.template=new We.a(ce)}extendTemplate(ce){We.a.extend(this.template,ce)}render(){if(this.isRendered)throw new qe.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((ce=>ce.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Object(st.a)(gt,Qe.a),Object(st.a)(gt,Xe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(239);Ve.d(ze,"a",(function(){return qe.a}));Ve(381);var Ye=Ve(45);Ve.d(ze,"d",(function(){return Ye.b})),Ve.d(ze,"c",(function(){return Ye.a}));var We=Ve(103);Ve.d(ze,"b",(function(){return We.a}));Ve(113)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.editor=ce,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(451);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(582);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Oo.b})),Ve.d(ze,"c",(function(){return Oo.a})),Ve.d(ze,"a",(function(){return Nc.b})),Ve.d(ze,"d",(function(){return Xu.a})),Ve.d(ze,"i",(function(){return Nc.c})),Ve.d(ze,"j",(function(){return Nc.d})),Ve.d(ze,"e",(function(){return Qu})),Ve.d(ze,"f",(function(){return ep.a})),Ve.d(ze,"g",(function(){return tp.a})),Ve.d(ze,"k",(function(){return Ad})),Ve.d(ze,"h",(function(){return np.a}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(9),Qe=Ve.n(We),Xe=Ve(693),ot=Ve(698),st=Ve(699),mt=Ve(688),gt=Ve(690),yt=Ve(700),bt=Ve(691),vt=Ve(372),wt=Ve(701),Ct=Ve(702),Dt=Ve(703),kt=Ve(704),St=Ve(694),xt=Ve(687),Et=Ve(713),Pt=Ve(11),Tt=Ve(3),Lt=Ve(1),Ft=Ve(31),Bt=Ve(52),Vt=Ve(138),Ht=Ve(219),Ut=Ve(44),Wt=Ve(6);function addLinkConversion(ce,ze,Ve,qe){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[qe]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(qe)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:Ye}=Ve;return Ye.createAttributeElement(ze,{[qe]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(29);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"link"),Ve.push(qe);const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"unlink"),Ve.push(Ye),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(80);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const qe=ce[this.attributeMap[Ve]];return qe?(ze[Ve]=qe,ze):ze}),{});Ve.provider=ce.provider;const{selection:qe}=ce,Ye=qe?qe.getFirstPosition():void 0,We=Ye?Ye.textNode||Ye.nodeBefore:void 0;if(qe&&!qe.isCollapsed)for(const ce of qe.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const qe=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(qe)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(376);var mn=Ve(101),gn=Ve(73),bn=Ve(48),wn=Ve(32);Ye.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn=Ve(162),Zn=Ve(710),Xn=Ve(375);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ei,si,_i,Ri,Ci,Di,Ei,Oi,Ti,er,tr,nr,rr=Object(Tt.b)((Sn=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:qe,href:Ye}=this;if(!Ye)return void ze(void 0);const We=new URLSearchParams;Ye.startsWith("mailto:")&&(ce&&ce("_self"),qe&&We.set("subject",qe),Ve&&We.set("body",Ve)),ze(Ye+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Gn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Kn,this),this.handleRelNoFollowChange=ce=>{const{onRelChange:ze,rel:Ve}=this.props;if(!ze)return;let qe=(Ve||"").toLowerCase().trim().split(" ").map((ce=>ce.trim())).filter((ce=>!!ce));ce&&!qe.includes("nofollow")?qe=[...qe,"nofollow"]:!ce&&qe.includes("nofollow")&&(qe=qe.filter((ce=>"nofollow"!==ce)));const Ye=qe.join(" ")||void 0;Ve!==Ye&&ze(Ye)},this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),qe=Ve.get("subject"),Ye=Ve.get("body");return this.href=ze[0],this.mailSubject=qe||void 0,void(this.mailBody=Ye||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}get isRelNoFollow(){const{rel:ce}=this.props;return!!ce&&ce.toLowerCase().includes("nofollow")}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,onRelChange:Qe,open:Xe,target:ot,title:st,href:mt}=this.props;return Ye.a.createElement(mn.a,{cancelText:Object(Wt.translate)("sulu_admin.cancel"),confirmDisabled:!mt,confirmText:Object(Wt.translate)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Wt.translate)("sulu_admin.link")},Ye.a.createElement(gn.a,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_url"),required:!0},Ye.a.createElement(Xn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_target"),required:!0},Ye.a.createElement(wn.a,{onChange:Ve,value:ot},Ye.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),Ye.a.createElement(wn.a.Option,{value:"_self"},"_self"),Ye.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),Ye.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.mail_subject")},Ye.a.createElement(bn.a,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.mail_body")},Ye.a.createElement(Zn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_title")},Ye.a.createElement(bn.a,{onChange:We,value:st})),Qe&&Ye.a.createElement(gn.a.Field,null,Ye.a.createElement(Jn.a,{checked:this.isRelNoFollow,onChange:this.handleRelNoFollowChange},Object(Wt.translate)("sulu_admin.no_follow")))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),_applyDecoratedDescriptor(Sn.prototype,"isRelNoFollow",[Lt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"isRelNoFollow"),Sn.prototype),Cn=Sn))||Cn,ar=Ve(143);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const sr="_self",lr="target",dr="title",ur="url",pr="rel",vr="externalLinkHref",_r="externalLinkTarget",Rr="externalLinkTitle",Cr="externalLinkRel",Dr="a";let Er=(ei=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",si,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",_i,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",Ri,this),ExternalLinkPlugin_initializerDefineProperty(this,"rel",Ci,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",Di,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Ei,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Oi,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Ti,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleRelChange",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",nr,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(_r),this.title=ce.getAttribute(Rr),this.url=ce.getAttribute(vr),this.rel=ce.getAttribute(Cr),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(rr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onRelChange:this.handleRelChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,rel:this.rel,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[vr]:ur,[_r]:lr,[Rr]:dr,[Cr]:"rel"},ur)),this.editor.commands.add("externalUnlink",new ln(this.editor,[vr,_r,Rr,Cr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Wt.translate)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=sr,this.title=void 0,this.url=void 0,this.rel=void 0}))),ze})),addLinkConversion(this.editor,Dr,_r,"target"),addLinkConversion(this.editor,Dr,vr,"href"),addLinkConversion(this.editor,Dr,Rr,"title"),addLinkConversion(this.editor,Dr,Cr,"rel");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Dr);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},si=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return sr}}),Ri=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ci=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"rel",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Di=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[lr]:this.target,[dr]:this.title,[ur]:this.url,[pr]:this.rel}),this.open=!1}}}),Oi=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ti=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),er=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleRelChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.rel=ce}}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),ei);var Tr,Ar,Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr,Yr,Ur,Wr=Er,$r=Ve(295),Gr=Ve(287),Kr=Ve(195);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Jr="_self",Zr="target",ga="href",ya="provider",ba="title",va="defaultText",_a="internalLinkHref",wa="internalLinkTarget",ka="internalLinkProvider",xa="internalLinkTitle",Aa="validationState",Ba="sulu-link";let Ja=(Tr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",Ar,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Mr,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Lr,this),InternalLinkPlugin_initializerDefineProperty(this,"title",jr,this),InternalLinkPlugin_initializerDefineProperty(this,"query",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleQueryChange",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",Ur,this)}get internalLinkTypes(){return ar.default.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,query:ze,anchor:Ve}=this;if(!ce)return null;let qe="";return ze&&(qe+="?"+ze.replace(/^\?+/g,"")),Ve&&(qe+="#"+Ve.replace(/^#+/g,"")),ce+qe}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{var ce;this.selection=this.editor.model.document.selection;const ze=findModelItemInSelection(this.editor);let Ve=ze.getAttribute(_a).split("#",2);const qe=Ve[1]||null;Ve=null===(ce=Ve[0])||void 0===ce?void 0:ce.split("?",2);const Ye=Ve[0]||null,We=Ve[1]||null;this.id=isNaN(Ye)?Ye:parseInt(Ye),this.anchor=qe,this.query=We,this.target=ze.getAttribute(wa),this.title=ze.getAttribute(xa),this.openOverlay=ze.getAttribute(ka),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(qe.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=ar.default.getOverlay(ze);return Ye.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onQueryChange:this.handleQueryChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:ar.default.getOptions(ze),query:this.query,target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[_a]:ga,[wa]:Zr,[xa]:ba,[ka]:ya},va)),this.editor.commands.add("internalUnlink",new ln(this.editor,[wa,xa,_a,Aa,ka])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Kr.c)(ce),Ve=new $r.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Wt.translate)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const qe=new Bt.a(ce);qe.set({class:"ck-link-button",label:ar.default.getTitle(ze),withText:!0});const Ye=new Gr.a(ce);Ye.children.add(qe),qe.delegate("execute").to(Ye),qe.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=Jr,this.title=void 0,this.id=void 0,this.query=void 0,this.anchor=void 0}))),Ve.items.add(Ye)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,Ba,Aa,"sulu-validation-state"),addLinkConversion(this.editor,Ba,ka,"provider"),addLinkConversion(this.editor,Ba,wa,"target"),addLinkConversion(this.editor,Ba,xa,"title"),addLinkConversion(this.editor,Ba,_a,"href");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},Ar=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Jr}}),Lr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),jr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"query",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"internalLinkTypes"),Tr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"href"),Tr.prototype),Br=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[ga]:this.href,[ya]:this.openOverlay,selection:this.selection,[Zr]:this.target,[ba]:this.title,[va]:this.defaultText}),this.openOverlay=void 0}}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleQueryChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Tr);var io=Ja;var po=new class{constructor(){this.clear()}clear(){this.configs=[]}add(ce){this.configs.push(ce)}};var ho=new class{constructor(){this.clear()}clear(){this.plugins=[]}add(ce){this.plugins.push(ce)}};class go extends Ye.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;ze?(this.editorInstance.ui.element.classList.add("disabled"),this.editorInstance.enableReadOnlyMode("disabled")):(this.editorInstance.ui.element.classList.remove("disabled"),this.editorInstance.disableReadOnlyMode("disabled"));const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Xe.a,ot.a,mt.a,Wr,gt.a,io,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ho.plugins],...po.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:qe}=this.props,{model:{document:Ye},editing:{view:{document:We}}}=this.editorInstance;ze&&(this.editorInstance.enableReadOnlyMode("disabled"),this.editorInstance.ui.element.classList.add("disabled")),Ve&&We.on("blur",(()=>{Ve()})),qe&&Ye.on("change",(()=>{Ye.differ.getChanges().length>0&&qe(this.getEditorData())}))})).catch((ce=>{Qe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return Ye.a.createElement("div",{ref:this.setContainerRef})}}go.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""};var _o,Co,ko,Oo=Ve(126);function blockPreviewTransformerRegistry_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function blockPreviewTransformerRegistry_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Po=(_o=class{constructor(){blockPreviewTransformerRegistry_initializerDefineProperty(this,"blockPreviewTransformers",Co,this),blockPreviewTransformerRegistry_initializerDefineProperty(this,"priority",ko,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Co=blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"blockPreviewTransformers",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ko=blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"priority",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"blockPreviewTransformerKeysByPriority",[Lt.computed],Object.getOwnPropertyDescriptor(_o.prototype,"blockPreviewTransformerKeysByPriority"),_o.prototype),_o);var To,Ao,jo,Fo,Bo,Vo,Ho,Uo=new Po,Wo=Ve(22),$o=Ve.n(Wo),es=Ve(28),ts=Ve.n(es),ns=Ve(5),rs=Ve.n(ns),os=Ve(40),ss=Ve(89),ls=Ve(19),cs=Ve(118),ds={tooltipContainer:"tooltipContainer--L5L5YPJvN-",tooltip:"tooltip--7Lh6nw79kl",top:"top--U8Sui0LbxA",bottom:"bottom--CZLd0ErrJ9"};function Tooltip_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Tooltip_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var us=Object(Tt.b)((Ao=class extends Ye.a.Component{constructor(ce){super(ce),Tooltip_initializerDefineProperty(this,"tooltipOpen",jo,this),Tooltip_initializerDefineProperty(this,"tooltipRef",Fo,this),Tooltip_initializerDefineProperty(this,"setTooltipRef",Bo,this),Tooltip_initializerDefineProperty(this,"handleEnter",Vo,this),Tooltip_initializerDefineProperty(this,"handleLeave",Ho,this)}render(){const{children:ce,label:ze}=this.props;return Ye.a.createElement("span",{className:ds.tooltipContainer,onBlur:this.handleLeave,onFocus:this.handleEnter,onMouseEnter:this.handleEnter,onMouseLeave:this.handleLeave,ref:this.setTooltipRef},this.tooltipRef&&Ye.a.createElement(cs.a,{anchorElement:this.tooltipRef,backdrop:!1,horizontalAnchorMode:"center",open:this.tooltipOpen,verticalOffset:10},((ce,Ve,qe)=>Ye.a.createElement("span",{"aria-hidden":!0,className:rs()(ds.tooltip,ds[qe]),ref:ce,style:Ve},ze))),ce)}},jo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"tooltipOpen",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"tooltipRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"setTooltipRef",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.tooltipRef=ce}}}),Vo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"handleEnter",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!0}}}),Ho=Tooltip_applyDecoratedDescriptor(Ao.prototype,"handleLeave",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!1}}}),To=Ao))||To,ps={container:"container--1i0lFz14C0",sticky:"sticky--dtdnyK1-fr",divide:"divide--wM2BxGIRYb",selected:"selected--KM9kXsBs3Y",cancelButton:"cancelButton--5CaUXCYD1v",cancelButtonIcon:"cancelButtonIcon--g-QSxI1bIk",actionList:"actionList--JnSOuCNxTa",actionButton:"actionButton--Md-Bowahqf",actionButtonDisabled:"actionButtonDisabled--46sJS5ixwC",actionButtonIcon:"actionButtonIcon--o4Wfi+PWDo"};class hs extends Ye.a.Component{constructor(ce){super(ce),this.handleChangeSelectAll=()=>{const{onSelectAll:ce,onUnselectAll:ze,allSelected:Ve}=this.props;ce&&!Ve?ce():ze&&Ve&&ze()},this.handleCancel=()=>{const{onCancel:ce}=this.props;ce&&ce()}}render(){const{actions:ce,allSelected:ze,selectedCount:Ve,mode:qe}=this.props;return Ye.a.createElement("section",{className:rs()(ps.container,ps[qe])},Ye.a.createElement("div",{className:ps.divide},Ye.a.createElement("div",{className:ps.selected},Object(Wt.translate)("sulu_admin.%count%_selected",{count:Ve})),Ye.a.createElement("div",null,Ye.a.createElement(ss.b,{checked:ze,onChange:this.handleChangeSelectAll,size:"small"},Object(Wt.translate)("sulu_admin.select_all")))),Ye.a.createElement("div",{className:ps.divide},Ye.a.createElement("div",{className:ps.actionList},ce.map((ce=>Ye.a.createElement(us,{key:ce.label,label:ce.label},Ye.a.createElement("button",{"aria-label":ce.label,className:rs()(ps.actionButton,{[ps.actionButtonDisabled]:0===Ve}),disabled:0===Ve,onClick:ce.handleClick,type:"button"},Ye.a.createElement(ls.a,{className:ps.actionButtonIcon,name:ce.icon})))))),Ye.a.createElement("div",null,Ye.a.createElement("button",{className:ps.cancelButton,onClick:this.handleCancel,type:"button"},Ye.a.createElement(ls.a,{className:ps.cancelButtonIcon,name:"su-cancel"}),Object(Wt.translate)("sulu_admin.cancel")))))}}hs.defaultProps={actions:[],allSelected:!1,mode:"static",selectedCount:0};var fs,ms,gs,ys,bs,vs=hs,_s="sticky--UR9815OVZU",ws="stickySentinel--Fe6RfpzPjq";function Sticky_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Sticky_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Rs,Cs,Ds,ks,Ss,xs,Es,Os,Ps=Object(Tt.b)(((bs=class extends Ye.a.Component{constructor(ce){super(ce),Sticky_initializerDefineProperty(this,"isSticky",gs,this),Sticky_initializerDefineProperty(this,"stickySentinelRef",ys,this),this.setStickySentinelRef=ce=>{this.stickySentinelRef=ce,this.stickySentinelRef&&this.intersectionObserver&&this.intersectionObserver.observe(this.stickySentinelRef)},"undefined"!=typeof IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((ce=>{for(const ze of ce)Object(Lt.action)((()=>{this.isSticky=!ze.isIntersecting}))()}),{}))}componentWillUnmount(){this.intersectionObserver&&this.intersectionObserver.disconnect()}render(){const{children:ce,top:ze}=this.props;return Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement("div",{className:ws,ref:this.setStickySentinelRef,style:{top:0-ze-1}}),Ye.a.createElement("div",{className:_s,style:{top:ze}},ce(this.isSticky)))}}).defaultProps={top:0},gs=Sticky_applyDecoratedDescriptor((ms=bs).prototype,"isSticky",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ys=Sticky_applyDecoratedDescriptor(ms.prototype,"stickySentinelRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fs=ms))||fs,Ts=Ve(62),As="block--r5AwkIkGuy",Ms="expanded--01smYmWYgZ",Ls="children--hbmzvF4fF5",js="header--OspPZgJWkG",Is="icons--rzCLkMTLhR",zs="selected--R4FzxmVUY0",Fs="handle--j8uhPR0+Uz",Bs="content--Up7oqHiSdO",Ns="types--06XY8IuEHj",Vs="type--h9anPode67",Hs="icon-buttons--2H8iA5fPOP",qs=Ve(7),Ys="icon--NCyK7egXC7",Us="action--C6j6sNd6c8";class Ws extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{icon:ce,index:ze,label:Ve}=this.props;return Ye.a.createElement("li",{key:ze},Ye.a.createElement("button",{className:Us,onClick:this.handleClick,type:"button"},Ye.a.createElement(ls.a,{className:Ys,name:ce}),Ve))}}class $s extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleActionClick=ce=>{const{actions:ze,onClose:Ve}=this.props,qe=ze[ce];if("divider"===qe.type)throw new Error("Divider actions cannot be clicked! This should not happen and is likely a bug.");qe.onClick(),Ve()}}render(){const{open:ce,onClose:ze,anchorElement:Ve}=this.props;return Ye.a.createElement(qs.Popover,{anchorElement:Ve,onClose:ze,open:ce,verticalOffset:5},((ce,ze)=>Ye.a.createElement(qs.Menu,{menuRef:ce,style:ze},this.props.actions.map(((ce,ze)=>"divider"===ce.type?Ye.a.createElement(qs.Menu.Divider,{key:ze}):Ye.a.createElement(Ws,{icon:ce.icon,index:ze,key:ze,label:ce.label,onClick:this.handleActionClick}))))))}}function Block_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Block_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Gs=Object(Tt.b)((Os=class extends Ye.a.Component{constructor(){super(...arguments),Block_initializerDefineProperty(this,"actionsButtonRef",Ds,this),Block_initializerDefineProperty(this,"showActionsPopover",ks,this),Block_initializerDefineProperty(this,"setActionsButtonRef",Ss,this),Block_initializerDefineProperty(this,"handleActionsButtonClick",xs,this),Block_initializerDefineProperty(this,"handleActionsPopoverClose",Es,this),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}get actions(){const{onRemove:ce,actions:ze}=this.props;return ce?(Qe.a.warn('The "onRemove" prop of the "Block" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{activeType:ce,children:ze,handle:Ve,icons:We,onCollapse:Qe,onExpand:Xe,onSettingsClick:ot,selected:st,types:mt}=this.props,gt=this.props.expanded||!Qe&&!Xe,yt=rs()(As,{[Ms]:gt,[zs]:st});return Ye.a.createElement("section",{className:yt,onClick:this.handleExpand,role:"switch"},Ve&&Ye.a.createElement("div",{className:Fs},Ve),Ye.a.createElement("div",{className:Bs},Ye.a.createElement("header",{className:js},gt?Ye.a.createElement(qe.Fragment,null,mt&&Object.keys(mt).length>1&&Ye.a.createElement("div",{className:Ns},Ye.a.createElement(wn.a,{onChange:this.handleTypeChange,value:ce},Object.keys(mt).map((ce=>Ye.a.createElement(wn.a.Option,{key:ce,value:ce},mt[ce]))))),We&&Ye.a.createElement("div",{className:Is},We.map((ce=>Ye.a.createElement(ls.a,{key:ce,name:ce})))),Ye.a.createElement("div",{className:Hs},this.actions.length>0&&Ye.a.createElement("button",{onClick:this.handleActionsButtonClick,ref:this.setActionsButtonRef,type:"button"},Ye.a.createElement(ls.a,{name:"su-more-circle"})),ot&&Ye.a.createElement("button",{onClick:ot,type:"button"},Ye.a.createElement(ls.a,{name:"su-cog"})),Qe&&Xe&&Ye.a.createElement("button",{onClick:this.handleCollapse,type:"button"},Ye.a.createElement(ls.a,{name:"su-collapse-vertical"}))),Ye.a.createElement($s,{actions:this.actions,anchorElement:this.actionsButtonRef,onClose:this.handleActionsPopoverClose,open:this.showActionsPopover})):Ye.a.createElement(qe.Fragment,null,We&&Ye.a.createElement("div",{className:Is},We.map((ce=>Ye.a.createElement(ls.a,{key:ce,name:ce})))),mt&&ce&&Ye.a.createElement("div",{className:Vs},mt[ce]),Qe&&Xe&&Ye.a.createElement(ls.a,{name:"su-expand-vertical"}))),Ye.a.createElement("article",{className:Ls},ze)))}},Os.defaultProps={actions:[],expanded:!1,selected:!1},Ds=Block_applyDecoratedDescriptor((Cs=Os).prototype,"actionsButtonRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ks=Block_applyDecoratedDescriptor(Cs.prototype,"showActionsPopover",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Block_applyDecoratedDescriptor(Cs.prototype,"actions",[Lt.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"actions"),Cs.prototype),Ss=Block_applyDecoratedDescriptor(Cs.prototype,"setActionsButtonRef",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.actionsButtonRef=ce}}}),xs=Block_applyDecoratedDescriptor(Cs.prototype,"handleActionsButtonClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!0}}}),Es=Block_applyDecoratedDescriptor(Cs.prototype,"handleActionsPopoverClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!1}}}),Rs=Cs))||Rs;var Ks=Gs,Js="sortableHandle--xA6rKMQ7Pq",Zs=Object(Ts.c)((()=>Ye.a.createElement(ls.a,{className:Js,name:"su-more"}))),Qs="container--64sAtrxc6H";class Xs extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=()=>{const{onChange:ce}=this.props;ce&&ce()},this.handleContainerClick=ce=>{ce.stopPropagation(),this.handleChange()}}render(){const{checked:ce}=this.props;return Ye.a.createElement("div",{className:Qs,onClick:this.handleContainerClick},Ye.a.createElement(ss.b,{checked:ce,onChange:this.handleChange,skin:ce?"light":"dark"}))}}var pl,gl,yl,bl=Xs;let vl=Object(Tt.b)(((yl=class extends Ye.a.Component{constructor(ce){super(ce),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelectionChanged=()=>{const{sortIndex:ce,onSelect:ze,onUnselect:Ve,selected:qe}=this.props;qe&&Ve&&Ve(ce),!qe&&ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.renderHandle=()=>{const{mode:ce,movable:ze,selected:Ve}=this.props;return"sortable"===ce&&!1!==ze?Ye.a.createElement(Zs,null):"selectable"===ce?Ye.a.createElement(bl,{checked:Ve,onChange:this.handleSelectionChanged}):null},!1===ce.movable&&Qe.a.warn('The "movable" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get actions(){const{onRemove:ce,actions:ze,sortIndex:Ve}=this.props,qe=ze.map((ce=>"divider"!==ce.type?{...ce,onClick:()=>ce.onClick(Ve)}:ce));return ce?(Qe.a.warn('The "onRemove" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...qe,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:()=>ce(Ve)}]):qe}render(){const{activeType:ce,expanded:ze,icons:Ve,onCollapse:qe,onExpand:We,onSettingsClick:Qe,renderBlockContent:Xe,selected:ot,sortIndex:st,types:mt,value:gt}=this.props;return Ye.a.createElement(Ks,{actions:this.actions,activeType:ce,expanded:ze,handle:this.renderHandle(),icons:Ve,onCollapse:qe?this.handleCollapse:void 0,onExpand:We?this.handleExpand:void 0,onSettingsClick:Qe&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,selected:ot,types:mt},Xe(gt,ce,st,ze))}}).defaultProps={actions:[],mode:"sortable",movable:!0,selected:!1},function SortableBlock_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((gl=yl).prototype,"actions",[Lt.computed],Object.getOwnPropertyDescriptor(gl.prototype,"actions"),gl.prototype),pl=gl))||pl;var _l,wl,Rl,Cl=Object(Ts.b)(vl),Dl="sortableBlockList--QsHZHQJiOS",kl="disabled--G6bSSDFTya";let Sl=Object(Tt.b)(((Rl=class extends Ye.a.Component{constructor(ce){super(ce),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelect=ce=>{const{onSelect:ze}=this.props;ze&&ze(ce)},this.handleUnselect=ce=>{const{onUnselect:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},!1===ce.movable&&Qe.a.warn('The "movable" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get blockActions(){const{onRemove:ce,blockActions:ze}=this.props;return ce?(Qe.a.warn('The "onRemove" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "blockActions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:We,mode:Qe,movable:Xe,onCollapse:ot,onExpand:st,onSelect:mt,onSettingsClick:gt,onUnselect:yt,renderBlockContent:bt,renderDivider:vt,selectedBlocks:wt,types:Ct,value:Dt}=this.props,kt=rs()(Dl,{[kl]:ce});return Ye.a.createElement("div",{className:kt},Dt&&Dt.map(((kt,St)=>Ye.a.createElement(qe.Fragment,{key:St},Ye.a.createElement(Cl,{actions:this.blockActions,activeType:kt.type,expanded:!ce&&ze[St],icons:We&&We[St],index:St,key:Ve[St],mode:"sortable"===Qe&&!1!==Xe?"sortable":Qe,onCollapse:ot?this.handleCollapse:void 0,onExpand:st?this.handleExpand:void 0,onSelect:mt?this.handleSelect:void 0,onSettingsClick:gt?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,onUnselect:yt?this.handleUnselect:void 0,renderBlockContent:bt,selected:wt[St],sortIndex:St,types:Ct,value:kt}),vt&&St{const{collapsable:ze,defaultType:Ve,onChange:qe,minOccurs:Ye,value:We}=this.props,{expandedBlocks:Qe,generatedBlockIds:Xe,selectedBlocks:ot}=this;if(!We)return;Qe.length>We.length&&Qe.splice(We.length),ot.length>We.length&&ot.splice(We.length),Xe.length>We.length&&Xe.splice(We.length);const st=!ze;Qe.push(...new Array(We.length-Qe.length).fill(st)),ot.push(...new Array(We.length-ot.length).fill(!1)),Xe.push(...new Array(We.length-Xe.length).fill(!1).map((()=>++ce.idCounter))),Ye&&We.length++ce.idCounter))),qe([...We,...Array.from({length:Ye-We.length},(()=>({type:Ve})))]))},BlockCollection_initializerDefineProperty(this,"handleAddBlock",Ll,this),BlockCollection_initializerDefineProperty(this,"handlePasteBlocks",jl,this),this.handleRemoveBlock=ce=>{this.removeBlocks([ce])},this.handleRemoveSelectedBlocks=()=>{this.removeBlocks(this.selectedBlockIndexes)},BlockCollection_initializerDefineProperty(this,"removeBlocks",Il,this),this.handleDuplicateSelectedBlocks=()=>{const{value:ce}=this.props;this.duplicateBlocks(this.selectedBlockIndexes,ce.length)},this.handleDuplicateBlock=ce=>{this.duplicateBlocks([ce],ce)},BlockCollection_initializerDefineProperty(this,"duplicateBlocks",zl,this),this.handleCopySelectedBlocks=()=>{this.copyBlocks(this.selectedBlockIndexes)},this.handleCopyBlock=ce=>{this.copyBlocks([ce])},this.copyBlocks=function(ce){let ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onDisplaySnackbar:qe,value:Ye}=Ve.props;if(!Ye)return;const We=[];ce.forEach((ce=>{We.push({...Object(Lt.toJS)(Ye[ce])})})),Wt.clipboard.set(Oc,We),ze&&qe&&qe({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_copied",{count:ce.length}),icon:"su-copy"})},this.handleCutSelectedBlocks=()=>{this.cutBlocks(this.selectedBlockIndexes)},this.handleCutBlock=ce=>{this.cutBlocks([ce])},this.cutBlocks=ce=>{const{onDisplaySnackbar:ze}=this.props;this.copyBlocks(ce,!1),this.removeBlocks(ce,!1),ze&&ze({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_cut",{count:ce.length}),icon:"su-cut"})},BlockCollection_initializerDefineProperty(this,"handleSortEnd",Fl,this),BlockCollection_initializerDefineProperty(this,"handleCollapse",Bl,this),BlockCollection_initializerDefineProperty(this,"handleExpand",Nl,this),BlockCollection_initializerDefineProperty(this,"handleSelect",Vl,this),BlockCollection_initializerDefineProperty(this,"handleUnselect",Hl,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},BlockCollection_initializerDefineProperty(this,"handleTypeChange",Ul,this),this.renderAddButton=ce=>{const{addButtonText:ze,pasteButtonText:Ve,disabled:qe,value:We}=this.props,Qe=ce0&&Ye.a.createElement(os.a,{className:fc,disabled:qe||this.hasMaximumReached,icon:"su-copy",onClick:this.handlePasteBlocks,skin:"secondary",value:ce+1},Ve||Object(Wt.translate)("sulu_admin.paste_blocks",{count:this.pasteableBlocks.length})))},BlockCollection_initializerDefineProperty(this,"handleBlockToolbarCancel",Wl,this),BlockCollection_initializerDefineProperty(this,"handleClickSelectMultiple",$l,this),BlockCollection_initializerDefineProperty(this,"handleBlockToolbarSelectAll",ec,this),BlockCollection_initializerDefineProperty(this,"handleBlockToolbarUnselectAll",nc,this),this.renderBlockToolbar=ce=>{const{value:ze}=this.props,Ve=this.selectedBlocks.filter((ce=>ce)).length;return Ye.a.createElement(vs,{actions:[{label:Object(Wt.translate)("sulu_admin.copy"),icon:"su-copy",handleClick:this.handleCopySelectedBlocks},{label:Object(Wt.translate)("sulu_admin.duplicate"),icon:"su-duplicate",handleClick:this.handleDuplicateSelectedBlocks},{label:Object(Wt.translate)("sulu_admin.cut"),icon:"su-cut",handleClick:this.handleCutSelectedBlocks},{label:Object(Wt.translate)("sulu_admin.delete"),icon:"su-trash-alt",handleClick:this.handleRemoveSelectedBlocks}],allSelected:Ve===ze.length,mode:ce?"sticky":"static",onCancel:this.handleBlockToolbarCancel,onSelectAll:this.handleBlockToolbarSelectAll,onUnselectAll:this.handleBlockToolbarUnselectAll,selectedCount:Ve})},this.renderBlockToolbarButton=()=>Ye.a.createElement("div",{className:gc},Ye.a.createElement("button",{className:_c,onClick:this.handleClickSelectMultiple,type:"button"},Ye.a.createElement(ls.a,{"aria-hidden":!0,className:kc,name:"su-check-circle"}),Ye.a.createElement("span",{className:Ec},Object(Wt.translate)("sulu_admin.select_multiple_blocks")))),this.fillArraysDisposer=Object(Lt.reaction)((()=>this.props.value.length),this.fillArrays,{fireImmediately:!0}),this.setPasteableBlocksDisposer=Wt.clipboard.observe(Oc,Object(Lt.action)((ce=>{this.pasteableBlocks=ce||[]})),!0),!1===ze.movable&&(this.mode="static")}componentWillUnmount(){var ce,ze;null===(ce=this.fillArraysDisposer)||void 0===ce||ce.call(this),null===(ze=this.setPasteableBlocksDisposer)||void 0===ze||ze.call(this)}get selectedBlockIndexes(){const ce=[];return this.selectedBlocks.forEach(((ze,Ve)=>{ze&&ce.push(Ve)})),ce}get hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}get hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}get blockActions(){const ce=[];return ce.push({type:"button",icon:"su-copy",label:Object(Wt.translate)("sulu_admin.copy"),onClick:this.handleCopyBlock}),this.hasMinimumReached||ce.push({type:"button",icon:"su-scissors",label:Object(Wt.translate)("sulu_admin.cut"),onClick:this.handleCutBlock}),this.hasMaximumReached||ce.push({type:"button",icon:"su-duplicate",label:Object(Wt.translate)("sulu_admin.duplicate"),onClick:this.handleDuplicateBlock}),this.hasMinimumReached||(ce.length>0&&ce.push({type:"divider"}),ce.push({type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:this.handleRemoveBlock})),ce}render(){const{collapsable:ce,disabled:ze,icons:Ve,onSettingsClick:qe,renderBlockContent:We,types:Qe,value:Xe}=this.props;return Ye.a.createElement("section",{className:lc},Xe.length>1?"selectable"===this.mode?Ye.a.createElement(Ps,{top:10},this.renderBlockToolbar):this.renderBlockToolbarButton():null,Ye.a.createElement("div",{className:pc}),Ye.a.createElement(oc,{blockActions:this.blockActions,disabled:ze,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ve,lockAxis:"y",mode:this.mode,onCollapse:ce?this.handleCollapse:void 0,onExpand:ce?this.handleExpand:void 0,onSelect:this.handleSelect,onSettingsClick:qe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,onUnselect:this.handleUnselect,renderBlockContent:We,renderDivider:this.renderAddButton,selectedBlocks:this.selectedBlocks,types:Qe,useDragHandle:!0,value:Xe}),this.renderAddButton(Xe.length-1))}},ic.idCounter=0,ic.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},Ol=BlockCollection_applyDecoratedDescriptor((El=ic).prototype,"pasteableBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pl=BlockCollection_applyDecoratedDescriptor(El.prototype,"generatedBlockIds",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Tl=BlockCollection_applyDecoratedDescriptor(El.prototype,"expandedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Al=BlockCollection_applyDecoratedDescriptor(El.prototype,"selectedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ml=BlockCollection_applyDecoratedDescriptor(El.prototype,"mode",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"sortable"}}),BlockCollection_applyDecoratedDescriptor(El.prototype,"selectedBlockIndexes",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"selectedBlockIndexes"),El.prototype),Ll=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleAddBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{defaultType:ze,onChange:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(qe){this.expandedBlocks.splice(ce,0,!0),this.selectedBlocks.splice(ce,0,!1),this.generatedBlockIds.splice(ce,0,++Mc.idCounter);Ve([...qe.slice(0,ce),{type:ze},...qe.slice(ce)])}}}}),jl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handlePasteBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onDisplaySnackbar:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(!qe)return;this.expandedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!0))),this.selectedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!1))),this.generatedBlockIds.splice(ce,0,...this.pasteableBlocks.map((()=>++Mc.idCounter)));const Ye=this.pasteableBlocks.map((ce=>{var ze;return null!==(ze=this.props.types)&&void 0!==ze&&ze[ce.type]?ce:{...ce,type:this.props.defaultType}})),We=qe.slice(0,ce),Qe=qe.slice(ce);ze([...We,...Ye,...Qe]),Wt.clipboard.set(Oc,void 0),Ve&&Ve({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_pasted",{count:Ye.length}),icon:"su-copy"})}}}),Il=BlockCollection_applyDecoratedDescriptor(El.prototype,"removeBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onChange:qe,onDisplaySnackbar:Ye,movable:We,value:Qe}=ce.props;Qe&&(ze.forEach(((ze,Ve)=>{if(ce.hasMinimumReached)throw new Error("The minimum amount of blocks has already been reached!");const qe=ze-Ve;ce.expandedBlocks.splice(qe,1),ce.selectedBlocks.splice(qe,1),ce.generatedBlockIds.splice(qe,1)})),ce.generatedBlockIds.length<2&&"selectable"===ce.mode&&(ce.mode=We?"sortable":"static"),qe(Qe.filter(((ce,Ve)=>-1===ze.indexOf(Ve)))),Ve&&Ye&&Ye({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_removed",{count:ze.length}),icon:"su-trash-alt"}))}}}),zl=BlockCollection_applyDecoratedDescriptor(El.prototype,"duplicateBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,onDisplaySnackbar:qe,value:Ye}=this.props;if(!Ye)return;let We=[...Ye];ce.forEach(((ce,Ve)=>{if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");const qe=ze+Ve;this.expandedBlocks.splice(qe,0,!0),this.selectedBlocks.splice(qe,0,!1),this.generatedBlockIds.splice(qe,0,++Mc.idCounter);const Ye=We.slice(0,qe),Qe=We.slice(qe);We=[...Ye,{...Object(Lt.toJS)(We[ce])},...Qe]})),Ve(We),qe&&qe({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_duplicated",{count:ce.length}),icon:"su-duplicate"})}}}),Fl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleSortEnd",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:qe,onSortEnd:Ye,value:We}=this.props;this.expandedBlocks=Object(Wt.arrayMove)(this.expandedBlocks,Ve,ze),this.selectedBlocks=Object(Wt.arrayMove)(this.selectedBlocks,Ve,ze),this.generatedBlockIds=Object(Wt.arrayMove)(this.generatedBlockIds,Ve,ze),qe(Object(Wt.arrayMove)(We,Ve,ze)),Ye&&Ye(Ve,ze)}}}),Bl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleCollapse",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Nl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleExpand",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),Vl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleSelect",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!0}}}),Hl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleUnselect",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!1}}}),Ul=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleTypeChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(Lt.toJS)(qe);Ye[ze].type=ce,Ve(Ye)}}}),BlockCollection_applyDecoratedDescriptor(El.prototype,"hasMaximumReached",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"hasMaximumReached"),El.prototype),BlockCollection_applyDecoratedDescriptor(El.prototype,"hasMinimumReached",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"hasMinimumReached"),El.prototype),BlockCollection_applyDecoratedDescriptor(El.prototype,"blockActions",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"blockActions"),El.prototype),Wl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarCancel",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{movable:ce}=this.props;this.mode=ce?"sortable":"static",this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),$l=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleClickSelectMultiple",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mode="selectable"}}}),ec=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarSelectAll",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!0}))}}}),nc=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarUnselectAll",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),xl=El))||xl;var Lc,jc,Ic,Fc=Mc,Nc=Ve(112),Vc=Ve(705);function snackbarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let qc=(Lc=Lt.observable.shallow,jc=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="messages",qe=this,(Ve=Ic)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.timeouts=[]}add(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.messages.push(ce),this.timeouts.push(null),ze&&(this.timeouts[this.messages.length-1]=setTimeout((()=>{this.remove(ce)}),ze))}remove(ce){const ze=this.messages.indexOf(ce);-1!==ze&&(this.timeouts[ze]&&clearTimeout(this.timeouts[ze]),this.timeouts.splice(ze,1),this.messages.splice(ze,1))}clear(){this.messages=[],this.timeouts.forEach((ce=>{clearTimeout(ce)})),this.timeouts=[]}},Ic=snackbarStore_applyDecoratedDescriptor(jc.prototype,"messages",[Lc],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),snackbarStore_applyDecoratedDescriptor(jc.prototype,"add",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"add"),jc.prototype),snackbarStore_applyDecoratedDescriptor(jc.prototype,"remove",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"remove"),jc.prototype),snackbarStore_applyDecoratedDescriptor(jc.prototype,"clear",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"clear"),jc.prototype),jc);var Gc,Kc,Jc,Qc,ed,td,sd,ld,cd=new qc,dd=Ve(113);class ud extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:qe}=this.props;qe(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onFieldFinish:We,onSuccess:Qe,router:Xe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt}=this.props;return Ye.a.createElement(Nc.a,{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onChange:this.handleChange,onFieldFinish:We,onSuccess:Qe,router:Xe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}ud.defaultProps={showAllErrors:!1};const fd='The "block" field type needs at least one type to be configured!',md="sulu.block_preview",yd="settings";Object(Tt.b)((Kc=class extends Ye.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Jc,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Qc,this),FieldBlocks_initializerDefineProperty(this,"value",ed,this),FieldBlocks_initializerDefineProperty(this,"setValue",td,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:qe}=this.props,Ye=this.value;if(!Ye)return;const We=Object(Lt.toJS)(Ye);ts.a.set(We[ce],"/"+ze,Ve),this.setValue(We),qe(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:qe}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!qe)throw new Error(fd);if(qe[ce])return qe[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!qe[ze])throw new Error('The default type should exist in block "'+Ve+'".');return qe[ze]},this.renderBlockContent=(ce,ze,Ve,qe)=>qe?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:qe,dataPath:We,error:Qe,formInspector:Xe,onFinish:ot,onSuccess:st,router:mt,schemaPath:gt,showAllErrors:yt}=this.props,bt=this.getBlockSchemaType(ze),vt=Object(Lt.toJS)(Qe);return Ye.a.createElement(ud,{data:qe,dataPath:We+"/"+Ve,errors:vt&&vt.length>Ve&&vt[Ve]?vt[Ve]:void 0,formInspector:Xe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:ot,onSuccess:st,router:mt,schema:bt.form,schemaPath:gt+"/types/"+ze+"/form",showAllErrors:yt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const We=this.getBlockSchemaType(ze),Qe=this.removeSections(We.form),Xe=Object.keys(Qe).filter((ze=>{const Ve=Qe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===md))})).sort(((ce,ze)=>{const Ve=Qe[ce].tags,qe=Qe[ze].tags;if(!Ve||!qe)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const Ye=Ve.find((ce=>ce.name===md)),We=qe.find((ce=>ce.name===md));if(!Ye||!We)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(We.priority||0)-(Ye.priority||0)}));if(0===Xe.length)for(const ze of Uo.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Qe))if(Qe[Ve].type===ze&&ce[Ve]){Xe.push(Ve);break}if(Xe.length>=3)break}return Ye.a.createElement(qe.Fragment,null,Xe.map((ze=>Uo.has(Qe[ze].type)&&ce[ze]&&Ye.a.createElement(qe.Fragment,{key:ze},Uo.get(Qe[ze].type).transform(ce[ze],Qe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",sd,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},this.handleDisplaySnackbar=ce=>{cd.add(ce,2500)},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",ld,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:qe}=this;if(!Ve||null==qe||!ze)return;const Ye=[...ze.slice(0,qe),{...ze[qe],[yd]:Ve.data},...ze.slice(qe+1)];this.setValue(Ye),ce(Ye)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Nc.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:qe,value:Ye}=this.props,{types:We}=ce;if($o()(Object(Lt.toJS)(ce.value),Object(Lt.toJS)(Ye))||this.setValue(Ye),!qe||!We)throw new Error(fd);let Qe=Object(Lt.toJS)(Ye);if(Qe&&qe!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Qe=Qe.map((ce=>qe[ce.type]?ce:{...ce,type:ze}))}$o()(Object(Lt.toJS)(Ye),Qe)||Ve(Qe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get pasteButtonText(){const{schemaOptions:{paste_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "paste_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,qe)=>{const Ye="/"+ce+qe;if(!ts.a.has(ze,Ye))return Ve;const We=ts.a.get(ze,Ye);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(qe+"/items/"),Ve);const Qe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Qe&&(Ve["/settings/"+qe]=Qe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(ts.a.has(ce,Ve)&&ts.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:qe,types:We}=this.props,Qe=this.value||[],Xe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!We)throw new Error(fd);const ot=Object.keys(We).reduce(((ce,ze)=>(ce[ze]=We[ze].title,ce)),{});return Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement(Fc,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:qe,movable:this.movable,onChange:this.handleBlocksChange,onDisplaySnackbar:this.handleDisplaySnackbar,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,pasteButtonText:this.pasteButtonText,renderBlockContent:this.renderBlockContent,types:ot,value:Qe}),void 0!==this.openedBlockSettingsIndex&&Xe&&Ye.a.createElement(Vc.a,{confirmDisabled:!Xe.dirty,confirmText:Object(Pt.b)("sulu_admin.apply"),formStore:Xe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Xe,size:"small",title:Object(Pt.b)("sulu_admin.block_settings")}))}},Jc=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"openedBlockSettingsIndex",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qc=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"blockSettingsFormStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ed=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"value",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"componentDidMount",[Lt.action],Object.getOwnPropertyDescriptor(Kc.prototype,"componentDidMount"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"settingsFormKey",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"settingsFormKey"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"addButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"addButtonText"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"pasteButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"pasteButtonText"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"collapsable",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"collapsable"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"movable",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"movable"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"iconsMapping",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"iconsMapping"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"icons",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"icons"),Kc.prototype),td=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"setValue",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),sd=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"handleSettingsClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Nc.c.createFromFormKey(Ve,{...this.value[ce][yd]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),ld=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"closeSettingsOverlay",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),Gc=Kc));Ve(10);Ve(399);var bd=new class{constructor(){this.clear()}clear(){this.views={},this.viewConfigs={}}add(ce,ze,Ve){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze,this.viewConfigs[ce]=Ve||{}}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}getConfig(ce){if(ce in this.viewConfigs)return this.viewConfigs[ce];throw new Error('There is not view config for the key "'+ce+'" registered')}};var vd=Ve(53),_d="view--QugXb0TBe5";class wd extends Ye.a.Component{render(){const{children:ce}=this.props;return Ye.a.createElement("div",{className:_d},ce)}}var Rd,Cd,Dd,kd=wd;Object(Tt.b)((Cd=class extends Ye.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="loginCount",qe=this,(Ve=Dd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:qe,route:Ye}=ce;return Object(dd.a)(ze,Ve)!==Object(dd.a)(Ye,qe)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(Lt.reaction)((()=>vd.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,qe=bd.get(ce.type),We=bd.getConfig(ce.type);let Qe=Object(dd.a)(ce,Ve.attributes)||"";qe.remountViewOnLogin&&(Qe=Qe+"__"+this.loginCount);const Xe=Ye.a.createElement(qe,{isRootView:!ce.parent,key:Qe,route:ce,router:Ve},(ce=>ze?Ye.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Xe):We.disableDefaultSpacing?Xe:Ye.a.createElement(kd,null,Xe)}render(){return this.renderView(this.props.router.route)}},Dd=function ViewRenderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Cd.prototype,"loginCount",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Rd=Cd));var Sd,xd,Ed,Od;function sidebarStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function sidebarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Td=["small","medium","large"];var Ad=new(xd=sidebarStore_applyDecoratedDescriptor((Sd=class{constructor(){sidebarStore_initializerDefineProperty(this,"view",xd,this),sidebarStore_initializerDefineProperty(this,"props",Ed,this),sidebarStore_initializerDefineProperty(this,"size",Od,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||Td,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=Td,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ed=sidebarStore_applyDecoratedDescriptor(Sd.prototype,"props",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Od=sidebarStore_applyDecoratedDescriptor(Sd.prototype,"size",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"setConfig"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"clearConfig"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"enabled",[Lt.computed],Object.getOwnPropertyDescriptor(Sd.prototype,"enabled"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"setSize",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"setSize"),Sd.prototype),Sd);var Md,Ld=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}},Id="sidebar--pPa79zWXAx";Object(Tt.b)(Md=class extends Ye.a.Component{render(){if(!Ad.view||Ld.isDisabled(Ad.view))return null;const ce=Ld.get(Ad.view),{className:ze}=this.props,Ve=rs()(Id,ze);return Ye.a.createElement("aside",{className:Ve},Ye.a.createElement(ce,Ad.props))}}),Ve(231);var Fd,Bd,Nd=Ve(145),Vd=Ve(338);function ToolbarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Hd=(Bd=ToolbarStore_applyDecoratedDescriptor((Fd=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="config",qe=this,(Ve=Bd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.showSuccessDisposer=Object(Lt.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(Lt.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Qe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Qe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Qe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Qe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Fd.prototype,"setConfig"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Fd.prototype,"clearConfig"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"disableAll",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"disableAll"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"errors",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"errors"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"warnings",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"warnings"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"showSuccess",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"showSuccess"),Fd.prototype),Fd);const Yd="default";var Ud,Wd,$d,Gd,Kd=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new Hd;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}},Jd="locale--8mu8Ys2oZt";function Toolbar_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:Yd;Kd.hasStore(ce)?ze.toolbarStore=Kd.getStore(ce):ze.toolbarStore=Kd.createStore(ce)},Ve=this,qe="handleErrorSnackbarCloseClick",We=this,(Ye=$d)&&Object.defineProperty(Ve,qe,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:We,warnings:Qe}=this.toolbarStore,Xe=this.toolbarStore.getIconsConfig(),ot=this.toolbarStore.getItemsConfig(),st=this.toolbarStore.getLocaleConfig();return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Vd.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),Ye.a.createElement(Vd.a,{message:Qe[Qe.length-1],type:"warning",visible:Qe.length>0}),Ye.a.createElement(Nd.a,null,Ye.a.createElement(Nd.a.Controls,{grow:!0},!!ce&&Ye.a.createElement(Nd.a.Button,{disabled:!ce,icon:We?Zd:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:We}),!!this.backButtonConfig&&Ye.a.createElement(Nd.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&We?Zd:"su-angle-left",success:!ce&&We})),ot.length>0&&Ye.a.createElement(Nd.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),Ye.a.createElement(Nd.a.Controls,null,Xe.length>0&&Ye.a.createElement(Nd.a.Icons,null,Xe.map((ce=>Object(Lt.toJS)(ce)))),!!st&&Ye.a.createElement(Nd.a.Select,_extends({className:Jd,size:"small"},st)))))}},Gd.defaultProps={navigationOpen:!1},$d=Toolbar_applyDecoratedDescriptor((Wd=Gd).prototype,"handleErrorSnackbarCloseClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),Toolbar_applyDecoratedDescriptor(Wd.prototype,"disableAllButtons",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"disableAllButtons"),Wd.prototype),Toolbar_applyDecoratedDescriptor(Wd.prototype,"backButtonConfig",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"backButtonConfig"),Wd.prototype),Toolbar_applyDecoratedDescriptor(Wd.prototype,"itemsConfig",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"itemsConfig"),Wd.prototype),Ud=Wd));Ve(578);var xu,Hu,qu,Yu,Gu,Ku=Ve(201),Ju=Ve(193),Zu=Ve(54);function ResourceMultiSelect_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceMultiSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Qu=Object(Tt.b)(((Gu=class extends Ye.a.Component{constructor(ce){super(ce),ResourceMultiSelect_initializerDefineProperty(this,"resourceListStore",qu,this),ResourceMultiSelect_initializerDefineProperty(this,"createResourceListStore",Yu,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;$o()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:qe,noneSelectedText:We,onClose:Qe,values:Xe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Ye.a.createElement(Zu.a,{size:30}):Ye.a.createElement(Ku.a,{allSelectedText:ce,disabled:ze,noneSelectedText:We,onChange:this.handleChange,onClose:Qe,values:Xe},this.resourceListStore.data.map(((ce,ze)=>Ye.a.createElement(Ku.a.Option,{key:ze,value:ce[qe]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},qu=ResourceMultiSelect_applyDecoratedDescriptor((Hu=Gu).prototype,"resourceListStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yu=ResourceMultiSelect_applyDecoratedDescriptor(Hu.prototype,"createResourceListStore",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,qe={limit:"",...Ve};this.resourceListStore=new Ju.a(ze,qe,ce)}}}),xu=Hu))||xu,Xu=(Ve(552),Ve(290),Ve(382)),ep=(Ve(577),Ve(554)),tp=Ve(254),np=Ve(437)},function(ce,ze,Ve){"use strict";var qe=Ve(327);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return __extends})),Ve.d(ze,"a",(function(){return __assign})),Ve.d(ze,"b",(function(){return __awaiter})),Ve.d(ze,"d",(function(){return __generator})),Ve.d(ze,"e",(function(){return __spread})),Ve.d(ze,"f",(function(){return __spreadArray}));var extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,qe=arguments.length;Ve0&&Ye[Ye.length-1])||6!==Xe[0]&&2!==Xe[0])){We=0;continue}if(3===Xe[0]&&(!Ye||Xe[1]>Ye[0]&&Xe[1]0)&&!(qe=We.next()).done;)Qe.push(qe.value)}catch(ce){Ye={error:ce}}finally{try{qe&&!qe.done&&(Ve=We.return)&&Ve.call(We)}finally{if(Ye)throw Ye.error}}return Qe}function __spread(){for(var ce=[],ze=0;ze{let[ze,Ve]=ce;return[Ve,ze.charAt(0).toUpperCase()+ze.slice(1)]})));function getCode(ce){let ze;if("string"==typeof ce){if(ze=Xe[ce.toLowerCase()],!ze)throw new qe.a("keyboard-unknown-key",null,{key:ce})}else ze=ce.keyCode+(ce.altKey?Xe.alt:0)+(ce.ctrlKey?Xe.ctrl:0)+(ce.shiftKey?Xe.shift:0)+(ce.metaKey?Xe.cmd:0);return ze}function parseKeystroke(ce){return"string"==typeof ce&&(ce=splitKeystrokeText(ce)),ce.map((ce=>"string"==typeof ce?getEnvKeyCode(ce):ce)).reduce(((ce,ze)=>ze+ce),0)}function getEnvKeystrokeText(ce){let ze=parseKeystroke(ce);return Object.entries(Ye.a.isMac?We:Qe).reduce(((ce,Ve)=>{let[qe,Ye]=Ve;return ze&Xe[qe]&&(ze&=~Xe[qe],ce+=Ye),ce}),"")+(ze?ot[ze]:"")}function isArrowKeyCode(ce){return ce==Xe.arrowright||ce==Xe.arrowleft||ce==Xe.arrowup||ce==Xe.arrowdown}function getLocalizedArrowKeyCodeDirection(ce,ze){const Ve="ltr"===ze;switch(ce){case Xe.arrowleft:return Ve?"left":"right";case Xe.arrowright:return Ve?"right":"left";case Xe.arrowup:return"up";case Xe.arrowdown:return"down"}}function getEnvKeyCode(ce){if(ce.endsWith("!"))return getCode(ce.slice(0,-1));const ze=getCode(ce);return Ye.a.isMac&&ze==Xe.ctrl?Xe.cmd:ze}function isForwardArrowKeyCode(ce,ze){const Ve=getLocalizedArrowKeyCodeDirection(ce,ze);return"down"===Ve||"right"===Ve}function splitKeystrokeText(ce){return ce.split("+").map((ce=>ce.trim()))}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(371);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _getEmitterListenedTo})),Ve.d(ze,"b",(function(){return _setEmitterId}));var qe=Ve(166),Ye=Ve(114),We=Ve(198),Qe=Ve(669),Xe=(Ve(325),Ve(8));const ot=Symbol("listeningTo"),st=Symbol("emitterId"),mt={on(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,ce,ze,Ve)},once(ce,ze,Ve){let qe=!1;this.listenTo(this,ce,(function(ce){if(!qe){qe=!0,ce.off();for(var Ve=arguments.length,Ye=new Array(Ve>1?Ve-1:0),We=1;We3&&void 0!==arguments[3]?arguments[3]:{};this[ot]||(this[ot]={});const Qe=this[ot];_getEmitterId(ce)||_setEmitterId(ce);const Xe=_getEmitterId(ce);(qe=Qe[Xe])||(qe=Qe[Xe]={emitter:ce,callbacks:{}}),(Ye=qe.callbacks[ze])||(Ye=qe.callbacks[ze]=[]),Ye.push(Ve),addEventListener(this,ce,ze,Ve,We)},stopListening(ce,ze,Ve){const qe=this[ot];let Ye=ce&&_getEmitterId(ce);const We=qe&&Ye&&qe[Ye],Qe=We&&ze&&We.callbacks[ze];if(!(!qe||ce&&!We||ze&&!Qe))if(Ve){removeEventListener(this,ce,ze,Ve);-1!==Qe.indexOf(Ve)&&(1===Qe.length?delete We.callbacks[ze]:removeEventListener(this,ce,ze,Ve))}else if(Qe){for(;Ve=Qe.pop();)removeEventListener(this,ce,ze,Ve);delete We.callbacks[ze]}else if(We){for(ze in We.callbacks)this.stopListening(ce,ze);delete qe[Ye]}else{for(Ye in qe)this.stopListening(qe[Ye].emitter);delete this[ot]}},fire(ce){try{const We=ce instanceof qe.a?ce:new qe.a(this,ce),Qe=We.name;let Xe=getCallbacksForEvent(this,Qe);We.path.push(this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye{this._delegations||(this._delegations=new Map),ze.forEach((ze=>{const qe=this._delegations.get(ze);qe?qe.set(ce,Ve):this._delegations.set(ze,new Map([[ce,Ve]]))}))}}},stopDelegating(ce,ze){if(this._delegations)if(ce)if(ze){const Ve=this._delegations.get(ce);Ve&&Ve.delete(ze)}else this._delegations.delete(ce);else this._delegations.clear()},_addEventListener(ce,ze,Ve){createEventNamespace(this,ce);const qe=getCallbacksListsForNamespace(this,ce),Ye={callback:ze,priority:We.a.get(Ve.priority)};for(const ce of qe)Object(Qe.a)(ce,Ye)},_removeEventListener(ce,ze){const Ve=getCallbacksListsForNamespace(this,ce);for(const ce of Ve)for(let Ve=0;Ve-1?getCallbacksForEvent(ce,ze.substr(0,ze.lastIndexOf(":"))):null}function fireDelegatedEvents(ce,ze,Ve){for(let[Ye,We]of ce){We?"function"==typeof We&&(We=We(ze.name)):We=ze.name;const ce=new qe.a(ze.source,We);ce.path=[...ze.path],Ye.fire(ce,...Ve)}}function addEventListener(ce,ze,Ve,qe,Ye){ze._addEventListener?ze._addEventListener(Ve,qe,Ye):ce._addEventListener.call(ze,Ve,qe,Ye)}function removeEventListener(ce,ze,Ve,qe){ze._removeEventListener?ze._removeEventListener(Ve,qe):ce._removeEventListener.call(ze,Ve,qe)}ze.c=mt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot=Ve(54),st={button:"button--aQ4kqYFgtY",primary:"primary--rAc1127T49",secondary:"secondary--9YWjfkD8cS","button-icon":"button-icon--gm1eDNsoNU",buttonIcon:"button-icon--gm1eDNsoNU","dropdown-icon":"dropdown-icon--pPL6G+O2hD",dropdownIcon:"dropdown-icon--pPL6G+O2hD",link:"link--MOxtS4wP-j","button-text":"button-text--Z6Pq57AZwW",buttonText:"button-text--Z6Pq57AZwW",text:"text--ZfJcraYIUY",icon:"icon--p9orQM2SSC",active:"active--pjhRqVzIRN","has-text":"has-text--2yXwasXQCa",hasText:"has-text--2yXwasXQCa",loader:"loader--1cbqnuZeeT",loading:"loading--fp6GW1Yjns"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:qe,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Qe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!qe,[ze||""]:ce&&ze},We),St=Qe()(st.buttonIcon,yt);return Ye.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&Ye.a.createElement(Xe.a,{className:St,name:gt}),qe&&Ye.a.createElement("span",{className:st.buttonText},qe),wt&&Ye.a.createElement(Xe.a,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&Ye.a.createElement("div",{className:st.loader},Ye.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(24),Ye=Ve(240);class We{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=ce.clone(),this.end=ze?ze.clone():ce.clone()}*[Symbol.iterator](){yield*new Ye.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"}),ze=this.end.getLastMatchingPosition(enlargeTrimSkip);return ce.parent.is("$text")&&ce.isAtStart&&(ce=qe.a._createBefore(ce.parent)),ze.parent.is("$text")&&ze.isAtEnd&&(ze=qe.a._createAfter(ze.parent)),new We(ce,ze)}getTrimmed(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip);if(ce.isAfter(this.end)||ce.isEqual(this.end))return new We(ce,ce);let ze=this.end.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"});const Ve=ce.nodeAfter,Ye=ze.nodeBefore;return Ve&&Ve.is("$text")&&(ce=new qe.a(Ve,0)),Ye&&Ye.is("$text")&&(ze=new qe.a(Ye,Ye.data.length)),new We(ce,ze)}isEqual(ce){return this==ce||this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),qe=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&qe}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new We(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new We(ce.end,this.end))):ze.push(this.clone()),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new We(ze,Ve)}return null}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new Ye.a(ce)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let ce=this.start.nodeAfter,ze=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(ce=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(ze=this.end.parent.previousSibling),ce&&ce.is("element")&&ce===ze?ce:null}clone(){return new We(this.start,this.end)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new Ye.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new Ye.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}is(ce){return"range"===ce||"view:range"===ce}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}static _createFromParentsAndOffsets(ce,ze,Ve,Ye){return new this(new qe.a(ce,ze),new qe.a(Ve,Ye))}static _createFromPositionAndShift(ce,ze){const Ve=ce,qe=ce.getShiftedBy(ze);return ze>0?new this(Ve,qe):new this(qe,Ve)}static _createIn(ce){return this._createFromParentsAndOffsets(ce,0,ce,ce.childCount)}static _createOn(ce){const ze=ce.is("$textProxy")?ce.offsetSize:1;return this._createFromPositionAndShift(qe.a._createBefore(ce),ze)}}function enlargeTrimSkip(ce){return!(!ce.item.is("attributeElement")&&!ce.item.is("uiElement"))}},function(ce,ze,Ve){"use strict";var qe=Ve(39),Ye=Ve(8),We=Ve(71),Qe=Ve(722);const Xe=Symbol("observableProperties"),ot=Symbol("boundObservables"),st=Symbol("boundProperties"),mt=Symbol("decoratedMethods"),gt=Symbol("decoratedOriginal"),yt={set(ce,ze){if(Object(We.a)(ce))return void Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])}),this);initObservable(this);const Ve=this[Xe];if(ce in this&&!Ve.has(ce))throw new Ye.a("observable-set-cannot-override",this);Object.defineProperty(this,ce,{enumerable:!0,configurable:!0,get:()=>Ve.get(ce),set(ze){const qe=Ve.get(ce);let Ye=this.fire("set:"+ce,ce,ze,qe);void 0===Ye&&(Ye=ze),qe===Ye&&Ve.has(ce)||(Ve.set(ce,Ye),this.fire("change:"+ce,ce,Ye,qe))}}),this[ce]=ze},bind(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if(qe.has(ce))throw new Ye.a("observable-bind-rebind",this)}));const We=new Map;return ze.forEach((ce=>{const ze={property:ce,to:[]};qe.set(ce,ze),We.set(ce,ze)})),{to:bindTo,toMany:bindToMany,_observable:this,_bindProperties:ze,_to:[],_bindings:We}},unbind(){if(!this[Xe])return;const ce=this[st],ze=this[ot];for(var Ve=arguments.length,qe=new Array(Ve),We=0;We{const qe=ce.get(Ve);if(!qe)return;let Ye,We,Qe,Xe;qe.to.forEach((ce=>{Ye=ce[0],We=ce[1],Qe=ze.get(Ye),Xe=Qe[We],Xe.delete(qe),Xe.size||delete Qe[We],Object.keys(Qe).length||(ze.delete(Ye),this.stopListening(Ye,"change"))})),ce.delete(Ve)}))}else ze.forEach(((ce,ze)=>{this.stopListening(ze,"change")})),ze.clear(),ce.clear()},decorate(ce){const ze=this[ce];if(!ze)throw new Ye.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:ce});this.on(ce,((ce,Ve)=>{ce.return=ze.apply(this,Ve)})),this[ce]=function(){for(var ze=arguments.length,Ve=new Array(ze),qe=0;qe1)throw new Ye.a("observable-bind-to-no-callback",this);if(Ve>1&&ce.callback)throw new Ye.a("observable-bind-to-extra-callback",this);var qe;ce.to.forEach((ce=>{if(ce.properties.length&&ce.properties.length!==Ve)throw new Ye.a("observable-bind-to-properties-length",this);ce.properties.length||(ce.properties=this._bindProperties)})),this._to=ce.to,ce.callback&&(this._bindings.get(ze[0]).callback=ce.callback),qe=this._observable,this._to.forEach((ce=>{const ze=qe[ot];let Ve;ze.get(ce.observable)||qe.listenTo(ce.observable,"change",((Ye,We)=>{Ve=ze.get(ce.observable)[We],Ve&&Ve.forEach((ce=>{updateBoundObservableProperty(qe,ce.property)}))}))})),updateBindToBound(this),this._bindProperties.forEach((ce=>{updateBoundObservableProperty(this._observable,ce)}))}function bindToMany(ce,ze,Ve){if(this._bindings.size>1)throw new Ye.a("observable-bind-to-many-not-one-binding",this);this.to(...getBindingTargets(ce,ze),Ve)}function getBindingTargets(ce,ze){const Ve=ce.map((ce=>[ce,ze]));return Array.prototype.concat.apply([],Ve)}function isStringArray(ce){return ce.every((ce=>"string"==typeof ce))}function parseBindToArgs(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if("string"==typeof ce)We.properties.push(ce);else{if("object"!=typeof ce)throw new Ye.a("observable-bind-to-parse-error",null);We={observable:ce,properties:[]},qe.to.push(We)}})),qe}function updateBoundObservables(ce,ze,Ve,qe){const Ye=ce[ot],We=Ye.get(Ve),Qe=We||{};Qe[qe]||(Qe[qe]=new Set),Qe[qe].add(ze),We||Ye.set(Ve,Qe)}function updateBindToBound(ce){let ze;ce._bindings.forEach(((Ve,qe)=>{ce._to.forEach((Ye=>{ze=Ye.properties[Ve.callback?0:ce._bindProperties.indexOf(qe)],Ve.to.push([Ye.observable,ze]),updateBoundObservables(ce._observable,Ve,Ye.observable,ze)}))}))}function updateBoundObservableProperty(ce,ze){const Ve=ce[st].get(ze);let qe;Ve.callback?qe=Ve.callback.apply(ce,Ve.to.map((ce=>ce[0][ce[1]]))):(qe=Ve.to[0],qe=qe[0][qe[1]]),Object.prototype.hasOwnProperty.call(ce,ze)?ce[ze]=qe:ce.set(ze,qe)}Object(Qe.a)(yt,qe.c),yt.stopListening=function(ce,ze,Ve){if(!ce&&this[mt]){for(const ce of this[mt])this[ce]=this[ce][gt];delete this[mt]}qe.c.stopListening.call(this,ce,ze,Ve)},ze.a=yt},function(ce,ze,Ve){"use strict";function _assertThisInitialized(ce){if(void 0===ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}Ve.d(ze,"a",(function(){return _assertThisInitialized}))},function(ce,ze,Ve){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ce){console.error(ce)}}(),ce.exports=Ve(1153)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(103),Ye=Ve(1),We=Ve(133),Qe=Ve.n(We),Xe=Ve(289);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Xe.a)(ce):ce instanceof Object?transformParameters(ce):Object(Ye.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const qe=Object(Ye.toJS)(ce[Ve]);return ze[Ve]=transformParameter(qe),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Qe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return qe.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return qe.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return qe.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return qe.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return qe.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qe.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return qe.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return qe.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Xe.a})),Ve.d(ze,"e",(function(){return yt})),Ve.d(ze,"k",(function(){return bt.c})),Ve.d(ze,"j",(function(){return bt.b})),Ve.d(ze,"i",(function(){return bt.a})),Ve.d(ze,"a",(function(){return Dt})),Ve.d(ze,"c",(function(){return St})),Ve.d(ze,"d",(function(){return Lt})),Ve.d(ze,"f",(function(){return Ht})),Ve.d(ze,"g",(function(){return Ut.a})),Ve.d(ze,"l",(function(){return enableToolbarKeyboardFocus})),Ve.d(ze,"m",(function(){return Wt.a})),Ve.d(ze,"h",(function(){return ot.a}));Ve(363);var qe=Ve(132),Ye=Ve(284),We=Ve(635);class Qe extends Ye.a{constructor(ce){super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),this.locale=ce}attachToDom(){this._bodyCollectionContainer=new qe.a({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let ce=document.querySelector(".ck-body-wrapper");ce||(ce=Object(We.a)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(ce)),ce.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const ce=document.querySelector(".ck-body-wrapper");ce&&0==ce.childElementCount&&ce.remove()}}var Xe=Ve(52);Ve(448);var ot=Ve(29);Xe.a;var st=Ve(117),mt=(Ve(285),Ve(153));ot.a;Ve(445);var gt=Ve(679);class yt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new mt.a,this.focusTracker=new st.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",ze.to("class"),ze.if("isVisible","ck-hidden",(ce=>!ce)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((ce,ze)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),ze())})),this.keystrokes.set("arrowleft",((ce,ze)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),ze())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const ce=new Xe.a;return ce.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),ce.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),ce.delegate("execute").to(this),ce}_createArrowView(){const ce=new Xe.a,ze=ce.bindTemplate;return ce.icon=gt.a,ce.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":ze.to("isOn",(ce=>String(ce)))}}),ce.bind("isEnabled").to(this),ce.bind("label").to(this),ce.bind("tooltip").to(this),ce.delegate("execute").to(this,"open"),ce}}var bt=Ve(195);class vt extends ot.a{constructor(ce){super(ce),this.body=new Qe(ce)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var wt=Ve(114);class Ct extends ot.a{constructor(ce){super(ce),this.set("text"),this.set("for"),this.id=`ck-editor__label_${Object(wt.a)()}`;const ze=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:ze.to("for")},children:[{text:ze.to("text")}]})}}class Dt extends vt{constructor(ce){super(ce),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:ce.uiLanguageDirection,lang:ce.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const ce=this.t,ze=new Ct;return ze.text=ce("Rich Text Editor"),ze.extendTemplate({attributes:{class:"ck-voice-label"}}),ze}}class kt extends ot.a{constructor(ce,ze,Ve){super(ce),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:ce.contentLanguage,dir:ce.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=Ve,this._hasExternalElement=!!this._editableElement,this._editingView=ze}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const ce=this._editingView;function update(ze){ce.change((Ve=>{const qe=ce.document.getRoot(ze.name);Ve.addClass(ze.isFocused?"ck-focused":"ck-blurred",qe),Ve.removeClass(ze.isFocused?"ck-blurred":"ck-focused",qe)}))}ce.isRenderingInProgress?function updateAfterRender(ze){ce.once("change:isRenderingInProgress",((ce,Ve,qe)=>{qe?updateAfterRender(ze):update(ze)}))}(this):update(this)}}class St extends kt{constructor(ce,ze,Ve){super(ce,ze,Ve),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const ce=this._editingView,ze=this.t;ce.change((Ve=>{const qe=ce.document.getRoot(this.name);Ve.setAttribute("aria-label",ze("Rich Text Editor, %0",this.name),qe)}))}}ot.a;Ve(296);ot.a;ot.a;ot.a;Ve(287),Ve(295);var xt=Ve(360);xt.a;var Et=Ve(25),Pt=Ve(42),Tt=Ve(722);class Lt{constructor(ce,ze){ze&&Object(Tt.a)(this,ze),ce&&this.set(ce)}}Object(Et.a)(Lt,Pt.a);Ve(180),Ve(138);var Ft=Ve(77),Bt=Ve(152);const Vt=Object(Bt.a)("px");class Ht extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new qe.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:ze.to("isSticky",(ce=>ce?"block":"none")),height:ze.to("isSticky",(ce=>ce?Vt(this._panelRect.height):null))}}}).render(),this._contentPanel=new qe.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",ze.if("isSticky","ck-sticky-panel__content_sticky"),ze.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:ze.to("isSticky",(ce=>ce?Vt(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ze.to("_hasViewportTopOffset",(ce=>ce?Vt(this.viewportTopOffset):null)),bottom:ze.to("_isStickyToTheLimiter",(ce=>ce?Vt(this.limiterBottomOffset):null)),marginLeft:ze.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Ft.a.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const ce=this._panelRect=this._contentPanel.getBoundingClientRect();let ze;this.limiterElement?(ze=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&ze.top{qe.isFocused&&!Ye.focusTracker.isFocused&&(We&&We(),Ye.focus(),ze())})),Ye.keystrokes.set("Esc",((ce,Ve)=>{Ye.focusTracker.isFocused&&(ze.focus(),Qe&&Qe(),Ve())}))}var Wt=Ve(286),Jt=Ve(31);Ve(55),Ve(695),Ve(282),Ve(229);Object(Bt.a)("px");Jt.a;Ve(677);Object(Bt.a)("px");Xe.a;Ve(406);Object(Bt.a)("px");Jt.a},function(ce,ze,Ve){"use strict";var qe=Ve(222);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(696);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(78),Ye=Ve(1),We=Ve(133),Qe=Ve.n(We),Xe=Ve(366);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Xe.a)(ce):ce instanceof Object?transformParameters(ce):Object(Ye.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const qe=Object(Ye.toJS)(ce[Ve]);return ze[Ve]=transformParameter(qe),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Qe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return qe.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return qe.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return qe.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return qe.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return qe.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qe.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return qe.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return qe.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.or=ze.and=ze.not=ze.CodeGen=ze.operators=ze.varKinds=ze.ValueScopeName=ze.ValueScope=ze.Scope=ze.Name=ze.regexpCode=ze.stringify=ze.getProperty=ze.nil=ze.strConcat=ze.str=ze._=void 0;const qe=Ve(491),Ye=Ve(889);var We=Ve(491);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return We._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return We.str}}),Object.defineProperty(ze,"strConcat",{enumerable:!0,get:function(){return We.strConcat}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return We.nil}}),Object.defineProperty(ze,"getProperty",{enumerable:!0,get:function(){return We.getProperty}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return We.stringify}}),Object.defineProperty(ze,"regexpCode",{enumerable:!0,get:function(){return We.regexpCode}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return We.Name}});var Qe=Ve(889);Object.defineProperty(ze,"Scope",{enumerable:!0,get:function(){return Qe.Scope}}),Object.defineProperty(ze,"ValueScope",{enumerable:!0,get:function(){return Qe.ValueScope}}),Object.defineProperty(ze,"ValueScopeName",{enumerable:!0,get:function(){return Qe.ValueScopeName}}),Object.defineProperty(ze,"varKinds",{enumerable:!0,get:function(){return Qe.varKinds}}),ze.operators={GT:new qe._Code(">"),GTE:new qe._Code(">="),LT:new qe._Code("<"),LTE:new qe._Code("<="),EQ:new qe._Code("==="),NEQ:new qe._Code("!=="),NOT:new qe._Code("!"),OR:new qe._Code("||"),AND:new qe._Code("&&"),ADD:new qe._Code("+")};class Xe{optimizeNodes(){return this}optimizeNames(ce,ze){return this}}class ot extends Xe{constructor(ce,ze,Ve){super(),this.varKind=ce,this.name=ze,this.rhs=Ve}render({es5:ce,_n:ze}){const Ve=ce?Ye.varKinds.var:this.varKind,qe=void 0===this.rhs?"":` = ${this.rhs}`;return`${Ve} ${this.name}${qe};`+ze}optimizeNames(ce,ze){if(ce[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,ce,ze)),this}get names(){return this.rhs instanceof qe._CodeOrName?this.rhs.names:{}}}class st extends Xe{constructor(ce,ze,Ve){super(),this.lhs=ce,this.rhs=ze,this.sideEffects=Ve}render({_n:ce}){return`${this.lhs} = ${this.rhs};`+ce}optimizeNames(ce,ze){if(!(this.lhs instanceof qe.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,ce,ze),this}get names(){return addExprNames(this.lhs instanceof qe.Name?{}:{...this.lhs.names},this.rhs)}}class mt extends st{constructor(ce,ze,Ve,qe){super(ce,Ve,qe),this.op=ze}render({_n:ce}){return`${this.lhs} ${this.op}= ${this.rhs};`+ce}}class gt extends Xe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`${this.label}:`+ce}}class yt extends Xe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`break${this.label?` ${this.label}`:""};`+ce}}class bt extends Xe{constructor(ce){super(),this.error=ce}render({_n:ce}){return`throw ${this.error};`+ce}get names(){return this.error.names}}class vt extends Xe{constructor(ce){super(),this.code=ce}render({_n:ce}){return`${this.code};`+ce}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ce,ze){return this.code=optimizeExpr(this.code,ce,ze),this}get names(){return this.code instanceof qe._CodeOrName?this.code.names:{}}}class wt extends Xe{constructor(ce=[]){super(),this.nodes=ce}render(ce){return this.nodes.reduce(((ze,Ve)=>ze+Ve.render(ce)),"")}optimizeNodes(){const{nodes:ce}=this;let ze=ce.length;for(;ze--;){const Ve=ce[ze].optimizeNodes();Array.isArray(Ve)?ce.splice(ze,1,...Ve):Ve?ce[ze]=Ve:ce.splice(ze,1)}return ce.length>0?this:void 0}optimizeNames(ce,ze){const{nodes:Ve}=this;let qe=Ve.length;for(;qe--;){const Ye=Ve[qe];Ye.optimizeNames(ce,ze)||(subtractNames(ce,Ye.names),Ve.splice(qe,1))}return Ve.length>0?this:void 0}get names(){return this.nodes.reduce(((ce,ze)=>addNames(ce,ze.names)),{})}}class Ct extends wt{render(ce){return"{"+ce._n+super.render(ce)+"}"+ce._n}}class Dt extends wt{}class kt extends Ct{}kt.kind="else";class St extends Ct{constructor(ce,ze){super(ze),this.condition=ce}render(ce){let ze=`if(${this.condition})`+super.render(ce);return this.else&&(ze+="else "+this.else.render(ce)),ze}optimizeNodes(){super.optimizeNodes();const ce=this.condition;if(!0===ce)return this.nodes;let ze=this.else;if(ze){const ce=ze.optimizeNodes();ze=this.else=Array.isArray(ce)?new kt(ce):ce}return ze?!1===ce?ze instanceof St?ze:ze.nodes:this.nodes.length?this:new St(not(ce),ze instanceof St?[ze]:ze.nodes):!1!==ce&&this.nodes.length?this:void 0}optimizeNames(ce,ze){var Ve;if(this.else=null===(Ve=this.else)||void 0===Ve?void 0:Ve.optimizeNames(ce,ze),super.optimizeNames(ce,ze)||this.else)return this.condition=optimizeExpr(this.condition,ce,ze),this}get names(){const ce=super.names;return addExprNames(ce,this.condition),this.else&&addNames(ce,this.else.names),ce}}St.kind="if";class xt extends Ct{}xt.kind="for";class Et extends xt{constructor(ce){super(),this.iteration=ce}render(ce){return`for(${this.iteration})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iteration=optimizeExpr(this.iteration,ce,ze),this}get names(){return addNames(super.names,this.iteration.names)}}class Pt extends xt{constructor(ce,ze,Ve,qe){super(),this.varKind=ce,this.name=ze,this.from=Ve,this.to=qe}render(ce){const ze=ce.es5?Ye.varKinds.var:this.varKind,{name:Ve,from:qe,to:We}=this;return`for(${ze} ${Ve}=${qe}; ${Ve}<${We}; ${Ve}++)`+super.render(ce)}get names(){const ce=addExprNames(super.names,this.from);return addExprNames(ce,this.to)}}class Tt extends xt{constructor(ce,ze,Ve,qe){super(),this.loop=ce,this.varKind=ze,this.name=Ve,this.iterable=qe}render(ce){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iterable=optimizeExpr(this.iterable,ce,ze),this}get names(){return addNames(super.names,this.iterable.names)}}class Lt extends Ct{constructor(ce,ze,Ve){super(),this.name=ce,this.args=ze,this.async=Ve}render(ce){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ce)}}Lt.kind="func";class Ft extends wt{render(ce){return"return "+super.render(ce)}}Ft.kind="return";class Bt extends Ct{render(ce){let ze="try"+super.render(ce);return this.catch&&(ze+=this.catch.render(ce)),this.finally&&(ze+=this.finally.render(ce)),ze}optimizeNodes(){var ce,ze;return super.optimizeNodes(),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ze=this.finally)||void 0===ze||ze.optimizeNodes(),this}optimizeNames(ce,ze){var Ve,qe;return super.optimizeNames(ce,ze),null===(Ve=this.catch)||void 0===Ve||Ve.optimizeNames(ce,ze),null===(qe=this.finally)||void 0===qe||qe.optimizeNames(ce,ze),this}get names(){const ce=super.names;return this.catch&&addNames(ce,this.catch.names),this.finally&&addNames(ce,this.finally.names),ce}}class Vt extends Ct{constructor(ce){super(),this.error=ce}render(ce){return`catch(${this.error})`+super.render(ce)}}Vt.kind="catch";class Ht extends Ct{render(ce){return"finally"+super.render(ce)}}Ht.kind="finally";function addNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)+(ze[Ve]||0);return ce}function addExprNames(ce,ze){return ze instanceof qe._CodeOrName?addNames(ce,ze.names):ce}function optimizeExpr(ce,ze,Ve){return ce instanceof qe.Name?replaceName(ce):function canOptimize(ce){return ce instanceof qe._Code&&ce._items.some((ce=>ce instanceof qe.Name&&1===ze[ce.str]&&void 0!==Ve[ce.str]))}(ce)?new qe._Code(ce._items.reduce(((ce,ze)=>(ze instanceof qe.Name&&(ze=replaceName(ze)),ze instanceof qe._Code?ce.push(...ze._items):ce.push(ze),ce)),[])):ce;function replaceName(ce){const qe=Ve[ce.str];return void 0===qe||1!==ze[ce.str]?ce:(delete ze[ce.str],qe)}}function subtractNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)-(ze[Ve]||0)}function not(ce){return"boolean"==typeof ce||"number"==typeof ce||null===ce?!ce:qe._`!${par(ce)}`}ze.CodeGen=class{constructor(ce,ze={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ze,_n:ze.lines?"\n":""},this._extScope=ce,this._scope=new Ye.Scope({parent:ce}),this._nodes=[new Dt]}toString(){return this._root.render(this.opts)}name(ce){return this._scope.name(ce)}scopeName(ce){return this._extScope.name(ce)}scopeValue(ce,ze){const Ve=this._extScope.value(ce,ze);return(this._values[Ve.prefix]||(this._values[Ve.prefix]=new Set)).add(Ve),Ve}getScopeValue(ce,ze){return this._extScope.getValue(ce,ze)}scopeRefs(ce){return this._extScope.scopeRefs(ce,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ce,ze,Ve,qe){const Ye=this._scope.toName(ze);return void 0!==Ve&&qe&&(this._constants[Ye.str]=Ve),this._leafNode(new ot(ce,Ye,Ve)),Ye}const(ce,ze,Ve){return this._def(Ye.varKinds.const,ce,ze,Ve)}let(ce,ze,Ve){return this._def(Ye.varKinds.let,ce,ze,Ve)}var(ce,ze,Ve){return this._def(Ye.varKinds.var,ce,ze,Ve)}assign(ce,ze,Ve){return this._leafNode(new st(ce,ze,Ve))}add(ce,Ve){return this._leafNode(new mt(ce,ze.operators.ADD,Ve))}code(ce){return"function"==typeof ce?ce():ce!==qe.nil&&this._leafNode(new vt(ce)),this}object(...ce){const ze=["{"];for(const[Ve,Ye]of ce)ze.length>1&&ze.push(","),ze.push(Ve),(Ve!==Ye||this.opts.es5)&&(ze.push(":"),(0,qe.addCodeArg)(ze,Ye));return ze.push("}"),new qe._Code(ze)}if(ce,ze,Ve){if(this._blockNode(new St(ce)),ze&&Ve)this.code(ze).else().code(Ve).endIf();else if(ze)this.code(ze).endIf();else if(Ve)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ce){return this._elseNode(new St(ce))}else(){return this._elseNode(new kt)}endIf(){return this._endBlockNode(St,kt)}_for(ce,ze){return this._blockNode(ce),ze&&this.code(ze).endFor(),this}for(ce,ze){return this._for(new Et(ce),ze)}forRange(ce,ze,Ve,qe,We=(this.opts.es5?Ye.varKinds.var:Ye.varKinds.let)){const Qe=this._scope.toName(ce);return this._for(new Pt(We,Qe,ze,Ve),(()=>qe(Qe)))}forOf(ce,ze,Ve,We=Ye.varKinds.const){const Qe=this._scope.toName(ce);if(this.opts.es5){const ce=ze instanceof qe.Name?ze:this.var("_arr",ze);return this.forRange("_i",0,qe._`${ce}.length`,(ze=>{this.var(Qe,qe._`${ce}[${ze}]`),Ve(Qe)}))}return this._for(new Tt("of",We,Qe,ze),(()=>Ve(Qe)))}forIn(ce,ze,Ve,We=(this.opts.es5?Ye.varKinds.var:Ye.varKinds.const)){if(this.opts.ownProperties)return this.forOf(ce,qe._`Object.keys(${ze})`,Ve);const Qe=this._scope.toName(ce);return this._for(new Tt("in",We,Qe,ze),(()=>Ve(Qe)))}endFor(){return this._endBlockNode(xt)}label(ce){return this._leafNode(new gt(ce))}break(ce){return this._leafNode(new yt(ce))}return(ce){const ze=new Ft;if(this._blockNode(ze),this.code(ce),1!==ze.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ft)}try(ce,ze,Ve){if(!ze&&!Ve)throw new Error('CodeGen: "try" without "catch" and "finally"');const qe=new Bt;if(this._blockNode(qe),this.code(ce),ze){const ce=this.name("e");this._currNode=qe.catch=new Vt(ce),ze(ce)}return Ve&&(this._currNode=qe.finally=new Ht,this.code(Ve)),this._endBlockNode(Vt,Ht)}throw(ce){return this._leafNode(new bt(ce))}block(ce,ze){return this._blockStarts.push(this._nodes.length),ce&&this.code(ce).endBlock(ze),this}endBlock(ce){const ze=this._blockStarts.pop();if(void 0===ze)throw new Error("CodeGen: not in self-balancing block");const Ve=this._nodes.length-ze;if(Ve<0||void 0!==ce&&Ve!==ce)throw new Error(`CodeGen: wrong number of nodes: ${Ve} vs ${ce} expected`);return this._nodes.length=ze,this}func(ce,ze=qe.nil,Ve,Ye){return this._blockNode(new Lt(ce,ze,Ve)),Ye&&this.code(Ye).endFunc(),this}endFunc(){return this._endBlockNode(Lt)}optimize(ce=1){for(;ce-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ce){return this._currNode.nodes.push(ce),this}_blockNode(ce){this._currNode.nodes.push(ce),this._nodes.push(ce)}_endBlockNode(ce,ze){const Ve=this._currNode;if(Ve instanceof ce||ze&&Ve instanceof ze)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ze?`${ce.kind}/${ze.kind}`:ce.kind}"`)}_elseNode(ce){const ze=this._currNode;if(!(ze instanceof St))throw new Error('CodeGen: "else" without "if"');return this._currNode=ze.else=ce,this}get _root(){return this._nodes[0]}get _currNode(){const ce=this._nodes;return ce[ce.length-1]}set _currNode(ce){const ze=this._nodes;ze[ze.length-1]=ce}},ze.not=not;const Ut=mappend(ze.operators.AND);ze.and=function and(...ce){return ce.reduce(Ut)};const Wt=mappend(ze.operators.OR);function mappend(ce){return(ze,Ve)=>ze===qe.nil?Ve:Ve===qe.nil?ze:qe._`${par(ze)} ${ce} ${par(Ve)}`}function par(ce){return ce instanceof qe.Name?ce:qe._`(${ce})`}ze.or=function or(...ce){return ce.reduce(Wt)}},function(ce,ze){function debounce(ce,ze,Ve){var qe,Ye,We,Qe,Xe;function later(){var ot=Date.now()-Qe;ot=0?qe=setTimeout(later,ze-ot):(qe=null,Ve||(Xe=ce.apply(We,Ye),We=Ye=null))}null==ze&&(ze=100);var debounced=function(){We=this,Ye=arguments,Qe=Date.now();var ot=Ve&&!qe;return qe||(qe=setTimeout(later,ze)),ot&&(Xe=ce.apply(We,Ye),We=Ye=null),Xe};return debounced.clear=function(){qe&&(clearTimeout(qe),qe=null)},debounced.flush=function(){qe&&(Xe=ce.apply(We,Ye),We=Ye=null,clearTimeout(qe),qe=null)},debounced}debounce.debounce=debounce,ce.exports=debounce},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(29),Ye=Ve(296),We=Ve(636),Qe=Ve(114),Xe=Ve(37);class ot extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate,Ve=Object(Qe.a)();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(Ve),this.iconView=new Ye.a,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",ze.to("class"),ze.if("isEnabled","ck-disabled",(ce=>!ce)),ze.if("isVisible","ck-hidden",(ce=>!ce)),ze.to("isOn",(ce=>ce?"ck-on":"ck-off")),ze.if("withText","ck-button_with-text"),ze.if("withKeystroke","ck-button_with-keystroke")],type:ze.to("type",(ce=>ce||"button")),tabindex:ze.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${Ve}`,"aria-disabled":ze.if("isEnabled",!0,(ce=>!ce)),"aria-pressed":ze.to("isOn",(ce=>!!this.isToggleable&&String(ce)))},children:this.children,on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((ce=>{this.isEnabled?this.fire("execute"):ce.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const ce=new We.a;return ce.bind("text").to(this,"_tooltipString"),ce.bind("position").to(this,"tooltipPosition"),ce}_createLabelView(ce){const ze=new qe.a,Ve=this.bindTemplate;return ze.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:Ve.to("labelStyle"),id:`ck-editor__aria-label_${ce}`},children:[{text:this.bindTemplate.to("label")}]}),ze}_createKeystrokeView(){const ce=new qe.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(ce=>Object(Xe.b)(ce)))}]}),ce}_getTooltipString(ce,ze,Ve){return ce?"string"==typeof ce?ce:(Ve&&(Ve=Object(Xe.b)(Ve)),ce instanceof Function?ce(ze,Ve):`${ze}${Ve?` (${Ve})`:""}`):""}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(1),vt=(Ve(113),Ve(51)),wt=Ve.n(vt),Ct=Ve(30),Dt=Ve(381),kt=Ve(631);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const St="sulu_admin.content_locale";var xt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"persistentSettings",Ye,this),this.dirtyPersistentSettings=[],_initializerDefineProperty(this,"user",We,this),_initializerDefineProperty(this,"contact",Qe,this),_initializerDefineProperty(this,"loggedIn",Xe,this),_initializerDefineProperty(this,"loading",ot,this),_initializerDefineProperty(this,"loginError",st,this),_initializerDefineProperty(this,"forgotPasswordSuccess",mt,this),_initializerDefineProperty(this,"twoFactorMethods",gt,this),_initializerDefineProperty(this,"twoFactorError",yt,this),this.handleLogin=ce=>{if(this.setTwoFactorMethods([]),!1===ce.completed)return this.setLoading(!1),void(ce.twoFactorMethods&&ce.twoFactorMethods.length&&this.setTwoFactorMethods(ce.twoFactorMethods));if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),Dt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.loginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.twoFactorLogin=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.twoFactorLoginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),this.setTwoFactorError(!0),401!==ce.status)return Promise.reject(ce)}))),this.updatePersistentSettings=wt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});Ct.b.patch(Ct.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1,this.twoFactorMethods=[],this.twoFactorError=!1}get systemLocale(){return this.user?this.user.locale:Ct.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}setTwoFactorMethods(ce){this.twoFactorMethods=ce}setTwoFactorError(ce){this.twoFactorError=ce}get contentLocale(){const ce=this.persistentSettings.get(St);if(ce)return ce;const{localizations:ze}=kt.a,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:Ct.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(St,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return Ct.b.get(Ct.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}validatePassword(ce){const ze=Ct.a.passwordPattern;return!ze||new RegExp(ze).test(ce)}}).prototype,"persistentSettings",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(qe.prototype,"user",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"contact",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loggedIn",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"loading",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"loginError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"forgotPasswordSuccess",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=_applyDecoratedDescriptor(qe.prototype,"twoFactorMethods",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yt=_applyDecoratedDescriptor(qe.prototype,"twoFactorError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"clear",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"systemLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"systemLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoggedIn",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoggedIn"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoginError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoginError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForgotPasswordSuccess",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForgotPasswordSuccess"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorMethods",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorMethods"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"contentLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"contentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUser",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUser"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"updateContentLocale",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateContentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setContact",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setContact"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setFullName",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setFullName"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setPersistentSetting",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setPersistentSetting"),qe.prototype),qe);ze.a=xt},function(ce,ze,Ve){"use strict";var qe=Ve(405);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(334),Ye=Ve(413),We=Ve(672),Qe=Ve(104),Xe=Ve(1093);const ot=["top","right","bottom","left","width","height"];class st{constructor(ce){const ze=Object(qe.a)(ce);if(Object.defineProperty(this,"_source",{value:ce._source||ce,writable:!0,enumerable:!1}),Object(Xe.a)(ce)||ze)if(ze){const ze=st.getDomRangeRects(ce);copyRectProperties(this,st.getBoundingRect(ze))}else copyRectProperties(this,ce.getBoundingClientRect());else if(Object(Ye.a)(ce)){const{innerWidth:ze,innerHeight:Ve}=ce;copyRectProperties(this,{top:0,right:ze,bottom:Ve,left:0,width:ze,height:Ve})}else copyRectProperties(this,ce)}clone(){return new st(this)}moveTo(ce,ze){return this.top=ze,this.right=ce+this.width,this.bottom=ze+this.height,this.left=ce,this}moveBy(ce,ze){return this.top+=ze,this.right+=ce,this.left+=ce,this.bottom+=ze,this}getIntersection(ce){const ze={top:Math.max(this.top,ce.top),right:Math.min(this.right,ce.right),bottom:Math.min(this.bottom,ce.bottom),left:Math.max(this.left,ce.left)};return ze.width=ze.right-ze.left,ze.height=ze.bottom-ze.top,ze.width<0||ze.height<0?null:new st(ze)}getIntersectionArea(ce){const ze=this.getIntersection(ce);return ze?ze.getArea():0}getArea(){return this.width*this.height}getVisible(){const ce=this._source;let ze=this.clone();if(!isBody(ce)){let Ve=ce.parentNode||ce.commonAncestorContainer;for(;Ve&&!isBody(Ve);){const ce=new st(Ve),qe=ze.getIntersection(ce);if(!qe)return null;qe.getArea()1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"model:element"===ce):"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}offsetToIndex(ce){return this._children.offsetToIndex(ce)}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}findAncestor(ce){let ze=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;for(;ze;){if(ze.name===ce)return ze;ze=ze.parent}return null}toJSON(){const ce=super.toJSON();if(ce.name=this.name,this._children.length>0){ce.children=[];for(const ze of this._children)ce.children.push(ze.toJSON())}return ce}_clone(){const ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((ce=>ce._clone(!0))):null;return new ot(this.name,this.getAttributes(),ce)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}static fromJSON(ce){let ze=null;if(ce.children){ze=[];for(const Ve of ce.children)Ve.name?ze.push(ot.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve))}return new ot(ce.name,ce.attributes,ze)}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Xe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Qe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";const qe=navigator.userAgent.toLowerCase(),Ye={isMac:isMac(qe),isWindows:function isWindows(ce){return ce.indexOf("windows")>-1}(qe),isGecko:function isGecko(ce){return!!ce.match(/gecko\/\d+/)}(qe),isSafari:function isSafari(ce){return ce.indexOf(" applewebkit/")>-1&&-1===ce.indexOf("chrome")}(qe),isiOS:function isiOS(ce){return!!ce.match(/iphone|ipad/i)||isMac(ce)&&navigator.maxTouchPoints>0}(qe),isAndroid:function isAndroid(ce){return ce.indexOf("android")>-1}(qe),isBlink:function isBlink(ce){return ce.indexOf("chrome/")>-1&&ce.indexOf("edge/")<0}(qe),features:{isRegExpUnicodePropertySupported:function isRegExpUnicodePropertySupported(){let ce=!1;try{ce=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(ce){}return ce}()}};function isMac(ce){return ce.indexOf("macintosh")>-1}ze.a=Ye},function(ce,ze,Ve){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.createTextNode(" "),MARKED_NBSP_FILLER=ce=>{const ze=ce.createElement("span");return ze.dataset.ckeFiller=!0,ze.innerText=" ",ze},BR_FILLER=ce=>{const ze=ce.createElement("br");return ze.dataset.ckeFiller=!0,ze},We=7,Qe="⁠".repeat(We);function startsWithFiller(ce){return Object(Ye.a)(ce)&&ce.data.substr(0,We)===Qe}function isInlineFiller(ce){return ce.data.length==We&&startsWithFiller(ce)}function getDataWithoutFiller(ce){return startsWithFiller(ce)?ce.data.slice(We):ce.data}function injectQuirksHandling(ce){ce.document.on("arrowKey",jumpOverInlineFiller,{priority:"low"})}function jumpOverInlineFiller(ce,ze){if(ze.keyCode==qe.f.arrowleft){const ce=ze.domTarget.ownerDocument.defaultView.getSelection();if(1==ce.rangeCount&&ce.getRangeAt(0).collapsed){const ze=ce.getRangeAt(0).startContainer,Ve=ce.getRangeAt(0).startOffset;startsWithFiller(ze)&&Ve<=We&&ce.collapse(ze,0)}}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return sortableContainer})),Ve.d(ze,"b",(function(){return sortableElement})),Ve.d(ze,"c",(function(){return sortableHandle})),Ve.d(ze,"d",(function(){return arrayMove}));var qe=Ve(59);function _arrayWithHoles(ce){if(Array.isArray(ce))return ce}function _iterableToArrayLimit(ce,ze){var Ve=null==ce?null:"undefined"!=typeof Symbol&&ce[Symbol.iterator]||ce["@@iterator"];if(null!=Ve){var qe,Ye,We,Qe,Xe=[],ot=!0,st=!1;try{if(We=(Ve=Ve.call(ce)).next,0===ze){if(Object(Ve)!==Ve)return;ot=!1}else for(;!(ot=(qe=We.call(Ve)).done)&&(Xe.push(qe.value),Xe.length!==ze);ot=!0);}catch(ce){st=!0,Ye=ce}finally{try{if(!ot&&null!=Ve.return&&(Qe=Ve.return(),Object(Qe)!==Qe))return}finally{if(st)throw Ye}}return Xe}}function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,qe=Array(ze);Ve0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[ce].sort(sortByIndex)}}]),Manager}();function sortByIndex(ce,ze){return ce.node.sortableInfo.index-ze.node.sortableInfo.index}function arrayMove(ce,ze,Ve){return(ce=ce.slice()).splice(Ve<0?ce.length+Ve:Ve,0,ce.splice(ze,1)[0]),ce}function omit(ce,ze){return Object.keys(ce).reduce((function(Ve,qe){return-1===ze.indexOf(qe)&&(Ve[qe]=ce[qe]),Ve}),{})}var Ct={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var ce=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ze=(Array.prototype.slice.call(ce).join("").match(/-(moz|webkit|ms)-/)||""===ce.OLink&&["","o"])[1];return"ms"===ze?"ms":ze&&ze.length?ze[0].toUpperCase()+ze.substr(1):""}();function setInlineStyles(ce,ze){Object.keys(ze).forEach((function(Ve){ce.style[Ve]=ze[Ve]}))}function setTranslate3d(ce,ze){ce.style["".concat(Dt,"Transform")]=null==ze?"":"translate3d(".concat(ze.x,"px,").concat(ze.y,"px,0)")}function setTransitionDuration(ce,ze){ce.style["".concat(Dt,"TransitionDuration")]=null==ze?"":"".concat(ze,"ms")}function closest(ce,ze){for(;ce;){if(ze(ce))return ce;ce=ce.parentNode}return null}function limit(ce,ze,Ve){return Math.max(ce,Math.min(Ve,ze))}function getPixelValue(ce){return"px"===ce.substr(-2)?parseFloat(ce):0}function provideDisplayName(ce,ze){var Ve=ze.displayName||ze.name;return Ve?"".concat(ce,"(").concat(Ve,")"):ce}function getScrollAdjustedBoundingClientRect(ce,ze){var Ve=ce.getBoundingClientRect();return{top:Ve.top+ze.top,left:Ve.left+ze.left}}function getPosition(ce){return ce.touches&&ce.touches.length?{x:ce.touches[0].pageX,y:ce.touches[0].pageY}:ce.changedTouches&&ce.changedTouches.length?{x:ce.changedTouches[0].pageX,y:ce.changedTouches[0].pageY}:{x:ce.pageX,y:ce.pageY}}function isTouchEvent(ce){return ce.touches&&ce.touches.length||ce.changedTouches&&ce.changedTouches.length}function getEdgeOffset(ce,ze){var Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(ce){var qe={left:Ve.left+ce.offsetLeft,top:Ve.top+ce.offsetTop};return ce.parentNode===ze?qe:getEdgeOffset(ce.parentNode,ze,qe)}}function getTargetIndex(ce,ze,Ve){return ceze?ce-1:ce>Ve&&ce1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableHandle(){var ce,ze;_classCallCheck(this,WithSortableHandle);for(var Ve=arguments.length,qe=new Array(Ve),Ye=0;Ye=Ye.y-Qe/2&&!Dt?(Xe.y=1,ot.y=mt*Math.abs((Ye.y-Qe/2-Ve.y)/Qe)):Ve.x>=Ye.x-We/2&&!St?(Xe.x=1,ot.x=st*Math.abs((Ye.x-We/2-Ve.x)/We)):Ve.y<=qe.y+Qe/2&&!Ct?(Xe.y=-1,ot.y=mt*Math.abs((Ve.y-Qe/2-qe.y)/Qe)):Ve.x<=qe.x+We/2&&!kt&&(Xe.x=-1,ot.x=st*Math.abs((Ve.x-We/2-qe.x)/We)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===Xe.x&&0===Xe.y||(this.interval=setInterval((function(){ze.isAutoScrolling=!0;var ce={left:ot.x*Xe.x,top:ot.y*Xe.y};ze.container.scrollTop+=ce.top,ze.container.scrollLeft+=ce.left,ze.onScrollCallback(ce)}),5))}}]),AutoScroller}();var Bt={axis:vt.a.oneOf(["x","y","xy"]),contentWindow:vt.a.any,disableAutoscroll:vt.a.bool,distance:vt.a.number,getContainer:vt.a.func,getHelperDimensions:vt.a.func,helperClass:vt.a.string,helperContainer:vt.a.oneOfType([vt.a.func,"undefined"==typeof HTMLElement?vt.a.any:vt.a.instanceOf(HTMLElement)]),hideSortableGhost:vt.a.bool,keyboardSortingTransitionDuration:vt.a.number,lockAxis:vt.a.string,lockOffset:vt.a.oneOfType([vt.a.number,vt.a.string,vt.a.arrayOf(vt.a.oneOfType([vt.a.number,vt.a.string]))]),lockToContainerEdges:vt.a.bool,onSortEnd:vt.a.func,onSortMove:vt.a.func,onSortOver:vt.a.func,onSortStart:vt.a.func,pressDelay:vt.a.number,pressThreshold:vt.a.number,keyCodes:vt.a.shape({lift:vt.a.arrayOf(vt.a.number),drop:vt.a.arrayOf(vt.a.number),cancel:vt.a.arrayOf(vt.a.number),up:vt.a.arrayOf(vt.a.number),down:vt.a.arrayOf(vt.a.number)}),shouldCancelStart:vt.a.func,transitionDuration:vt.a.number,updateBeforeSortStart:vt.a.func,useDragHandle:vt.a.bool,useWindowAsScrollContainer:vt.a.bool},Vt={lift:[St],drop:[St],cancel:[kt],up:[Et,xt],down:[Tt,Pt]},Ht={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function defaultGetHelperDimensions(ce){var ze=ce.node;return{height:ze.offsetHeight,width:ze.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Vt,shouldCancelStart:function defaultShouldCancelStart(ce){return-1!==[Lt.Input,Lt.Textarea,Lt.Select,Lt.Option,Lt.Button].indexOf(ce.target.tagName)||!!closest(ce.target,(function(ce){return"true"===ce.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Ut=Object.keys(Bt);function validateProps(ce){yt()(!(ce.distance&&ce.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function _finallyRethrows(ce,ze){try{var Ve=ce()}catch(ce){return ze(!0,ce)}return Ve&&Ve.then?Ve.then(ze.bind(null,!1),ze.bind(null,!0)):ze(!1,value)}var Wt=Object(st.createContext)({manager:{}});function sortableContainer(ce){var ze,Ve,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableContainer(ce){var ze;_classCallCheck(this,WithSortableContainer),ze=_possibleConstructorReturn(this,_getPrototypeOf(WithSortableContainer).call(this,ce)),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"state",{}),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleStart",(function(ce){var Ve=ze.props,qe=Ve.distance,Ye=Ve.shouldCancelStart;if(2!==ce.button&&!Ye(ce)){ze.touched=!0,ze.position=getPosition(ce);var We=closest(ce.target,(function(ce){return null!=ce.sortableInfo}));if(We&&We.sortableInfo&&ze.nodeIsChild(We)&&!ze.state.sorting){var Qe=ze.props.useDragHandle,Xe=We.sortableInfo,ot=Xe.index,st=Xe.collection;if(Xe.disabled)return;if(Qe&&!closest(ce.target,isSortableHandle))return;ze.manager.active={collection:st,index:ot},isTouchEvent(ce)||ce.target.tagName!==Lt.Anchor||ce.preventDefault(),qe||(0===ze.props.pressDelay?ze.handlePress(ce):ze.pressTimer=setTimeout((function(){return ze.handlePress(ce)}),ze.props.pressDelay))}}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"nodeIsChild",(function(ce){return ce.sortableInfo.manager===ze.manager})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleMove",(function(ce){var Ve=ze.props,qe=Ve.distance,Ye=Ve.pressThreshold;if(!ze.state.sorting&&ze.touched&&!ze._awaitingUpdateBeforeSortStart){var We=getPosition(ce),Qe={x:ze.position.x-We.x,y:ze.position.y-We.y},Xe=Math.abs(Qe.x)+Math.abs(Qe.y);ze.delta=Qe,qe||Ye&&!(Xe>=Ye)?qe&&Xe>=qe&&ze.manager.isActive()&&ze.handlePress(ce):(clearTimeout(ze.cancelTimer),ze.cancelTimer=setTimeout(ze.cancel,0))}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleEnd",(function(){ze.touched=!1,ze.cancel()})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"cancel",(function(){var ce=ze.props.distance;ze.state.sorting||(ce||clearTimeout(ze.pressTimer),ze.manager.active=null)})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handlePress",(function(ce){try{var Ve=ze.manager.getActive(),qe=function(){if(Ve){var qe=function _temp7(){var Ve,qe,Ye,st,wt,Dt,kt,St=yt.sortableInfo.index,xt=(Ve=yt,{bottom:getPixelValue((qe=window.getComputedStyle(Ve)).marginBottom),left:getPixelValue(qe.marginLeft),right:getPixelValue(qe.marginRight),top:getPixelValue(qe.marginTop)}),Et=getContainerGridGap(ze.container),Pt=ze.scrollContainer.getBoundingClientRect(),Tt=Qe({index:St,node:yt,collection:bt});if(ze.node=yt,ze.margin=xt,ze.gridGap=Et,ze.width=Tt.width,ze.height=Tt.height,ze.marginOffset={x:ze.margin.left+ze.margin.right+ze.gridGap.x,y:Math.max(ze.margin.top,ze.margin.bottom,ze.gridGap.y)},ze.boundingClientRect=yt.getBoundingClientRect(),ze.containerBoundingRect=Pt,ze.index=St,ze.newIndex=St,ze.axis={x:We.indexOf("x")>=0,y:We.indexOf("y")>=0},ze.offsetEdge=getEdgeOffset(yt,ze.container),ze.initialOffset=getPosition(vt?_objectSpread({},ce,{pageX:ze.boundingClientRect.left,pageY:ze.boundingClientRect.top}):ce),ze.initialScroll={left:ze.scrollContainer.scrollLeft,top:ze.scrollContainer.scrollTop},ze.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ze.helper=ze.helperContainer.appendChild((wt="input, textarea, select, canvas, [contenteditable]",Dt=(Ye=yt).querySelectorAll(wt),kt=Ye.cloneNode(!0),(_arrayWithoutHoles(st=kt.querySelectorAll(wt))||_iterableToArray(st)||_unsupportedIterableToArray(st)||_nonIterableSpread()).forEach((function(ce,ze){"file"!==ce.type&&(ce.value=Dt[ze].value),"radio"===ce.type&&ce.name&&(ce.name="__sortableClone__".concat(ce.name)),ce.tagName===Lt.Canvas&&Dt[ze].width>0&&Dt[ze].height>0&&ce.getContext("2d").drawImage(Dt[ze],0,0)})),kt)),setInlineStyles(ze.helper,{boxSizing:"border-box",height:"".concat(ze.height,"px"),left:"".concat(ze.boundingClientRect.left-xt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ze.boundingClientRect.top-xt.top,"px"),width:"".concat(ze.width,"px")}),vt&&ze.helper.focus(),ot&&(ze.sortableGhost=yt,setInlineStyles(yt,{opacity:0,visibility:"hidden"})),ze.minTranslate={},ze.maxTranslate={},vt){var Ft=gt?{top:0,left:0,width:ze.contentWindow.innerWidth,height:ze.contentWindow.innerHeight}:ze.containerBoundingRect,Bt=Ft.top,Vt=Ft.left,Ht=Ft.width,Ut=Bt+Ft.height,Wt=Vt+Ht;ze.axis.x&&(ze.minTranslate.x=Vt-ze.boundingClientRect.left,ze.maxTranslate.x=Wt-(ze.boundingClientRect.left+ze.width)),ze.axis.y&&(ze.minTranslate.y=Bt-ze.boundingClientRect.top,ze.maxTranslate.y=Ut-(ze.boundingClientRect.top+ze.height))}else ze.axis.x&&(ze.minTranslate.x=(gt?0:Pt.left)-ze.boundingClientRect.left-ze.width/2,ze.maxTranslate.x=(gt?ze.contentWindow.innerWidth:Pt.left+Pt.width)-ze.boundingClientRect.left-ze.width/2),ze.axis.y&&(ze.minTranslate.y=(gt?0:Pt.top)-ze.boundingClientRect.top-ze.height/2,ze.maxTranslate.y=(gt?ze.contentWindow.innerHeight:Pt.top+Pt.height)-ze.boundingClientRect.top-ze.height/2);Xe&&Xe.split(" ").forEach((function(ce){return ze.helper.classList.add(ce)})),ze.listenerNode=ce.touches?ce.target:ze.contentWindow,vt?(ze.listenerNode.addEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortMove,!1)})),Ct.end.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortEnd,!1)}))),ze.setState({sorting:!0,sortingIndex:St}),mt&&mt({node:yt,index:St,collection:bt,isKeySorting:vt,nodes:ze.manager.getOrderedRefs(),helper:ze.helper},ce),vt&&ze.keyMove(0)},Ye=ze.props,We=Ye.axis,Qe=Ye.getHelperDimensions,Xe=Ye.helperClass,ot=Ye.hideSortableGhost,st=Ye.updateBeforeSortStart,mt=Ye.onSortStart,gt=Ye.useWindowAsScrollContainer,yt=Ve.node,bt=Ve.collection,vt=ze.manager.isKeySorting,wt=function(){if("function"==typeof st){ze._awaitingUpdateBeforeSortStart=!0;var Ve=_finallyRethrows((function(){var ze=yt.sortableInfo.index;return Promise.resolve(st({collection:bt,index:ze,node:yt,isKeySorting:vt},ce)).then((function(){}))}),(function(ce,Ve){if(ze._awaitingUpdateBeforeSortStart=!1,ce)throw Ve;return Ve}));if(Ve&&Ve.then)return Ve.then((function(){}))}}();return wt&&wt.then?wt.then(qe):qe()}}();return Promise.resolve(qe&&qe.then?qe.then((function(){})):void 0)}catch(ce){return Promise.reject(ce)}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleSortMove",(function(ce){var Ve=ze.props.onSortMove;"function"==typeof ce.preventDefault&&ce.cancelable&&ce.preventDefault(),ze.updateHelperPosition(ce),ze.animateNodes(),ze.autoscroll(),Ve&&Ve(ce)})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleSortEnd",(function(ce){var Ve=ze.props,qe=Ve.hideSortableGhost,Ye=Ve.onSortEnd,We=ze.manager,Qe=We.active.collection,Xe=We.isKeySorting,ot=ze.manager.getOrderedRefs();ze.listenerNode&&(Xe?(ze.listenerNode.removeEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortMove)})),Ct.end.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortEnd)})))),ze.helper.parentNode.removeChild(ze.helper),qe&&ze.sortableGhost&&setInlineStyles(ze.sortableGhost,{opacity:"",visibility:""});for(var st=0,mt=ot.length;stqe)){ze.prevIndex=We,ze.newIndex=Ye;var Qe=getTargetIndex(ze.newIndex,ze.prevIndex,ze.index),Xe=Ve.find((function(ce){return ce.node.sortableInfo.index===Qe})),ot=Xe.node,st=ze.containerScrollDelta,mt=Xe.boundingClientRect||getScrollAdjustedBoundingClientRect(ot,st),gt=Xe.translate||{x:0,y:0},yt=mt.top+gt.y-st.top,bt=mt.left+gt.x-st.left,vt=WeCt?Ct/2:this.height/2,width:this.width>wt?wt/2:this.width/2},kt=st&&vt>this.index&&vt<=mt,St=st&&vt=mt,xt={x:0,y:0},Et=Qe[gt].edgeOffset;Et||(Et=getEdgeOffset(bt,this.container),Qe[gt].edgeOffset=Et,st&&(Qe[gt].boundingClientRect=getScrollAdjustedBoundingClientRect(bt,Ye)));var Pt=gt0&&Qe[gt-1];Pt&&!Pt.edgeOffset&&(Pt.edgeOffset=getEdgeOffset(Pt.node,this.container),st&&(Pt.boundingClientRect=getScrollAdjustedBoundingClientRect(Pt.node,Ye))),vt!==this.index?(ze&&setTransitionDuration(bt,ze),this.axis.x?this.axis.y?St||vtthis.containerBoundingRect.width-Dt.width&&Pt&&(xt.x=Pt.edgeOffset.left-Et.left,xt.y=Pt.edgeOffset.top-Et.top),null===this.newIndex&&(this.newIndex=vt)):(kt||vt>this.index&&(Xe+We.left+Dt.width>=Et.left&&ot+We.top+Dt.height>=Et.top||ot+We.top+Dt.height>=Et.top+Ct))&&(xt.x=-(this.width+this.marginOffset.x),Et.left+xt.xthis.index&&Xe+We.left+Dt.width>=Et.left?(xt.x=-(this.width+this.marginOffset.x),this.newIndex=vt):(St||vtthis.index&&ot+We.top+Dt.height>=Et.top?(xt.y=-(this.height+this.marginOffset.y),this.newIndex=vt):(St||vt1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableElement(){var ce,ze;_classCallCheck(this,WithSortableElement);for(var Ve=arguments.length,qe=new Array(Ve),Ye=0;Ye0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(ce,this.ref)}},{key:"getWrappedInstance",value:function getWrappedInstance(){return yt()(Ye.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function render(){var ze=Ye.withRef?this.wrappedInstance:null;return Object(st.createElement)(ce,Object(qe.a)({ref:ze},omit(this.props,Qt)))}}]),WithSortableElement}(st.Component),_defineProperty(ze,"displayName",provideDisplayName("sortableElement",ce)),_defineProperty(ze,"contextType",Wt),_defineProperty(ze,"propTypes",Jt),_defineProperty(ze,"defaultProps",{collection:0}),Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(177);class Ye extends qe.a{constructor(ce,ze){super(ce),this._textData=ze}is(ce){return"$text"===ce||"view:$text"===ce||"text"===ce||"view:text"===ce||"node"===ce||"view:node"===ce}get data(){return this._textData}get _data(){return this.data}set _data(ce){this._fireChange("text",this),this._textData=ce}isSimilar(ce){return ce instanceof Ye&&(this===ce||this.data===ce.data)}_clone(){return new Ye(this.document,this.data)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(225);class Ye extends qe.a{constructor(ce,ze){super(ze),this._data=ce||""}get offsetSize(){return this.data.length}get data(){return this._data}is(ce){return"$text"===ce||"model:$text"===ce||"text"===ce||"model:text"===ce||"node"===ce||"model:node"===ce}toJSON(){const ce=super.toJSON();return ce.data=this.data,ce}_clone(){return new Ye(this.data,this.getAttributes())}static fromJSON(ce){return new Ye(ce.data,ce.attributes)}}},function(ce,ze,Ve){"use strict";var qe=Ve(540);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(118),mt=Ve(19),gt="item--tapFxsQFTD",yt="active--UYKBvMNFsA",bt="icon--m6UOqx2roB";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:qe}=this.props,We=ot()(gt,{[yt]:ze});return Ye.a.createElement("button",{className:We,disabled:qe,onClick:this.handleButtonClick,type:"button"},Ye.a.createElement("span",{className:bt},Ve&&ze&&Ye.a.createElement(mt.a,{className:bt,name:Ve})),Ye.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--94Rw5LDlw9",Ct="children--FQd5fR817i",Dt="title--Y4y-OBubRf";class kt extends Ye.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return Ye.a.createElement("div",{className:wt},ze&&Ye.a.createElement("div",{className:Dt},ze),Ye.a.createElement("div",{className:Ct},ce))}}class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return Ye.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--v5d0jMUdaF",Et="icon--BWcTDKMUSg";class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return Ye.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&Ye.a.createElement(mt.a,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Vt,Ht="arrowMenuContainer--ylJX47Ke86",Ut="arrowMenu--FQPgEmdYe-",Wt="arrow--6WGRUFpWfv",Jt="right--4SjL5PtS96",Qt="left--obx52S8Owq",en="top--P9Mns0zyYy",rn="bottom--aPR0Ez74kV";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ln=Object(Qe.b)((Vt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>Ye.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return Ye.a.Children.map(ce,(ce=>ce?ce.type===kt?Ye.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?Ye.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return Ye.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return Ye.a.createElement(qe.Fragment,null,We,Ye.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,qe)=>{const Ye="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,Ye,qe)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Qe=this.cloneChildren(We),Xe=ot()(Wt,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===qe,[Jt]:"right"===qe});return Ye.a.createElement("div",{className:Ht,ref:ce,style:ze},Ye.a.createElement("div",{className:Xe}),Ye.a.createElement("div",{className:Ut},Qe))}},Vt.defaultProps={refProp:"ref"},Vt.Section=kt,Vt.SingleItemSection=St,Vt.Item=vt,Vt.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Vt).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;var mn=ln;ze.a=mn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(20),We=Ve(16),Qe=Ve(8),Xe=Ve(92),ot=Ve(135);class st extends qe.a{constructor(ce,ze,Ve,qe){super(qe),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toNext",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const ce=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,ce,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent,Ve=this.sourcePosition.offset,qe=this.targetPosition.offset;if(Ve+this.howMany>ce.maxOffset)throw new Qe.a("move-operation-nodes-do-not-exist",this);if(ce===ze&&Ve=Ve&&this.targetPosition.path[ce]{const st=void 0===Xe?Qe:Xe instanceof qe.Name?(Qe instanceof qe.Name?ce(We,Qe,Xe):ze(We,Qe,Xe),Xe):Qe instanceof qe.Name?(ze(We,Xe,Qe),Qe):Ve(Qe,Xe);return ot!==qe.Name||st instanceof qe.Name?st:Ye(We,st)}}function evaluatedPropsToName(ce,ze){if(!0===ze)return ce.var("props",!0);const Ve=ce.var("props",qe._`{}`);return void 0!==ze&&setEvaluated(ce,Ve,ze),Ve}function setEvaluated(ce,ze,Ve){Object.keys(Ve).forEach((Ve=>ce.assign(qe._`${ze}${(0,qe.getProperty)(Ve)}`,!0)))}ze.toHash=function toHash(ce){const ze={};for(const Ve of ce)ze[Ve]=!0;return ze},ze.alwaysValidSchema=function alwaysValidSchema(ce,ze){return"boolean"==typeof ze?ze:0===Object.keys(ze).length||(checkUnknownRules(ce,ze),!schemaHasRules(ze,ce.self.RULES.all))},ze.checkUnknownRules=checkUnknownRules,ze.schemaHasRules=schemaHasRules,ze.schemaHasRulesButRef=function schemaHasRulesButRef(ce,ze){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if("$ref"!==Ve&&ze.all[Ve])return!0;return!1},ze.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:ce,schemaPath:ze},Ve,Ye,We){if(!We){if("number"==typeof Ve||"boolean"==typeof Ve)return Ve;if("string"==typeof Ve)return qe._`${Ve}`}return qe._`${ce}${ze}${(0,qe.getProperty)(Ye)}`},ze.unescapeFragment=function unescapeFragment(ce){return unescapeJsonPointer(decodeURIComponent(ce))},ze.escapeFragment=function escapeFragment(ce){return encodeURIComponent(escapeJsonPointer(ce))},ze.escapeJsonPointer=escapeJsonPointer,ze.unescapeJsonPointer=unescapeJsonPointer,ze.eachItem=function eachItem(ce,ze){if(Array.isArray(ce))for(const Ve of ce)ze(Ve);else ze(ce)},ze.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true && ${ze} !== undefined`,(()=>{ce.if(qe._`${ze} === true`,(()=>ce.assign(Ve,!0)),(()=>ce.assign(Ve,qe._`${Ve} || {}`).code(qe._`Object.assign(${Ve}, ${ze})`)))})),mergeToName:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true`,(()=>{!0===ze?ce.assign(Ve,!0):(ce.assign(Ve,qe._`${Ve} || {}`),setEvaluated(ce,Ve,ze))})),mergeValues:(ce,ze)=>!0===ce||{...ce,...ze},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true && ${ze} !== undefined`,(()=>ce.assign(Ve,qe._`${ze} === true ? true : ${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeToName:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true`,(()=>ce.assign(Ve,!0===ze||qe._`${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeValues:(ce,ze)=>!0===ce||Math.max(ce,ze),resultToName:(ce,ze)=>ce.var("items",ze)})},ze.evaluatedPropsToName=evaluatedPropsToName,ze.setEvaluated=setEvaluated;const We={};var Qe;function checkStrictMode(ce,ze,Ve=ce.opts.strictSchema){if(Ve){if(ze=`strict mode: ${ze}`,!0===Ve)throw new Error(ze);ce.self.logger.warn(ze)}}ze.useFunc=function useFunc(ce,ze){return ce.scopeValue("func",{ref:ze,code:We[ze.code]||(We[ze.code]=new Ye._Code(ze.code))})},function(ce){ce[ce.Num=0]="Num",ce[ce.Str=1]="Str"}(Qe||(ze.Type=Qe={})),ze.getErrorPath=function getErrorPath(ce,ze,Ve){if(ce instanceof qe.Name){const Ye=ze===Qe.Num;return Ve?Ye?qe._`"[" + ${ce} + "]"`:qe._`"['" + ${ce} + "']"`:Ye?qe._`"/" + ${ce}`:qe._`"/" + ${ce}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ve?(0,qe.getProperty)(ce).toString():"/"+escapeJsonPointer(ce)},ze.checkStrictMode=checkStrictMode},function(ce,ze,Ve){"use strict";var qe=Ve(417),Ye=Function.prototype,We=Ye.call,Qe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Qe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";ze.a=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(556);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(164),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(66),kt=Ve(19),St=Ve(184),xt="grid--3CNbbqAPqk",Et="grid-section--FhJarv311B",Pt="divider-container--PnX-i2y1et",Tt="grid-item--znrosHPz2S";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Qe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Xe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.a.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.a.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.a,{className:St.a.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:qe,id:Ye,label:We,required:Qe,skin:Xe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Xe]]:!!Xe,[St.a.error]:!!qe});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.a.label,htmlFor:Ye},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Qe&&" *"),ce,Ve&>.a.createElement("div",{className:St.a.descriptionLabel},Ve),gt.a.createElement("div",{className:St.a.errorLabel},qe)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((Ye=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"selectedType"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),qe=Ye))||qe;var Ft=Lt,Bt=Ve(573);class Vt extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,qe=gt.a.Children.toArray(ce);return(ze||12===Ve)&&qe.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:qe.length},gt.a.createElement(Bt.a,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},qe)}}Vt.defaultProps={colSpan:12};class Ht extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Ht.Field=Ft,Ht.Section=Vt;ze.a=Ht},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"c",(function(){return isWidget})),Ve.d(ze,"d",(function(){return toWidget})),Ve.d(ze,"b",(function(){return getLabel})),Ve.d(ze,"e",(function(){return toWidgetEditable}));var qe=Ve(8),Ye=Ve(91),We=(Ve(676),Ve(39)),Qe=Ve(25);class Xe{constructor(){this._stack=[]}add(ce,ze){const Ve=this._stack,qe=Ve[0];this._insertDescriptor(ce);const Ye=Ve[0];qe===Ye||compareDescriptors(qe,Ye)||this.fire("change:top",{oldDescriptor:qe,newDescriptor:Ye,writer:ze})}remove(ce,ze){const Ve=this._stack,qe=Ve[0];this._removeDescriptor(ce);const Ye=Ve[0];qe===Ye||compareDescriptors(qe,Ye)||this.fire("change:top",{oldDescriptor:qe,newDescriptor:Ye,writer:ze})}_insertDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce.id));if(compareDescriptors(ce,ze[Ve]))return;Ve>-1&&ze.splice(Ve,1);let qe=0;for(;ze[qe]&&shouldABeBeforeB(ze[qe],ce);)qe++;ze.splice(qe,0,ce)}_removeDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce));Ve>-1&&ze.splice(Ve,1)}}function compareDescriptors(ce,ze){return ce&&ze&&ce.priority==ze.priority&&classesToString(ce.classes)==classesToString(ze.classes)}function shouldABeBeforeB(ce,ze){return ce.priority>ze.priority||!(ce.priorityclassesToString(ze.classes)}function classesToString(ce){return Array.isArray(ce)?ce.sort().join(","):ce}Object(Qe.a)(Xe,We.c);Ve(83);var ot=Ve(296),st='';const mt="ck-widget",gt="ck-widget_selected";function isWidget(ce){return!!ce.is("element")&&!!ce.getCustomProperty("widget")}function toWidget(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!ce.is("containerElement"))throw new qe.a("widget-to-widget-wrong-element-type",null,{element:ce});return ze.setAttribute("contenteditable","false",ce),ze.addClass(mt,ce),ze.setCustomProperty("widget",!0,ce),ce.getFillerOffset=getFillerOffset,Ve.label&&setLabel(ce,Ve.label,ze),Ve.hasSelectionHandle&&addSelectionHandle(ce,ze),setHighlightHandling(ce,ze),ce}function addHighlight(ce,ze,Ve){if(ze.classes&&Ve.addClass(Object(Ye.a)(ze.classes),ce),ze.attributes)for(const qe in ze.attributes)Ve.setAttribute(qe,ze.attributes[qe],ce)}function removeHighlight(ce,ze,Ve){if(ze.classes&&Ve.removeClass(Object(Ye.a)(ze.classes),ce),ze.attributes)for(const qe in ze.attributes)Ve.removeAttribute(qe,ce)}function setHighlightHandling(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:addHighlight,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:removeHighlight;const Ye=new Xe;Ye.on("change:top",((ze,Ye)=>{Ye.oldDescriptor&&qe(ce,Ye.oldDescriptor,Ye.writer),Ye.newDescriptor&&Ve(ce,Ye.newDescriptor,Ye.writer)})),ze.setCustomProperty("addHighlight",((ce,ze,Ve)=>Ye.add(ze,Ve)),ce),ze.setCustomProperty("removeHighlight",((ce,ze,Ve)=>Ye.remove(ze,Ve)),ce)}function setLabel(ce,ze,Ve){Ve.setCustomProperty("widgetLabel",ze,ce)}function getLabel(ce){const ze=ce.getCustomProperty("widgetLabel");return ze?"function"==typeof ze?ze():ze:""}function toWidgetEditable(ce,ze){return ze.addClass(["ck-editor__editable","ck-editor__nested-editable"],ce),ze.setAttribute("contenteditable",ce.isReadOnly?"false":"true",ce),ce.on("change:isReadOnly",((Ve,qe,Ye)=>{ze.setAttribute("contenteditable",Ye?"false":"true",ce)})),ce.on("change:isFocused",((Ve,qe,Ye)=>{Ye?ze.addClass("ck-editor__nested-editable_focused",ce):ze.removeClass("ck-editor__nested-editable_focused",ce)})),setHighlightHandling(ce,ze),ce}function getFillerOffset(){return null}function addSelectionHandle(ce,ze){const Ve=ze.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(ce){const ze=this.toDomElement(ce),Ve=new ot.a;return Ve.set("content",st),Ve.render(),ze.appendChild(Ve.element),ze}));ze.insert(ze.createPositionAt(ce,0),Ve),ze.addClass(["ck-widget_with-selection-handle"],ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(95),We=Ve(20),Qe=Ve(16),Xe=Ve(135),ot=Ve(8);class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.splitPosition=ce.clone(),this.splitPosition.stickiness="toNext",this.howMany=ze,this.insertionPosition=Ve,this.graveyardPosition=qe?qe.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const ce=this.insertionPosition.path.slice();return ce.push(0),new We.a(this.insertionPosition.root,ce)}get movedRange(){const ce=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qe.a(this.splitPosition,ce)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.splitPosition.root.document.graveyard,ze=new We.a(ce,[0]);return new Ye.a(this.moveTargetPosition,this.howMany,this.splitPosition,ze,this.baseVersion+1)}_validate(){const ce=this.splitPosition.parent,ze=this.splitPosition.offset;if(!ce||ce.maxOffset{const Ye=ce[Ve];return null===Ye?(ze[Ve]=void 0,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformResponseArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformResponseObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null==Ye?(ze[Ve]=null,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformRequestArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformRequestObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(qe.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(qe.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Qe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(qe.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(qe.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,qe;const Qe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Xe=new AbortController;return Qe.setAbortController(Xe),fetch(ce,{...We,...ze,signal:Xe.signal}).then(Ve).catch(qe),Qe}class Qe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Qe.handleResponseHooks=[];ze.a=Qe},,function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.editor=ce,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(ce=>{this.isEnabled||ce.stop()}),{priority:"high"}),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.refresh())}execute(){}destroy(){this.stopListening()}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(237),Ye=Ve(390),We=Ve(223);var Qe=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Object(We.a)(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Object(Ye.a)(ce,ze,Ve)},Xe=Ve(717),ot=Ve(656),st=Ve(657),mt=Ve(655),gt=Ve(720),yt=Ve(339),bt=Ve(82),vt=Ve(174),wt=Ve(98);var Ct=function isArrayLikeObject(ce){return Object(wt.a)(ce)&&Object(vt.a)(ce)},Dt=Ve(257),kt=Ve(388),St=Ve(71),xt=Ve(268),Et=Ve(404);var Pt=function safeGet(ce,ze){if(("constructor"!==ze||"function"!=typeof ce[ze])&&"__proto__"!=ze)return ce[ze]},Tt=Ve(175),Lt=Ve(179);var Ft=function toPlainObject(ce){return Object(Tt.a)(ce,Object(Lt.a)(ce))};var Bt=function baseMergeDeep(ce,ze,Ve,qe,Ye,We,Xe){var vt=Pt(ce,Ve),wt=Pt(ze,Ve),Tt=Xe.get(wt);if(Tt)Qe(ce,Ve,Tt);else{var Lt=We?We(vt,wt,Ve+"",ce,ze,Xe):void 0,Bt=void 0===Lt;if(Bt){var Vt=Object(bt.a)(wt),Ht=!Vt&&Object(Dt.a)(wt),Ut=!Vt&&!Ht&&Object(Et.a)(wt);Lt=wt,Vt||Ht||Ut?Object(bt.a)(vt)?Lt=vt:Ct(vt)?Lt=Object(mt.a)(vt):Ht?(Bt=!1,Lt=Object(ot.a)(wt,!0)):Ut?(Bt=!1,Lt=Object(st.a)(wt,!0)):Lt=[]:Object(xt.a)(wt)||Object(yt.a)(wt)?(Lt=vt,Object(yt.a)(vt)?Lt=Ft(vt):Object(St.a)(vt)&&!Object(kt.a)(vt)||(Lt=Object(gt.a)(wt))):Bt=!1}Bt&&(Xe.set(wt,Lt),Ye(Lt,wt,qe,We,Xe),Xe.delete(wt)),Qe(ce,Ve,Lt)}};var Vt=function baseMerge(ce,ze,Ve,Ye,We){ce!==ze&&Object(Xe.a)(ze,(function(Xe,ot){if(We||(We=new qe.a),Object(St.a)(Xe))Bt(ce,ze,ot,Ve,baseMerge,Ye,We);else{var st=Ye?Ye(Pt(ce,ot),Xe,ot+"",ce,ze,We):void 0;void 0===st&&(st=Xe),Qe(ce,ot,st)}}),Lt.a)},Ht=Ve(692),Ut=Object(Ht.a)((function(ce,ze,Ve){Vt(ce,ze,Ve)}));ze.a=Ut},function(ce,ze,Ve){"use strict";var qe=Array.isArray;ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"f",(function(){return isTypeAroundWidget})),Ve.d(ze,"b",(function(){return getClosestTypeAroundDomButton})),Ve.d(ze,"d",(function(){return getTypeAroundButtonPosition})),Ve.d(ze,"c",(function(){return getClosestWidgetViewElement})),Ve.d(ze,"e",(function(){return getTypeAroundFakeCaretPosition}));var qe=Ve(74);const Ye="widget-type-around";function isTypeAroundWidget(ce,ze,Ve){return ce&&Object(qe.c)(ce)&&!Ve.isInline(ze)}function getClosestTypeAroundDomButton(ce){return ce.closest(".ck-widget__type-around__button")}function getTypeAroundButtonPosition(ce){return ce.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function getClosestWidgetViewElement(ce,ze){const Ve=ce.closest(".ck-widget");return ze.mapDomToView(Ve)}function getTypeAroundFakeCaretPosition(ce){return ce.getAttribute(Ye)}},function(ce,ze,Ve){"use strict";function r(ce){var ze,Ve,qe="";if("string"==typeof ce||"number"==typeof ce)qe+=ce;else if("object"==typeof ce)if(Array.isArray(ce))for(ze=0;ze{const{onChange:Ve,values:qe}=this.props;Ve(ce&&ze?[...qe,ze]:qe.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return Ye.a.createElement("div",{className:ce},Ye.a.Children.map(this.props.children,(ce=>Ye.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}mt.defaultProps={disabled:!1};ze.b=st},function(ce,ze,Ve){"use strict";var qe=Ve(323),Ye=qe(Ve(1789)),We=qe(Ve(349)),Qe=qe(Ve(350)),Xe=Ve(1791),ot=Ve(1803).getGrammar,st=function(){function Jexl(){(0,We.default)(this,Jexl),this.expr=this.expr.bind(this),this._grammar=ot()}return(0,Qe.default)(Jexl,[{key:"addBinaryOp",value:function addBinaryOp(ce,ze,Ve,qe){this._addGrammarElement(ce,(0,Ye.default)({type:"binaryOp",precedence:ze},qe?"evalOnDemand":"eval",Ve))}},{key:"addFunction",value:function addFunction(ce,ze){this._grammar.functions[ce]=ze}},{key:"addFunctions",value:function addFunctions(ce){for(var ze in ce)this._grammar.functions[ze]=ce[ze]}},{key:"addUnaryOp",value:function addUnaryOp(ce,ze){this._addGrammarElement(ce,{type:"unaryOp",weight:1/0,eval:ze})}},{key:"addTransform",value:function addTransform(ce,ze){this._grammar.transforms[ce]=ze}},{key:"addTransforms",value:function addTransforms(ce){for(var ze in ce)this._grammar.transforms[ze]=ce[ze]}},{key:"compile",value:function compile(ce){return this.createExpression(ce).compile()}},{key:"createExpression",value:function createExpression(ce){return new Xe(this._grammar,ce)}},{key:"getFunction",value:function getFunction(ce){return this._grammar.functions[ce]}},{key:"getTransform",value:function getTransform(ce){return this._grammar.transforms[ce]}},{key:"eval",value:function _eval(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).eval(ze)}},{key:"evalSync",value:function evalSync(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).evalSync(ze)}},{key:"expr",value:function expr(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:qe}=this.props,Ye=Xe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[qe]]:"auto"!==qe});return We.a.createElement("th",{className:Ye},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[],Ye=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&qe.push(...ce)}return Ve||(this.isMultipleSelect()?qe.push(this.createCheckboxCell()):this.isSingleSelect()&&qe.push(this.createEmptyCell())),Ye.unshift(...qe),Ye},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:qe}=ce;let{children:Ye}=qe;return 0===ze&&(Ye=this.createFirstCell(Ye)),We.a.cloneElement(ce,{...qe,key:Ve,children:Ye})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:qe,skin:Qe}=this.props;return Ve&&this.isMultipleSelect()&&qe?We.a.createElement(Ye.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Qe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.a,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(403),vt={radio:"radio--YPbrI-RgGp",dark:"dark--dcyk4uATtb",light:"light--34NFpmj7Fx",disabled:"disabled--uEVZ24e3mO"};class wt extends We.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Ye}=this.props,Qe=Xe()(vt.radio,vt[this.props.skin],{[vt.disabled]:ce});return We.a.createElement(bt.a,{checked:qe,className:Qe,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},Ye)}}wt.defaultProps={checked:!1,disabled:!1,skin:"dark"};class Ct extends We.a.PureComponent{render(){return We.a.createElement("div",{className:this.props.className},We.a.Children.map(this.props.children,(ce=>We.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}Ct.defaultProps={disabled:!1};var Dt=Ve(706),kt=Ve(405);class St extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:qe,width:Ye}=this.props,Qe=Xe()(Ve,mt.cell,{[mt[Ye]]:"auto"!==Ye}),ot={};return qe&&(ot.paddingLeft=25*qe+"px"),We.a.createElement("td",{className:Qe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}St.defaultProps={width:"auto"};class xt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(St,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.a,{name:ze})))}}xt.defaultProps={disabled:!1};class Et extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&qe.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&qe.push(We.a.createElement(St,{key:"choice",width:"shrink"},ce))}const Ye=this.cloneCells(ce);return Ye.unshift(qe),Ye},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:qe}=ce,Ye=0===ze,{depth:Qe}=this.props;let{children:Xe}=qe;return Ye&&(Xe=this.createFirstCell(Xe)),We.a.cloneElement(ce,{...qe,key:Ve,children:Xe,depth:Ye&&Qe?Qe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:qe}=this.props;return We.a.createElement(Ye.Fragment,null,Ve&&qe&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(kt.a,{size:10}):We.a.createElement(Dt.a,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(wt,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`control-${ze}-${Ve}`,{disabled:Ye,icon:Qe,onClick:Xe}=ce;return We.a.createElement(xt,{disabled:Ye,icon:Qe,key:qe,onClick:Xe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Xe()(mt.row,{[mt.disabled]:ze}),qe=this.createCells(ce);return We.a.createElement("tr",{className:Ve},qe)}}Et.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class Pt extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,qe)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${qe}`,rowIndex:qe,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var Tt,Lt;Pt.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Ft=Object(qe.b)((Lt=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:qe,selectMode:Ye,selectInFirstCell:Qe,skin:Xe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:qe?this.handleAllSelectionChange:void 0,selectMode:Ye,selectInFirstCell:Qe,skin:Xe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.a,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let qe,Ye;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:Ye=ce;break;case Pt:qe=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,Pt.name].join(", "))}}));const Qe=this.cloneBody(qe),ot=Qe&&0===We.a.Children.count(Qe.props.children),st=!(!Qe||ot)&&this.checkAllRowsSelected(Qe),gt=this.cloneHeader(Ye,st),bt=Xe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Qe),ot&&this.createTablePlaceholderArea())}},Lt.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Lt.Header=yt,Lt.Body=Pt,Lt.Row=Et,Lt.Cell=St,Lt.HeaderCell=gt,Tt=Lt))||Tt;var Bt=Ft;ze.a=Bt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(75),We=Ve(20),Qe=Ve(16),Xe=Ve(135),ot=Ve(8);class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=qe.clone()}get type(){return"merge"}get deletionPosition(){return new We.a(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const ce=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qe.a(this.sourcePosition,ce)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.targetPosition._getTransformedByMergeOperation(this),ze=this.sourcePosition.path.slice(0,-1),Ve=new We.a(this.sourcePosition.root,ze)._getTransformedByMergeOperation(this);return new Ye.a(ce,this.howMany,Ve,this.graveyardPosition,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent;if(!ce.parent)throw new ot.a("merge-operation-source-position-invalid",this);if(!ze.parent)throw new ot.a("merge-operation-target-position-invalid",this);if(this.howMany!=ce.maxOffset)throw new ot.a("merge-operation-how-many-invalid",this)}_execute(){const ce=this.sourcePosition.parent,ze=Qe.a._createIn(ce);Object(Xe.b)(ze,this.targetPosition),Object(Xe.b)(Qe.a._createOn(ce),this.graveyardPosition)}toJSON(){const ce=super.toJSON();return ce.sourcePosition=ce.sourcePosition.toJSON(),ce.targetPosition=ce.targetPosition.toJSON(),ce.graveyardPosition=ce.graveyardPosition.toJSON(),ce}static get className(){return"MergeOperation"}static fromJSON(ce,ze){const Ve=We.a.fromJSON(ce.sourcePosition,ze),qe=We.a.fromJSON(ce.targetPosition,ze),Ye=We.a.fromJSON(ce.graveyardPosition,ze);return new this(Ve,ce.howMany,qe,Ye,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var qe,Ye=Ve(1),We=Ve(22),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(232),mt=Ve(409),gt=Ve(366);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let yt=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"availableAttributes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"regexp",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"regexp"),qe.prototype),qe);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Qe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(Ye.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,qe)=>{addValueToSearchParameters(ce,ze,Ve+"["+qe+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const qe in ze){const Ye=Ve+xt+qe;addValueToSearchParameters(ce,ze[qe],Ye)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const qe=Ve.split(xt);ce[qe[0]]||(ce[qe[0]]={}),addAttributesFromSearchParameters(ce[qe[0]],ze,qe.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const qe=Ve.slice(0,Ve.indexOf("["));ce[qe]||(ce[qe]=[]),ce[qe].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const qe=ze.attributesHistory[ce].pop();ze.update(ce,{...qe,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(Ye.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,qe=ce+ze;if(Ve!==qe){const ce=Ve||qe;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],qe=Ve.indexOf(ce);-1!==qe&&Ve.splice(qe,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const qe=St.get(Ve),Ye=qe.regexp.exec(ce);if(!Ye)continue;const{availableAttributes:We}=qe,Qe={};for(let ce=1;ce{addAttributesFromSearchParameters(Qe,ce,ze)})),void this.handleNavigation(Ve,Qe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const qe=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(qe,ze),...ce})),{}),...ze},Qe=qe.attributeDefaults;Object.keys(Qe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Qe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(qe,We,Ve))return;this.route=qe,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(Ye.toJS)(Ve),Object(Ye.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(Ye.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const qe=Ve.get();ce[ze]=qe}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:qe}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(Ye.toJS)(ce[ze]);qe.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(Ye.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Qe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";var qe=Ve(591);ze.a=qe.default},function(ce,ze,Ve){"use strict";ze.a=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";function isIterable(ce){return!(!ce||!ce[Symbol.iterator])}Ve.d(ze,"a",(function(){return isIterable}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe{constructor(ce){this.baseVersion=ce,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const ce=Object.assign({},this);return ce.__className=this.constructor.className,delete ce.batch,delete ce.isDocumentOperation,ce}static get className(){return"Operation"}static fromJSON(ce){return new this(ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2138),Ct=Ve(263),Dt=Ve(292),kt=Ve(40),St=Ve(338),xt={"dialog-container":"dialog-container--SOn7B+vxSC",dialogContainer:"dialog-container--SOn7B+vxSC",dialog:"dialog--G7Wveo+g8n",small:"small--beDxk+PsvI",large:"large--xv8-eBLN-7",open:"open--GPXSLbktfQ",content:"content--GE8uDdrGDR",header:"header--jlptP88em8",headerItem:"headerItem--WMAbs4bs74",footer:"footer--herxZXfY4f",snackbar:"snackbar--k4bcZn-Pqs",article:"article--gq2ruuupr8",left:"left--zgpd33JVI6",center:"center--TpnfJq+BS0"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Qe,this),_initializerDefineProperty(this,"handleTransitionEnd",Xe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:qe,confirmLoading:Ye,confirmText:We,onCancel:Qe,onConfirm:Xe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.a,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We),Qe&&qe&&vt.a.createElement(kt.a,{onClick:Qe,skin:"secondary"},qe)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),qe=Ye))||qe;ze.a=Et},function(ce,ze,Ve){"use strict";var qe=Ve(654),Ye="object"==typeof self&&self&&self.Object===Object&&self,We=qe.a||Ye||Function("return this")();ze.a=We},function(ce,ze,Ve){"use strict";var qe=Ve(1),Ye=Ve(280);const We={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};function transformResponseObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null===Ye?(ze[Ve]=void 0,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformResponseArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformResponseObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null==Ye?(ze[Ve]=null,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformRequestArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformRequestObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(qe.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(qe.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Qe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(qe.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(qe.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,qe;const Qe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Xe=new AbortController;return Qe.setAbortController(Xe),fetch(ce,{...We,...ze,signal:Xe.signal}).then(Ve).catch(qe),Qe}class Qe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Qe.handleResponseHooks=[];ze.a=Qe},function(ce,ze,Ve){"use strict";function isText(ce){return"[object Text]"==Object.prototype.toString.call(ce)}Ve.d(ze,"a",(function(){return isText}))},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";var qe="object"==typeof document&&document.all;ce.exports=void 0===qe&&void 0!==qe?function(ce){return"function"==typeof ce||ce===qe}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(177),Ye=Ve(63),We=Ve(181),Qe=Ve(165),Xe=Ve(91),ot=Ve(99),st=Ve(252),mt=Ve(365);class gt extends qe.a{constructor(ce,ze,Ve,qe){if(super(ce),this.name=ze,this._attrs=parseAttributes(Ve),this._children=[],qe&&this._insertChild(0,qe),this._classes=new Set,this._attrs.has("class")){const ce=this._attrs.get("class");parseClasses(this._classes,ce),this._attrs.delete("class")}this._styles=new mt.b(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"view:element"===ce):"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(ce){if("class"==ce)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==ce){const ce=this._styles.toString();return""==ce?void 0:ce}return this._attrs.get(ce)}hasAttribute(ce){return"class"==ce?this._classes.size>0:"style"==ce?!this._styles.isEmpty:this._attrs.has(ce)}isSimilar(ce){if(!(ce instanceof gt))return!1;if(this===ce)return!0;if(this.name!=ce.name)return!1;if(this._attrs.size!==ce._attrs.size||this._classes.size!==ce._classes.size||this._styles.size!==ce._styles.size)return!1;for(const[ze,Ve]of this._attrs)if(!ce._attrs.has(ze)||ce._attrs.get(ze)!==Ve)return!1;for(const ze of this._classes)if(!ce._classes.has(ze))return!1;for(const ze of this._styles.getStyleNames())if(!ce._styles.has(ze)||ce._styles.getAsString(ze)!==this._styles.getAsString(ze))return!1;return!0}hasClass(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(ce)}hasStyle(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve`${ce[0]}="${ce[1]}"`)).sort().join(" ");return this.name+(""==ce?"":` class="${ce}"`)+(ze?` style="${ze}"`:"")+(""==Ve?"":` ${Ve}`)}shouldRenderUnsafeAttribute(ce){return this._unsafeAttributesToRender.includes(ce)}_clone(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const ze=[];if(ce)for(const Ve of this.getChildren())ze.push(Ve._clone(ce));const Ve=new this.constructor(this.document,this.name,this._attrs,ze);return Ve._classes=new Set(this._classes),Ve._styles.set(this._styles.getNormalized()),Ve._customProperties=new Map(this._customProperties),Ve.getFillerOffset=this.getFillerOffset,Ve._unsafeAttributesToRender=this._unsafeAttributesToRender,Ve}_appendChild(ce){return this._insertChild(this.childCount,ce)}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const qe=normalize(this.document,ze);for(const ze of qe)null!==ze.parent&&ze._remove(),ze.parent=this,ze.document=this.document,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve0&&(this._classes.clear(),!0):"style"==ce?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(ce)}_addClass(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._classes.add(ze)}_removeClass(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._classes.delete(ze)}_setStyle(ce,ze){this._fireChange("attributes",this),this._styles.set(ce,ze)}_removeStyle(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._styles.remove(ze)}_setCustomProperty(ce,ze){this._customProperties.set(ce,ze)}_removeCustomProperty(ce){return this._customProperties.delete(ce)}}function parseAttributes(ce){ce=Object(Qe.a)(ce);for(const[ze,Ve]of ce)null===Ve?ce.delete(ze):"string"!=typeof Ve&&ce.set(ze,String(Ve));return ce}function parseClasses(ce,ze){const Ve=ze.split(/\s+/);ce.clear(),Ve.forEach((ze=>ce.add(ze)))}function normalize(ce,ze){return"string"==typeof ze?[new Ye.a(ce,ze)]:(Object(ot.a)(ze)||(ze=[ze]),Array.from(ze).map((ze=>"string"==typeof ze?new Ye.a(ce,ze):ze instanceof We.a?new Ye.a(ce,ze.data):ze)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"b",(function(){return useStyleGuideContext}));var qe=Ve(0),Ye=Ve.n(qe),We=Ye.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),Qe=We;function useStyleGuideContext(){return Ye.a.useContext(We)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(100),Ye=Ve(20),We=Ve(233),Qe=Ve(67),Xe=Ve(135),ot=Ve(64),st=Ve(57),mt=Ve(8);class gt extends qe.a{constructor(ce,ze,Ve){super(Ve),this.position=ce.clone(),this.position.stickiness="toNone",this.nodes=new We.a(Object(Xe.c)(ze)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const ce=new We.a([...this.nodes].map((ce=>ce._clone(!0)))),ze=new gt(this.position,ce,this.baseVersion);return ze.shouldReceiveAttributes=this.shouldReceiveAttributes,ze}getReversed(){const ce=this.position.root.document.graveyard,ze=new Ye.a(ce,[0]);return new Qe.a(this.position,this.nodes.maxOffset,ze,this.baseVersion+1)}_validate(){const ce=this.position.parent;if(!ce||ce.maxOffsetce._clone(!0)))),Object(Xe.a)(this.position,ce)}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce.nodes=this.nodes.toJSON(),ce}static get className(){return"InsertOperation"}static fromJSON(ce,ze){const Ve=[];for(const ze of ce.nodes)ze.name?Ve.push(st.a.fromJSON(ze)):Ve.push(ot.a.fromJSON(ze));const qe=new gt(Ye.a.fromJSON(ce.position,ze),Ve,ce.baseVersion);return qe.shouldReceiveAttributes=ce.shouldReceiveAttributes,qe}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(16),We=Ve(8),Qe=Ve(135),Xe=Ve(304);var ot=function isEqual(ce,ze){return Object(Xe.a)(ce,ze)};class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.range=ce.clone(),this.key=ze,this.oldValue=void 0===Ve?null:Ve,this.newValue=void 0===qe?null:qe}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new st(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new st(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const ce=super.toJSON();return ce.range=this.range.toJSON(),ce}_validate(){if(!this.range.isFlat)throw new We.a("attribute-operation-range-not-flat",this);for(const ce of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!ot(ce.getAttribute(this.key),this.oldValue))throw new We.a("attribute-operation-wrong-old-value",this,{item:ce,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&ce.hasAttribute(this.key))throw new We.a("attribute-operation-attribute-exists",this,{node:ce,key:this.key})}}_execute(){ot(this.oldValue,this.newValue)||Object(Qe.e)(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(ce,ze){return new st(Ye.a.fromJSON(ce.range,ze),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(209),We=qe({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(Ye(ce),ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return ur})),Ve.d(ze,"d",(function(){return Ir})),Ve.d(ze,"a",(function(){return Sn}));var qe=Ve(1),Ye=Ve(3),We=Ve(0),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(54),mt=Ve(709),gt=(Ve(113),Ve(28)),yt=Ve.n(gt),bt=Ve(73),vt=Ve(90),wt=Ve.n(vt),Ct=Ve(6);var Dt=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}};var kt,St,xt,Et,Pt=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}},Tt="field-container--2nOx5P+TBC",Lt="field--id7xbztJ7m",Ft="field-exception--SPFAlLgZ8Y",Bt=Ve(189);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Vt=(kt=qe.computed.struct,Object(Ye.b)((Et=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe}=this.props;this.disabled||qe(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:qe,schemaPath:Ye}=this.props;ce&&ze&&qe(ce,ze),qe(Ve,Ye)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return Dt.getAll().reduce((function(ce,qe){return{...ce,...qe(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&wt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(qe.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:qe,name:Ye,onSuccess:We,router:Xe,schema:st,schemaPath:mt,showAllErrors:gt,value:yt}=this.props,{defaultType:vt,description:wt,label:Dt,maxOccurs:kt,minOccurs:St,onInvalid:xt,options:Et={},required:Bt,type:Vt}=st;let Ht;try{Ht=Pt.get(Vt)}catch(ce){return"ignore"===xt?null:(ot.a.error(ce),Qe.a.createElement(bt.a.Field,{colSpan:st.colSpan,spaceAfter:st.spaceAfter},Qe.a.createElement("div",{className:Tt},Qe.a.createElement("div",{className:Lt},Qe.a.createElement("div",{className:Ft},Qe.a.createElement("h4",null,"Error while rendering field!"),Qe.a.createElement("p",null,Qe.a.createElement("b",null,"Name:")," ",Ye,Qe.a.createElement("br",null),Qe.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Ut=Pt.getOptions(Vt),Wt=this.findErrorKeyword(Ve);return Qe.a.createElement(bt.a.Field,{colSpan:st.colSpan,description:wt,error:Wt?Object(Ct.translate)("sulu_admin.error_"+Wt.toLowerCase()):void 0,id:ze,label:Dt,required:Bt,spaceAfter:st.spaceAfter},Qe.a.createElement("div",{className:Tt},Qe.a.createElement("div",{className:Lt},Qe.a.createElement(Ht,{data:ce,dataPath:ze,defaultType:vt,disabled:this.disabled,error:Ve,fieldTypeOptions:Ut,formInspector:qe,label:Dt||Ye,maxOccurs:kt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Xe,schemaOptions:Et,schemaPath:mt,showAllErrors:gt,types:this.types,value:yt}))))}},Et.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((xt=Et).prototype,"conditionData",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"conditionData"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"disabled",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"disabled"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"visible",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"visible"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"types",[kt],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),St=xt))||St);var Ht,Ut,Wt=Vt;function Section_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Jt,Qt,en,rn,ln=Object(Ye.b)((Section_applyDecoratedDescriptor((Ut=class extends Qe.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return Dt.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:qe,label:Ye}=Ve;return Qe.a.createElement(bt.a.Section,{colSpan:qe,key:ze,label:Ye},ce)}}).prototype,"conditionData",[qe.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"conditionData"),Ut.prototype),Section_applyDecoratedDescriptor(Ut.prototype,"visible",[qe.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"visible"),Ut.prototype),Ht=Ut))||Ht;let mn=Object(Ye.b)((rn=class extends Qe.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="handleFieldFinish",qe=this,(Ve=en)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}renderSection(ce,ze,Ve){const{data:qe,formInspector:Ye}=this.props,{items:We}=ce;return Qe.a.createElement(ln,{data:qe,formInspector:Ye,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:qe,dataPath:Ye,errors:We,formInspector:Xe,onChange:ot,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=Ye+"/"+ze,wt=(gt||Xe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return Qe.a.createElement(Wt,{data:qe,dataPath:vt,error:wt,formInspector:Xe,key:ze+"_"+ce.type,name:ze,onChange:ot,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return Qe.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},rn.defaultProps={showAllErrors:!1},en=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Qt=rn).prototype,"handleFieldFinish",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Jt=Qt))||Jt;var gn,bn,wn,Cn,Sn=mn,En=Ve(101),Tn=Ve(32),Ln=Ve(11);function GhostDialog_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function GhostDialog_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Fn,Yn,Un,Gn,Kn=Object(Ye.b)((bn=class extends Qe.a.Component{constructor(ce){super(ce),GhostDialog_initializerDefineProperty(this,"selectedLocale",wn,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},GhostDialog_initializerDefineProperty(this,"handleLocaleChange",Cn,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return Qe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.no"),confirmText:Object(Ln.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(Ln.b)("sulu_admin.ghost_dialog_title")},Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.ghost_dialog_description")),Qe.a.createElement(bt.a,null,Qe.a.createElement(bt.a.Field,{colSpan:6,label:Object(Ln.b)("sulu_admin.choose_language")},Qe.a.createElement(Tn.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>Qe.a.createElement(Tn.a.Option,{key:ce,value:ce},ce)))))))}},wn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"selectedLocale",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"handleLocaleChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),gn=bn))||gn;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jn=Object(Ye.b)((Yn=class extends Qe.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Un,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Gn,this)}render(){const{open:ce,types:ze}=this.props;return Qe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(Ln.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(Ln.b)("sulu_admin.missing_type_dialog_title")},Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.missing_type_dialog_description")),Qe.a.createElement(bt.a,null,Qe.a.createElement(bt.a.Field,{colSpan:6},Qe.a.createElement(Tn.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>Qe.a.createElement(Tn.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Un=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"selectedType",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"handleTypeChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Fn=Yn))||Fn;var Zn,Xn,ei,si,_i,Ri,Ci,Di,Ei,Oi=Jn;function Form_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ti=Object(Ye.b)((Xn=class extends Qe.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",ei,this),Form_initializerDefineProperty(this,"displayGhostDialog",si,this),Form_initializerDefineProperty(this,"submit",_i,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",Ri,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",Ci,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",Di,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",Ei,this),this.handleFieldFinish=(ce,ze)=>{ot.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(qe.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(qe.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:qe}=ce;Ve?this.hideGhostDialog():ze&&qe&&!ze.includes(qe.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Bt.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:qe}}=Ve;return Ve.forbidden?Qe.a.createElement(mt.a,null):Ve.loading?Qe.a.createElement(st.a,null):Qe.a.createElement(We.Fragment,null,Ve.id&&qe&&Qe.a.createElement(Kn,{locales:qe,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),Qe.a.createElement(Oi,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&Qe.a.createElement(Sn,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},ei=Form_applyDecoratedDescriptor(Xn.prototype,"showAllErrors",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=Form_applyDecoratedDescriptor(Xn.prototype,"displayGhostDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Xn.prototype,"formInspector",[qe.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"formInspector"),Xn.prototype),_i=Form_applyDecoratedDescriptor(Xn.prototype,"submit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&ot.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:qe}=this.props;if(this.showAllErrors=!0,qe.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(qe.errors)}}}),Form_applyDecoratedDescriptor(Xn.prototype,"showGhostDialog",[qe.action],Object.getOwnPropertyDescriptor(Xn.prototype,"showGhostDialog"),Xn.prototype),Form_applyDecoratedDescriptor(Xn.prototype,"hideGhostDialog",[qe.action],Object.getOwnPropertyDescriptor(Xn.prototype,"hideGhostDialog"),Xn.prototype),Ri=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),Ci=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),Di=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),Ei=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Zn=Xn))||Zn,er=(Ve(381),Ve(53)),tr=Ve(329),nr=Ve(683);var rr,ar,sr,lr,dr,ur=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,qe=arguments.length>3?arguments[3]:void 0,Ye=arguments.length>4?arguments[4]:void 0;return new nr.a(((ce,qe)=>new tr.a(ze,ce,qe,Ve,Ye)),ce,qe,Ye)}createFromSchema(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new tr.a(Ve,ce,ze)}},pr=Ve(259),vr=Ve(368),_r=(Ve(501),Ve(414));function ResourceFormStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceFormStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Rr="template",Cr=Object(vr.a)();function mergeData(ce,ze,Ve,Ye){let We={};if(!ce||!ze)return We;for(const Xe in ze){const{items:ot,defaultType:st,type:mt,types:gt}=ze[Xe],{items:yt,defaultType:bt,type:vt,types:wt}=ce[Xe]||{};if(mt===_r.a&&ot)We=mergeData(ce,ot,Ve,Ye);else if(vt===_r.a&&yt)We=mergeData(yt,ze,Ve,Ye);else if(gt&&wt&&Object.keys(gt).length>0&&Object.keys(wt).length>0&&Ve[Xe]&&Ye[Xe]&&Object(qe.isArrayLike)(Ve[Xe])&&Object(qe.isArrayLike)(Ye[Xe]))for(let ce=0;cece&&Ye[Xe][ce]||{}),ot=Object(qe.toJS)(Ve[Xe].length>ce&&Ve[Xe][ce]||{}),mt=null==ot?void 0:ot.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(Qe=wt[ot.type])||void 0===Qe?void 0:Qe.form)||wt[bt].form,gt[yt].form,ot,ze);We[Xe]||(We[Xe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==ot?void 0:ot.settings)||ze.settings,We[Xe].push(vt))}else Ve[Xe]&&mt===vt?We[Xe]=Ve[Xe]:We[Xe]=Ye[Xe]}return We}let Dr=(rr=class extends _r.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;super(),ResourceFormStore_initializerDefineProperty(this,"types",ar,this),ResourceFormStore_initializerDefineProperty(this,"schemaLoading",sr,this),ResourceFormStore_initializerDefineProperty(this,"typesLoading",lr,this),ResourceFormStore_initializerDefineProperty(this,"handleSchemaTypeResponse",dr,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Cr.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(qe.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const qe=mergeData(ce,ze,this.data,Ve);this.setMultiple(qe)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=Ye,pr.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(qe.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(qe.get)(this.data,Rr):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(qe.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){ot.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Rr,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Rr,ce,ze)}getSchemaEntryByPath(ce){return yt.a.get(this.schema,ce)}},ar=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),sr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),lr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"typesLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),dr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"handleSchemaTypeResponse",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(qe.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Rr]||Ve||Object.keys(this.types)[0];Object(qe.set)(this.data,{[Rr]:ce})})),this.schemaDisposer=Object(qe.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([pr.a.getSchema(this.formKey,this.type,this.metadataOptions),pr.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"hasTypes",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"hasTypes"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"hasInvalidType",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"hasInvalidType"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"loading"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"data"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"type"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"save",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"save"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"locale"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"resourceKey"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"id"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"saving",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"saving"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"deleting",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"deleting"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"forbidden",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"forbidden"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"dirty",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"dirty"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"setSchemaLoading",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"setSchemaLoading"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"setType",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"setType"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"changeType",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"changeType"),rr.prototype),rr);var Er,Tr,Ar,Mr,Lr,jr,Ir=new class{createFromResourceStore(ce,ze){return new Dr(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)}},zr=Ve(45);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Tr=class extends Qe.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Ar,this),ChangelogLine_initializerDefineProperty(this,"creator",Mr,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Lr,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",jr,this),this.loadChanger=()=>{"number"==typeof this.changerId?zr.a.get("users",{id:this.changerId}).then(Object(qe.action)((ce=>{this.setChanger(ce)}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?zr.a.get("users",{id:this.creatorId}).then(Object(qe.action)((ce=>{this.setCreator(ce)}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(qe.autorun)(this.loadChanger),this.creatorDisposer=Object(qe.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?Qe.a.createElement(We.Fragment,null,Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):Qe.a.createElement(st.a,null)}},Ar=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changer",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"setChanger",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setChanger"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"setCreator",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setCreator"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerId",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changerId"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorId",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"creatorId"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerFullName",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changerFullName"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changed",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changed"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorFullName",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"creatorFullName"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"created",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"created"),Tr.prototype),Er=Tr));var Br=Ve(40),Nr=Ve(19),Vr="card--VI2KeXPH29",Hr="icons--BxuYzRG+LS";class qr extends Qe.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return Qe.a.createElement("section",{className:Vr},Qe.a.createElement("div",{className:Hr},ze&&Qe.a.createElement(Nr.a,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Qe.a.createElement(Nr.a,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}var Yr=qr,Ur="cards--j5zUs1S7oR",Wr="card--elUHt7xFsM",$r="add-button-container--AywkTv4Tsw";class Gr extends Qe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:qe}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement("section",{className:Ur},ce&&Qe.a.Children.map(ce,((ce,ze)=>Qe.a.createElement("div",{className:Wr,key:ze},Qe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:qe}))))),Qe.a.createElement("div",{className:$r},Qe.a.createElement(Br.a,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(Ln.b)("sulu_admin.add"))))}}Gr.Card=Yr;var Kr,Jr,Zr,ga,ya,ba,va,_a,wa,ka=Gr,xa=Ve(131),Aa="overlay--j5utDwD9Ty";function CardCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Jr=class extends Qe.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Zr,this),CardCollection_initializerDefineProperty(this,"formStore",ga,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",ya,this),CardCollection_initializerDefineProperty(this,"handleEdit",ba,this),CardCollection_initializerDefineProperty(this,"handleRemove",va,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",_a,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",wa,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:qe}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(ka,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!qe&&qe.map(((ce,ze)=>Qe.a.createElement(ka.Card,{key:ze},Ve(ce))))),Qe.a.createElement(xa.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(Ln.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(Ln.b)(ze):Object(Ln.b)(ce)},Qe.a.createElement("div",{className:Aa},!!this.formStore&&Qe.a.createElement(Ap,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Zr=CardCollection_applyDecoratedDescriptor(Jr.prototype,"overlayIndex",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ga=CardCollection_applyDecoratedDescriptor(Jr.prototype,"formStore",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ya=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleAdd",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=ur.createFromSchema(ze,ce)}}}),ba=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleEdit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:Ye}=this.props;if(!Ye)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=ur.createFromSchema(Ve,ze,Object(qe.toJS)(Ye[ce]))}}}),va=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleRemove",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),_a=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleCloseOverlay",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),wa=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleOverlaySubmit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:qe}=this;if(!qe)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([qe.data]):void 0===this.overlayIndex?ce([...Ve,qe.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?qe.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(Jr.prototype,"closeFormStore",[qe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"closeFormStore"),Jr.prototype),Kr=Jr));var Ba,Ja,io,po=Ve(22),ho=Ve.n(po),go=Ve(126),_o=Ve(216),Co=Ve(192),ko=Ve(290),Oo=Ve(577),Po="list--61iGCd+dVW";function Selection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Ja=class extends Qe.a.Component{constructor(ce){var ze,Ve,Ye,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(Ye=io)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||ho()(Object(qe.toJS)(this.value),Object(qe.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||ho()(Object(qe.toJS)(this.value)||[],Object(qe.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Qe},formInspector:Xe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Qe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(qe.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(qe.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;if(this.requestOptions=this.buildRequestOptions(mt,gt,Xe),Xe.addFinishFieldHandler((ce=>{if(gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,gt,Xe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new _o.a(Qe,ce||Qe,"selection",{locale:this.locale,page:qe.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(qe.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(qe.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(qe.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Co.a(Qe,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(qe.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!ho()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(qe.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(qe.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(ot.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:qe.observable.box(er.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Qe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Qe))})),Ye}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,list_key:Ye,display_properties:We,icon:Xe,label:ot,overlay_title:st}}},schemaOptions:{types:{value:mt}={},item_disabled_condition:{value:gt}={},allow_deselect_for_disabled_items:{value:yt=!0}={},sortable:{value:bt=!0}={}}}=this.props;if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==gt&&"string"!=typeof gt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!qe)throw new Error('The selection field needs a "adapter" option to work properly');const vt={...this.requestOptions};return mt&&(vt.types=mt),Qe.a.createElement(Oo.a,{adapter:qe,allowDeselectForDisabledItems:!!yt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Xe,itemDisabledCondition:gt,label:Object(Ln.b)(ot,{count:this.value?this.value.length:0}),listKey:Ye||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:vt,overlayTitle:Object(Ln.b)(st),resourceKey:Ve,sortable:bt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:qe,search_properties:Ye}}}}=this.props;if(!qe)throw new Error('The selection field needs a "display_property" option to work properly!');if(!Ye)throw new Error('The selection field needs a "search_properties" option to work properly!');return Qe.a.createElement(ko.a,{allowAdd:Ve,disabled:!!ze,displayProperty:qe,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:Ye,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return Qe.a.createElement("div",{className:Po},Qe.a.createElement(go.b,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},io=Selection_applyDecoratedDescriptor(Ja.prototype,"requestOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Ja.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"locale"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"type"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteIdProperty",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteIdProperty"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteFilterParameter",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteFilterParameter"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ba=Ja));var To,Ao,jo,Fo=Ve(552),Bo=Ve(554),Vo=Ve(376),Ho=Ve(161);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Ao=class extends Qe.a.Component{constructor(ce){var ze,Ve,Ye,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(Ye=jo)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Qe},formInspector:Xe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Qe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(qe.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(qe.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;this.requestOptions=this.buildRequestOptions(mt,gt,Xe),Xe.addFinishFieldHandler((ce=>{if(gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,gt,Xe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Ho.a(Qe,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(qe.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Qe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Qe))})),Ye}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||ot.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:qe.observable.box(er.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&ot.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,detail_options:We,list_key:Xe,display_properties:ot,empty_text:st,icon:mt,overlay_title:gt}}},schemaOptions:{form_options_to_list_options:{value:yt=[]}={},item_disabled_condition:{value:bt}={},allow_deselect_for_disabled_items:{value:vt=!0}={},types:{value:wt}={}}={}}=this.props;if(void 0!==wt&&"string"!=typeof wt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==bt&&"string"!=typeof bt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==vt&&"boolean"!=typeof vt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(qe.isArrayLike)(yt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const Ct=yt;if(We&&"object"!=typeof We)throw new Error('The "detail_options" option has to be an array if defined!');const Dt=Ct.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),kt=wt?{types:wt}:void 0,St={...this.requestOptions,...Dt,...kt},xt={...this.requestOptions,...We};return Qe.a.createElement(Vo.a,{adapter:Ye,allowDeselectForDisabledItems:!!vt,detailOptions:xt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:ot,emptyText:Object(Ln.b)(st),icon:mt,itemDisabledCondition:bt,listKey:Xe||Ve,listOptions:St,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(Ln.b)(gt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:qe,overlay_title:Ye}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof qe)throw new Error('The "id_property" field-type option must be a string!');return Qe.a.createElement(Fo.a,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:qe,onChange:this.handleChange,overlayTitle:Object(Ln.b)(Ye),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:Ye,schemaOptions:{data_path_to_auto_complete:{value:We=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:Xe,search_properties:st}}}=Ve;if(!Object(qe.isArrayLike)(We))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const mt=We;mt.length>0&&ot.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const gt={...mt.reduce(((ce,ze)=>{const{name:Ve,value:qe}=ze;if("string"!=typeof Ve||"string"!=typeof qe)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[qe]=Ye.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return Qe.a.createElement(Bo.a,{disabled:!!ce,displayProperty:Xe,id:ze,options:gt,searchProperties:st,selectionStore:this.autoCompleteSelectionStore})}},jo=SingleSelection_applyDecoratedDescriptor(Ao.prototype,"requestOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"value"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"type"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"locale"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"viewName"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"resultToView"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat"),Ao.prototype),To=Ao));var Uo,Wo,$o=Ve(89),es=Ve(162),ts=Ve(574);function Heading_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ns,rs,os=Object(Ye.b)((Heading_applyDecoratedDescriptor((Wo=class extends Qe.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return Qe.a.createElement(ts.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"schemaOptions"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"description",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"description"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"icon",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"icon"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"label",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"label"),Wo.prototype),Uo=Wo))||Uo;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_value:{value:Ye}={}}=Ve;if(null!=Ye){if("boolean"!=typeof Ye)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===qe&&ze(Ye,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?Qe.a.createElement(es.a,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):Qe.a.createElement($o.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?Qe.a.createElement(os,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"schemaOptions"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"label",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"label"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"skin",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"skin"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"type"),rs.prototype),ns=rs));var ss,ls,cs,ds,us,ps,hs,fs,ms,gs,ys=Ve(685),bs=Ve(48),vs=Ve(118),_s="icon--mIqOqpjb2A";function ColorPicker_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColorPicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((gs=class extends Qe.a.Component{constructor(){super(...arguments),ColorPicker_initializerDefineProperty(this,"value",cs,this),ColorPicker_initializerDefineProperty(this,"showError",ds,this),ColorPicker_initializerDefineProperty(this,"popoverOpen",us,this),ColorPicker_initializerDefineProperty(this,"popoverAnchorElement",ps,this),ColorPicker_initializerDefineProperty(this,"handlePopoverOpen",hs,this),ColorPicker_initializerDefineProperty(this,"handlePopoverClose",fs,this),ColorPicker_initializerDefineProperty(this,"setRef",ms,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:qe,valid:Ye}=this.props,Xe={color:this.isValidValue?this.value:"transparent"};return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bs.a,{disabled:ce,icon:"su-square",iconClassName:_s,iconStyle:Xe,id:ze,inputContainerRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:qe,valid:Ye&&!this.showError,value:this.value}),Qe.a.createElement(vs.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>Qe.a.createElement("div",{ref:ce,style:ze},Qe.a.createElement(ys.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},gs.defaultProps={disabled:!1,valid:!0},cs=ColorPicker_applyDecoratedDescriptor((ls=gs).prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ds=ColorPicker_applyDecoratedDescriptor(ls.prototype,"showError",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),us=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ps=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverAnchorElement",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverOpen",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),fs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),ms=ColorPicker_applyDecoratedDescriptor(ls.prototype,"setRef",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(ls.prototype,"setValue"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setShowError",[qe.action],Object.getOwnPropertyDescriptor(ls.prototype,"setShowError"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"isValidValue",[qe.computed],Object.getOwnPropertyDescriptor(ls.prototype,"isValidValue"),ls.prototype),ss=ls));Qe.a.Component;var ws,Rs,Cs=Ve(10),Ds=Ve.n(Cs),ks=Ve(331);function createStringValue(ce,ze){if(ce)return Ds()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ds()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(Ye.b)((Rs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:qe,value:Ye}=this.props,{dateFormat:We,timeFormat:Xe}=qe;if(void 0===We||void 0===Xe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const ot={};return Xe&&(ot.timeFormat=Xe),We||(ot.dateFormat=!1),Qe.a.createElement(ks.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:ot,valid:!Ve,value:getValue(Ye,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Rs.prototype,"format",[qe.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"format"),Rs.prototype),ws=Rs));Ve(629);Qe.a.Component;Qe.a.Component;var Ss,xs,Es=Ve(380);function Number_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((xs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:qe,value:Ye}=this.props;return Qe.a.createElement(Es.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:qe,step:this.step,valid:!Ve,value:Ye})}},Number_applyDecoratedDescriptor(xs.prototype,"min",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"min"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"max",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"max"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"step",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"step"),xs.prototype),Ss=xs));var Os,Ps,Ts,As,Ms,Ls,js,Is,zs,Fs=Ve(51),Bs=Ve.n(Fs),Ns=Ve(164),Vs="grid--R3KoUAGpuN",Hs="item--YVYulc3RYK";function PasswordConfirmation_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PasswordConfirmation_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const qs="su-lock",Ys="password";Object(Ye.b)((zs=class extends Qe.a.Component{constructor(){super(...arguments),PasswordConfirmation_initializerDefineProperty(this,"firstValue",Ts,this),PasswordConfirmation_initializerDefineProperty(this,"secondValue",As,this),PasswordConfirmation_initializerDefineProperty(this,"valid",Ms,this),PasswordConfirmation_initializerDefineProperty(this,"setValidFlag",Ls,this),PasswordConfirmation_initializerDefineProperty(this,"handleFirstChange",js,this),PasswordConfirmation_initializerDefineProperty(this,"handleSecondChange",Is,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:qe}}=this;this.handleChangeDebounced(qe&&(!ce||!ze||Ve))},this.handleChangeDebounced=Bs()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(qe.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return Qe.a.createElement(Ns.a,{className:Vs},Qe.a.createElement(Ns.a.Item,{colSpan:6},Qe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleFirstChange,type:Ys,valid:this.valid,value:this.firstValue})),Qe.a.createElement(Ns.a.Item,{className:Hs,colSpan:6},Qe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleSecondChange,type:Ys,valid:this.valid,value:this.secondValue})))}},zs.defaultProps={disabled:!1,valid:!0},Ts=PasswordConfirmation_applyDecoratedDescriptor((Ps=zs).prototype,"firstValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),As=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"secondValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ms=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"valid",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ls=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"setValidFlag",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"passwordsMatch",[qe.computed],Object.getOwnPropertyDescriptor(Ps.prototype,"passwordsMatch"),Ps.prototype),js=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleFirstChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),Is=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleSecondChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Os=Ps));Qe.a.Component;Ve(630);Qe.a.Component;Ve(575);Qe.a.Component;Qe.a.Component;var Us,Ws=Ve(201);(function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We})((Us=class extends Qe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,qe=this.values.map((ce=>ce.name)),Ye=ce.filter((ce=>qe.includes(ce)));ze(Ye.length>0?Ye:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_values:{value:We}={}}=Ve;if(null==We)return;if(!Object(qe.isArrayLike)(We))throw new Error('The "default_values" schema option must be an array!');const Qe=We.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===Ye&&ze(Qe,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(qe.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return Qe.a.createElement(Ws.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return Qe.a.createElement(Ws.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[qe.computed],Object.getOwnPropertyDescriptor(Us.prototype,"values"),Us.prototype);var $s,Gs,Ks,Js,Zs,Qs,Xs,pl,gl=Ve(576),yl=Ve(578),bl=Ve(103),vl="buttons-container--qZF3lXoC9Z",_l="refresh-button--g-0xkZTGjc";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const wl="sulu.rlp.part";Object(Ye.b)((Gs=class extends Qe.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(wl).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Ks,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",Js,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Zs,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Qs,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Xs,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",pl,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:Ye,value:We}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(qe.action)((ce=>this.mode=ce))),"/"!==We&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(qe.reaction)((()=>this.parts),Object(qe.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:qe.comparer.structural}),Ye.addFinishFieldHandler(Object(qe.action)(((ce,ze)=>{const{tags:Ve}=Ye.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===wl))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:Ye,formInspector:Xe,schemaOptions:{entity_class:{value:ot}={}}={},value:st}=this.props;return"/"===st?"/":Qe.a.createElement(We.Fragment,null,Qe.a.createElement(gl.a,{disabled:!!Ye,id:Ve,locale:Xe.locale?Xe.locale:qe.observable.box(er.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:st}),Qe.a.createElement("div",{className:vl},Qe.a.createElement(Br.a,{className:_l,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(Ln.b)("sulu_admin.refresh_url")),Qe.a.createElement(yl.a,{id:Xe.id,options:{locale:Xe.locale?Xe.locale.get():er.a.contentLocale,resourceKey:Xe.resourceKey,webspace:Xe.options.webspace,entityClass:ot,...ze},resourceKey:ce})))}},Ks=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"mode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Js=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"inputChanged",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"inputChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"partsChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"parts",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"parts"),Gs.prototype),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"enableAutoGeneration",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"enableAutoGeneration"),Gs.prototype),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"enableRefreshButton",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"enableRefreshButton"),Gs.prototype),Xs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"refreshResourceLocator",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:Ye,schemaOptions:{entity_class:{value:We}={},route_schema:{value:Qe}={}}={}}=this.props,Xe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,Ye]=ce;const We=Object(qe.toJS)(Ve.getValueByPath("/"+ze));void 0!==We&&(Xe[Ye]=We)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,bl.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():er.a.contentLocale,id:Ve.id,entityClass:We,routeSchema:Qe,...Xe}).then(Object(qe.action)((ce=>{Ye(ce.resourcelocator)})))}}}),pl=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"handleInputChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),$s=Gs));var Rl=Ve(305);var Cl,Dl,kl,Sl,xl,El,Ol,Pl,Tl,Al,Ml,Ll,jl,Il,zl,Fl,Bl,Nl,Vl=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}},Hl=Ve(239),Ul=Ve(379);function SmartContentStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SmartContentStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Wl=(Dl=SmartContentStore_applyDecoratedDescriptor((Cl=class{constructor(ce,ze,Ve,Ye,We,Qe,Xe){SmartContentStore_initializerDefineProperty(this,"items",Dl,this),SmartContentStore_initializerDefineProperty(this,"itemsLoading",kl,this),SmartContentStore_initializerDefineProperty(this,"categoriesLoading",Sl,this),SmartContentStore_initializerDefineProperty(this,"dataSourceLoading",xl,this),SmartContentStore_initializerDefineProperty(this,"dataSource",El,this),SmartContentStore_initializerDefineProperty(this,"includeSubElements",Ol,this),SmartContentStore_initializerDefineProperty(this,"categories",Pl,this),SmartContentStore_initializerDefineProperty(this,"categoryOperator",Tl,this),SmartContentStore_initializerDefineProperty(this,"tags",Al,this),SmartContentStore_initializerDefineProperty(this,"tagOperator",Ml,this),SmartContentStore_initializerDefineProperty(this,"types",Ll,this),SmartContentStore_initializerDefineProperty(this,"audienceTargeting",jl,this),SmartContentStore_initializerDefineProperty(this,"sortBy",Il,this),SmartContentStore_initializerDefineProperty(this,"sortOrder",zl,this),SmartContentStore_initializerDefineProperty(this,"presentation",Fl,this),SmartContentStore_initializerDefineProperty(this,"limit",Bl,this),SmartContentStore_initializerDefineProperty(this,"excludedIds",Nl,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),bl.a.get(Hl.a.endpoints.items+Object(Ul.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(qe.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=Ye,this.id=We,this.params=Qe,this.webspaceKey=Xe,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,zr.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(qe.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,zr.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(qe.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(qe.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(qe.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){ho()(Object(qe.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(qe.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(qe.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),kl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"itemsLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Sl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoriesLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSourceLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),El=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSource",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ol=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"includeSubElements",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categories",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoryOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Al=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tags",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ml=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tagOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ll=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"audienceTargeting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Il=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortBy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortOrder",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"presentation",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"limit",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"excludedIds",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItems",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItems"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItemsLoading",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItemsLoading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setExcludedIds",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setExcludedIds"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"loading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"filterCriteria",[qe.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"filterCriteria"),Cl.prototype),Cl);var $l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc,Mc,Lc,jc,Ic,Fc,Nc,Vc,qc,Gc,Kc,Jc,Qc,ed,td,sd,ld,cd,dd,ud,fd=Ve(382),md=Ve(254),yd="content--XveO2A9KMf",bd="section---1bog2Bd1-",vd="source--RNclqKZuq3",_d="source-button--XYZK5kBDTN",wd="description--49SddAeobJ",Rd="categories--VmgqC9mUDy",Cd="categories-select--tUKLLwJuIZ",Dd="tags--KLSIqfaz2I",kd="tags-auto-complete--NHC9irWZ3h",Sd="tags-select--xtOCwJbQsN",xd="types--xNckylGPFk",Ed="sorting--ekatkidFeZ",Od="sort-column--hYykQdw1Zy",Td="sort-order--qnROkLKzFi",Ad="presentation--4EddM2-AMW",Md="limit--u3an2zBiqr";function FilterOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FilterOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ld,Id,Fd,Bd,Nd,Vd,Hd=Object(Ye.b)((ec=class extends Qe.a.Component{constructor(ce){super(ce),FilterOverlay_initializerDefineProperty(this,"dataSource",nc,this),FilterOverlay_initializerDefineProperty(this,"includeSubElements",ic,this),FilterOverlay_initializerDefineProperty(this,"categories",oc,this),FilterOverlay_initializerDefineProperty(this,"categoryOperator",lc,this),FilterOverlay_initializerDefineProperty(this,"tags",pc,this),FilterOverlay_initializerDefineProperty(this,"tagOperator",hc,this),FilterOverlay_initializerDefineProperty(this,"types",fc,this),FilterOverlay_initializerDefineProperty(this,"audienceTargeting",mc,this),FilterOverlay_initializerDefineProperty(this,"sortBy",gc,this),FilterOverlay_initializerDefineProperty(this,"sortOrder",_c,this),FilterOverlay_initializerDefineProperty(this,"limit",kc,this),FilterOverlay_initializerDefineProperty(this,"presentation",Ec,this),FilterOverlay_initializerDefineProperty(this,"showDataSourceDialog",Oc,this),FilterOverlay_initializerDefineProperty(this,"showCategoryDialog",Mc,this),FilterOverlay_initializerDefineProperty(this,"updateFilterCriteria",Lc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirm",jc,this),FilterOverlay_initializerDefineProperty(this,"resetFilterCriteria",Ic,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmDataSourceDialog",Fc,this),FilterOverlay_initializerDefineProperty(this,"handleDataSourceButtonClick",Nc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseDataSourceDialog",Vc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryButtonClick",qc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseCategoryDialog",Gc,this),FilterOverlay_initializerDefineProperty(this,"handleIncludeSubElementsChange",Kc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmCategoryDialog",Jc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryOperatorChange",Qc,this),FilterOverlay_initializerDefineProperty(this,"handleTagOperatorChange",ed,this),FilterOverlay_initializerDefineProperty(this,"handleTypesChange",td,this),FilterOverlay_initializerDefineProperty(this,"handleAudienceTargetingChange",sd,this),FilterOverlay_initializerDefineProperty(this,"handleSortByChange",ld,this),FilterOverlay_initializerDefineProperty(this,"handleSortOrderChange",cd,this),FilterOverlay_initializerDefineProperty(this,"handlePresentationChange",dd,this),FilterOverlay_initializerDefineProperty(this,"handleLimitChange",ud,this),this.updateFilterCriteriaDisposer=Object(qe.autorun)((()=>this.updateFilterCriteria(this.props.smartContentStore))),this.tagSelectionStore=new Co.a("tags",this.tags||[],void 0,"names"),this.tagSelectionStoreDisposer=Object(qe.autorun)((()=>{this.tags=this.tagSelectionStore.items.map((ce=>ce.name))}))}componentWillUnmount(){this.updateFilterCriteriaDisposer(),this.tagSelectionStoreDisposer()}render(){const{categoryRootKey:ce,dataSourceAdapter:ze,dataSourceListKey:Ve,dataSourceResourceKey:qe,onClose:Ye,open:Xe,presentations:ot,sections:st,smartContentStore:mt,sortings:gt,title:yt,types:bt}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(xa.a,{actions:[{title:Object(Ln.b)("sulu_admin.reset"),onClick:this.resetFilterCriteria}],confirmText:Object(Ln.b)("sulu_admin.confirm"),onClose:Ye,onConfirm:this.handleConfirm,open:Xe,size:"small",title:yt},Qe.a.createElement("div",{className:yd},st.includes("datasource")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.data_source")),Qe.a.createElement("div",{className:vd},Qe.a.createElement(Br.a,{className:_d,onClick:this.handleDataSourceButtonClick},Object(Ln.b)("sulu_admin.choose_data_source")),Qe.a.createElement(es.a,{checked:this.includeSubElements||!1,onChange:this.handleIncludeSubElementsChange},Object(Ln.b)("sulu_admin.include_sub_elements"))),Qe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_admin.data_source"),": ",this.dataSource&&this.dataSource.title)),st.includes("categories")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_categories")),Qe.a.createElement("div",{className:Rd},Qe.a.createElement(Br.a,{onClick:this.handleCategoryButtonClick},Object(Ln.b)("sulu_admin.choose_categories")),Qe.a.createElement("div",{className:Cd},Qe.a.createElement(Tn.a,{onChange:this.handleCategoryOperatorChange,value:this.categoryOperator},Qe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_category_description")),Qe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_categories_description"))))),Qe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_category.categories"),": ",this.categories&&this.categories.map((ce=>ce.name)).join(", "))),st.includes("tags")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_tags")),Qe.a.createElement("div",{className:Dd},Qe.a.createElement("div",{className:kd},Qe.a.createElement(ko.a,{displayProperty:"name",idProperty:"name",searchProperties:["name"],selectionStore:this.tagSelectionStore})),Qe.a.createElement("div",{className:Sd},Qe.a.createElement(Tn.a,{onChange:this.handleTagOperatorChange,value:this.tagOperator},Qe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_tag_description")),Qe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_tags_description")))))),st.includes("types")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_types")),Qe.a.createElement("div",{className:xd},Qe.a.createElement(Ws.a,{allSelectedText:Object(Ln.b)("sulu_admin.all_types"),noneSelectedText:Object(Ln.b)("sulu_admin.no_types"),onChange:this.handleTypesChange,values:this.types||[]},bt.map((ce=>Qe.a.createElement(Ws.a.Option,{key:ce.value,value:ce.value},ce.name)))))),st.includes("audienceTargeting")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.target_groups")),Qe.a.createElement(es.a,{checked:this.audienceTargeting||!1,onChange:this.handleAudienceTargetingChange},Object(Ln.b)("sulu_admin.use_target_groups"))),st.includes("sorting")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.sort_by")),Qe.a.createElement("div",{className:Ed},Qe.a.createElement("div",{className:Od},Qe.a.createElement(Tn.a,{onChange:this.handleSortByChange,value:this.sortBy},gt.map(((ce,ze)=>Qe.a.createElement(Tn.a.Option,{key:ze,value:ce.name},Object(Ln.b)(ce.value)))))),Qe.a.createElement("div",{className:Td},Qe.a.createElement(Tn.a,{onChange:this.handleSortOrderChange,value:this.sortOrder},Qe.a.createElement(Tn.a.Option,{value:"asc"},Object(Ln.b)("sulu_admin.ascending")),Qe.a.createElement(Tn.a.Option,{value:"desc"},Object(Ln.b)("sulu_admin.descending")))))),st.includes("presentation")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.present_as")),Qe.a.createElement("div",{className:Ad},Qe.a.createElement(Tn.a,{onChange:this.handlePresentationChange,value:this.presentation},Object.keys(ot).map((ce=>Qe.a.createElement(Tn.a.Option,{key:ce,value:ce},ot[ce])))))),st.includes("limit")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.limit_result_to")),Qe.a.createElement("div",{className:Md},Qe.a.createElement(Es.a,{onChange:this.handleLimitChange,value:this.limit}))))),!mt.loading&&ze&&qe&&Ve&&Qe.a.createElement(md.a,{adapter:ze,clearSelectionOnClose:!1,listKey:Ve,locale:mt.locale,onClose:this.handleCloseDataSourceDialog,onConfirm:this.handleConfirmDataSourceDialog,open:this.showDataSourceDialog,overlayType:"dialog",preSelectedItem:this.dataSource,resourceKey:qe,title:Object(Ln.b)("sulu_admin.choose_data_source")}),!mt.loading&&Qe.a.createElement(fd.a,{adapter:"tree_table",clearSelectionOnClose:!1,listKey:"categories",locale:mt.locale,onClose:this.handleCloseCategoryDialog,onConfirm:this.handleConfirmCategoryDialog,open:this.showCategoryDialog,options:{rootKey:ce},overlayType:"dialog",preSelectedItems:this.categories||[],resourceKey:"categories",title:Object(Ln.b)("sulu_admin.choose_categories")}))}},nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"dataSource",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"includeSubElements",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categories",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categoryOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tags",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tagOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"audienceTargeting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortBy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_c=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortOrder",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"limit",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ec=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"presentation",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showDataSourceDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showCategoryDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"updateFilterCriteria",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubElements,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortOrder,this.presentation=ce.presentation,this.limit=ce.limit}}}),jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce,smartContentStore:ze}=this.props;ze.audienceTargeting=this.audienceTargeting,ze.categories=this.categories,ze.categoryOperator=this.categoryOperator,ze.dataSource=this.dataSource,ze.includeSubElements=this.includeSubElements,ze.limit=this.limit,ze.sortBy=this.sortBy,ze.sortOrder=this.sortOrder,ze.tagOperator=this.tagOperator,ze.tags=this.tags,ze.types=this.types,ze.presentation=this.presentation,ce()}}}),Ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"resetFilterCriteria",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultValue:ce}=this.props;this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubFolders,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortMethod,this.presentation=ce.presentAs,this.limit=ce.limitResult}}}),Fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmDataSourceDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce,this.showDataSourceDialog=!1}}}),Nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleDataSourceButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!0}}}),Vc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseDataSourceDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!1}}}),qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!0}}}),Gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseCategoryDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!1}}}),Kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleIncludeSubElementsChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.includeSubElements=ce}}}),Jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmCategoryDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.categories=ce,this.showCategoryDialog=!1}}}),Qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryOperatorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.categoryOperator=ce}}}),ed=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTagOperatorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.tagOperator=ce}}}),td=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTypesChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.types=ce}}}),sd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleAudienceTargetingChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.audienceTargeting=ce}}}),ld=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortByChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0!==ce&&"string"!=typeof ce)throw new Error('The field for sorting must be a string or undefined, but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortBy=ce}}}),cd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortOrderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("asc"!==ce&&"desc"!==ce)throw new Error('The sort order is only allowed to be "asc" or "desc", but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortOrder=ce}}}),dd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handlePresentationChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error('The presentation must be represented as a string, but "'+ce+'" was given. This should not happen and is likely a bug.');this.presentation=ce}}}),ud=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleLimitChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.limit=ce}}}),$l=ec))||$l,Yd=Ve(196),Ud=Ve(173),Wd="smart-content-item--HuanrD3+f+",$d="image--tKgo2R7kxz",Gd="publish-indicator--ZxnQaFynVl",Kd="title--1n3AtGES3h",Jd="column--hD8nlzgOLQ";class Zd extends Qe.a.Component{render(){const{id:ce,image:ze,title:Ve,publishedState:qe,published:Ye,...We}=this.props.item;return Qe.a.createElement("div",{className:Wd},ze&&Qe.a.createElement("div",{className:$d},Qe.a.createElement("img",{src:ze})),Qe.a.createElement("div",{className:Kd},(void 0!==qe||void 0!==Ye)&&!(qe&&Ye)&&Qe.a.createElement("div",{className:Gd},Qe.a.createElement(Ud.a,{draft:!qe,published:!!Ye})),Qe.a.createElement(Yd.a,null,Ve)),Object.keys(We).map((ce=>Qe.a.createElement("div",{className:Jd,key:ce},Qe.a.createElement(Yd.a,null,We[ce])))))}}function SmartContent_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Qd,Xd,ku=Object(Ye.b)(((Vd=class extends Qe.a.Component{constructor(ce){super(ce),this.sections=[],SmartContent_initializerDefineProperty(this,"showFilterOverlay",Fd,this),SmartContent_initializerDefineProperty(this,"handleFilterClick",Bd,this),SmartContent_initializerDefineProperty(this,"handleFilterOverlayClose",Nd,this),this.initialize()}initialize(){const{store:ce}=this.props;this.config=Vl.getConfig(ce.provider),this.config.datasourceResourceKey&&this.config.datasourceAdapter&&this.sections.push("datasource"),this.config.categories&&this.sections.push("categories"),this.config.tags&&this.sections.push("tags"),this.config.audienceTargeting&&this.sections.push("audienceTargeting"),this.config.sorting.length>0&&this.sections.push("sorting"),this.config.types&&this.config.types.length>0&&this.sections.push("types"),this.config.presentAs&&this.props.presentations.length>0&&this.sections.push("presentation"),this.config.limit&&this.sections.push("limit")}render(){const{categoryRootKey:ce,defaultValue:ze,disabled:Ve,fieldLabel:qe,onItemClick:Ye,store:Xe}=this.props,ot=this.props.presentations.reduce(((ce,ze)=>(ce[ze.name]=ze.value,ce)),{});return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(Rl.a,{disabled:Ve,label:Object(Ln.b)("sulu_admin.smart_content_label",{count:Xe.items.length}),leftButton:{icon:"su-filter",onClick:this.handleFilterClick},loading:Xe.itemsLoading||Xe.loading,onItemClick:Ye,sortable:!1},Xe.items.map(((ce,ze)=>Qe.a.createElement(Rl.a.Item,{id:ce.id,index:ze+1,key:ze,value:ce},Qe.a.createElement(Zd,{item:ce}))))),Qe.a.createElement(Hd,{categoryRootKey:ce,dataSourceAdapter:this.config.datasourceAdapter,dataSourceListKey:this.config.datasourceListKey,dataSourceResourceKey:this.config.datasourceResourceKey,defaultValue:ze,onClose:this.handleFilterOverlayClose,open:this.showFilterOverlay,presentations:ot,sections:this.sections,smartContentStore:Xe,sortings:this.config.sorting,title:Object(Ln.b)("sulu_admin.filter_overlay_title",{fieldLabel:qe||""}),types:this.config.types}))}}).defaultProps={disabled:!1,presentations:[]},Fd=SmartContent_applyDecoratedDescriptor((Id=Vd).prototype,"showFilterOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SmartContent_applyDecoratedDescriptor(Id.prototype,"initialize",[qe.action],Object.getOwnPropertyDescriptor(Id.prototype,"initialize"),Id.prototype),Bd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!0}}}),Nd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!1}}}),Ld=Id))||Ld;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var xu,Hu=new(Xd=smartContentStorePool_applyDecoratedDescriptor((Qd=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,Ye;ce=this,ze="entries",Ye=this,(Ve=Xd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const Ye=this.findPreviousStores(ze);0!==Ye.length?Object(qe.when)((()=>Ye.every((ce=>!ce.itemsLoading))),(()=>{const Ve=Ye.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"stores",[qe.computed],Object.getOwnPropertyDescriptor(Qd.prototype,"stores"),Qd.prototype),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"add",[qe.action],Object.getOwnPropertyDescriptor(Qd.prototype,"add"),Qd.prototype),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"remove",[qe.action],Object.getOwnPropertyDescriptor(Qd.prototype,"remove"),Qd.prototype),Qd);function fields_SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}fields_SmartContent_applyDecoratedDescriptor((xu=class extends Qe.a.Component{get previousSmartContentStores(){return Hu.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(qe.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return Vl.getDefaultValue(this.provider,this.presentations)}get viewName(){return Vl.getConfig(this.provider).view}get resultToView(){return Vl.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props,We=Object(qe.toJS)(Ye),Qe=Object(qe.toJS)(ce);We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),Qe&&(Qe.categories&&Qe.categories.sort(),Qe.tags&&Qe.tags.sort()),this.smartContentStore.loading||ho()(We,Qe)||(ze(ce),Ve(),Hu.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ye&&qe&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:Ye,schemaOptions:We={},value:Qe}=this.props,{exclude_duplicates:{value:Xe=!1}={}}=We;if("boolean"!=typeof Xe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:ot}=Vl.getConfig(this.provider);void 0===Qe&&Ye(this.value,{isDefaultValue:!0}),this.smartContentStore=new Wl(this.provider,this.value,Ve.locale,ot,Ve.resourceKey===this.provider?Ve.id:void 0,We,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),Hu.add(this.smartContentStore,Xe),this.filterCriteriaChangeDisposer=Object(qe.reaction)((()=>Object(qe.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Xe&&0!==this.previousSmartContentStores.length?Object(qe.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{Hu.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){Hu.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return Qe.a.createElement(ku,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"previousSmartContentStores"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"presentations",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"presentations"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"provider",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"provider"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"value"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"defaultValue",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"defaultValue"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"viewName"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"resultToView"),xu.prototype),Ve(710);Qe.a.Component;Ve(437);Qe.a.Component;Ve(375);Qe.a.Component;var qu,Yu,Gu,Ku,Ju,Zu,Qu,Xu,ep,tp,np,ip,rp,ap,op,sp,lp,cp,dp,up,pp,hp,fp,mp,gp=Ve(5),yp=Ve.n(gp),bp=Ve(451),vp="link--bEP5RC8cI2",_p="provider--biCKqy2l3m",wp="item-container--MOpFKUzbRZ",Rp="item--Y1-n3AGOmA",Cp="clickable--+XCabd-TvD",Dp="remove-button--BgcOgvH1fz",kp="disabled--7JKOC5nDNO",Sp="column-list--bCklHjgORy",xp="item-column--UxyDlbgTPJ",Ep="loader--P3KXz0B7n6",Op=Ve(30),Pp=Ve(143);function Link_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Link_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Tp="_self";Object(Ye.b)(((mp=class extends We.Component{constructor(ce){super(ce),Link_initializerDefineProperty(this,"openedOverlayProvider",Gu,this),Link_initializerDefineProperty(this,"overlayHref",Ku,this),Link_initializerDefineProperty(this,"overlayTitle",Ju,this),Link_initializerDefineProperty(this,"overlayRel",Zu,this),Link_initializerDefineProperty(this,"overlayTarget",Qu,this),Link_initializerDefineProperty(this,"overlayAnchor",Xu,this),Link_initializerDefineProperty(this,"overlayQuery",ep,this),Link_initializerDefineProperty(this,"titleParts",tp,this),Link_initializerDefineProperty(this,"titleLoading",np,this),Link_initializerDefineProperty(this,"load",ip,this),Link_initializerDefineProperty(this,"handleRemoveClick",rp,this),Link_initializerDefineProperty(this,"handleTitleClick",ap,this),Link_initializerDefineProperty(this,"handleOverlayConfirm",op,this),Link_initializerDefineProperty(this,"handleOverlayClose",sp,this),Link_initializerDefineProperty(this,"handleProviderChange",lp,this),Link_initializerDefineProperty(this,"handleOverlayAnchorChange",cp,this),Link_initializerDefineProperty(this,"handleOverlayQueryChange",dp,this),Link_initializerDefineProperty(this,"handleOverlayTargetChange",up,this),Link_initializerDefineProperty(this,"handleOverlayTitleChange",pp,this),Link_initializerDefineProperty(this,"handleOverlayRelChange",hp,this),Link_initializerDefineProperty(this,"handleOverlayHrefChange",fp,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:qe,href:Ye,target:We=Tp,anchor:Qe,query:Xe,rel:ot}=ze||{};this.overlayHref=Ve===ce?Ye:void 0,this.overlayTarget=We,this.overlayTitle=qe,this.overlayAnchor=Qe,this.overlayQuery=Xe,this.overlayRel=ot,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,Ye,We,Qe,Xe)=>{const{onChange:ot,onFinish:st,enableTarget:mt,enableTitle:gt,enableAnchor:yt,enableQuery:bt,enableRel:vt,locale:wt}=this.props;ot({provider:ce,target:mt?Ye:void 0,anchor:yt?We:void 0,query:bt?Qe:void 0,href:ze,title:gt?Ve:void 0,rel:vt?Xe:void 0,locale:Object(qe.toJS)(wt)}),st()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(qe.toJS)(ce.value),Ve=Object(qe.toJS)(this.props.value);ho()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableQuery:qe,enableTarget:Ye,enableTitle:Xe,enableRel:ot,types:mt,excludedTypes:gt,value:yt}=this.props,{href:bt,provider:vt}=yt||{},wt=yp()(Rp,{[Cp]:!ce||!bt,[kp]:ce});let Ct=Pp.default.getKeys().filter((ce=>!gt.includes(ce)));return void 0!==mt&&mt.length>0&&(Ct=Ct.filter((ce=>mt.length>0&&mt.includes(ce)))),Qe.a.createElement(We.Fragment,null,Qe.a.createElement("div",{className:vp},Qe.a.createElement("div",{className:_p},Qe.a.createElement(bp.a,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:vt},Ct.map((ce=>Qe.a.createElement(bp.a.Option,{key:ce,value:ce},Pp.default.getTitle(ce)))))),Qe.a.createElement("div",{className:wp},Qe.a.createElement("div",{className:wt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&yt&&this.titleParts.length>0&&Qe.a.createElement("div",{className:Sp},this.titleParts.map(((ce,ze)=>Qe.a.createElement("span",{className:xp,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Qe.a.createElement("button",{className:Dp,onClick:this.handleRemoveClick,type:"button"},Qe.a.createElement(Nr.a,{name:"su-trash-alt"})),this.titleLoading&&Qe.a.createElement(st.a,{className:Ep,size:14}))),Pp.default.getKeys().map((ce=>{const We=Pp.default.getOverlay(ce);return Qe.a.createElement(We,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onQueryChange:qe?this.handleOverlayQueryChange:void 0,onRelChange:ot?this.handleOverlayRelChange:void 0,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:Xe?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Pp.default.getOptions(ce),query:this.overlayQuery,rel:this.overlayRel,target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableQuery:!1,enableRel:!1,enableTarget:!1,enableTitle:!1,excludedTypes:[],types:[]},Gu=Link_applyDecoratedDescriptor((Yu=mp).prototype,"openedOverlayProvider",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ku=Link_applyDecoratedDescriptor(Yu.prototype,"overlayHref",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ju=Link_applyDecoratedDescriptor(Yu.prototype,"overlayTitle",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayRel",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Tp}}),Xu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayAnchor",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ep=Link_applyDecoratedDescriptor(Yu.prototype,"overlayQuery",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tp=Link_applyDecoratedDescriptor(Yu.prototype,"titleParts",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),np=Link_applyDecoratedDescriptor(Yu.prototype,"titleLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ip=Link_applyDecoratedDescriptor(Yu.prototype,"load",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;if(!ce)return void(this.titleParts=[]);const{href:Ve,provider:Ye}=ce;if(!Ye)return void(this.titleParts=Ve?[Ve]:[]);const We=Pp.default.getOptions(Ye);null!=We&&null!==(ze=We.displayProperties)&&void 0!==ze&&ze.length?(this.titleParts=[],this.titleLoading=!0,Op.c.get(We.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(qe.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(We.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=Ve?[Ve]:[]}}}),rp=Link_applyDecoratedDescriptor(Yu.prototype,"handleRemoveClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0,void 0,void 0)}}}),ap=Link_applyDecoratedDescriptor(Yu.prototype,"handleTitleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),op=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor,this.overlayQuery,this.overlayRel),this.closeOverlay())}}}),sp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),lp=Link_applyDecoratedDescriptor(Yu.prototype,"handleProviderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),cp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayAnchorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),dp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayQueryChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayQuery=ce}}}),up=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTargetChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),pp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTitleChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),hp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayRelChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayRel=ce}}}),fp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayHrefChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),qu=Yu));Qe.a.Component;var Ap=ze.b=Ti},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var qe,Ye=Ve(1),We=Ve(22),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(232),mt=Ve(409),gt=Ve(289);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let yt=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"availableAttributes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"regexp",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"regexp"),qe.prototype),qe);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Qe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(Ye.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,qe)=>{addValueToSearchParameters(ce,ze,Ve+"["+qe+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const qe in ze){const Ye=Ve+xt+qe;addValueToSearchParameters(ce,ze[qe],Ye)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const qe=Ve.split(xt);ce[qe[0]]||(ce[qe[0]]={}),addAttributesFromSearchParameters(ce[qe[0]],ze,qe.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const qe=Ve.slice(0,Ve.indexOf("["));ce[qe]||(ce[qe]=[]),ce[qe].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const qe=ze.attributesHistory[ce].pop();ze.update(ce,{...qe,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(Ye.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,qe=ce+ze;if(Ve!==qe){const ce=Ve||qe;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],qe=Ve.indexOf(ce);-1!==qe&&Ve.splice(qe,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const qe=St.get(Ve),Ye=qe.regexp.exec(ce);if(!Ye)continue;const{availableAttributes:We}=qe,Qe={};for(let ce=1;ce{addAttributesFromSearchParameters(Qe,ce,ze)})),void this.handleNavigation(Ve,Qe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const qe=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(qe,ze),...ce})),{}),...ze},Qe=qe.attributeDefaults;Object.keys(Qe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Qe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(qe,We,Ve))return;this.route=qe,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(Ye.toJS)(Ve),Object(Ye.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(Ye.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const qe=Ve.get();ce[ze]=qe}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:qe}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(Ye.toJS)(ce[ze]);qe.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(Ye.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Qe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return uid}));const qe=new Array(256).fill().map(((ce,ze)=>("0"+ze.toString(16)).slice(-2)));function uid(){const ce=4294967296*Math.random()>>>0,ze=4294967296*Math.random()>>>0,Ve=4294967296*Math.random()>>>0,Ye=4294967296*Math.random()>>>0;return"e"+qe[255&ce]+qe[ce>>8&255]+qe[ce>>16&255]+qe[ce>>24&255]+qe[255&ze]+qe[ze>>8&255]+qe[ze>>16&255]+qe[ze>>24&255]+qe[255&Ve]+qe[Ve>>8&255]+qe[Ve>>16&255]+qe[Ve>>24&255]+qe[255&Ye]+qe[Ye>>8&255]+qe[Ye>>16&255]+qe[Ye>>24&255]}},function(ce,ze,Ve){"use strict";var qe=Ve(565);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(151),Ye=Ve(25);class We{constructor(ce){this.view=ce,this.document=ce.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(ce){return ce&&3===ce.nodeType&&(ce=ce.parentNode),!(!ce||1!==ce.nodeType)&&ce.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(151),Ye=Ve(42),We=Ve(8),Qe=Ve(25);class Xe{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(ce){if(this._elements.has(ce))throw new We.a("focustracker-add-element-already-exist",this);this.listenTo(ce,"focus",(()=>this._focus(ce)),{useCapture:!0}),this.listenTo(ce,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(ce)}remove(ce){ce===this.focusedElement&&this._blur(ce),this._elements.has(ce)&&(this.stopListening(ce),this._elements.delete(ce))}destroy(){this.stopListening()}_focus(ce){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=ce,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Object(Qe.a)(Xe,qe.a),Object(Qe.a)(Xe,Ye.a)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2138),Qe=Ve(3),Xe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(263),gt=Ve(292);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,qe,Ye,We,Qe,Xe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Xe-ot,left:qe+Qe,height:ze,scrollTop:0};st?vt.top=Ve+Xe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Xe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Xe:Ve+We-ze-Xe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,qe,Ye)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let qe=!1,Ye=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,Ye=!0),{dimensions:Ve,touchesTopBorder:qe,touchesBottomBorder:Ye}}static cropHorizontalDimensions(ce,ze,Ve,qe,Ye){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=qe+Ye-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--vwSq9JfFvj";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="esc";var Tt=Object(Qe.b)(((xt=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:qe,scrollHeight:Ye,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+qe-ze,Ye+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalAnchorMode:Ve,horizontalOffset:qe,centerChildElement:Ye}=this.props,{top:We=0,left:Qe=0,width:Xe=0,height:ot=0}=ce.getBoundingClientRect(),st=Ye?Ye.offsetTop:0,mt=!Ye,gt="center"===Ve?(Xe-this.popoverWidth)/2:0;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,We,Qe,Xe,ot,gt+qe,ze,st,mt)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Qe}=this.props;if(!ce||!Ve)return null;const Xe=this.dimensions,ot={...bt.dimensionsToStyle(Xe),position:"fixed",pointerEvents:"auto"},st=Xe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Xe.left===Ve.getBoundingClientRect().left?"left":"right";return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(We.a,null,Qe&&Ye.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),Ye.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalAnchorMode:"left",horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var qe=Ve(25),Ye=Ve(39),We=Ve(234),Qe=Ve(226),Xe=Ve(64),ot=Ve(134),st=Ve(165),mt=Ve(129),gt=Ve(8),yt=Ve(114);const bt="selection:";class vt{constructor(ce){this._selection=new wt(ce),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(ce){return this._selection.containsEntireContent(ce)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(ce){return this._selection.getAttribute(ce)}hasAttribute(ce){return this._selection.hasAttribute(ce)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(ce){this._selection.observeMarkers(ce)}is(ce){return"selection"===ce||"model:selection"==ce||"documentSelection"==ce||"model:documentSelection"==ce}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setAttribute(ce,ze){this._selection.setAttribute(ce,ze)}_removeAttribute(ce){this._selection.removeAttribute(ce)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(ce){this._selection.restoreGravity(ce)}static _getStoreAttributeKey(ce){return bt+ce}static _isStoreAttributeKey(ce){return ce.startsWith(bt)}}Object(qe.a)(vt,Ye.c);class wt extends We.a{constructor(ce){super(),this.markers=new mt.a({idProperty:"name"}),this._model=ce.model,this._document=ce,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&"marker"!=Ve.type&&"rename"!=Ve.type&&"noop"!=Ve.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const ce of this.getRanges())if(!this._document._validateSelectionRange(ce))throw new gt.a("document-selection-wrong-position",this,{range:ce})})),this.listenTo(this._model.markers,"update",((ce,ze,Ve,qe)=>{this._updateMarker(ze,qe)})),this.listenTo(this._document,"change",((ce,ze)=>{clearAttributesStoredInElement(this._model,ze)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let ce=0;ce{if(this._hasChangedRange=!0,ze.root==this._document.graveyard){this._selectionRestorePosition=qe.deletionPosition;const ce=this._ranges.indexOf(ze);this._ranges.splice(ce,1),ze.detach()}})),ze}_updateMarkers(){if(!this._observedMarkers.size)return;const ce=[];let ze=!1;for(const ze of this._model.markers){const Ve=ze.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))continue;const qe=ze.getRange();for(const Ve of this.getRanges())qe.containsRange(Ve,!Ve.isCollapsed)&&ce.push(ze)}const Ve=Array.from(this.markers);for(const Ve of ce)this.markers.has(Ve)||(this.markers.add(Ve),ze=!0);for(const Ve of Array.from(this.markers))ce.includes(Ve)||(this.markers.remove(Ve),ze=!0);ze&&this.fire("change:marker",{oldMarkers:Ve,directChange:!1})}_updateMarker(ce,ze){const Ve=ce.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))return;let qe=!1;const Ye=Array.from(this.markers),We=this.markers.has(ce);if(ze){let Ve=!1;for(const ce of this.getRanges())if(ze.containsRange(ce,!ce.isCollapsed)){Ve=!0;break}Ve&&!We?(this.markers.add(ce),qe=!0):!Ve&&We&&(this.markers.remove(ce),qe=!0)}else We&&(this.markers.remove(ce),qe=!0);qe&&this.fire("change:marker",{oldMarkers:Ye,directChange:!1})}_updateAttributes(ce){const ze=Object(st.a)(this._getSurroundingAttributes()),Ve=Object(st.a)(this.getAttributes());if(ce)this._attributePriority=new Map,this._attrs=new Map;else for(const[ce,ze]of this._attributePriority)"low"==ze&&(this._attrs.delete(ce),this._attributePriority.delete(ce));this._setAttributesTo(ze);const qe=[];for(const[ce,ze]of this.getAttributes())Ve.has(ce)&&Ve.get(ce)===ze||qe.push(ce);for(const[ce]of Ve)this.hasAttribute(ce)||qe.push(ce);qe.length>0&&this.fire("change:attribute",{attributeKeys:qe,directChange:!1})}_setAttribute(ce,ze){const Ve=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";if("low"==Ve&&"normal"==this._attributePriority.get(ce))return!1;return super.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this._attributePriority.set(ce,Ve),!0)}_removeAttribute(ce){const ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return("low"!=ze||"normal"!=this._attributePriority.get(ce))&&(this._attributePriority.set(ce,ze),!!super.hasAttribute(ce)&&(this._attrs.delete(ce),!0))}_setAttributesTo(ce){const ze=new Set;for(const[ze,Ve]of this.getAttributes())ce.get(ze)!==Ve&&this._removeAttribute(ze,!1);for(const[Ve,qe]of ce){this._setAttribute(Ve,qe,!1)&&ze.add(Ve)}return ze}*_getStoredAttributes(){const ce=this.getFirstPosition().parent;if(this.isCollapsed&&ce.isEmpty)for(const ze of ce.getAttributeKeys())if(ze.startsWith(bt)){const Ve=ze.substr(10);yield[Ve,ce.getAttribute(ze)]}}_getSurroundingAttributes(){const ce=this.getFirstPosition(),ze=this._model.schema;let Ve=null;if(this.isCollapsed){const qe=ce.textNode?ce.textNode:ce.nodeBefore,Ye=ce.textNode?ce.textNode:ce.nodeAfter;if(this.isGravityOverridden||(Ve=getAttrsIfCharacter(qe)),Ve||(Ve=getAttrsIfCharacter(Ye)),!this.isGravityOverridden&&!Ve){let ce=qe;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.previousSibling,Ve=getAttrsIfCharacter(ce)}if(!Ve){let ce=Ye;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.nextSibling,Ve=getAttrsIfCharacter(ce)}Ve||(Ve=this._getStoredAttributes())}else{const ce=this.getFirstRange();for(const qe of ce){if(qe.item.is("element")&&ze.isObject(qe.item))break;if("text"==qe.type){Ve=qe.item.getAttributes();break}}}return Ve}_fixGraveyardSelection(ce){const ze=this._model.schema.getNearestSelectionRange(ce);ze&&this._pushRange(ze)}}function getAttrsIfCharacter(ce){return ce instanceof ot.a||ce instanceof Xe.a?ce.getAttributes():null}function clearAttributesStoredInElement(ce,ze){const Ve=ce.document.differ;for(const qe of Ve.getChanges()){if("insert"!=qe.type)continue;const Ve=qe.position.parent;qe.length===Ve.maxOffset&&ce.enqueueChange(ze,(ce=>{const ze=Array.from(Ve.getAttributeKeys()).filter((ce=>ce.startsWith(bt)));for(const qe of ze)ce.removeAttribute(qe,Ve)}))}}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var qe=Ve(106);ce.exports=function(ce){return"object"==typeof ce?null!==ce:qe(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Ve(345),We=Ve(111),Qe=Ve(420),Xe=Ve(344),ot=Ve(822),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Qe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Xe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(429).map;qe({target:"Array",proto:!0,forced:!Ve(745)("map")},{map:function map(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(20),Ye=Ve(39),We=Ve(25),Qe=Ve(8);class Xe extends qe.a{constructor(ce,ze){if(super(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone"),!this.root.is("rootElement"))throw new Qe.a("model-liveposition-root-not-rootelement",ce);bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"livePosition"===ce||"model:livePosition"===ce||"position"==ce||"model:position"===ce}toPosition(){return new qe.a(this.root,this.path.slice(),this.stickiness)}static fromPosition(ce,ze){return new this(ce.root,ce.path.slice(),ze||ce.stickiness)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce);if(!this.isEqual(ze)){const ce=this.toPosition();this.path=ze.path,this.root=ze.root,this.fire("change",ce)}}Object(We.a)(Xe,Ye.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(100);class Ye extends qe.a{get type(){return"noop"}clone(){return new Ye(this.baseVersion)}getReversed(){return new Ye(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ft.a}));var qe=Ve(3),Ye=Ve(1),We=Ve(0),Qe=Ve.n(We),Xe=Ve(22),ot=Ve.n(Xe),st=Ve(5),mt=Ve.n(st),gt=Ve(90),yt=Ve.n(gt),bt=Ve(66),vt=Ve(40),wt=Ve(101),Ct=Ve(54),Dt=Ve(709),kt=Ve(53),St=Ve(254),xt=Ve(6);class Et extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleCancel=()=>{const{onCancel:ce}=this.props;ce()},this.handleConfirm=()=>{const{allowDeletion:ce,onCancel:ze,onConfirm:Ve}=this.props;ce?Ve():ze()}}render(){const{allowDeletion:ce,confirmLoading:ze,referencingResourcesData:Ve}=this.props;return Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:ze,confirmText:ce?Object(xt.translate)("sulu_admin.delete"):Object(xt.translate)("sulu_admin.ok"),onCancel:ce?this.handleCancel:void 0,onConfirm:this.handleConfirm,open:!0,title:ce?Object(xt.translate)("sulu_admin.delete_linked_warning_title"):Object(xt.translate)("sulu_admin.item_not_deletable")},ce?Object(xt.translate)("sulu_admin.delete_linked_warning_text"):Object(xt.translate)("sulu_admin.delete_linked_abort_text"),Qe.a.createElement("ul",null,Ve.referencingResources.map(((ce,ze)=>{const{title:Ve=null}=ce;return Ve?Qe.a.createElement("li",{key:ze},Ve):null}))))}}Et.defaultProps={allowDeletion:!0};var Pt=Et,Tt=Ve(401),Lt=Ve(335),Ft=Ve(216);class Bt extends Qe.a.Component{}Bt.hasColumnOptions=!1,Bt.searchable=!0,Bt.paginatable=!0;var Vt=new class{constructor(){this.clear()}clear(){this.adapters={},this.options={}}has(ce){return!!this.adapters[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ht=Ve(373);class Ut extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Qe.a.createElement(Ht.a,null,ze.map(((ze,Ve)=>{const qe=Vt.get(ze);return Qe.a.createElement(vt.a,{active:ze===ce,icon:qe.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Wt,Jt,Qt,en,rn=Ve(696),ln=Ve(11);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mn=Object(qe.b)((Jt=class extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Qt,this),_initializerDefineProperty(this,"value",en,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Qe.a.createElement("label",{"aria-label":Object(ln.b)("sulu_admin.list_search_placeholder")},Qe.a.createElement(rn.a,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(ln.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value}))}},Qt=_applyDecoratedDescriptor(Jt.prototype,"collapsed",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),en=_applyDecoratedDescriptor(Jt.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Jt.prototype,"setCollapsed",[Ye.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setCollapsed"),Jt.prototype),_applyDecoratedDescriptor(Jt.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setValue"),Jt.prototype),Wt=Jt))||Wt;var gn=mn,bn="list-container--UxdcNb+-fa",wn="list--hNP+IvjLU1",Cn="disabled--AC9dHzod25",Sn="loader--iITKcOflz9",En="toolbar--4mQPRXRq6i",Tn="toolbar-left--jj9QJVUidY",Ln="toolbar-right--ZowtsYK1HF",Fn=Ve(62),Yn=Ve(131),Un=Ve(19),Gn="overlay--aSm-pEy0jw",Kn="sorting--y+97afZNVG",Jn="column-option--vubkKtbyXR",Zn="drag-handle--NeTdKzcGF4",Xn="label--fdEGwyHa+t",ei="icon--5tQaPuzhAg",si="dragging--ymhmUDirFb",_i="column-option-disabled--gaFd19+z-F";const Ri=Object(Fn.c)((()=>Qe.a.createElement("span",{className:Zn},Qe.a.createElement(Un.a,{name:"su-more"}))));class Ci extends Qe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Jn,{[_i]:"no"===ze});return Qe.a.createElement("div",{className:Ve},Qe.a.createElement(Ri,null),Qe.a.createElement("span",{className:Xn},ce),"always"!==ze&&Qe.a.createElement(Un.a,{className:ei,name:"su-eye",onClick:this.handleIconClick}))}}var Di,Ei,Oi,Ti,er,tr,nr,rr;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ar=Object(Fn.b)(Ci),sr=Object(Fn.a)((ce=>{let{children:ze,className:Ve}=ce;return Qe.a.createElement("div",{className:Ve},ze)}));let lr=Object(qe.b)((Ei=class extends Qe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",Oi,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",Ti,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",er,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",tr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",nr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",rr,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Gn,{[Kn]:this.sorting});return Qe.a.createElement(Yn.a,{confirmText:Object(xt.translate)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.translate)("sulu_admin.column_options")},Qe.a.createElement(sr,{axis:"y",className:Ve,helperClass:si,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Qe.a.createElement(ar,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},Oi=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"columnOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ti=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"sorting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),er=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleColumnOptionChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),tr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"setColumnOptions",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const qe={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:qe})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(Ei.prototype,"componentDidMount"),Ei.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Ei.prototype,"componentDidUpdate"),Ei.prototype),nr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleItemsSortStart",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),rr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleItemsSortEnd",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Fn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),Di=Ei))||Di;var dr,ur,pr=lr,vr=Ve(26),_r=Ve.n(vr),Rr=Ve(711);function AbstractFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cr=(dr=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var Ye,We,Qe,Xe;Ye=this,We="value",Xe=this,(Qe=ur)&&Object.defineProperty(Ye,We,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(Xe):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=qe}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},ur=AbstractFieldFilterType_applyDecoratedDescriptor(dr.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AbstractFieldFilterType_applyDecoratedDescriptor(dr.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(dr.prototype,"setValue"),dr.prototype),dr);var Dr,Er,Tr,Ar,Mr,Lr,jr=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ir="field-filter-item--bySYVuRFqh",zr="button-container--TiZ5ifP-g7";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Br="esc",Nr="enter";var Vr,Hr,qr,Yr,Ur,Wr,$r,Gr,Kr,Jr=Object(qe.b)((Er=class extends Qe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Tr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Ar,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",Mr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",Lr,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:qe,open:We,value:Qe}=this.props;if(this.value=Qe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(jr.get(ze))(this.handleFieldFilterTypeChange,Ve,Qe,jr.getOptions(ze)),this.valueDisposer=Object(Ye.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(Ye.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(Ye.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(_r.a.bind(Br,qe),_r.a.bind(Nr,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:qe}=this.props;!1===ce.open&&!0===Ve&&(this.value=qe),ce.open!==Ve&&(Ve?(_r.a.bind(Br,ze),_r.a.bind(Nr,this.handleButtonClick)):(_r.a.unbind(Br),_r.a.unbind(Nr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(_r.a.unbind(Br),_r.a.unbind(Nr))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:qe,onDelete:Ye,open:We}=this.props;return Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("span",{className:Ir},Qe.a.createElement(Rr.a,{onClick:Ve,onDelete:Ye,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Qe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:qe,open:We},Qe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Qe.a.createElement("div",{className:zr},Qe.a.createElement(vt.a,{onClick:this.handleButtonClick,skin:"link"},Object(ln.b)("sulu_admin.ok")))))}},Tr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ar=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"valueNodeLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"valueNode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"propValue",[Ye.computed],Object.getOwnPropertyDescriptor(Er.prototype,"propValue"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"componentDidUpdate"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"setValueNodeLoading",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"setValueNodeLoading"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"setValueNode",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"setValueNode"),Er.prototype),Lr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"handleFieldFilterTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Dr=Er))||Dr,Zr="field-filter--e89ph6qjD7",ga="filter-button--DDFZa7sq+G";function FieldFilter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ya=Object(qe.b)((Hr=class extends Qe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",qr,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",Yr,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",Ur,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Wr,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",$r,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Gr,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Kr,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Qe.a.createElement("div",{className:Zr},Object.keys(ce).length>0&&Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",{className:ga},Qe.a.createElement(vt.a,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Qe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Qe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Qe.a.createElement(Jr,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},qr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filterMenuOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filterChipOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filteredFields",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"filteredFields"),Hr.prototype),Ur=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterMenuButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Wr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),$r=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"openFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Gr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"closeFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Kr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:qe,...Ye}=Ve;ze(Ye)}}}),Vr=Hr))||Vr;var ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Vo,Ho,Uo,Wo,$o,es,ts,ns,rs,os,ss,ls,cs,ds,us,ps,hs,fs=ya;function List_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ms="sulu_admin.list",gs="adapter";let ys=Object(qe.b)(((hs=class ce extends Qe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ms,ce,ze,gs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const qe=[ms,ce,ze,gs].join(".");kt.a.setPersistentSetting(qe,Ve)}get currentAdapter(){return Vt.get(this.currentAdapterKey)}get currentAdapterOptions(){return Vt.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",_a,this),List_initializerDefineProperty(this,"showCopyOverlay",wa,this),List_initializerDefineProperty(this,"showDeleteDialog",ka,this),List_initializerDefineProperty(this,"showMoveOverlay",xa,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",Aa,this),List_initializerDefineProperty(this,"allowConflictDeletion",Ba,this),List_initializerDefineProperty(this,"showOrderDialog",Ja,this),List_initializerDefineProperty(this,"adapterOptionsOpen",io,this),List_initializerDefineProperty(this,"columnOptionsOpen",po,this),List_initializerDefineProperty(this,"referencingResourcesData",ho,this),List_initializerDefineProperty(this,"dependantResourcesData",go,this),List_initializerDefineProperty(this,"movingRestrictedTarget",_o,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Co,this),List_initializerDefineProperty(this,"requestSelectionDelete",ko,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",Oo,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",Po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",To,this),List_initializerDefineProperty(this,"closeAllDialogs",Ao,this),List_initializerDefineProperty(this,"handleDeleteResponseError",jo,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Fo,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",Bo,this),List_initializerDefineProperty(this,"handleRequestItemMove",Vo,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Ho,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",Uo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Wo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$o,this),List_initializerDefineProperty(this,"handleRequestItemCopy",es,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",ts,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",ns,this),List_initializerDefineProperty(this,"handleRequestItemOrder",rs,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",os,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",ss,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,qe=Ve.findById(ce);qe&&(ze?Ve.select(qe):Ve.deselect(qe))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",ls,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",cs,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ds,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",us,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",ps,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(Ye.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:qe}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&qe})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Vt.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Qe.a.createElement(Pt,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Qe.a.createElement(Tt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:qe,disabled:Ye,header:Xe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Ft}=this.props,{filterableFields:Bt,loading:Vt,schemaLoading:Ht,userSchema:Wt}=Lt,Jt=this.currentAdapter,Qt=mt()(wn,{[Cn]:Ye}),en=mt()(En,Ft),rn=this.props.searchable&&Jt.searchable,ln=this.props.filterable&&Bt&&Object.keys(Bt).length>0,mn=rn||ln||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Qe.a.createElement(Dt.a,null):Qe.a.createElement("div",{className:bn},Xe,!Ht&&mn&&Qe.a.createElement("div",{className:en},Qe.a.createElement("div",{className:Tn},rn&&Qe.a.createElement(gn,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),ln&&Qe.a.createElement(fs,{fields:Bt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Qe.a.createElement("div",{className:Ln},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Qe.a.createElement(vt.a,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",null,Qe.a.createElement(vt.a,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Qe.a.createElement(bt.a.Section,null,Qe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.translate)("sulu_admin.column_options")))),Qe.a.createElement(pr,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Wt})),Qe.a.createElement(Ut,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Qe.a.createElement("div",{className:Qt},Vt&&0===Lt.pageCount?Qe.a.createElement(Ct.a,{className:Sn}):Qe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Vt,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:qe?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),qe&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmText:Object(xt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.translate)("sulu_security.move_permission_title")},Object(xt.translate)("sulu_security.move_permission_warning"))),Ve&&Qe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Et&&Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.translate)("sulu_admin.order_warning_title")},Object(xt.translate)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},_a=List_applyDecoratedDescriptor((va=hs).prototype,"currentAdapterKey",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wa=List_applyDecoratedDescriptor(va.prototype,"showCopyOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(va.prototype,"showDeleteDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xa=List_applyDecoratedDescriptor(va.prototype,"showMoveOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Aa=List_applyDecoratedDescriptor(va.prototype,"showDeleteSelectionDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ba=List_applyDecoratedDescriptor(va.prototype,"allowConflictDeletion",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ja=List_applyDecoratedDescriptor(va.prototype,"showOrderDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),io=List_applyDecoratedDescriptor(va.prototype,"adapterOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),po=List_applyDecoratedDescriptor(va.prototype,"columnOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ho=List_applyDecoratedDescriptor(va.prototype,"referencingResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),go=List_applyDecoratedDescriptor(va.prototype,"dependantResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_o=List_applyDecoratedDescriptor(va.prototype,"movingRestrictedTarget",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(va.prototype,"currentAdapter",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapter"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"currentAdapterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapterOptions"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"disabledIds",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"disabledIds"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"showColumnOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"showColumnOptions"),va.prototype),Co=List_applyDecoratedDescriptor(va.prototype,"setCurrentAdapterKey",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),ko=List_applyDecoratedDescriptor(va.prototype,"requestSelectionDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),Oo=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(Ye.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),Po=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),To=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(Ye.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(Ye.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),Ao=List_applyDecoratedDescriptor(va.prototype,"closeAllDialogs",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),jo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteResponseError",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(Ye.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||Ve.code!==Lt.b)if(409!==ce.status||Ve.code!==Lt.a)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Fo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),Bo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Vo=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemMove",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(Ye.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(Ye.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Ho=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),Uo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Wo=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),$o=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),es=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemCopy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(Ye.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(Ye.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),ts=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),ns=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),rs=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemOrder",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(Ye.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(Ye.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),os=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),ss=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),ls=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),cs=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ds=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsOpen",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),us=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),ps=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions"),va.prototype),ba=va))||ba;var bs=ys;var vs=new class{constructor(){this.clear()}clear(){this.fieldTransformers={}}has(ce){return!!this.fieldTransformers[ce]}add(ce,ze){if(ce in this.fieldTransformers)throw new Error('The key "'+ce+'" has already been used for another field transformer');this.fieldTransformers[ce]=ze}get(ce){if(!(ce in this.fieldTransformers))throw new Error('The list field transformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldTransformers).sort().join(", "));return this.fieldTransformers[ce]}},_s=Ve(48);Ve(9);Ve(162);var ws=Ve(89);Ve(10);Ve(331);var Rs;Rs=class extends Cr{constructor(){super(...arguments),this.handleChange=ce=>{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Qe.a.createElement(ws.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Qe.a.createElement(ws.b,{key:ce,value:ce},Object(ln.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(ln.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function SelectFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Rs.prototype,"parameterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"parameterOptions"),Rs.prototype);var Cs,Ds=Ve(32),ks="number-field-filter-type--NuTkZN5bnh";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ss={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((Cs=class extends Cr{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:ks},Qe.a.createElement(Ds.a,{onChange:this.handleOperatorChange,value:this.operator},Qe.a.createElement(Ds.a.Option,{value:"lt"},Ss.lt),Qe.a.createElement(Ds.a.Option,{value:"eq"},Ss.eq),Qe.a.createElement(Ds.a.Option,{value:"gt"},Ss.gt)),Qe.a.createElement(_s.a,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((Ss[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[Ye.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"operator"),Cs.prototype),NumberFieldFilterType_applyDecoratedDescriptor(Cs.prototype,"number",[Ye.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"number"),Cs.prototype);var xs,Es,Os,Ps,Ts,As=Ve(192),Ms=Ve(290),Ls=Ve(193);function ResourceCheckboxGroup_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceCheckboxGroup_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var js,Is,zs,Fs=Object(qe.b)(((Ts=class extends Qe.a.Component{constructor(ce){super(ce),ResourceCheckboxGroup_initializerDefineProperty(this,"resourceListStore",Os,this),ResourceCheckboxGroup_initializerDefineProperty(this,"createResourceListStore",Ps,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;ot()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Qe.a.createElement(Ct.a,{size:30}):Qe.a.createElement(ws.a,{disabled:ce,onChange:this.handleChange,values:qe},this.resourceListStore.data.map(((ce,qe)=>Qe.a.createElement(ws.b,{key:qe,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Os=ResourceCheckboxGroup_applyDecoratedDescriptor((Es=Ts).prototype,"resourceListStore",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ps=ResourceCheckboxGroup_applyDecoratedDescriptor(Es.prototype,"createResourceListStore",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new Ls.a(ce,ze)}}}),xs=Es))||xs,Bs="selection-field-filter-type--XyHrO18pOZ";function SelectionFieldFilterType_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ns="auto_complete";Is=SelectionFieldFilterType_applyDecoratedDescriptor((js=class extends Cr{get type(){return this.parameters&&(this.parameters.type||Ns)}constructor(ce,ze,Ve){super(ce,ze,Ve),SelectionFieldFilterType_initializerDefineProperty(this,"selectValue",Is,this),SelectionFieldFilterType_initializerDefineProperty(this,"setSelectValue",zs,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new As.a(this.resourceKey,[],Ye.observable.box(kt.a.contentLocale)),this.selectionStoreDisposer=Object(Ye.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(Ye.autorun)((()=>{const ce=Object(Ye.toJS)(this.value||[]);ot()(ce,Object(Ye.untracked)((()=>Object(Ye.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),ot()(ce,Object(Ye.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:Bs},this.type===Ns&&Qe.a.createElement(Ms.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Qe.a.createElement(Fs,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(Ye.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}}).prototype,"selectValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"type"),js.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"resourceKey"),js.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"displayProperty",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"displayProperty"),js.prototype),zs=SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"setSelectValue",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(651);var Vs,Hs,qs,Ys,Us,Ws=Ve(196),$s="item--di59UnizG3",Gs="text--pi+uoZQE6K",Ks="active--JZvcCW3w08",Js="disabled--NK1nwxLsja",Zs="order-field-shown--7CoOeL6DlA",Qs="children--uDoW0KRj5I",Xs="button--8HM7dynUtU",pl="visible--yITbOnFavE",gl="buttons--A5cr0sCqUp",yl="selected--tK-QW4ISuL",bl="indicator--rrzI69S1z4",vl="order-input--1bxIc0Un6d";class _l extends Qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=mt()({[Xs]:!0,[pl]:ze});return Qe.a.createElement(Un.a,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},Item_initializerDefineProperty(this,"handleOrderChange",Ys,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(Ye.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`button-${Ve}`;return Qe.a.createElement(_l,_extends({},ce,{id:ze,key:qe}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:qe,indicators:Ye,showOrderField:We,selected:Xe}=this.props,ot=mt()($s,{[Ks]:ce,[Js]:Ve,[yl]:Xe,[Zs]:We});return Qe.a.createElement("div",{className:ot,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&&Qe.a.createElement("span",{className:gl},this.renderButtons()),We&&Qe.a.createElement("div",{className:vl},Qe.a.createElement(_s.a,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),Qe.a.createElement("span",{className:Gs},Qe.a.createElement(Ws.a,null,ze)),Ye&&Ye.map(((ce,ze)=>Qe.a.createElement("span",{className:bl,key:ze},ce))),Qe.a.createElement("span",{className:Qs},qe&&Qe.a.createElement(Un.a,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},qs=Item_applyDecoratedDescriptor((Hs=Us).prototype,"order",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Item_applyDecoratedDescriptor(Hs.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Hs.prototype,"componentDidUpdate"),Hs.prototype),Ys=Item_applyDecoratedDescriptor(Hs.prototype,"handleOrderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),Vs=Hs))||Vs,Rl="column--iDhGy8Hfqp",Cl="scrolling--rjSWf1vXhl",Dl="loader---JiDXbXRso";class kl extends Qe.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return Qe.a.Children.map(ce,(ce=>Qe.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,qe=mt()(Rl,{[Cl]:Ve});return Qe.a.createElement("div",{className:qe,onMouseEnter:this.handleMouseEnter,role:"button"},ze?Qe.a.createElement("div",{className:Dl},Qe.a.createElement(Ct.a,null)):this.cloneItems(ce))}}kl.defaultProps={loading:!1,scrolling:!1};var Sl,xl,El,Ol,Pl,Tl,Al={toolbar:"toolbar--DDtgPZnqyS",item:"item--RD3Dz+G6r6",primary:"primary--Ow8f8zFulj",secondary:"secondary--lCP02nZUtQ"},Ml="button-arrow-icon--uRgclWLG+6";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ll=Object(qe.b)((Tl=class extends Qe.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",El,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",Ol,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Pl,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=mt()(Al.item,Al[ze]);return Qe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Qe.a.createElement(Un.a,{name:ce}),Qe.a.createElement(Un.a,{className:Ml,name:"su-angle-down"}))}render(){return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bt.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},Qe.a.createElement(bt.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:qe,onClick:Ye}=ce;return Qe.a.createElement(bt.a.Action,{disabled:Ve,key:ze,onClick:Ye},qe)})))))}},Tl.defaultProps={skin:"primary"},El=ToolbarDropdown_applyDecoratedDescriptor((xl=Tl).prototype,"open",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ol=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Pl=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Sl=xl))||Sl;var jl,Il,zl,Fl,Bl,Nl=Ll;class Vl extends Qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=mt()(Al.item,Al[ze]);return Qe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Qe.a.createElement(Un.a,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return Qe.a.createElement(Nl,Toolbar_extends({},ce,{key:ze}));case"button":return Qe.a.createElement(Vl,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return Qe.a.createElement("div",{className:Al.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Bl.defaultProps={toolbarItems:[]},zl=Toolbar_applyDecoratedDescriptor((Il=Bl).prototype,"toolbar",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=Toolbar_applyDecoratedDescriptor(Il.prototype,"setToolbarRef",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),jl=Il))||jl;var Ul,Wl,$l,ec,nc,ic,oc,lc=Hl,pc="300px",hc="column-list-toolbar-container--qP4ci2SdMZ",fc="toolbar-container--M-hmKOXXCe",mc="column-list-container--6AtrUaP7rm",gc="first-visible-column-active--t8DBSYm9OW",_c="last-visible-column-active--s84p32bfOh",kc="column-list--gXQME1EbNd";function ColumnList_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ec=Object(qe.b)((oc=class extends Qe.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",$l,this),ColumnList_initializerDefineProperty(this,"scrollPosition",ec,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",nc,this),ColumnList_initializerDefineProperty(this,"handleActive",ic,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,qe=this.containerScrolling;return Qe.a.Children.map(ce,((ce,Ye)=>Qe.a.cloneElement(ce,{index:Ye,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:qe})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=Qe.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(Qe.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(pc);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),qe=this.props.toolbarItemsProvider(this.activeColumnIndex);return Qe.a.createElement("div",{className:hc},!!qe&&Qe.a.createElement("div",{className:fc,style:{marginLeft:ze}},!!qe.length&&Qe.a.createElement(lc,{toolbarItems:qe,toolbarRef:this.setToolbarRef})),Qe.a.createElement("div",{className:Ve,ref:this.setContainerRef},Qe.a.createElement("div",{className:kc},this.cloneColumns(ce))))}},oc.Column=kl,oc.Item=wl,$l=ColumnList_applyDecoratedDescriptor((Wl=oc).prototype,"activeColumnIndex",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=ColumnList_applyDecoratedDescriptor(Wl.prototype,"scrollPosition",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(Wl.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Wl.prototype,"componentDidUpdate"),Wl.prototype),nc=ColumnList_applyDecoratedDescriptor(Wl.prototype,"handleScroll",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),ic=ColumnList_applyDecoratedDescriptor(Wl.prototype,"handleActive",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),Ul=Wl))||Ul;var Oc,Mc,Lc=Ec,jc=Ve(374),Ic=Ve(173),Fc=Ve(45);Ve(103);class Nc{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class Vc extends Nc{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),Fc.a.getList(ce,{...ze}).then(Object(Ye.action)((ze=>{const qe=ze._embedded[ce];return this.structureStrategy.clear(Ve),qe.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let qc=(Mc=ColumnStructureStrategy_applyDecoratedDescriptor((Oc=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,qe;ce=this,ze="rawData",qe=this,(Ve=Mc)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const qe=this.rawData.get(Ve);if(qe)for(const Ye of qe.keys()){const We=qe[Ye].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),qe.splice(Ye,1),0===qe.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const qe=this.rawData.get(Ve);if(!qe)continue;const Ye=qe.findIndex((ze=>ze.id===ce));if(-1!==Ye)return void this.rawData.set(Ve,Object(xt.arrayMove)(qe,Ye,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const qe=Object.keys(ce._embedded)[0],We=ce._embedded[qe];Object(Ye.isArrayLike)(We)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),We.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"visibleItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"activeItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"data"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"remove",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"remove"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"order"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"clear"),Oc.prototype),Oc);var Gc,Kc,Jc,Qc,ed,td,sd="column-list-adapter--2NA2E1Dy30";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(qe.b)((td=class extends Bt{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",Jc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Qc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",ed,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:qe}=this.props;if(!qe)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const Ye=Ve[this.orderColumn].length;return ze>Ye&&(ze=Ye),qe(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Qe.a.createElement(jc.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Qe.a.createElement(Un.a,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Qe.a.createElement(Un.a,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Qe.a.createElement(Un.a,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Qe.a.createElement(Un.a,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,qe=!!ce.published;!Ve&&qe||ze.push(Qe.a.createElement(Ic.a,{draft:Ve,key:"publish",published:qe}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,qe=!!ce.ghostLocale,Ye=[],{_permissions:{view:We=!0,edit:Qe=!0}={}}=ce;if(ze){const ce=qe?"su-plus-circle":Qe?"su-pen":"su-eye";Ye.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};Ye.push(ce)}return Ye},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:qe,onItemAdd:We,onRequestItemCopy:Qe,onRequestItemDelete:Xe,onRequestItemMove:ot,onRequestItemOrder:st}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(Ye.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=qe[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:vt=!0}={}}=yt||{};We&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{We(ze[ce])}});const wt=void 0!==ze[ce+1],Ct=qe[ce],Dt=Ct?Ct.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:kt=!0,edit:St=!0}={}}=Dt||{},xt=[];return Xe&&xt.push({disabled:!wt||!kt,label:Object(ln.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),ot&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");ot(Ve)}}),Qe&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),st&&xt.push({disabled:!vt,label:Object(ln.b)("sulu_admin.order"),onClick:Object(Ye.action)((()=>{this.orderColumn=ce}))}),xt.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:xt}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:qe}=this.props;return Qe.a.createElement("div",{className:sd},Qe.a.createElement(Lc,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((Ye,We)=>Qe.a.createElement(Lc.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},Ye.map(((Ve,Ye)=>Qe.a.createElement(Lc.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:Ye+1,selected:qe.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},td.LoadingStrategy=Vc,td.StructureStrategy=qc,td.icon="su-columns",td.searchable=!1,td.paginatable=!1,td.defaultProps={data:[]},Jc=ColumnListAdapter_applyDecoratedDescriptor((Kc=td).prototype,"orderColumn",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qc=ColumnListAdapter_applyDecoratedDescriptor(Kc.prototype,"handleItemClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),ed=ColumnListAdapter_applyDecoratedDescriptor(Kc.prototype,"handleItemDoubleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,qe=ze.map((ce=>Object(Ye.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:We=!0}={}}=qe;Ve&&We&&Ve(ce)}}}),Gc=Kc));var ld,cd,dd=Ve(94);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const qe=ce[Ve];if(qe.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(qe.children,ze)&&0===qe.children.length)return qe.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(xt.arrayMove)(Ve,qe,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(ld.prototype,"visibleItems"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(ld.prototype,"order"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(ld.prototype,"clear"),ld.prototype),ld);var fd,md,yd,bd,vd,_d,wd="pagination--l-Gy8ktwh0",Rd="loader--KqH8yIjtOt",Cd="display--ohVYQZNnbn",Dd="inputContainer--AhLKA10d4U";function Pagination_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Pagination_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const kd=[10,20,50,100];let Sd=Object(qe.b)((_d=class extends Qe.a.Component{constructor(){super(...arguments),Pagination_initializerDefineProperty(this,"currentInputValue",yd,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,qe=parseInt(ce);qe!==ze&&Ve(qe)},Pagination_initializerDefineProperty(this,"handleInputChange",bd,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},Pagination_initializerDefineProperty(this,"validateAndSubmitInputValue",vd,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:qe,currentLimit:Ye}=this.props;return Qe.a.createElement("section",null,ze,Qe.a.createElement("nav",{className:wd},Qe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.per_page"),":"),Qe.a.createElement("span",null,Qe.a.createElement(Ds.a,{onChange:this.handleLimitChange,skin:"dark",value:Ye},kd.map((ce=>Qe.a.createElement(Ds.a.Option,{key:ce,value:ce},ce))))),Qe.a.createElement("div",{className:Rd},Ve&&Qe.a.createElement(Ct.a,{size:24})),Qe.a.createElement("span",null,Object(ln.b)("sulu_admin.page"),":"),Qe.a.createElement("span",{className:Dd},Qe.a.createElement(_s.a,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),Qe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.of")," ",qe),Qe.a.createElement(Ht.a,null,Qe.a.createElement(vt.a,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),Qe.a.createElement(vt.a,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},_d.defaultProps={loading:!1},yd=Pagination_applyDecoratedDescriptor((md=_d).prototype,"currentInputValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidMount"),md.prototype),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidUpdate"),md.prototype),bd=Pagination_applyDecoratedDescriptor(md.prototype,"handleInputChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),vd=Pagination_applyDecoratedDescriptor(md.prototype,"validateAndSubmitInputValue",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let qe=this.currentInputValue;!qe||!Ve||qe<1?qe=1:qe>Ve&&(qe=Ve),qe!==ce&&ze(qe),this.currentInputValue=ce}}}),fd=md))||fd;var xd,Ed,Od=Sd,Td="publish-indicator--S6DXjHgv04",Ad="ghost-indicator--Dz6SVejLaz";let Md=((Ed=class extends Bt{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const qe=vs.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),Ye=[];if(0===Ve)if(ce.ghostLocale)Ye.push(Qe.a.createElement(jc.a,{className:Ad,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||Ye.push(Qe.a.createElement(Ic.a,{className:Td,draft:ze,key:"publish",published:Ve}))}return Qe.a.createElement(dd.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},Ye,qe)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((qe=>{const Ye=this.schema[qe],We=Ye.label?Ye.label:qe;return Qe.a.createElement(dd.a.HeaderCell,{key:qe,name:qe,onClick:Ye.sortable?ce:void 0,sortOrder:ze===qe?Ve:void 0,width:this.schema[qe].width},We)}))}}).hasColumnOptions=!0,Ed.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((xd=Ed).prototype,"schema",[Ye.computed],Object.getOwnPropertyDescriptor(xd.prototype,"schema"),xd.prototype),xd);var Ld,Id,Fd,Bd,Nd;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(qe.b)((Nd=class extends Md{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",Fd,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",Bd,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:qe}=this.props,{data:{_permissions:{add:Ye=!0,edit:We=!0,view:Qe=!0}={}}={}}=ce||{},Xe=[];return Ve&&Xe.push({disabled:!Qe,icon:We?"su-pen":"su-eye",onClick:Ve}),qe&&Xe.push({disabled:!Ye,icon:"su-plus-circle",onClick:qe}),ze&&Xe.push(...ze(ce)),Xe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:qe,selections:Ye}=this.props;for(const We of ce){const{data:ce,hasChildren:Xe}=We;Ve.push(Qe.a.createElement(dd.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:qe.includes(ce.id),expanded:We.children.length>0,hasChildren:Xe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:Ye.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:qe,onAllSelectionChange:Ye,onItemSelectionChange:We,onLimitChange:Xe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&qe)return Qe.a.createElement(Ct.a,null);const vt=Qe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Qe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(dd.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Qe.a.createElement(Od,{currentLimit:Ve,currentPage:gt,loading:qe,onLimitChange:Xe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},Nd.LoadingStrategy=Vc,Nd.StructureStrategy=ud,Nd.icon="su-tree-list",Fd=TreeTableAdapter_applyDecoratedDescriptor((Id=Nd).prototype,"handleRowCollapse",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),Bd=TreeTableAdapter_applyDecoratedDescriptor(Id.prototype,"handleRowExpand",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),Ld=Id));var Vd,Hd;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Yd=(Hd=FlatStructureStrategy_applyDecoratedDescriptor((Vd=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,qe;ce=this,ze="data",qe=this,(Ve=Hd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(xt.arrayMove)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(Vd.prototype,"visibleItems"),Vd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(Vd.prototype,"clear"),Vd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(Vd.prototype,"order"),Vd.prototype),Vd);var Ud,Wd;Object(qe.b)((Wd=class extends Md{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:qe=!0,view:Ye=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!Ye,icon:qe?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Qe.a.createElement(dd.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:qe,onItemSelectionChange:Ye,onLimitChange:We,onPageChange:Xe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Qe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowSelectionChange:Ye,selectMode:Ye?"multiple":void 0,skin:mt},st?Qe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(dd.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Qe.a.createElement(Od,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Xe,totalPages:yt},bt)}},Wd.LoadingStrategy=Vc,Wd.StructureStrategy=Yd,Wd.icon="su-align-justify",Ud=Wd));var $d="folder--MAPfkm9Cd0",Gd="description--gvVvBx2FXh",Kd="title--FU5Z2YeQes",Jd="info--D9Z5if0aia",Zd="icon-container--NzC3lsSfT-";class Qd extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)},this.handleKeypress=ce=>{const{onClick:ze,id:Ve}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze(Ve)))}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Qe.a.createElement("div",{className:$d,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe.a.createElement("div",{className:Zd},Qe.a.createElement(Un.a,{name:ce?"su-folder-permission":"su-folder"})),Qe.a.createElement("div",{className:Gd},Qe.a.createElement("h5",{className:Kd},Ve),Qe.a.createElement("div",{className:Jd},ze)))}}var Xd="folder-list--kdsLwfTOFY";class ku extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Qe.a.Children.map(ce,(ce=>Qe.a.createElement("li",null,Qe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Qe.a.createElement("ul",{className:Xd},ze)}}ku.Folder=Qd;var xu,Hu,qu=ku;Object(qe.b)(((Hu=class ce extends Bt{static getInfoText(ce){const ze=1===ce.objectCount?Object(ln.b)("sulu_admin.object"):Object(ln.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:qe,onItemClick:Ye,onLimitChange:We,onPageChange:Xe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Qe.a.createElement(qu,{onFolderClick:Ye},ze.map((ze=>Qe.a.createElement(qu.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Qe.a.createElement(Od,{currentLimit:Ve,currentPage:ot,loading:qe,onLimitChange:We,onPageChange:Xe,totalPages:mt},gt)}}).LoadingStrategy=Vc,Hu.StructureStrategy=Yd,Hu.icon="su-folder",Hu.defaultProps={data:[]},xu=Hu));Ve(280);ze.b=bs},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe,Ye,We=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Qe=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var We,Qe,Xe,ot;We=this,Qe="value",ot=this,(Xe=Ye)&&Object.defineProperty(We,Qe,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(ot):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=qe}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},Ye=_applyDecoratedDescriptor(qe.prototype,"value",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setValue",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(555);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(39),Ye=Ve(8),We=Ve(114),Qe=Ve(99),Xe=Ve(25);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=Object(Qe.a)(ce);if(Ve||(ze=ce),this._items=[],this._itemMap=new Map,this._idProperty=ze.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],Ve)for(const ze of ce)this._items.push(ze),this._itemMap.set(this._getItemIdBeforeAdding(ze),ze)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(ce,ze){return this.addMany([ce],ze)}addMany(ce,ze){if(void 0===ze)ze=this._items.length;else if(ze>this._items.length||ze<0)throw new Ye.a("collection-add-item-invalid-index",this);for(let Ve=0;Ve{this._setUpBindToBinding((ze=>new ce(ze)))},using:ce=>{"function"==typeof ce?this._setUpBindToBinding((ze=>ce(ze))):this._setUpBindToBinding((ze=>ze[ce]))}}}_setUpBindToBinding(ce){const ze=this._bindToCollection,addItem=(Ve,qe,Ye)=>{const We=ze._bindToCollection==this,Qe=ze._bindToInternalToExternalMap.get(qe);if(We&&Qe)this._bindToExternalToInternalMap.set(qe,Qe),this._bindToInternalToExternalMap.set(Qe,qe);else{const Ve=ce(qe);if(!Ve)return void this._skippedIndexesFromExternal.push(Ye);let We=Ye;for(const ce of this._skippedIndexesFromExternal)Ye>ce&&We--;for(const ce of ze._skippedIndexesFromExternal)We>=ce&&We++;this._bindToExternalToInternalMap.set(qe,Ve),this._bindToInternalToExternalMap.set(Ve,qe),this.add(Ve,We);for(let ce=0;ce{const qe=this._bindToExternalToInternalMap.get(ze);qe&&this.remove(qe),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((ce,ze)=>(Veze&&ce.push(ze),ce)),[])}))}_getItemIdBeforeAdding(ce){const ze=this._idProperty;let Ve;if(ze in ce){if(Ve=ce[ze],"string"!=typeof Ve)throw new Ye.a("collection-add-invalid-id",this);if(this.get(Ve))throw new Ye.a("collection-add-item-already-exists",this)}else ce[ze]=Ve=Object(We.a)();return Ve}_remove(ce){let ze,Ve,qe,We=!1;const Qe=this._idProperty;if("string"==typeof ce?(Ve=ce,qe=this._itemMap.get(Ve),We=!qe,qe&&(ze=this._items.indexOf(qe))):"number"==typeof ce?(ze=ce,qe=this._items[ze],We=!qe,qe&&(Ve=qe[Qe])):(qe=ce,Ve=qe[Qe],ze=this._items.indexOf(qe),We=-1==ze||!this._itemMap.get(Ve)),We)throw new Ye.a("collection-remove-404",this);this._items.splice(ze,1),this._itemMap.delete(Ve);const Xe=this._bindToInternalToExternalMap.get(qe);return this._bindToInternalToExternalMap.delete(qe),this._bindToExternalToInternalMap.delete(Xe),this.fire("remove",qe,ze),[qe,ze]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(Xe.a)(ot,qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(116),Ye=Ve(281);class We extends qe.a{constructor(ce){super(ce),this.useCapture=!1}observe(ce){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((ze=>{this.listenTo(ce,ze,((ce,ze)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(ze.target)&&this.onDomEvent(ze)}),{useCapture:this.useCapture})}))}fire(ce,ze,Ve){this.isEnabled&&this.document.fire(ce,new Ye.a(this.view,ze,Ve))}}},function(ce,ze,Ve){"use strict";var qe=Ve(5),Ye=Ve.n(qe),We=Ve(26),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2138),yt=Ve(19),bt=Ve(40),vt=Ve(263),wt=Ve(292),Ct=Ve(338),Dt="actions--xNXsRaI5Vm";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.a,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--f4RGGquzEU",overlay:"overlay--n+RWc5k46Z",small:"small--6xbtoXIEUQ",large:"large--sv3QRCZhaC","is-down":"is-down--RQ1vB3CW5n",isDown:"is-down--RQ1vB3CW5n",content:"content--7IBCVm5j3y",header:"header--zFlFo259TN",article:"article--bFYETkm1oe",footer:"footer--zk0jAohpve",icon:"icon--k8wwQYr3oC",snackbar:"snackbar--sZxmSSBfIk"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Bt="esc";var Vt=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Qe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Qe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Qe.a.bind(Bt,this.close):Qe.a.unbind(Bt),Object(vt.a)(Object(Xe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:qe,confirmText:We,onConfirm:Qe,onSnackbarClick:Xe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=Ye()(Ft.container,{[Ft.isDown]:Et}),Lt=Ye()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.a,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.a,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Xe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.a=Vt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var qe=Ve(8),Ye=Ve(25),We=Ve(39),Qe=Ve(29),Xe=Ve(284),ot=Ve(266),st=Ve(71),mt=Ve(2134),gt=Ve(91);class yt{constructor(ce){Object.assign(this,normalize(clone(ce))),this._isRendered=!1,this._revertData=null}render(){const ce=this._renderNode({intoFragment:!0});return this._isRendered=!0,ce}apply(ce){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:ce,isApplying:!0,revertData:this._revertData}),ce}revert(ce){if(!this._revertData)throw new qe.a("ui-template-revert-not-applied",[this,ce]);this._revertTemplateFromNode(ce,this._revertData)}*getViews(){yield*function*search(ce){if(ce.children)for(const ze of ce.children)isView(ze)?yield ze:isTemplate(ze)&&(yield*search(ze))}(this)}static bind(ce,ze){return{to:(Ve,qe)=>new vt({eventNameOrFunction:Ve,attribute:Ve,observable:ce,emitter:ze,callback:qe}),if:(Ve,qe,Ye)=>new wt({observable:ce,emitter:ze,attribute:Ve,valueIfTrue:qe,callback:Ye})}}static extend(ce,ze){if(ce._isRendered)throw new qe.a("template-extend-render",[this,ce]);extendTemplate(ce,normalize(clone(ze)))}_renderNode(ce){let ze;if(ze=ce.node?this.tag&&this.text:this.tag?this.text:!this.text,ze)throw new qe.a("ui-template-wrong-syntax",this);return this.text?this._renderText(ce):this._renderElement(ce)}_renderElement(ce){let ze=ce.node;return ze||(ze=ce.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(ce),this._renderElementChildren(ce),this._setUpListeners(ce),ze}_renderText(ce){let ze=ce.node;return ze?ce.revertData.text=ze.textContent:ze=ce.node=document.createTextNode(""),hasTemplateBinding(this.text)?this._bindToObservable({schema:this.text,updater:getTextUpdater(ze),data:ce}):ze.textContent=this.text.join(""),ze}_renderAttributes(ce){let ze,Ve,qe,Ye;if(!this.attributes)return;const We=ce.node,Qe=ce.revertData;for(ze in this.attributes)if(qe=We.getAttribute(ze),Ve=this.attributes[ze],Qe&&(Qe.attributes[ze]=qe),Ye=Object(st.a)(Ve[0])&&Ve[0].ns?Ve[0].ns:null,hasTemplateBinding(Ve)){const Xe=Ye?Ve[0].value:Ve;Qe&&shouldExtend(ze)&&Xe.unshift(qe),this._bindToObservable({schema:Xe,updater:getAttributeUpdater(We,ze,Ye),data:ce})}else"style"==ze&&"string"!=typeof Ve[0]?this._renderStyleAttribute(Ve[0],ce):(Qe&&qe&&shouldExtend(ze)&&Ve.unshift(qe),Ve=Ve.map((ce=>ce&&ce.value||ce)).reduce(((ce,ze)=>ce.concat(ze)),[]).reduce(arrayValueReducer,""),isFalsy(Ve)||We.setAttributeNS(Ye,ze,Ve))}_renderStyleAttribute(ce,ze){const Ve=ze.node;for(const qe in ce){const Ye=ce[qe];hasTemplateBinding(Ye)?this._bindToObservable({schema:[Ye],updater:getStyleUpdater(Ve,qe),data:ze}):Ve.style[qe]=Ye}}_renderElementChildren(ce){const ze=ce.node,Ve=ce.intoFragment?document.createDocumentFragment():ze,qe=ce.isApplying;let Ye=0;for(const We of this.children)if(isViewCollection(We)){if(!qe){We.setParent(ze);for(const ce of We)Ve.appendChild(ce.element)}}else if(isView(We))qe||(We.isRendered||We.render(),Ve.appendChild(We.element));else if(Object(ot.a)(We))Ve.appendChild(We);else if(qe){const ze={children:[],bindings:[],attributes:{}};ce.revertData.children.push(ze),We._renderNode({node:Ve.childNodes[Ye++],isApplying:!0,revertData:ze})}else Ve.appendChild(We.render());ce.intoFragment&&ze.appendChild(Ve)}_setUpListeners(ce){if(this.eventListeners)for(const ze in this.eventListeners){const Ve=this.eventListeners[ze].map((Ve=>{const[qe,Ye]=ze.split("@");return Ve.activateDomEventListener(qe,Ye,ce)}));ce.revertData&&ce.revertData.bindings.push(Ve)}}_bindToObservable(ce){let{schema:ze,updater:Ve,data:qe}=ce;const Ye=qe.revertData;syncValueSchemaValue(ze,Ve,qe);const We=ze.filter((ce=>!isFalsy(ce))).filter((ce=>ce.observable)).map((ce=>ce.activateAttributeListener(ze,Ve,qe)));Ye&&Ye.bindings.push(We)}_revertTemplateFromNode(ce,ze){for(const ce of ze.bindings)for(const ze of ce)ze();if(ze.text)ce.textContent=ze.text;else{for(const Ve in ze.attributes){const qe=ze.attributes[Ve];null===qe?ce.removeAttribute(Ve):ce.setAttribute(Ve,qe)}for(let Ve=0;VesyncValueSchemaValue(ce,ze,Ve);return this.emitter.listenTo(this.observable,"change:"+this.attribute,callback),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,callback)}}}class vt extends bt{activateDomEventListener(ce,ze,Ve){const callback=(ce,Ve)=>{ze&&!Ve.target.matches(ze)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(Ve):this.observable.fire(this.eventNameOrFunction,Ve))};return this.emitter.listenTo(Ve.node,ce,callback),()=>{this.emitter.stopListening(Ve.node,ce,callback)}}}class wt extends bt{getValue(ce){return!isFalsy(super.getValue(ce))&&(this.valueIfTrue||!0)}}function hasTemplateBinding(ce){return!!ce&&(ce.value&&(ce=ce.value),Array.isArray(ce)?ce.some(hasTemplateBinding):ce instanceof bt)}function getValueSchemaValue(ce,ze){return ce.map((ce=>ce instanceof bt?ce.getValue(ze):ce))}function syncValueSchemaValue(ce,ze,Ve){let{node:qe}=Ve,Ye=getValueSchemaValue(ce,qe);Ye=1==ce.length&&ce[0]instanceof wt?Ye[0]:Ye.reduce(arrayValueReducer,""),isFalsy(Ye)?ze.remove():ze.set(Ye)}function getTextUpdater(ce){return{set(ze){ce.textContent=ze},remove(){ce.textContent=""}}}function getAttributeUpdater(ce,ze,Ve){return{set(qe){ce.setAttributeNS(Ve,ze,qe)},remove(){ce.removeAttributeNS(Ve,ze)}}}function getStyleUpdater(ce,ze){return{set(Ve){ce.style[ze]=Ve},remove(){ce.style[ze]=null}}}function clone(ce){return Object(mt.a)(ce,(ce=>{if(ce&&(ce instanceof bt||isTemplate(ce)||isView(ce)||isViewCollection(ce)))return ce}))}function normalize(ce){if("string"==typeof ce?ce=normalizePlainTextDefinition(ce):ce.text&&normalizeTextDefinition(ce),ce.on&&(ce.eventListeners=normalizeListeners(ce.on),delete ce.on),!ce.text){ce.attributes&&normalizeAttributes(ce.attributes);const ze=[];if(ce.children)if(isViewCollection(ce.children))ze.push(ce.children);else for(const Ve of ce.children)isTemplate(Ve)||isView(Ve)||Object(ot.a)(Ve)?ze.push(Ve):ze.push(new yt(Ve));ce.children=ze}return ce}function normalizeAttributes(ce){for(const ze in ce)ce[ze].value&&(ce[ze].value=Object(gt.a)(ce[ze].value)),arrayify(ce,ze)}function normalizeListeners(ce){for(const ze in ce)arrayify(ce,ze);return ce}function normalizePlainTextDefinition(ce){return{text:[ce]}}function normalizeTextDefinition(ce){ce.text=Object(gt.a)(ce.text)}function arrayify(ce,ze){ce[ze]=Object(gt.a)(ce[ze])}function arrayValueReducer(ce,ze){return isFalsy(ze)?ce:isFalsy(ce)?ze:`${ce} ${ze}`}function extendObjectValueArray(ce,ze){for(const Ve in ze)ce[Ve]?ce[Ve].push(...ze[Ve]):ce[Ve]=ze[Ve]}function extendTemplate(ce,ze){if(ze.attributes&&(ce.attributes||(ce.attributes={}),extendObjectValueArray(ce.attributes,ze.attributes)),ze.eventListeners&&(ce.eventListeners||(ce.eventListeners={}),extendObjectValueArray(ce.eventListeners,ze.eventListeners)),ze.text&&ce.text.push(...ze.text),ze.children&&ze.children.length){if(ce.children.length!=ze.children.length)throw new qe.a("ui-template-extend-children-mismatch",ce);let Ve=0;for(const qe of ze.children)extendTemplate(ce.children[Ve++],qe)}}function isFalsy(ce){return!ce&&0!==ce}function isView(ce){return ce instanceof Qe.a}function isTemplate(ce){return ce instanceof yt}function isViewCollection(ce){return ce instanceof Xe.a}function shouldExtend(ce){return"class"==ce||"style"==ce}},function(ce,ze){ce.exports={}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(8);class Ye{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.offsetSize)throw new qe.a("model-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.offsetSize)throw new qe.a("model-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(ce){return"$textProxy"===ce||"model:$textProxy"===ce||"textProxy"===ce||"model:textProxy"===ce}getPath(){const ce=this.textNode.getPath();return ce.length>0&&(ce[ce.length-1]+=this.offsetInText),ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}hasAttribute(ce){return this.textNode.hasAttribute(ce)}getAttribute(ce){return this.textNode.getAttribute(ce)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _insert})),Ve.d(ze,"d",(function(){return _remove})),Ve.d(ze,"b",(function(){return _move})),Ve.d(ze,"e",(function(){return _setAttribute})),Ve.d(ze,"c",(function(){return _normalizeNodes}));var qe=Ve(225),Ye=Ve(64),We=Ve(134),Qe=Ve(16),Xe=Ve(203),ot=Ve(233),st=Ve(8);function _insert(ce,ze){const Ve=(ze=_normalizeNodes(ze)).reduce(((ce,ze)=>ce+ze.offsetSize),0),qe=ce.parent;_splitNodeAtPosition(ce);const Ye=ce.index;return qe._insertChild(Ye,ze),_mergeNodesAtIndex(qe,Ye+ze.length),_mergeNodesAtIndex(qe,Ye),new Qe.a(ce,ce.getShiftedBy(Ve))}function _remove(ce){if(!ce.isFlat)throw new st.a("operation-utils-remove-range-not-flat",this);const ze=ce.start.parent;_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);const Ve=ze._removeChildren(ce.start.index,ce.end.index-ce.start.index);return _mergeNodesAtIndex(ze,ce.start.index),Ve}function _move(ce,ze){if(!ce.isFlat)throw new st.a("operation-utils-move-range-not-flat",this);const Ve=_remove(ce);return _insert(ze=ze._getTransformedByDeletion(ce.start,ce.end.offset-ce.start.offset),Ve)}function _setAttribute(ce,ze,Ve){_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);for(const qe of ce.getItems({shallow:!0})){const ce=qe.is("$textProxy")?qe.textNode:qe;null!==Ve?ce._setAttribute(ze,Ve):ce._removeAttribute(ze),_mergeNodesAtIndex(ce.parent,ce.index)}_mergeNodesAtIndex(ce.end.parent,ce.end.index)}function _normalizeNodes(ce){const ze=[];ce instanceof Array||(ce=[ce]);for(let Ve=0;Ve{const ce=this.editor.editing.view,ze=ce.document.selection.editableElement;return ze?ce.domConverter.mapViewToDom(ze.root):null},this.set("visibleView",null),this.view=new Ye.a(ce.locale),ce.ui.view.body.add(this.view),ce.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(ce){return Array.from(this._viewToStack.keys()).includes(ce)}add(ce){if(this.hasView(ce.view))throw new Xe.a("contextualballoon-add-view-exist",[this,ce]);const ze=ce.stackId||"main";if(!this._idToStack.has(ze))return this._idToStack.set(ze,new Map([[ce.view,ce]])),this._viewToStack.set(ce.view,this._idToStack.get(ze)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!ce.singleViewMode||this.showStack(ze));const Ve=this._idToStack.get(ze);ce.singleViewMode&&this.showStack(ze),Ve.set(ce.view,ce),this._viewToStack.set(ce.view,Ve),Ve===this._visibleStack&&this._showView(ce)}remove(ce){if(!this.hasView(ce))throw new Xe.a("contextualballoon-remove-view-not-exist",[this,ce]);const ze=this._viewToStack.get(ce);this._singleViewMode&&this.visibleView===ce&&(this._singleViewMode=!1),this.visibleView===ce&&(1===ze.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(ze.values())[ze.size-2])),1===ze.size?(this._idToStack.delete(this._getStackId(ze)),this._numberOfStacks=this._idToStack.size):ze.delete(ce),this._viewToStack.delete(ce)}updatePosition(ce){ce&&(this._visibleStack.get(this.visibleView).position=ce),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(ce){this.visibleStack=ce;const ze=this._idToStack.get(ce);if(!ze)throw new Xe.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==ze&&this._showView(Array.from(ze.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(ce){return Array.from(this._idToStack.entries()).find((ze=>ze[1]===ce))[0]}_showNextStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)+1;ce[ze]||(ze=0),this.showStack(this._getStackId(ce[ze]))}_showPrevStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)-1;ce[ze]||(ze=ce.length-1),this.showStack(this._getStackId(ce[ze]))}_createRotatorView(){const ce=new bt(this.editor.locale),ze=this.editor.locale.t;return this.view.content.add(ce),ce.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>1)),ce.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),ce.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((ce,Ve)=>{if(Ve<2)return"";const qe=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return ze("%0 of %1",[qe,Ve])})),ce.buttonNextView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),ce.buttonPrevView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),ce}_createFakePanelsView(){const ce=new vt(this.editor.locale,this.view);return ce.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>=2?Math.min(ce-1,2):0)),ce.listenTo(this.view,"change:top",(()=>ce.updatePosition())),ce.listenTo(this.view,"change:left",(()=>ce.updatePosition())),this.editor.ui.view.body.add(ce),ce}_showView(ce){let{view:ze,balloonClassName:Ve="",withArrow:qe=!0,singleViewMode:Ye=!1}=ce;this.view.class=Ve,this.view.withArrow=qe,this._rotatorView.showView(ze),this.visibleView=ze,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),Ye&&(this._singleViewMode=!0)}_getBalloonPosition(){let ce=Array.from(this._visibleStack.values()).pop().position;return ce&&(ce.limiter||(ce=Object.assign({},ce,{limiter:this.positionLimiter})),ce=Object.assign({},ce,{viewportOffsetConfig:this.editor.ui.viewportOffset})),ce}}class bt extends We.a{constructor(ce){super(ce);const ze=ce.t,Ve=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ot.a,this.buttonPrevView=this._createButtonView(ze("Previous"),''),this.buttonNextView=this._createButtonView(ze("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",Ve.to("isNavigationVisible",(ce=>ce?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:Ve.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(ce){this.hideView(),this.content.add(ce)}hideView(){this.content.clear()}_createButtonView(ce,ze){const Ve=new Qe.a(this.locale);return Ve.set({label:ce,icon:ze,tooltip:!0}),Ve}}class vt extends We.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=ze,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",Ve.to("numberOfPanels",(ce=>ce?"":"ck-hidden"))],style:{top:Ve.to("top",gt),left:Ve.to("left",gt),width:Ve.to("width",gt),height:Ve.to("height",gt)}},children:this.content}),this.on("change:numberOfPanels",((ce,ze,Ve,qe)=>{Ve>qe?this._addPanels(Ve-qe):this._removePanels(qe-Ve),this.updatePosition()}))}_addPanels(ce){for(;ce--;){const ce=new We.a;ce.setTemplate({tag:"div"}),this.content.add(ce),this.registerChild(ce)}}_removePanels(ce){for(;ce--;){const ce=this.content.last;this.content.remove(ce),this.deregisterChild(ce),ce.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:ce,left:ze}=this._balloonPanelView,{width:Ve,height:qe}=new mt.a(this._balloonPanelView.element);Object.assign(this,{top:ce,left:ze,width:Ve,height:qe})}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var qe=Ve(8),Ye=Ve(41),We=Ve(24),Qe=Ve(25),Xe=Ve(39),ot=Ve(177),st=Ve(452),mt=Ve(99),gt=Ve(670);class yt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(ce,ze,Ve)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.end:ce.start).clone()}get focus(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.start:ce.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const ce of this._ranges)yield ce.clone()}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?ce.clone():null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?ce.clone():null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}isEqual(ce){if(this.isFake!=ce.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=ce.fakeSelectionLabel)return!1;if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const qe of ce._ranges)if(ze.isEqual(qe)){Ve=!0;break}if(!Ve)return!1}return!0}isSimilar(ce){if(this.isBackward!=ce.isBackward)return!1;const ze=Object(st.a)(this.getRanges());if(ze!=Object(st.a)(ce.getRanges()))return!1;if(0==ze)return!0;for(let ze of this.getRanges()){ze=ze.getTrimmed();let Ve=!1;for(let qe of ce.getRanges())if(qe=qe.getTrimmed(),ze.start.isEqual(qe.start)&&ze.end.isEqual(qe.end)){Ve=!0;break}if(!Ve)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]),this._setFakeOptions(ze);else if(ce instanceof yt||ce instanceof gt.a)this._setRanges(ce.getRanges(),ce.isBackward),this._setFakeOptions({fake:ce.isFake,label:ce.fakeSelectionLabel});else if(ce instanceof Ye.a)this._setRanges([ce],ze&&ze.backward),this._setFakeOptions(ze);else if(ce instanceof We.a)this._setRanges([new Ye.a(ce)]),this._setFakeOptions(ze);else if(ce instanceof ot.a){const Qe=!!Ve&&!!Ve.backward;let Xe;if(void 0===ze)throw new qe.a("view-selection-setto-required-second-parameter",this);Xe="in"==ze?Ye.a._createIn(ce):"on"==ze?Ye.a._createOn(ce):new Ye.a(We.a._createAt(ce,ze)),this._setRanges([Xe],Qe),this._setFakeOptions(Ve)}else{if(!Object(mt.a)(ce))throw new qe.a("view-selection-setto-not-selectable",this);this._setRanges(ce,ze&&ze.backward),this._setFakeOptions(ze)}this.fire("change")}setFocus(ce,ze){if(null===this.anchor)throw new qe.a("view-selection-setfocus-no-ranges",this);const Ve=We.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Qe=this.anchor;this._ranges.pop(),"before"==Ve.compareWith(Qe)?this._addRange(new Ye.a(Ve,Qe),!0):this._addRange(new Ye.a(Qe,Ve)),this.fire("change")}is(ce){return"selection"===ce||"view:selection"===ce}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce=Array.from(ce),this._ranges=[];for(const ze of ce)this._addRange(ze);this._lastRangeBackward=!!ze}_setFakeOptions(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!ce.fake,this._fakeSelectionLabel=ce.fake&&ce.label||""}_addRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(ce instanceof Ye.a))throw new qe.a("view-selection-add-range-not-range",this);this._pushRange(ce),this._lastRangeBackward=!!ze}_pushRange(ce){for(const ze of this._ranges)if(ce.isIntersecting(ze))throw new qe.a("view-selection-range-intersects",this,{addedRange:ce,intersectingRange:ze});this._ranges.push(new Ye.a(ce.start,ce.end))}}Object(Qe.a)(yt,Xe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(141),Ye=Object.prototype,We=Ye.hasOwnProperty,Qe=Ye.toString,Xe=qe.a?qe.a.toStringTag:void 0;var ot=function getRawTag(ce){var ze=We.call(ce,Xe),Ve=ce[Xe];try{ce[Xe]=void 0;var qe=!0}catch(ce){}var Ye=Qe.call(ce);return qe&&(ze?ce[Xe]=Ve:delete ce[Xe]),Ye},st=Object.prototype.toString;var mt=function objectToString(ce){return st.call(ce)},gt=qe.a?qe.a.toStringTag:void 0;ze.a=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":gt&> in Object(ce)?ot(ce):mt(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(102).a.Symbol;ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(100),Ye=Ve(16);class We extends qe.a{constructor(ce,ze,Ve,qe,Ye,We){super(We),this.name=ce,this.oldRange=ze?ze.clone():null,this.newRange=Ve?Ve.clone():null,this.affectsData=Ye,this._markers=qe}get type(){return"marker"}clone(){return new We(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new We(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const ce=this.newRange?"_set":"_remove";this._markers[ce](this.name,this.newRange,!0,this.affectsData)}toJSON(){const ce=super.toJSON();return this.oldRange&&(ce.oldRange=this.oldRange.toJSON()),this.newRange&&(ce.newRange=this.newRange.toJSON()),delete ce._markers,ce}static get className(){return"MarkerOperation"}static fromJSON(ce,ze){return new We(ce.name,ce.oldRange?Ye.a.fromJSON(ce.oldRange,ze):null,ce.newRange?Ye.a.fromJSON(ce.newRange,ze):null,ze.model.markers,ce.affectsData,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,qe){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=qe}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(531);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot=Ve(54),st={light:"light--sIP-5Qwa5q",active:"active--sXemXw2Qwc",dark:"dark--xYyuCCDK+V",button:"button--khYx3QkOpe",small:"small--FUEay96ywu","dropdown-icon":"dropdown-icon--MHPrKPeco7",dropdownIcon:"dropdown-icon--MHPrKPeco7",primary:"primary--zM+CgXsiFl",success:"success--PQcKXlXHns",icon:"icon--VcgD+pEhPf",label:"label--fUixqmarb0",loader:"loader--n2-DH-Na9-"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:qe,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Qe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return Ye.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},qe&&Ye.a.createElement(ot.a,{className:st.loader,size:20}),mt&&Ye.a.createElement(Xe.a,{className:st.icon,name:mt}),Dt&&bt&&Ye.a.createElement("span",{className:st.label},Dt),We&&Ye.a.createElement(Xe.a,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--vxiw6RdICb",grow:"grow--Meqa2l-5aJ"};class yt extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>{if(ce)return Ye.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,qe=Qe()(gt.controls,gt[Ve],{[gt.grow]:ze});return Ye.a.createElement("div",{className:qe},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(118),Lt={popover:"popover--WRQklfYLLA","content-container":"content-container--wS9enW+rLG",contentContainer:"content-container--wS9enW+rLG",light:"light--GRmhCwDE4G",dark:"dark--jlzKPnRYJ-"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ft=Object(Et.b)((xt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:qe,skin:We,label:Xe,disabled:ot,loading:st,showText:gt}=this.props,yt=Qe()(ze,Lt.popover,{[Lt[qe]]:qe});return Ye.a.createElement("div",{className:yt},Ye.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Xe:void 0,loading:st,onClick:this.handleButtonClick,size:qe,skin:We}),Ye.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>Ye.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},Ye.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Vt={light:"light--AnfEC9D-F9",dark:"dark--UjppsdydBV",option:"option--fwvOtf7JVC","is-selected":"is-selected--RrPbiNNb6J",isSelected:"is-selected--RrPbiNNb6J",small:"small--verMqRjrCG","selected-icon":"selected-icon--N6yQgYAAvO",selectedIcon:"selected-icon--N6yQgYAAvO"};class Ht extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:qe,disabled:We}=this.props,ot=Qe()(Vt.option,Vt[ce],{[Vt[ze]]:ze,[Vt.isSelected]:qe});return Ye.a.createElement("li",{className:ot},Ye.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},qe&&Ye.a.createElement(Xe.a,{className:Vt.selectedIcon,name:"su-check"}),Ve))}}var Ut,Wt,Jt={light:"light--n-NqhyBRhp",dark:"dark--G6tXOkw8SX","option-list":"option-list--Z70859x8dX",optionList:"option-list--Z70859x8dX","is-open":"is-open--M7yGocMOQP",isOpen:"is-open--M7yGocMOQP",small:"small--oVodjqoXri"};class Qt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:qe}=this.props,We=Qe()(Jt.optionList,Jt[qe],{[Jt[ce]]:ce});return Ye.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Qe=!!Ve.value&&Ve.value===ze;return Ye.a.createElement(Ht,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Qe,size:ce,skin:qe,value:Ve})})))}}let en=Object(Et.b)((Wt=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:qe,options:We,disabled:Qe,loading:Xe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return Ye.a.createElement(Bt,{disabled:Qe||st,icon:ce,label:ot?qe:void 0,loading:Xe,size:ze,skin:Ve},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Wt.defaultProps={showText:!0},Ut=Wt))||Ut;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(51),En=Ve.n(Sn),Tn={light:"light--SpEaKbwYt0",dark:"dark--1xo8QwQMYF","items-container":"items-container--RYTngep9Z5",itemsContainer:"items-container--RYTngep9Z5",items:"items--AVi3ArRNHt"};function Items_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ln=Object(Et.b)((wn=class extends Ye.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Tn.items,Tn[ce]);return Ye.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},Ye.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&Ye.a.Children.map(ze,((ze,Ve)=>ze&&Ye.a.createElement("li",{key:Ve},Ye.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--S0ashf9NJL",light:"light--Bvi6l6hQO1",dark:"dark--TOdA+DUs1z",controls:"controls--NctgvZTU2f",icons:"icons--DuTBbkeFt6",icon:"icon--oWUnqRUEMW"};class Un extends Ye.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Yn.icons,Yn[ce]);return Ye.a.createElement("div",{className:Ve},Ye.a.Children.map(ze,(ce=>Ye.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Gn,Kn,Jn,Zn=Ve(162);class Xn extends Ye.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:qe,skin:We,value:Qe}=this.props;return Ye.a.createElement(mt,{disabled:ce,loading:Ve,onClick:qe,skin:We},Ye.a.createElement(Zn.a,{checked:Qe,onChange:qe},ze))}}let ei=Object(Et.b)((Jn=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:qe,loading:We,options:Qe,showText:Xe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:qe;return Ye.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Xe?gt:void 0,loading:We,size:ot,skin:st},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Qe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Kn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Kn.prototype,"selectedOption"),Kn.prototype),Gn=Kn))||Gn;var si=ei,_i={toolbar:"toolbar--NUq57tQPDc",light:"light--tsWyh-QhSE",dark:"dark--6AbVStcDf5",controls:"controls--c4co3UZUf1"};class Ri extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Qe()(_i.toolbar,_i[ze]);return Ye.a.createElement("nav",{className:Ve},Ri.createChildren(ce,ze))}}Ri.defaultProps={skin:"light"},Ri.Button=mt,Ri.Controls=yt,Ri.Dropdown=Cn,Ri.Icons=Un,Ri.Items=Fn,Ri.Popover=Bt,Ri.Select=si,Ri.Toggler=Xn;ze.a=Ri},function(ce,ze){var Ve;Ve=function(){return this}();try{Ve=Ve||new Function("return this")()}catch(ce){"object"==typeof window&&(Ve=window)}ce.exports=Ve},function(ce,ze,Ve){"use strict";var qe=Ve(121),Ye=String,We=TypeError;ce.exports=function(ce){if(qe(ce))return ce;throw new We(Ye(ce)+" is not an object")}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(740);qe({target:"RegExp",proto:!0,forced:/./.exec!==Ye},{exec:Ye})},function(ce,ze,Ve){"use strict";var qe=Ve(470),Ye=String;ce.exports=function(ce){if("Symbol"===qe(ce))throw new TypeError("Cannot convert a Symbol value to a string");return Ye(ce)}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(598);ze.default=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(39),Ye=Ve(114),We=Ve(266),Qe=Ve(413),Xe=Ve(722);const ot=Object(Xe.a)({},qe.c,{listenTo(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Object(We.a)(ce)||Object(Qe.a)(ce)){const qe={capture:!!Ye.useCapture,passive:!!Ye.usePassive},We=this._getProxyEmitter(ce,qe)||new st(ce,qe);this.listenTo(We,ze,Ve,Ye)}else qe.c.listenTo.call(this,ce,ze,Ve,Ye)},stopListening(ce,ze,Ve){if(Object(We.a)(ce)||Object(Qe.a)(ce)){const qe=this._getAllProxyEmitters(ce);for(const ce of qe)this.stopListening(ce,ze,Ve)}else qe.c.stopListening.call(this,ce,ze,Ve)},_getProxyEmitter(ce,ze){return Object(qe.a)(this,getProxyEmitterId(ce,ze))},_getAllProxyEmitters(ce){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((ze=>this._getProxyEmitter(ce,ze))).filter((ce=>!!ce))}});ze.a=ot;class st{constructor(ce,ze){Object(qe.b)(this,getProxyEmitterId(ce,ze)),this._domNode=ce,this._options=ze}}function getNodeUID(ce){return ce["data-ck-expando"]||(ce["data-ck-expando"]=Object(Ye.a)())}function getProxyEmitterId(ce,ze){let Ve=getNodeUID(ce);for(const ce of Object.keys(ze).sort())ze[ce]&&(Ve+="-"+ce);return Ve}Object(Xe.a)(st.prototype,qe.c,{attach(ce){if(this._domListeners&&this._domListeners[ce])return;const ze=this._createDomListener(ce);this._domNode.addEventListener(ce,ze,this._options),this._domListeners||(this._domListeners={}),this._domListeners[ce]=ze},detach(ce){let ze;!this._domListeners[ce]||(ze=this._events[ce])&&ze.callbacks.length||this._domListeners[ce].removeListener()},_addEventListener(ce,ze,Ve){this.attach(ce),qe.c._addEventListener.call(this,ce,ze,Ve)},_removeEventListener(ce,ze){qe.c._removeEventListener.call(this,ce,ze),this.detach(ce)},_createDomListener(ce){const domListener=ze=>{this.fire(ce,ze)};return domListener.removeListener=()=>{this._domNode.removeEventListener(ce,domListener,this._options),delete this._domListeners[ce]},domListener}})},function(ce,ze,Ve){"use strict";function toUnit(ce){return ze=>ze+ce}Ve.d(ze,"a",(function(){return toUnit}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(151),Ye=Ve(37);class We{constructor(){this._listener=Object.create(qe.a)}listenTo(ce){this._listener.listenTo(ce,"keydown",((ce,ze)=>{this._listener.fire("_keydown:"+Object(Ye.a)(ze),ze)}))}set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=Object(Ye.g)(ce),We=Ve.priority;this._listener.listenTo(this._listener,"_keydown:"+qe,((ce,Ve)=>{ze(Ve,(()=>{Ve.preventDefault(),Ve.stopPropagation(),ce.stop()})),ce.return=!0}),{priority:We})}press(ce){return!!this._listener.fire("_keydown:"+Object(Ye.a)(ce),ce)}destroy(){this._listener.stopListening()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(18);class Ye extends qe.a{constructor(ce,ze){super(ce),this.attributeKey=ze}refresh(){const ce=this.editor.model,ze=ce.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=ce.schema.checkAttributeInSelection(ze.selection,this.attributeKey)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document.selection,qe=void 0===ce.forceValue?!this.value:ce.forceValue;ze.change((ce=>{if(Ve.isCollapsed)qe?ce.setSelectionAttribute(this.attributeKey,!0):ce.removeSelectionAttribute(this.attributeKey);else{const Ye=ze.schema.getValidRanges(Ve.getRanges(),this.attributeKey);for(const ze of Ye)qe?ce.setAttribute(this.attributeKey,qe,ze):ce.removeAttribute(this.attributeKey,ze)}}))}_getValueFromFirstAllowedNode(){const ce=this.editor.model,ze=ce.schema,Ve=ce.document.selection;if(Ve.isCollapsed)return Ve.hasAttribute(this.attributeKey);for(const ce of Ve.getRanges())for(const Ve of ce.getItems())if(ze.checkAttribute(Ve,this.attributeKey))return Ve.hasAttribute(this.attributeKey);return!1}}},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(388),We=Ve(102).a["__core-js_shared__"],Qe=(qe=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"";var Xe=function isMasked(ce){return!!Qe&&Qe in ce},ot=Ve(71),st=Ve(267),mt=/^\[object .+?Constructor\]$/,gt=Function.prototype,yt=Object.prototype,bt=gt.toString,vt=yt.hasOwnProperty,wt=RegExp("^"+bt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=function baseIsNative(ce){return!(!Object(ot.a)(ce)||Xe(ce))&&(Object(Ye.a)(ce)?wt:mt).test(Object(st.a)(ce))};var Dt=function getValue(ce,ze){return null==ce?void 0:ce[ze]};ze.a=function getNative(ce,ze){var Ve=Dt(ce,ze);return Ct(Ve)?Ve:void 0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(64),Ye=Ve(134),We=Ve(57),Qe=Ve(20),Xe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Xe.a("model-tree-walker-no-start-position",null);const ze=ce.direction||"forward";if("forward"!=ze&&"backward"!=ze)throw new Xe.a("model-tree-walker-unknown-direction",ce,{direction:ze});this.direction=ze,this.boundaries=ce.boundaries||null,ce.startPosition?this.position=ce.startPosition.clone():this.position=Qe.a._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(ce){let ze,Ve,qe,Ye;do{qe=this.position,Ye=this._visitedParent,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=qe,this._visitedParent=Ye)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const ce=this.position,ze=this.position.clone(),Ve=this._visitedParent;if(null===Ve.parent&&ze.offset===Ve.maxOffset)return{done:!0};if(Ve===this._boundaryEndParent&&ze.offset==this.boundaries.end.offset)return{done:!0};const Xe=Object(Qe.d)(ze,Ve),ot=Xe||Object(Qe.b)(ze,Ve,Xe);if(ot instanceof We.a)return this.shallow?ze.offset++:(ze.path.push(0),this._visitedParent=ot),this.position=ze,formatReturnValue("elementStart",ot,ce,ze,1);if(ot instanceof qe.a){let qe;if(this.singleCharacters)qe=1;else{let ce=ot.endOffset;this._boundaryEndParent==Ve&&this.boundaries.end.offsetce&&(ce=this.boundaries.start.offset),qe=ze.offset-ce}const We=ze.offset-st.startOffset,Qe=new Ye.a(st,We-qe,qe);return ze.offset-=qe,this.position=ze,formatReturnValue("text",Qe,ce,ze,qe)}return ze.path.pop(),this.position=ze,this._visitedParent=Ve.parent,formatReturnValue("elementStart",Ve,ce,ze,1)}}function formatReturnValue(ce,ze,Ve,qe,Ye){return{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:qe,length:Ye}}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,qe){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=qe}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(741),Ye=Ve(273),We=Ve(1163);qe||Ye(Object.prototype,"toString",We,{unsafe:!0})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(748);qe({target:"String",proto:!0,forced:Ve(749)("small")},{small:function small(){return Ye(this,"small","","")}})},function(ce,ze){var Ve=Array.isArray;ce.exports=Ve},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=qe,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Xe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Qe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},Ye=_applyDecoratedDescriptor(qe.prototype,"item",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"loadItem"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(403),Qe="toggler--LUfal72QUV";class Xe extends Ye.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Xe,onChange:ot}=this.props;return Ye.a.createElement(We.a,{checked:qe,className:Qe,disabled:ce,name:ze,onChange:ot,value:Ve},Xe)}}Xe.defaultProps={checked:!1,disabled:!1};ze.a=Xe},function(ce,ze,Ve){"use strict";var qe=Ve(544);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe={colSpan:"colSpan--b4FhkUFdKS","colSpan-1":"colSpan-1--QjnSf17bQX",colSpan1:"colSpan-1--QjnSf17bQX","colSpan-2":"colSpan-2--V8TA-HmaiL",colSpan2:"colSpan-2--V8TA-HmaiL","colSpan-3":"colSpan-3--1PTmRyYpJx",colSpan3:"colSpan-3--1PTmRyYpJx","colSpan-4":"colSpan-4--3an4amaXHo",colSpan4:"colSpan-4--3an4amaXHo","colSpan-5":"colSpan-5--PDYQuG-9MI",colSpan5:"colSpan-5--PDYQuG-9MI","colSpan-6":"colSpan-6--Rv5phpjWGz",colSpan6:"colSpan-6--Rv5phpjWGz","colSpan-7":"colSpan-7--Bulg91xlr7",colSpan7:"colSpan-7--Bulg91xlr7","colSpan-8":"colSpan-8--5U1X+zkOYr",colSpan8:"colSpan-8--5U1X+zkOYr","colSpan-9":"colSpan-9--9z0i8EJAUz",colSpan9:"colSpan-9--9z0i8EJAUz","colSpan-10":"colSpan-10--MY6g21iWYD",colSpan10:"colSpan-10--MY6g21iWYD","colSpan-11":"colSpan-11--9i9wveDBUm",colSpan11:"colSpan-11--9i9wveDBUm","colSpan-12":"colSpan-12--gBqZ8Ux+5o",colSpan12:"colSpan-12--gBqZ8Ux+5o","space-before-1":"space-before-1--2MiMMSEbJT",spaceBefore1:"space-before-1--2MiMMSEbJT","space-before-2":"space-before-2--O6k5Tr4FRn",spaceBefore2:"space-before-2--O6k5Tr4FRn","space-before-3":"space-before-3--oYdQNFcPP5",spaceBefore3:"space-before-3--oYdQNFcPP5","space-before-4":"space-before-4--DH4uldKbBJ",spaceBefore4:"space-before-4--DH4uldKbBJ","space-before-5":"space-before-5--yUg5tJyn1v",spaceBefore5:"space-before-5--yUg5tJyn1v","space-before-6":"space-before-6--jluPdxPrMu",spaceBefore6:"space-before-6--jluPdxPrMu","space-before-7":"space-before-7--98GSfGN+vr",spaceBefore7:"space-before-7--98GSfGN+vr","space-before-8":"space-before-8--zmEnby3AKl",spaceBefore8:"space-before-8--zmEnby3AKl","space-before-9":"space-before-9--mqJfvWH6s7",spaceBefore9:"space-before-9--mqJfvWH6s7","space-before-10":"space-before-10--0+DNj5NBp5",spaceBefore10:"space-before-10--0+DNj5NBp5","space-before-11":"space-before-11--vhhqGQirZq",spaceBefore11:"space-before-11--vhhqGQirZq","space-before-12":"space-before-12--jkC+Q-nWI4",spaceBefore12:"space-before-12--jkC+Q-nWI4","space-after-1":"space-after-1--4uKvcUoEt7",spaceAfter1:"space-after-1--4uKvcUoEt7","space-after-2":"space-after-2--ycuSmTHB2e",spaceAfter2:"space-after-2--ycuSmTHB2e","space-after-3":"space-after-3--vCTchL8yx1",spaceAfter3:"space-after-3--vCTchL8yx1","space-after-4":"space-after-4--g+LmJaswtl",spaceAfter4:"space-after-4--g+LmJaswtl","space-after-5":"space-after-5--Bul94E+g-e",spaceAfter5:"space-after-5--Bul94E+g-e","space-after-6":"space-after-6--ZAUFaYD9ds",spaceAfter6:"space-after-6--ZAUFaYD9ds","space-after-7":"space-after-7--hsrsx80Ekk",spaceAfter7:"space-after-7--hsrsx80Ekk","space-after-8":"space-after-8--sA4+8OYXsd",spaceAfter8:"space-after-8--sA4+8OYXsd","space-after-9":"space-after-9--PYnYabCTju",spaceAfter9:"space-after-9--PYnYabCTju","space-after-10":"space-after-10--FnaWHrGmeA",spaceAfter10:"space-after-10--FnaWHrGmeA","space-after-11":"space-after-11--0yoj6Kr6OO",spaceAfter11:"space-after-11--0yoj6Kr6OO","space-after-12":"space-after-12--AkIyf5Rxr1",spaceAfter12:"space-after-12--AkIyf5Rxr1"};class ot extends Ye.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:qe,spaceBefore:We}=this.props,ot=Qe()(Ve,Xe.colSpan,Xe["colSpan-"+ce],Xe["space-before-"+We],Xe["space-after-"+qe]);return Ye.a.createElement("div",{className:ot},ze)}}var st="item--I4aHBBhFja";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze=51||!Ye((function(){var ce=[];return ce[wt]=!1,ce.concat()[0]!==ce})),isConcatSpreadable=function(ce){if(!Qe(ce))return!1;var ze=ce[wt];return void 0!==ze?!!ze:We(ce)};qe({target:"Array",proto:!0,arity:1,forced:!Ct||!yt("concat")},{concat:function concat(ce){var ze,Ve,qe,Ye,We,Qe=Xe(this),yt=gt(Qe,0),bt=0;for(ze=-1,qe=arguments.length;ze0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),qe=ce.getAncestors(ze);let Ye=0;for(;Ve[Ye]==qe[Ye]&&Ve[Ye];)Ye++;return 0===Ye?null:Ve[Ye-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),qe=Object(Qe.a)(ze,Ve);switch(qe){case"prefix":return!0;case"extension":return!1;default:return ze[qe]1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve"string"==typeof ze?new qe.a(ce,ze):ze instanceof Ye.a?new qe.a(ce,ze.data):ze)))}Object(We.a)(ot,Xe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(718),Ye=Ve(71),We=Ve(395);var Qe=function nativeKeysIn(ce){var ze=[];if(null!=ce)for(var Ve in Object(ce))ze.push(Ve);return ze},Xe=Object.prototype.hasOwnProperty;var ot=function baseKeysIn(ce){if(!Object(Ye.a)(ce))return Qe(ce);var ze=Object(We.a)(ce),Ve=[];for(var qe in ce)("constructor"!=qe||!ze&&Xe.call(ce,qe))&&Ve.push(qe);return Ve},st=Ve(174);ze.a=function keysIn(ce){return Object(st.a)(ce)?Object(qe.a)(ce,!0):ot(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return generatePositions}));var qe=Ve(29),Ye=Ve(406),We=Ve(334),Qe=Ve(152),Xe=Ve(77),ot=Ve(1093);const st=Object(Qe.a)("px"),mt=Xe.a.document.body;class gt extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",ze.to("position",(ce=>`ck-balloon-panel_${ce}`)),ze.if("isVisible","ck-balloon-panel_visible"),ze.if("withArrow","ck-balloon-panel_with-arrow"),ze.to("class")],style:{top:ze.to("top",st),left:ze.to("left",st)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(ce){this.show();const ze=gt.defaultPositions,Ve=Object.assign({},{element:this.element,positions:[ze.southArrowNorth,ze.southArrowNorthMiddleWest,ze.southArrowNorthMiddleEast,ze.southArrowNorthWest,ze.southArrowNorthEast,ze.northArrowSouth,ze.northArrowSouthMiddleWest,ze.northArrowSouthMiddleEast,ze.northArrowSouthWest,ze.northArrowSouthEast,ze.viewportStickyNorth],limiter:mt,fitInViewport:!0},ce),qe=gt._getOptimalPosition(Ve),Ye=parseInt(qe.left),We=parseInt(qe.top),{name:Qe,config:Xe={}}=qe,{withArrow:ot=!0}=Xe;Object.assign(this,{top:We,left:Ye,position:Qe,withArrow:ot})}pin(ce){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(ce):this._stopPinning()},this._startPinning(ce),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(ce){this.attachTo(ce);const ze=getDomElement(ce.target),Ve=ce.limiter?getDomElement(ce.limiter):mt;this.listenTo(Xe.a.document,"scroll",((qe,Ye)=>{const We=Ye.target,Qe=ze&&We.contains(ze),Xe=Ve&&We.contains(Ve);!Qe&&!Xe&&ze&&Ve||this.attachTo(ce)}),{useCapture:!0}),this.listenTo(Xe.a.window,"resize",(()=>{this.attachTo(ce)}))}_stopPinning(){this.stopListening(Xe.a.document,"scroll"),this.stopListening(Xe.a.window,"resize")}}function getDomElement(ce){return Object(ot.a)(ce)?ce:Object(We.a)(ce)?ce.commonAncestorContainer:"function"==typeof ce?getDomElement(ce()):null}function generatePositions(){let{horizontalOffset:ce=gt.arrowHorizontalOffset,verticalOffset:ze=gt.arrowVerticalOffset,stickyVerticalOffset:Ve=gt.stickyVerticalOffset,config:qe}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{northWestArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-ce,name:"arrow_sw",...qe&&{config:qe}}),northWestArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northWestArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northWestArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northWestArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),northArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-ce,name:"arrow_sw",...qe&&{config:qe}}),northArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left+ce.width/2-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),northEastArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-ce,name:"arrow_sw",...qe&&{config:qe}}),northEastArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northEastArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.right-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northEastArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northEastArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),southWestArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-ce,name:"arrow_nw",...qe&&{config:qe}}),southWestArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southWestArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southWestArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southWestArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),southArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-ce,name:"arrow_nw",...qe&&{config:qe}}),southArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left+ce.width/2-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),southEastArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-ce,name:"arrow_nw",...qe&&{config:qe}}),southEastArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southEastArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.right-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southEastArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southEastArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),viewportStickyNorth:(ce,ze,Ye)=>ce.getIntersection(Ye)?{top:Ye.top+Ve,left:ce.left+ce.width/2-ze.width/2,name:"arrowless",config:{withArrow:!1,...qe}}:null};function getNorthTop(ce,Ve){return ce.top-Ve.height-ze}function getSouthTop(ce){return ce.bottom+ze}}gt.arrowHorizontalOffset=25,gt.arrowVerticalOffset=10,gt.stickyVerticalOffset=20,gt._getOptimalPosition=Ye.a,gt.defaultPositions=generatePositions()},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(8);class Ye{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.data.length)throw new qe.a("view-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.data.length)throw new qe.a("view-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(ce){return"$textProxy"===ce||"view:$textProxy"===ce||"textProxy"===ce||"view:textProxy"===ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this.textNode:this.parent;for(;null!==Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return bt})),Ve.d(ze,"f",(function(){return insertText})),Ve.d(ze,"e",(function(){return insertAttributesAndChildren})),Ve.d(ze,"g",(function(){return remove})),Ve.d(ze,"c",(function(){return convertRangeSelection})),Ve.d(ze,"b",(function(){return convertCollapsedSelection})),Ve.d(ze,"a",(function(){return clearAttributes}));var qe=Ve(16),Ye=Ve(234),We=Ve(57),Qe=Ve(20),Xe=Ve(258),ot=Ve(119),st=Ve(674),mt=Ve(207),gt=Ve(8),yt=Ve(91);class bt extends st.a{elementToElement(ce){return this.add(downcastElementToElement(ce))}elementToStructure(ce){return this.add(downcastElementToStructure(ce))}attributeToElement(ce){return this.add(downcastAttributeToElement(ce))}attributeToAttribute(ce){return this.add(downcastAttributeToAttribute(ce))}markerToElement(ce){return this.add(downcastMarkerToElement(ce))}markerToHighlight(ce){return this.add(downcastMarkerToHighlight(ce))}markerToData(ce){return this.add(downcastMarkerToData(ce))}}function insertText(){return(ce,ze,Ve)=>{if(!Ve.consumable.consume(ze.item,ce.name))return;const qe=Ve.writer,Ye=Ve.mapper.toViewPosition(ze.range.start),We=qe.createText(ze.item.data);qe.insert(Ye,We)}}function insertAttributesAndChildren(){return(ce,ze,Ve)=>{Ve.convertAttributes(ze.item),ze.reconversion||!ze.item.is("element")||ze.item.isEmpty||Ve.convertChildren(ze.item)}}function remove(){return(ce,ze,Ve)=>{const qe=Ve.mapper.toViewPosition(ze.position),Ye=ze.position.getShiftedBy(ze.length),We=Ve.mapper.toViewPosition(Ye,{isPhantom:!0}),Qe=Ve.writer.createRange(qe,We),Xe=Ve.writer.remove(Qe.getTrimmed());for(const ce of Ve.writer.createRangeIn(Xe).getItems())Ve.mapper.unbindViewElement(ce,{defer:!0})}}function createViewElementFromHighlightDescriptor(ce,ze){const Ve=ce.createAttributeElement("span",ze.attributes);return ze.classes&&Ve._addClass(ze.classes),"number"==typeof ze.priority&&(Ve._priority=ze.priority),Ve._id=ze.id,Ve}function convertRangeSelection(){return(ce,ze,Ve)=>{const qe=ze.selection;if(qe.isCollapsed)return;if(!Ve.consumable.consume(qe,"selection"))return;const Ye=[];for(const ce of qe.getRanges()){const ze=Ve.mapper.toViewRange(ce);Ye.push(ze)}Ve.writer.setSelection(Ye,{backward:qe.isBackward})}}function convertCollapsedSelection(){return(ce,ze,Ve)=>{const qe=ze.selection;if(!qe.isCollapsed)return;if(!Ve.consumable.consume(qe,"selection"))return;const Ye=Ve.writer,We=qe.getFirstPosition(),Qe=Ve.mapper.toViewPosition(We),Xe=Ye.breakAttributes(Qe);Ye.setSelection(Xe)}}function clearAttributes(){return(ce,ze,Ve)=>{const qe=Ve.writer,Ye=qe.document.selection;for(const ce of Ye.getRanges())ce.isCollapsed&&ce.end.parent.isAttached()&&Ve.writer.mergeAttributes(ce.start);qe.setSelection(null)}}function wrap(ce){return(ze,Ve,qe)=>{if(!qe.consumable.test(Ve.item,ze.name))return;const We=ce(Ve.attributeOldValue,qe,Ve),Qe=ce(Ve.attributeNewValue,qe,Ve);if(!We&&!Qe)return;qe.consumable.consume(Ve.item,ze.name);const Xe=qe.writer,st=Xe.document.selection;if(Ve.item instanceof Ye.a||Ve.item instanceof ot.a)Xe.wrap(st.getFirstRange(),Qe);else{let ce=qe.mapper.toViewRange(Ve.range);null!==Ve.attributeOldValue&&We&&(ce=Xe.unwrap(ce,We)),null!==Ve.attributeNewValue&&Qe&&Xe.wrap(ce,Qe)}}}function insertElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultConsumer;return(Ve,qe,Ye)=>{if(!ze(qe.item,Ye.consumable,{preflight:!0}))return;const We=ce(qe.item,Ye,qe);if(!We)return;ze(qe.item,Ye.consumable);const Qe=Ye.mapper.toViewPosition(qe.range.start);Ye.mapper.bindElements(qe.item,We),Ye.writer.insert(Qe,We),Ye.convertAttributes(qe.item),reinsertOrConvertNodes(We,qe.item.getChildren(),Ye,{reconversion:qe.reconversion})}}function handleMarkerBoundary(ce,ze,Ve,qe,Ye){const We=ze?ce.start:ce.end,Qe=We.nodeAfter&&We.nodeAfter.is("element")?We.nodeAfter:null,Xe=We.nodeBefore&&We.nodeBefore.is("element")?We.nodeBefore:null;if(Qe||Xe){let ce,We;ze&&Qe||!ze&&!Xe?(ce=Qe,We=!0):(ce=Xe,We=!1);const ot=Ve.mapper.toViewElement(ce);if(ot)return void insertMarkerAsAttribute(ot,ze,We,Ve,qe,Ye)}insertMarkerAsElement(Ve.mapper.toViewPosition(We),ze,Ve,qe,Ye)}function insertMarkerAsAttribute(ce,ze,Ve,qe,Ye,We){const Qe=`data-${We.group}-${ze?"start":"end"}-${Ve?"before":"after"}`,Xe=ce.hasAttribute(Qe)?ce.getAttribute(Qe).split(","):[];Xe.unshift(We.name),qe.writer.setAttribute(Qe,Xe.join(","),ce),qe.mapper.bindElementToMarker(ce,Ye.markerName)}function insertMarkerAsElement(ce,ze,Ve,qe,Ye){const We=`${Ye.group}-${ze?"start":"end"}`,Qe=Ye.name?{name:Ye.name}:null,Xe=Ve.writer.createUIElement(We,Qe);Ve.writer.insert(ce,Xe),Ve.mapper.bindElementToMarker(Xe,qe.markerName)}function removeMarkerData(ce){return(ze,Ve,qe)=>{const Ye=ce(Ve.markerName,qe);if(!Ye)return;const We=qe.mapper.markerNameToElements(Ve.markerName);if(We){for(const ce of We)qe.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("containerElement")?(removeMarkerFromAttribute(`data-${Ye.group}-start-before`,ce),removeMarkerFromAttribute(`data-${Ye.group}-start-after`,ce),removeMarkerFromAttribute(`data-${Ye.group}-end-before`,ce),removeMarkerFromAttribute(`data-${Ye.group}-end-after`,ce)):qe.writer.clear(qe.writer.createRangeOn(ce),ce);qe.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}function removeMarkerFromAttribute(ce,ze){if(ze.hasAttribute(ce)){const Ve=new Set(ze.getAttribute(ce).split(","));Ve.delete(Ye.name),0==Ve.size?qe.writer.removeAttribute(ce,ze):qe.writer.setAttribute(ce,Array.from(Ve).join(","),ze)}}}}function highlightElement(ce){return(ze,Ve,Ye)=>{if(!Ve.item)return;if(!(Ve.item instanceof We.a))return;const Qe=prepareDescriptor(ce,Ve,Ye);if(!Qe)return;if(!Ye.consumable.test(Ve.item,ze.name))return;const Xe=Ye.mapper.toViewElement(Ve.item);if(Xe&&Xe.getCustomProperty("addHighlight")){Ye.consumable.consume(Ve.item,ze.name);for(const ce of qe.a._createIn(Ve.item))Ye.consumable.consume(ce.item,ze.name);Xe.getCustomProperty("addHighlight")(Xe,Qe,Ye.writer),Ye.mapper.bindElementToMarker(Xe,Ve.markerName)}}}function removeHighlight(ce){return(ze,Ve,qe)=>{if(Ve.markerRange.isCollapsed)return;const Ye=prepareDescriptor(ce,Ve,qe);if(!Ye)return;const We=createViewElementFromHighlightDescriptor(qe.writer,Ye),Qe=qe.mapper.markerNameToElements(Ve.markerName);if(Qe){for(const ce of Qe)qe.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("attributeElement")?qe.writer.unwrap(qe.writer.createRangeOn(ce),We):ce.getCustomProperty("removeHighlight")(ce,Ye.id,qe.writer);qe.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}}}function downcastElementToElement(ce){return(ce=Object(mt.a)(ce)).model=normalizeModelElementConfig(ce.model),ce.view=normalizeToElementConfig(ce.view,"container"),ce.model.attributes.length&&(ce.model.children=!0),ze=>{ze.on("insert:"+ce.model.name,insertElement(ce.view,createConsumer(ce.model)),{priority:ce.converterPriority||"normal"}),(ce.model.children||ce.model.attributes.length)&&ze.on("reduceChanges",createChangeReducer(ce.model),{priority:"low"})}}function downcastElementToStructure(ce){return(ce=Object(mt.a)(ce)).model=normalizeModelElementConfig(ce.model),ce.view=normalizeToElementConfig(ce.view,"container"),ce.model.children=!0,ze=>{if(ze._conversionApi.schema.checkChild(ce.model.name,"$text"))throw new gt.a("conversion-element-to-structure-disallowed-text",ze,{elementName:ce.model.name});var Ve,qe;ze.on("insert:"+ce.model.name,(Ve=ce.view,qe=createConsumer(ce.model),(ce,ze,Ye)=>{if(!qe(ze.item,Ye.consumable,{preflight:!0}))return;const We=new Map;Ye.writer._registerSlotFactory(createSlotFactory(ze.item,We,Ye));const Qe=Ve(ze.item,Ye,ze);if(Ye.writer._clearSlotFactory(),!Qe)return;validateSlotsChildren(ze.item,We,Ye),qe(ze.item,Ye.consumable);const Xe=Ye.mapper.toViewPosition(ze.range.start);Ye.mapper.bindElements(ze.item,Qe),Ye.writer.insert(Xe,Qe),Ye.convertAttributes(ze.item),fillSlots(Qe,We,Ye,{reconversion:ze.reconversion})}),{priority:ce.converterPriority||"normal"}),ze.on("reduceChanges",createChangeReducer(ce.model),{priority:"low"})}}function downcastAttributeToElement(ce){let ze="attribute:"+((ce=Object(mt.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToElementConfig(ce.view[ze],"attribute");else ce.view=normalizeToElementConfig(ce.view,"attribute");const Ve=getFromAttributeCreator(ce);return qe=>{qe.on(ze,wrap(Ve),{priority:ce.converterPriority||"normal"})}}function downcastAttributeToAttribute(ce){let ze="attribute:"+((ce=Object(mt.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToAttributeConfig(ce.view[ze]);else ce.view=normalizeToAttributeConfig(ce.view);const Ve=getFromAttributeCreator(ce);return qe=>{var Ye;qe.on(ze,(Ye=Ve,(ce,ze,Ve)=>{if(!Ve.consumable.test(ze.item,ce.name))return;const qe=Ye(ze.attributeOldValue,Ve,ze),We=Ye(ze.attributeNewValue,Ve,ze);if(!qe&&!We)return;Ve.consumable.consume(ze.item,ce.name);const Qe=Ve.mapper.toViewElement(ze.item),Xe=Ve.writer;if(!Qe)throw new gt.a("conversion-attribute-to-attribute-on-text",Ve.dispatcher,ze);if(null!==ze.attributeOldValue&&qe)if("class"==qe.key){const ce=Object(yt.a)(qe.value);for(const ze of ce)Xe.removeClass(ze,Qe)}else if("style"==qe.key){const ce=Object.keys(qe.value);for(const ze of ce)Xe.removeStyle(ze,Qe)}else Xe.removeAttribute(qe.key,Qe);if(null!==ze.attributeNewValue&&We)if("class"==We.key){const ce=Object(yt.a)(We.value);for(const ze of ce)Xe.addClass(ze,Qe)}else if("style"==We.key){const ce=Object.keys(We.value);for(const ze of ce)Xe.setStyle(ze,We.value[ze],Qe)}else Xe.setAttribute(We.key,We.value,Qe)}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToElement(ce){return(ce=Object(mt.a)(ce)).view=normalizeToElementConfig(ce.view,"ui"),ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,qe)=>{ze.isOpening=!0;const Ye=Ve(ze,qe);ze.isOpening=!1;const We=Ve(ze,qe);if(!Ye||!We)return;const Qe=ze.markerRange;if(Qe.isCollapsed&&!qe.consumable.consume(Qe,ce.name))return;for(const ze of Qe)if(!qe.consumable.consume(ze.item,ce.name))return;const Xe=qe.mapper,ot=qe.writer;ot.insert(Xe.toViewPosition(Qe.start),Ye),qe.mapper.bindElementToMarker(Ye,ze.markerName),Qe.isCollapsed||(ot.insert(Xe.toViewPosition(Qe.end),We),qe.mapper.bindElementToMarker(We,ze.markerName)),ce.stop()}),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,(ce.view,(ce,ze,Ve)=>{const qe=Ve.mapper.markerNameToElements(ze.markerName);if(qe){for(const ce of qe)Ve.mapper.unbindElementFromMarkerName(ce,ze.markerName),Ve.writer.clear(Ve.writer.createRangeOn(ce),ce);Ve.writer.clearClonedElementsGroup(ze.markerName),ce.stop()}}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToData(ce){const ze=(ce=Object(mt.a)(ce)).model;return ce.view||(ce.view=Ve=>({group:ze,name:Ve.substr(ce.model.length+1)})),Ve=>{var qe;Ve.on("addMarker:"+ze,(qe=ce.view,(ce,ze,Ve)=>{const Ye=qe(ze.markerName,Ve);if(!Ye)return;const We=ze.markerRange;Ve.consumable.consume(We,ce.name)&&(handleMarkerBoundary(We,!1,Ve,ze,Ye),handleMarkerBoundary(We,!0,Ve,ze,Ye),ce.stop())}),{priority:ce.converterPriority||"normal"}),Ve.on("removeMarker:"+ze,removeMarkerData(ce.view),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToHighlight(ce){return ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,qe)=>{if(!ze.item)return;if(!(ze.item instanceof Ye.a||ze.item instanceof ot.a||ze.item.is("$textProxy")))return;const We=prepareDescriptor(Ve,ze,qe);if(!We)return;if(!qe.consumable.consume(ze.item,ce.name))return;const Qe=qe.writer,Xe=createViewElementFromHighlightDescriptor(Qe,We),st=Qe.document.selection;if(ze.item instanceof Ye.a||ze.item instanceof ot.a)Qe.wrap(st.getFirstRange(),Xe,st);else{const ce=qe.mapper.toViewRange(ze.range),Ve=Qe.wrap(ce,Xe);for(const ce of Ve.getItems())if(ce.is("attributeElement")&&ce.isSimilar(Xe)){qe.mapper.bindElementToMarker(ce,ze.markerName);break}}}),{priority:ce.converterPriority||"normal"}),ze.on("addMarker:"+ce.model,highlightElement(ce.view),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,removeHighlight(ce.view),{priority:ce.converterPriority||"normal"})}}function normalizeModelElementConfig(ce){return"string"==typeof ce&&(ce={name:ce}),ce.attributes?Array.isArray(ce.attributes)||(ce.attributes=[ce.attributes]):ce.attributes=[],ce.children=!!ce.children,ce}function normalizeToElementConfig(ce,ze){return"function"==typeof ce?ce:(Ve,qe)=>createViewElementFromDefinition(ce,qe,ze)}function createViewElementFromDefinition(ce,ze,Ve){let qe;"string"==typeof ce&&(ce={name:ce});const Ye=ze.writer,We=Object.assign({},ce.attributes);if("container"==Ve)qe=Ye.createContainerElement(ce.name,We);else if("attribute"==Ve){const ze={priority:ce.priority||Xe.a.DEFAULT_PRIORITY};qe=Ye.createAttributeElement(ce.name,We,ze)}else qe=Ye.createUIElement(ce.name,We);if(ce.styles){const ze=Object.keys(ce.styles);for(const Ve of ze)Ye.setStyle(Ve,ce.styles[Ve],qe)}if(ce.classes){const ze=ce.classes;if("string"==typeof ze)Ye.addClass(ze,qe);else for(const ce of ze)Ye.addClass(ce,qe)}return qe}function getFromAttributeCreator(ce){return ce.model.values?(ze,Ve)=>{const qe=ce.view[ze];return qe?qe(ze,Ve):null}:ce.view}function normalizeToAttributeConfig(ce){return"string"==typeof ce?ze=>({key:ce,value:ze}):"object"==typeof ce?ce.value?()=>ce:ze=>({key:ce.key,value:ze}):ce}function prepareDescriptor(ce,ze,Ve){const qe="function"==typeof ce?ce(ze,Ve):ce;return qe?(qe.priority||(qe.priority=10),qe.id||(qe.id=ze.markerName),qe):null}function createChangeReducerCallback(ce){return(ze,Ve)=>{if(!ze.is("element",ce.name))return!1;if("attribute"==Ve.type){if(ce.attributes.includes(Ve.attributeKey))return!0}else if(ce.children)return!0;return!1}}function createChangeReducer(ce){const ze=createChangeReducerCallback(ce);return(ce,Ve)=>{const qe=[];Ve.reconvertedElements||(Ve.reconvertedElements=new Set);for(const ce of Ve.changes){const Ye=ce.position?ce.position.parent:ce.range.start.nodeAfter;if(Ye&&ze(Ye,ce)){if(!Ve.reconvertedElements.has(Ye)){Ve.reconvertedElements.add(Ye);const ce=Qe.a._createBefore(Ye);qe.push({type:"remove",name:Ye.name,position:ce,length:1},{type:"reinsert",name:Ye.name,position:ce,length:1})}}else qe.push(ce)}Ve.changes=qe}}function createConsumer(ce){return function(ze,Ve){let qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=["insert"];for(const Ve of ce.attributes)ze.hasAttribute(Ve)&&Ye.push(`attribute:${Ve}`);return!!Ye.every((ce=>Ve.test(ze,ce)))&&(qe.preflight||Ye.forEach((ce=>Ve.consume(ze,ce))),!0)}}function createSlotFactory(ce,ze,Ve){return function(qe){let Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";const We=qe.createContainerElement("$slot");let Qe=null;if("children"===Ye)Qe=Array.from(ce.getChildren());else{if("function"!=typeof Ye)throw new gt.a("conversion-slot-mode-unknown",Ve.dispatcher,{modeOrFilter:Ye});Qe=Array.from(ce.getChildren()).filter((ce=>Ye(ce)))}return ze.set(We,Qe),We}}function validateSlotsChildren(ce,ze,Ve){const qe=Array.from(ze.values()).flat(),Ye=new Set(qe);if(Ye.size!=qe.length)throw new gt.a("conversion-slot-filter-overlap",Ve.dispatcher,{element:ce});if(Ye.size!=ce.childCount)throw new gt.a("conversion-slot-filter-incomplete",Ve.dispatcher,{element:ce})}function fillSlots(ce,ze,Ve,qe){Ve.mapper.on("modelToViewPosition",toViewPositionMapping,{priority:"highest"});let Ye=null,We=null;for([Ye,We]of ze)reinsertOrConvertNodes(ce,We,Ve,qe),Ve.writer.move(Ve.writer.createRangeIn(Ye),Ve.writer.createPositionBefore(Ye)),Ve.writer.remove(Ye);function toViewPositionMapping(ce,ze){const Ve=ze.modelPosition.nodeAfter,qe=We.indexOf(Ve);qe<0||(ze.viewPosition=ze.mapper.findPositionIn(Ye,qe))}Ve.mapper.off("modelToViewPosition",toViewPositionMapping)}function reinsertOrConvertNodes(ce,ze,Ve,qe){for(const Ye of ze)reinsertNode(ce.root,Ye,Ve,qe)||Ve.convertItem(Ye)}function reinsertNode(ce,ze,Ve,qe){const{writer:Ye,mapper:We}=Ve;if(!qe.reconversion)return!1;const Xe=We.toViewElement(ze);return!(!Xe||Xe.root==ce)&&(!!Ve.canReuseView(Xe)&&(Ye.move(Ye.createRangeOn(Xe),We.toViewPosition(Qe.a._createBefore(ze))),!0))}function defaultConsumer(ce,ze){let{preflight:Ve}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ve?ze.test(ce,"insert"):ze.consume(ce,"insert")}},function(ce,ze,Ve){"use strict";ze.a={field:"field--ZHoL2cXm49",type:"type---7b3ekD4nb","type-delimiter":"type-delimiter--v4XsiRSuvf",typeDelimiter:"type-delimiter--v4XsiRSuvf","type-icon":"type-icon--ht5ZNoW42v",typeIcon:"type-icon--ht5ZNoW42v",error:"error--koFPGdIq5X",label:"label--myoAkk-P+2",dark:"dark--QcaI3Ro6Jj","description-label":"description-label--Ahr89W7FMP",descriptionLabel:"description-label--Ahr89W7FMP","error-label":"error-label--L1ehxNwAsv",errorLabel:"error-label--L1ehxNwAsv"}},function(ce,ze,Ve){"use strict";ze.a={field:"field--yFWiElI8Wm",type:"type--rDGSTPoxom","type-delimiter":"type-delimiter--JaCllSgbC3",typeDelimiter:"type-delimiter--JaCllSgbC3","type-icon":"type-icon--8MrZvlGTml",typeIcon:"type-icon--8MrZvlGTml",error:"error--PF689OvIiW",label:"label--0BeOjJItfI",dark:"dark--tuSeiXgcfw","description-label":"description-label--eKxf-rDYmi",descriptionLabel:"description-label--eKxf-rDYmi","error-label":"error-label--dxc88amr+e",errorLabel:"error-label--dxc88amr+e"}},function(ce,ze,Ve){"use strict";var qe=Ve(120),Ye=Ve(824),We=Ve(825),Qe=Ve(147),Xe=Ve(733),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=qe?We?function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var qe=mt(ce,ze);qe&&qe[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:qe[yt],enumerable:gt in Ve?Ve[gt]:qe[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),Ye)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze){ce.exports=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(860),We=Ve(830).indexOf,Qe=Ve(484),Xe=Ye([].indexOf),ot=!!Xe&&1/Xe([1],1,-0)<0;qe({target:"Array",proto:!0,forced:ot||!Qe("indexOf")},{indexOf:function indexOf(ce){var ze=arguments.length>1?arguments[1]:void 0;return ot?Xe(this,ce,ze)||0:We(this,ce,ze)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateUnion=ze.validateArray=ze.usePattern=ze.callValidateCode=ze.schemaProperties=ze.allSchemaProperties=ze.noPropertyInData=ze.propertyInData=ze.isOwnProperty=ze.hasPropFunc=ze.reportMissingProp=ze.checkMissingProp=ze.checkReportMissingProp=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(276),Qe=Ve(69);function hasPropFunc(ce){return ce.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:qe._`Object.prototype.hasOwnProperty`})}function isOwnProperty(ce,ze,Ve){return qe._`${hasPropFunc(ce)}.call(${ze}, ${Ve})`}function noPropertyInData(ce,ze,Ve,Ye){const We=qe._`${ze}${(0,qe.getProperty)(Ve)} === undefined`;return Ye?(0,qe.or)(We,(0,qe.not)(isOwnProperty(ce,ze,Ve))):We}function allSchemaProperties(ce){return ce?Object.keys(ce).filter((ce=>"__proto__"!==ce)):[]}ze.checkReportMissingProp=function checkReportMissingProp(ce,ze){const{gen:Ve,data:Ye,it:We}=ce;Ve.if(noPropertyInData(Ve,Ye,ze,We.opts.ownProperties),(()=>{ce.setParams({missingProperty:qe._`${ze}`},!0),ce.error()}))},ze.checkMissingProp=function checkMissingProp({gen:ce,data:ze,it:{opts:Ve}},Ye,We){return(0,qe.or)(...Ye.map((Ye=>(0,qe.and)(noPropertyInData(ce,ze,Ye,Ve.ownProperties),qe._`${We} = ${Ye}`))))},ze.reportMissingProp=function reportMissingProp(ce,ze){ce.setParams({missingProperty:ze},!0),ce.error()},ze.hasPropFunc=hasPropFunc,ze.isOwnProperty=isOwnProperty,ze.propertyInData=function propertyInData(ce,ze,Ve,Ye){const We=qe._`${ze}${(0,qe.getProperty)(Ve)} !== undefined`;return Ye?qe._`${We} && ${isOwnProperty(ce,ze,Ve)}`:We},ze.noPropertyInData=noPropertyInData,ze.allSchemaProperties=allSchemaProperties,ze.schemaProperties=function schemaProperties(ce,ze){return allSchemaProperties(ze).filter((Ve=>!(0,Ye.alwaysValidSchema)(ce,ze[Ve])))},ze.callValidateCode=function callValidateCode({schemaCode:ce,data:ze,it:{gen:Ve,topSchemaRef:Ye,schemaPath:Qe,errorPath:Xe},it:ot},st,mt,gt){const yt=gt?qe._`${ce}, ${ze}, ${Ye}${Qe}`:ze,bt=[[We.default.instancePath,(0,qe.strConcat)(We.default.instancePath,Xe)],[We.default.parentData,ot.parentData],[We.default.parentDataProperty,ot.parentDataProperty],[We.default.rootData,We.default.rootData]];ot.opts.dynamicRef&&bt.push([We.default.dynamicAnchors,We.default.dynamicAnchors]);const vt=qe._`${yt}, ${Ve.object(...bt)}`;return mt!==qe.nil?qe._`${st}.call(${mt}, ${vt})`:qe._`${st}(${vt})`};const Xe=qe._`new RegExp`;ze.usePattern=function usePattern({gen:ce,it:{opts:ze}},Ve){const Ye=ze.unicodeRegExp?"u":"",{regExp:We}=ze.code,ot=We(Ve,Ye);return ce.scopeValue("pattern",{key:ot.toString(),ref:ot,code:qe._`${"new RegExp"===We.code?Xe:(0,Qe.useFunc)(ce,We)}(${Ve}, ${Ye})`})},ze.validateArray=function validateArray(ce){const{gen:ze,data:Ve,keyword:We,it:Qe}=ce,Xe=ze.name("valid");if(Qe.allErrors){const ce=ze.let("valid",!0);return validateItems((()=>ze.assign(ce,!1))),ce}return ze.var(Xe,!0),validateItems((()=>ze.break())),Xe;function validateItems(Qe){const ot=ze.const("len",qe._`${Ve}.length`);ze.forRange("i",0,ot,(Ve=>{ce.subschema({keyword:We,dataProp:Ve,dataPropType:Ye.Type.Num},Xe),ze.if((0,qe.not)(Xe),Qe)}))}},ze.validateUnion=function validateUnion(ce){const{gen:ze,schema:Ve,keyword:We,it:Qe}=ce;if(!Array.isArray(Ve))throw new Error("ajv implementation error");if(Ve.some((ce=>(0,Ye.alwaysValidSchema)(Qe,ce)))&&!Qe.opts.unevaluated)return;const Xe=ze.let("valid",!1),ot=ze.name("_valid");ze.block((()=>Ve.forEach(((Ve,Ye)=>{const Qe=ce.subschema({keyword:We,schemaProp:Ye,compositeRule:!0},ot);ze.assign(Xe,qe._`${Xe} || ${ot}`);ce.mergeValidEvaluated(Qe,ot)||ze.if((0,qe.not)(Xe))})))),ce.result(Xe,(()=>ce.reset()),(()=>ce.error(!0)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe,Ye=Ve(1),We=Ve(9),Qe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Qe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"options",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"options"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"metadataOptions",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"metadataOptions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(12),ot=Ve(85);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Qe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=qe,this.requestParameters=Qe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Xe.a)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Qe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},Ye=_applyDecoratedDescriptor(qe.prototype,"items",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(49);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",Ye,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Qe,this),_initializerDefineProperty(this,"data",Xe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},Ye=_applyDecoratedDescriptor(qe.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"deleteList"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"patchList"),qe.prototype),qe);ze.a=mt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(6),ot=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Qe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=qe,this.requestParameters=Qe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Xe.arrayMove)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Qe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},Ye=_applyDecoratedDescriptor(qe.prototype,"items",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",Ye,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Qe,this),_initializerDefineProperty(this,"data",Xe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},Ye=_applyDecoratedDescriptor(qe.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"deleteList"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"patchList"),qe.prototype),qe);ze.a=mt},function(ce,ze,Ve){"use strict";var qe=Ve(592);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return createDropdown})),Ve.d(ze,"b",(function(){return addToolbarToDropdown})),Ve.d(ze,"a",(function(){return addListToDropdown}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",ze.to("position",(ce=>`ck-dropdown__panel_${ce}`)),ze.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:ze.to((ce=>ce.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const ce=this.children.last;"function"==typeof ce.focusLast?ce.focusLast():ce.focus()}}}var We=Ve(153),Qe=Ve(406);class Xe extends qe.a{constructor(ce,ze,Ve){super(ce);const qe=this.bindTemplate;this.buttonView=ze,this.panelView=Ve,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new We.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",qe.to("class"),qe.if("isEnabled","ck-disabled",(ce=>!ce))],id:qe.to("id"),"aria-describedby":qe.to("ariaDescribedById")},children:[ze,Ve]}),ze.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=Xe._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const closeDropdown=(ce,ze)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,ze())};this.keystrokes.set("arrowdown",((ce,ze)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,ze())})),this.keystrokes.set("arrowright",((ce,ze)=>{this.isOpen&&ze()})),this.keystrokes.set("arrowleft",closeDropdown),this.keystrokes.set("esc",closeDropdown)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:ce,north:ze,southEast:Ve,southWest:qe,northEast:Ye,northWest:We,southMiddleEast:Qe,southMiddleWest:ot,northMiddleEast:st,northMiddleWest:mt}=Xe.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[Ve,qe,Qe,ot,ce,Ye,We,st,mt,ze]:[qe,Ve,ot,Qe,ce,We,Ye,mt,st,ze]}}Xe.defaultPanelPositions={south:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/2,name:"s"}),southEast:ce=>({top:ce.bottom,left:ce.left,name:"se"}),southWest:(ce,ze)=>({top:ce.bottom,left:ce.left-ze.width+ce.width,name:"sw"}),southMiddleEast:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/4,name:"sme"}),southMiddleWest:(ce,ze)=>({top:ce.bottom,left:ce.left-3*(ze.width-ce.width)/4,name:"smw"}),north:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/2,name:"n"}),northEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left,name:"ne"}),northWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-ze.width+ce.width,name:"nw"}),northMiddleEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/4,name:"nme"}),northMiddleWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-3*(ze.width-ce.width)/4,name:"nmw"})},Xe._getOptimalPosition=Qe.a;var ot=Ve(445),st=Ve(221),mt=Ve(295),gt=Ve(287);class yt extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bt=Ve(52),vt=Ve(448),wt=Ve(363);function createDropdown(ce){const ze=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.a)(ce),Ve=new Ye(ce),qe=new Xe(ce,ze,Ve);return ze.bind("isEnabled").to(qe),ze instanceof ot.a?ze.bind("isOn").to(qe,"isOpen"):ze.arrowView.bind("isOn").to(qe,"isOpen"),addDefaultBehavior(qe),qe}function addToolbarToDropdown(ce,ze){const Ve=ce.locale,qe=Ve.t,Ye=ce.toolbarView=new st.a(Ve);Ye.set("ariaLabel",qe("Dropdown toolbar")),ce.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),ze.map((ce=>Ye.items.add(ce))),ce.panelView.children.add(Ye),Ye.items.delegate("execute").to(ce)}function addListToDropdown(ce,ze){const Ve=ce.locale,qe=ce.listView=new mt.a(Ve);qe.items.bindTo(ze).using((ce=>{let{type:ze,model:qe}=ce;if("separator"===ze)return new yt(Ve);if("button"===ze||"switchbutton"===ze){const ce=new gt.a(Ve);let Ye;return Ye="button"===ze?new bt.a(Ve):new vt.a(Ve),Ye.bind(...Object.keys(qe)).to(qe),Ye.delegate("execute").to(ce),ce.children.add(Ye),ce}})),ce.panelView.children.add(qe),qe.items.delegate("execute").to(ce)}function addDefaultBehavior(ce){closeDropdownOnBlur(ce),closeDropdownOnExecute(ce),focusDropdownContentsOnArrows(ce)}function closeDropdownOnBlur(ce){ce.on("render",(()=>{Object(wt.a)({emitter:ce,activator:()=>ce.isOpen,callback:()=>{ce.isOpen=!1},contextElements:[ce.element]})}))}function closeDropdownOnExecute(ce){ce.on("execute",(ze=>{ze.source instanceof vt.a||(ce.isOpen=!1)}))}function focusDropdownContentsOnArrows(ce){ce.keystrokes.set("arrowdown",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focus(),Ve())})),ce.keystrokes.set("arrowup",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focusLast(),Ve())}))}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We="cropped-text--3G10vjiJhq",Qe="whole--EkCERIo1YX",Xe="front--63ne3dyitK",ot="back--ENF0U6uJ3v";class st extends Ye.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),qe=ce.substr(ze);return Ye.a.createElement("div",{"aria-label":ce,className:We,title:ce},Ye.a.createElement("div",{"aria-hidden":!0,className:Xe},Ve),Ye.a.createElement("div",{"aria-hidden":!0,className:ot},Ye.a.createElement("span",null,qe)),Ye.a.createElement("div",{className:Qe},ce))}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(515);ze.a=qe.default},function(ce,ze,Ve){"use strict";const qe={get(ce){return"number"!=typeof ce?this[ce]||this.normal:ce},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return diff}));var qe=Ve(671);function diff(ce,ze,Ve){Ve=Ve||function(ce,ze){return ce===ze};const qe=ce.length,Ye=ze.length;if(qe>200||Ye>200||qe+Ye>300)return diff.fastDiff(ce,ze,Ve,!0);let We,Qe;if(Yest?-1:1;mt[qe+yt]&&(mt[qe]=mt[qe+yt].slice(0)),mt[qe]||(mt[qe]=[]),mt[qe].push(Ye>st?We:Qe);let bt=Math.max(Ye,st),vt=bt-qe;for(;vtst;yt--)gt[yt]=snake(yt);gt[st]=snake(st),bt++}while(gt[st]!==ot);return mt[st].slice(1)}diff.fastDiff=qe.a},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(27),yt=Ve(238),bt=Ve(15),vt=Ve(78),wt=Ve(49);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"config",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"bundles"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitialized"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitializedTranslationsLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=Ct},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(242),Qe=Ve(11);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(Ye.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Xe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:qe,skin:Qe}=this.props;return Ye.a.createElement(We.a,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:qe,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default",values:[]},Xe.Action=We.a.Action,Xe.Option=We.a.Option,Xe.Divider=We.a.Divider;ze.a=Xe},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe=Ve(1);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ot=["small","medium","large"];let st=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"view",Ye,this),_initializerDefineProperty(this,"props",We,this),_initializerDefineProperty(this,"size",Qe,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||ot,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=ot,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"props",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"size",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setConfig",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clearConfig",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clearConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"enabled",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"enabled"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setSize",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setSize"),qe.prototype),qe);ze.a=new st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(233),Ye=Ve(57),We=Ve(64),Qe=Ve(134),Xe=Ve(99);class ot{constructor(ce){this.markers=new Map,this._children=new qe.a,ce&&this._insertChild(0,ce)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"model:documentFragment"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}getPath(){return[]}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}offsetToIndex(ce){return this._children.offsetToIndex(ce)}toJSON(){const ce=[];for(const ze of this._children)ce.push(ze.toJSON());return ce}static fromJSON(ce){const ze=[];for(const Ve of ce)Ve.name?ze.push(Ye.a.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve));return new ot(ze)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Xe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Qe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(545);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(187),Ve(86),Ve(249),Ve(159);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(84),ot=Ve(23);function _extends(){return _extends=Object.assign||function(ce){for(var ze=1;ze=0||(Ye[Ve]=ce[Ve]);return Ye}var st=function TextRenderer(ce){var ze,Ve=ce.classes,qe=ce.semantic,We=ce.size,Qe=ce.color,ot=ce.underlined,st=ce.children,mt=_objectWithoutPropertiesLoose(ce,["classes","semantic","size","color","underlined","children"]),gt=qe||"span",yt=Object(Xe.a)(Ve.text,Ve[We+"Size"],Ve[Qe+"Color"],((ze={})[Ve[gt]]=!!qe,ze[Ve.isUnderlined]=ot,ze));return Ye.a.createElement(gt,_extends({},mt,{className:yt}),st)};st.propTypes={classes:Qe.a.objectOf(Qe.a.string.isRequired).isRequired,semantic:Qe.a.oneOf(["em","strong"]),size:Qe.a.oneOf(["inherit","small","base","text"]),color:Qe.a.oneOf(["base","light"]),underlined:Qe.a.bool,children:Qe.a.node.isRequired},st.defaultProps={size:"inherit",color:"base",underlined:!1};var mt=Object(ot.a)((function styles(ce){var ze=ce.fontFamily,Ve=ce.fontSize,qe=ce.color;return{text:{fontFamily:ze.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:Ve.small},baseSize:{fontSize:Ve.base},textSize:{fontSize:Ve.text},baseColor:{color:qe.base},lightColor:{color:qe.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",qe.lightest]]}}}))(st)},function(ce,ze,Ve){"use strict";var qe=this&&this.__createBinding||(Object.create?function(ce,ze,Ve,qe){void 0===qe&&(qe=Ve);var Ye=Object.getOwnPropertyDescriptor(ze,Ve);Ye&&!("get"in Ye?!ze.__esModule:Ye.writable||Ye.configurable)||(Ye={enumerable:!0,get:function(){return ze[Ve]}}),Object.defineProperty(ce,qe,Ye)}:function(ce,ze,Ve,qe){void 0===qe&&(qe=Ve),ce[qe]=ze[Ve]}),Ye=this&&this.__setModuleDefault||(Object.create?function(ce,ze){Object.defineProperty(ce,"default",{enumerable:!0,value:ze})}:function(ce,ze){ce.default=ze}),We=this&&this.__importStar||function(ce){if(ce&&ce.__esModule)return ce;var ze={};if(null!=ce)for(var Ve in ce)"default"!==Ve&&Object.prototype.hasOwnProperty.call(ce,Ve)&&qe(ze,ce,Ve);return Ye(ze,ce),ze},Qe=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.decodeXML=ze.decodeHTMLStrict=ze.decodeHTMLAttribute=ze.decodeHTML=ze.determineBranch=ze.EntityDecoder=ze.DecodingMode=ze.BinTrieFlags=ze.fromCodePoint=ze.replaceCodePoint=ze.decodeCodePoint=ze.xmlDecodeTree=ze.htmlDecodeTree=void 0;var Xe=Qe(Ve(1809));ze.htmlDecodeTree=Xe.default;var ot=Qe(Ve(1810));ze.xmlDecodeTree=ot.default;var st=We(Ve(1039));ze.decodeCodePoint=st.default;var mt,gt=Ve(1039);Object.defineProperty(ze,"replaceCodePoint",{enumerable:!0,get:function(){return gt.replaceCodePoint}}),Object.defineProperty(ze,"fromCodePoint",{enumerable:!0,get:function(){return gt.fromCodePoint}}),function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"}(mt||(mt={}));var yt,bt,vt;function isNumber(ce){return ce>=mt.ZERO&&ce<=mt.NINE}function isAsciiAlphaNumeric(ce){return ce>=mt.UPPER_A&&ce<=mt.UPPER_Z||ce>=mt.LOWER_A&&ce<=mt.LOWER_Z||isNumber(ce)}!function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"}(yt=ze.BinTrieFlags||(ze.BinTrieFlags={})),function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"}(bt||(bt={})),function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"}(vt=ze.DecodingMode||(ze.DecodingMode={}));var wt=function(){function EntityDecoder(ce,ze,Ve){this.decodeTree=ce,this.emitCodePoint=ze,this.errors=Ve,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}return EntityDecoder.prototype.startEntity=function(ce){this.decodeMode=ce,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},EntityDecoder.prototype.write=function(ce,ze){switch(this.state){case bt.EntityStart:return ce.charCodeAt(ze)===mt.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(ce,ze+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(ce,ze));case bt.NumericStart:return this.stateNumericStart(ce,ze);case bt.NumericDecimal:return this.stateNumericDecimal(ce,ze);case bt.NumericHex:return this.stateNumericHex(ce,ze);case bt.NamedEntity:return this.stateNamedEntity(ce,ze)}},EntityDecoder.prototype.stateNumericStart=function(ce,ze){return ze>=ce.length?-1:(32|ce.charCodeAt(ze))===mt.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(ce,ze+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(ce,ze))},EntityDecoder.prototype.addToNumericResult=function(ce,ze,Ve,qe){if(ze!==Ve){var Ye=Ve-ze;this.result=this.result*Math.pow(qe,Ye)+parseInt(ce.substr(ze,Ye),qe),this.consumed+=Ye}},EntityDecoder.prototype.stateNumericHex=function(ce,ze){for(var Ve,qe=ze;ze=mt.UPPER_A&&Ve<=mt.UPPER_F||Ve>=mt.LOWER_A&&Ve<=mt.LOWER_F)))return this.addToNumericResult(ce,qe,ze,16),this.emitNumericEntity(Ye,3);ze+=1}return this.addToNumericResult(ce,qe,ze,16),-1},EntityDecoder.prototype.stateNumericDecimal=function(ce,ze){for(var Ve=ze;ze>14;ze>14)){if(Qe===mt.SEMI)return this.emitNamedEntityData(this.treeIndex,We,this.consumed+this.excess);this.decodeMode!==vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},EntityDecoder.prototype.emitNotTerminatedNamedEntity=function(){var ce,ze=this.result,Ve=(this.decodeTree[ze]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ze,Ve,this.consumed),null===(ce=this.errors)||void 0===ce||ce.missingSemicolonAfterCharacterReference(),this.consumed},EntityDecoder.prototype.emitNamedEntityData=function(ce,ze,Ve){var qe=this.decodeTree;return this.emitCodePoint(1===ze?qe[ce]&~yt.VALUE_LENGTH:qe[ce+1],Ve),3===ze&&this.emitCodePoint(qe[ce+2],Ve),Ve},EntityDecoder.prototype.end=function(){var ce;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===vt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(ce=this.errors)||void 0===ce||ce.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}},EntityDecoder}();function getDecoder(ce){var ze="",Ve=new wt(ce,(function(ce){return ze+=(0,st.fromCodePoint)(ce)}));return function decodeWithTrie(ce,qe){for(var Ye=0,We=0;(We=ce.indexOf("&",We))>=0;){ze+=ce.slice(Ye,We),Ve.startEntity(qe);var Qe=Ve.write(ce,We+1);if(Qe<0){Ye=We+Ve.end();break}Ye=We+Qe,We=0===Qe?Ye+1:Ye}var Xe=ze+ce.slice(Ye);return ze="",Xe}}function determineBranch(ce,ze,Ve,qe){var Ye=(ze&yt.BRANCH_LENGTH)>>7,We=ze&yt.JUMP_TABLE;if(0===Ye)return 0!==We&&qe===We?Ve:-1;if(We){var Qe=qe-We;return Qe<0||Qe>=Ye?-1:ce[Ve+Qe]-1}for(var Xe=Ve,ot=Xe+Ye-1;Xe<=ot;){var st=Xe+ot>>>1,mt=ce[st];if(mtqe))return ce[st+Ye];ot=st-1}}return-1}ze.EntityDecoder=wt,ze.determineBranch=determineBranch;var Ct=getDecoder(Xe.default),Dt=getDecoder(ot.default);ze.decodeHTML=function decodeHTML(ce,ze){return void 0===ze&&(ze=vt.Legacy),Ct(ce,ze)},ze.decodeHTMLAttribute=function decodeHTMLAttribute(ce){return Ct(ce,vt.Attribute)},ze.decodeHTMLStrict=function decodeHTMLStrict(ce){return Ct(ce,vt.Strict)},ze.decodeXML=function decodeXML(ce){return Dt(ce,vt.Strict)}},function(ce,ze,Ve){"use strict";var qe=Ve(400);ze.a=function cloneDeep(ce){return Object(qe.a)(ce,5)}},function(ce,ze,Ve){"use strict";var qe=Ve(319),Ye=TypeError;ce.exports=function(ce){if(qe(ce))throw new Ye("Can't call method on "+ce);return ce}},function(ce,ze,Ve){"use strict";var qe=Ve(208),Ye=Object;ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(61),We=Ve(209),Qe=Ve(838),Xe=Ve(839);qe({target:"Object",stat:!0,forced:Ye((function(){Qe(1)})),sham:!Xe},{getPrototypeOf:function getPrototypeOf(ce){return Qe(We(ce))}})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(246),We=Ve(746),Qe=Ve(1164),Xe=Ve(840),ot=Ve(147),st=Ve(121),mt=Ve(471),gt=Ve(61),yt=Ye("Reflect","construct"),bt=Object.prototype,vt=[].push,wt=gt((function(){function F(){}return!(yt((function(){}),[],F)instanceof F)})),Ct=!gt((function(){yt((function(){}))})),Dt=wt||Ct;qe({target:"Reflect",stat:!0,forced:Dt,sham:Dt},{construct:function construct(ce,ze){Xe(ce),ot(ze);var Ve=arguments.length<3?ce:Xe(arguments[2]);if(Ct&&!wt)return yt(ce,ze,Ve);if(ce===Ve){switch(ze.length){case 0:return new ce;case 1:return new ce(ze[0]);case 2:return new ce(ze[0],ze[1]);case 3:return new ce(ze[0],ze[1],ze[2]);case 4:return new ce(ze[0],ze[1],ze[2],ze[3])}var qe=[null];return We(vt,qe,ze),new(We(Qe,ce,qe))}var Ye=Ve.prototype,gt=mt(st(Ye)?Ye:bt),Dt=We(ce,gt,ze);return st(Dt)?Dt:gt}})},function(ce,ze){ce.exports=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe,Ye=Ve(1),We=Ve(9),Qe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Qe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"options",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"options"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"metadataOptions",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"metadataOptions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(0),Ye=Ve.n(qe);class We extends Ye.a.Component{}We.hasColumnOptions=!1,We.searchable=!0,We.paginatable=!0},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var qe=Ve(1),Ye=Ve(22),We=Ve.n(Ye),Qe=Ve(9),Xe=Ve.n(Qe),ot=Ve(49),st=Ve(27),mt=Ve(415);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=qe.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const qe=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(qe,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const qe=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const qe=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const qe=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(qe,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const qe=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const qe=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(qe,Ve)}constructor(ze,Ve,Ye,Qe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Vt,this),_initializerDefineProperty(this,"forbidden",Ht,this),this.active=qe.observable.box(),this.filterOptions=qe.observable.box({}),this.sortColumn=qe.observable.box(),this.sortOrder=qe.observable.box(),this.searchTerm=qe.observable.box(),this.limit=qe.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const qe=ze[ce];Ve.push({schemaKey:ce,visibility:qe.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Ut,this),_initializerDefineProperty(this,"updateStructureStrategy",Wt,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(qe.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(qe.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(qe.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const Ye={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(Ye.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...Ye,id:ce}).then(Object(qe.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),Ye={...ze,...this.options};this.initialSelectionIds&&(Ye.selectedIds=this.initialSelectionIds.join(",")),Ye.selectedIds||(Ve&&Object(qe.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),Ye.expandedIds=Ve),!Ye.expandedIds&&Ve&&(Ye.parentId=Ve)),Ye.sortBy=this.sortColumn.get(),Ye.sortOrder=this.sortOrder.get(),Ye.limit=this.limit.get(),Ye.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(Ye.filter=this.filterQueryOption),this.searchTerm.get()&&(Ye.search=this.searchTerm.get()),Xe.a.info('List loads "'+this.resourceKey+'" data with the following options:',Ye),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,Ye,Ye.selectedIds||Ye.expandedIds?void 0:Ve).then(Object(qe.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=Ye,this.observableOptions=Qe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(qe.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(qe.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(qe.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(qe.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),qe=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},Ye=ze.newValue,Qe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Qe)||callResetForChangedObservable(ze),We()(Ve,Ye)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(qe.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(qe.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(qe.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(qe.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(qe.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:qe}=this.observableOptions;return qe&&(Ve.locale=qe.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(qe.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Xe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Xe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"forbidden",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Ut=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Wt=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(qe.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(qe.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(qe.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var qe=Ve(1),Ye=Ve(22),We=Ve.n(Ye),Qe=Ve(9),Xe=Ve.n(Qe),ot=Ve(45),st=Ve(53),mt=Ve(416);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=qe.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const qe=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(qe,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const qe=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const qe=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const qe=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(qe,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const qe=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const qe=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(qe,Ve)}constructor(ze,Ve,Ye,Qe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Vt,this),_initializerDefineProperty(this,"forbidden",Ht,this),this.active=qe.observable.box(),this.filterOptions=qe.observable.box({}),this.sortColumn=qe.observable.box(),this.sortOrder=qe.observable.box(),this.searchTerm=qe.observable.box(),this.limit=qe.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const qe=ze[ce];Ve.push({schemaKey:ce,visibility:qe.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Ut,this),_initializerDefineProperty(this,"updateStructureStrategy",Wt,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(qe.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(qe.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(qe.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const Ye={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(Ye.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...Ye,id:ce}).then(Object(qe.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),Ye={...ze,...this.options};this.initialSelectionIds&&(Ye.selectedIds=this.initialSelectionIds.join(",")),Ye.selectedIds||(Ve&&Object(qe.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),Ye.expandedIds=Ve),!Ye.expandedIds&&Ve&&(Ye.parentId=Ve)),Ye.sortBy=this.sortColumn.get(),Ye.sortOrder=this.sortOrder.get(),Ye.limit=this.limit.get(),Ye.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(Ye.filter=this.filterQueryOption),this.searchTerm.get()&&(Ye.search=this.searchTerm.get()),Xe.a.info('List loads "'+this.resourceKey+'" data with the following options:',Ye),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,Ye,Ye.selectedIds||Ye.expandedIds?void 0:Ve).then(Object(qe.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=Ye,this.observableOptions=Qe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(qe.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(qe.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(qe.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(qe.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),qe=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},Ye=ze.newValue,Qe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Qe)||callResetForChangedObservable(ze),We()(Ve,Ye)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(qe.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(qe.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(qe.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(qe.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(qe.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:qe}=this.observableOptions;return qe&&(Ve.locale=qe.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(qe.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Xe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Xe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"forbidden",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Ut=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Wt=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(qe.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(qe.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(qe.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";var qe=Ve(583);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return getFillerOffset}));var qe=Ve(107);class Ye extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}}function getFillerOffset(){const ce=[...this.getChildren()],ze=ce[this.childCount-1];if(ze&&ze.is("element","br"))return this.childCount;for(const ze of ce)if(!ze.is("uiElement"))return null;return this.childCount}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(130);class Ye extends qe.a{constructor(ce){super(ce),this.domEventType="click"}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){!function(ce){"use strict";var ze="1.9.4";function extend(ce){var ze,Ve,qe,Ye;for(Ve=1,qe=arguments.length;Ve0?Math.floor(ce):Math.ceil(ce)};function toPoint(ce,ze,Ve){return ce instanceof Point?ce:We(ce)?new Point(ce[0],ce[1]):null==ce?ce:"object"==typeof ce&&"x"in ce&&"y"in ce?new Point(ce.x,ce.y):new Point(ce,ze,Ve)}function Bounds(ce,ze){if(ce)for(var Ve=ze?[ce,ze]:ce,qe=0,Ye=Ve.length;qe=this.min.x&&Ve.x<=this.max.x&&ze.y>=this.min.y&&Ve.y<=this.max.y},intersects:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,qe=ce.min,Ye=ce.max,We=Ye.x>=ze.x&&qe.x<=Ve.x,Qe=Ye.y>=ze.y&&qe.y<=Ve.y;return We&&Qe},overlaps:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,qe=ce.min,Ye=ce.max,We=Ye.x>ze.x&&qe.xze.y&&qe.y=qe.lat&&Ve.lat<=Ye.lat&&ze.lng>=qe.lng&&Ve.lng<=Ye.lng},intersects:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,qe=ce.getSouthWest(),Ye=ce.getNorthEast(),We=Ye.lat>=ze.lat&&qe.lat<=Ve.lat,Qe=Ye.lng>=ze.lng&&qe.lng<=Ve.lng;return We&&Qe},overlaps:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,qe=ce.getSouthWest(),Ye=ce.getNorthEast(),We=Ye.lat>ze.lat&&qe.latze.lng&&qe.lng1,Xn=function(){var ce=!1;try{var ze=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("testPassiveEventSupport",falseFn,ze),window.removeEventListener("testPassiveEventSupport",falseFn,ze)}catch(ce){}return ce}(),ei=!!document.createElement("canvas").getContext,si=!(!document.createElementNS||!svgCreate("svg").createSVGRect),_i=!!si&&((Et=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI)),Ri=!si&&function(){try{var ce=document.createElement("div");ce.innerHTML='';var ze=ce.firstChild;return ze.style.behavior="url(#default#VML)",ze&&"object"==typeof ze.adj}catch(ce){return!1}}(),Ci=0===navigator.platform.indexOf("Mac"),Di=0===navigator.platform.indexOf("Linux");function userAgentContains(ce){return navigator.userAgent.toLowerCase().indexOf(ce)>=0}var Ei={ie:Tt,ielt9:Lt,edge:Ft,webkit:Bt,android:Vt,android23:Ht,androidStock:Wt,opera:Jt,chrome:Qt,gecko:en,safari:rn,phantom:ln,opera12:mn,win:gn,ie3d:bn,webkit3d:wn,gecko3d:Cn,any3d:Sn,mobile:En,mobileWebkit:Tn,mobileWebkit3d:Ln,msPointer:Fn,pointer:Yn,touch:Gn,touchNative:Un,mobileOpera:Kn,mobileGecko:Jn,retina:Zn,passiveEvents:Xn,canvas:ei,svg:si,vml:Ri,inlineSvg:_i,mac:Ci,linux:Di},Oi=Ei.msPointer?"MSPointerDown":"pointerdown",Ti=Ei.msPointer?"MSPointerMove":"pointermove",er=Ei.msPointer?"MSPointerUp":"pointerup",tr=Ei.msPointer?"MSPointerCancel":"pointercancel",nr={touchstart:Oi,touchmove:Ti,touchend:er,touchcancel:tr},rr={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},ar={},sr=!1;function addPointerListener(ce,ze,Ve){return"touchstart"===ze&&_addPointerDocListener(),rr[ze]?(Ve=rr[ze].bind(this,Ve),ce.addEventListener(nr[ze],Ve,!1),Ve):(console.warn("wrong event specified:",ze),falseFn)}function removePointerListener(ce,ze,Ve){nr[ze]?ce.removeEventListener(nr[ze],Ve,!1):console.warn("wrong event specified:",ze)}function _globalPointerDown(ce){ar[ce.pointerId]=ce}function _globalPointerMove(ce){ar[ce.pointerId]&&(ar[ce.pointerId]=ce)}function _globalPointerUp(ce){delete ar[ce.pointerId]}function _addPointerDocListener(){sr||(document.addEventListener(Oi,_globalPointerDown,!0),document.addEventListener(Ti,_globalPointerMove,!0),document.addEventListener(er,_globalPointerUp,!0),document.addEventListener(tr,_globalPointerUp,!0),sr=!0)}function _handlePointer(ce,ze){if(ze.pointerType!==(ze.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Ve in ze.touches=[],ar)ze.touches.push(ar[Ve]);ze.changedTouches=[ze],ce(ze)}}function _onPointerStart(ce,ze){ze.MSPOINTER_TYPE_TOUCH&&ze.pointerType===ze.MSPOINTER_TYPE_TOUCH&&preventDefault(ze),_handlePointer(ce,ze)}function makeDblclick(ce){var ze,Ve,qe={};for(Ve in ce)ze=ce[Ve],qe[Ve]=ze&&ze.bind?ze.bind(ce):ze;return ce=qe,qe.type="dblclick",qe.detail=2,qe.isTrusted=!1,qe._simulated=!0,qe}var lr=200;function addDoubleTapListener(ce,ze){ce.addEventListener("dblclick",ze);var Ve,qe=0;function simDblclick(ce){if(1===ce.detail){if("mouse"!==ce.pointerType&&(!ce.sourceCapabilities||ce.sourceCapabilities.firesTouchEvents)){var Ye=getPropagationPath(ce);if(!Ye.some((function(ce){return ce instanceof HTMLLabelElement&&ce.attributes.for}))||Ye.some((function(ce){return ce instanceof HTMLInputElement||ce instanceof HTMLSelectElement}))){var We=Date.now();We-qe<=lr?2==++Ve&&ze(makeDblclick(ce)):Ve=1,qe=We}}}else Ve=ce.detail}return ce.addEventListener("click",simDblclick),{dblclick:ze,simDblclick:simDblclick}}function removeDoubleTapListener(ce,ze){ce.removeEventListener("dblclick",ze.dblclick),ce.removeEventListener("click",ze.simDblclick)}var dr,ur,pr,vr,_r,Rr=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Cr=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Dr="webkitTransition"===Cr||"OTransition"===Cr?Cr+"End":"transitionend";function get(ce){return"string"==typeof ce?document.getElementById(ce):ce}function getStyle(ce,ze){var Ve=ce.style[ze]||ce.currentStyle&&ce.currentStyle[ze];if((!Ve||"auto"===Ve)&&document.defaultView){var qe=document.defaultView.getComputedStyle(ce,null);Ve=qe?qe[ze]:null}return"auto"===Ve?null:Ve}function create$1(ce,ze,Ve){var qe=document.createElement(ce);return qe.className=ze||"",Ve&&Ve.appendChild(qe),qe}function remove(ce){var ze=ce.parentNode;ze&&ze.removeChild(ce)}function empty(ce){for(;ce.firstChild;)ce.removeChild(ce.firstChild)}function toFront(ce){var ze=ce.parentNode;ze&&ze.lastChild!==ce&&ze.appendChild(ce)}function toBack(ce){var ze=ce.parentNode;ze&&ze.firstChild!==ce&&ze.insertBefore(ce,ze.firstChild)}function hasClass(ce,ze){if(void 0!==ce.classList)return ce.classList.contains(ze);var Ve=getClass(ce);return Ve.length>0&&new RegExp("(^|\\s)"+ze+"(\\s|$)").test(Ve)}function addClass(ce,ze){if(void 0!==ce.classList)for(var Ve=splitWords(ze),qe=0,Ye=Ve.length;qe0?2*window.devicePixelRatio:1;function getWheelDelta(ce){return Ei.edge?ce.wheelDeltaY/2:ce.deltaY&&0===ce.deltaMode?-ce.deltaY/Lr:ce.deltaY&&1===ce.deltaMode?20*-ce.deltaY:ce.deltaY&&2===ce.deltaMode?60*-ce.deltaY:ce.deltaX||ce.deltaZ?0:ce.wheelDelta?(ce.wheelDeltaY||ce.wheelDelta)/2:ce.detail&&Math.abs(ce.detail)<32765?20*-ce.detail:ce.detail?ce.detail/-32765*60:0}function isExternalTarget(ce,ze){var Ve=ze.relatedTarget;if(!Ve)return!0;try{for(;Ve&&Ve!==ce;)Ve=Ve.parentNode}catch(ce){return!1}return Ve!==ce}var jr={__proto__:null,on:on,off:off,stopPropagation:stopPropagation,disableScrollPropagation:disableScrollPropagation,disableClickPropagation:disableClickPropagation,preventDefault:preventDefault,stop:stop,getPropagationPath:getPropagationPath,getMousePosition:getMousePosition,getWheelDelta:getWheelDelta,isExternalTarget:isExternalTarget,addListener:on,removeListener:off},Ir=yt.extend({run:function(ce,ze,Ve,qe){this.stop(),this._el=ce,this._inProgress=!0,this._duration=Ve||.25,this._easeOutPower=1/Math.max(qe||.5,.2),this._startPos=getPosition(ce),this._offset=ze.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=requestAnimFrame(this._animate,this),this._step()},_step:function(ce){var ze=+new Date-this._startTime,Ve=1e3*this._duration;zethis.options.maxZoom)?this.setZoom(ce):this},panInsideBounds:function(ce,ze){this._enforcingBounds=!0;var Ve=this.getCenter(),qe=this._limitCenter(Ve,this._zoom,toLatLngBounds(ce));return Ve.equals(qe)||this.panTo(qe,ze),this._enforcingBounds=!1,this},panInside:function(ce,ze){var Ve=toPoint((ze=ze||{}).paddingTopLeft||ze.padding||[0,0]),qe=toPoint(ze.paddingBottomRight||ze.padding||[0,0]),Ye=this.project(this.getCenter()),We=this.project(ce),Qe=this.getPixelBounds(),Xe=toBounds([Qe.min.add(Ve),Qe.max.subtract(qe)]),ot=Xe.getSize();if(!Xe.contains(We)){this._enforcingBounds=!0;var st=We.subtract(Xe.getCenter()),mt=Xe.extend(We).getSize().subtract(ot);Ye.x+=st.x<0?-mt.x:mt.x,Ye.y+=st.y<0?-mt.y:mt.y,this.panTo(this.unproject(Ye),ze),this._enforcingBounds=!1}return this},invalidateSize:function(ce){if(!this._loaded)return this;ce=extend({animate:!1,pan:!0},!0===ce?{animate:!0}:ce);var ze=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var Ve=this.getSize(),qe=ze.divideBy(2).round(),Ye=Ve.divideBy(2).round(),We=qe.subtract(Ye);return We.x||We.y?(ce.animate&&ce.pan?this.panBy(We):(ce.pan&&this._rawPanBy(We),this.fire("move"),ce.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:ze,newSize:Ve})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ce){if(ce=this._locateOptions=extend({timeout:1e4,watch:!1},ce),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var ze=bind(this._handleGeolocationResponse,this),Ve=bind(this._handleGeolocationError,this);return ce.watch?this._locationWatchId=navigator.geolocation.watchPosition(ze,Ve,ce):navigator.geolocation.getCurrentPosition(ze,Ve,ce),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ce){if(this._container._leaflet_id){var ze=ce.code,Ve=ce.message||(1===ze?"permission denied":2===ze?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:ze,message:"Geolocation error: "+Ve+"."})}},_handleGeolocationResponse:function(ce){if(this._container._leaflet_id){var ze=new LatLng(ce.coords.latitude,ce.coords.longitude),Ve=ze.toBounds(2*ce.coords.accuracy),qe=this._locateOptions;if(qe.setView){var Ye=this.getBoundsZoom(Ve);this.setView(ze,qe.maxZoom?Math.min(Ye,qe.maxZoom):Ye)}var We={latlng:ze,bounds:Ve,timestamp:ce.timestamp};for(var Qe in ce.coords)"number"==typeof ce.coords[Qe]&&(We[Qe]=ce.coords[Qe]);this.fire("locationfound",We)}},addHandler:function(ce,ze){if(!ze)return this;var Ve=this[ce]=new ze(this);return this._handlers.push(Ve),this.options[ce]&&Ve.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(ce){this._container._leaflet_id=void 0,this._containerId=void 0}var ce;for(ce in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),remove(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[ce].remove();for(ce in this._panes)remove(this._panes[ce]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ce,ze){var Ve=create$1("div","leaflet-pane"+(ce?" leaflet-"+ce.replace("Pane","")+"-pane":""),ze||this._mapPane);return ce&&(this._panes[ce]=Ve),Ve},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ce=this.getPixelBounds();return new LatLngBounds(this.unproject(ce.getBottomLeft()),this.unproject(ce.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ce,ze,Ve){ce=toLatLngBounds(ce),Ve=toPoint(Ve||[0,0]);var qe=this.getZoom()||0,Ye=this.getMinZoom(),We=this.getMaxZoom(),Qe=ce.getNorthWest(),Xe=ce.getSouthEast(),ot=this.getSize().subtract(Ve),st=toBounds(this.project(Xe,qe),this.project(Qe,qe)).getSize(),mt=Ei.any3d?this.options.zoomSnap:1,gt=ot.x/st.x,yt=ot.y/st.y,bt=ze?Math.max(gt,yt):Math.min(gt,yt);return qe=this.getScaleZoom(bt,qe),mt&&(qe=Math.round(qe/(mt/100))*(mt/100),qe=ze?Math.ceil(qe/mt)*mt:Math.floor(qe/mt)*mt),Math.max(Ye,Math.min(We,qe))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Point(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ce,ze){var Ve=this._getTopLeftPoint(ce,ze);return new Bounds(Ve,Ve.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ce){return this.options.crs.getProjectedBounds(void 0===ce?this.getZoom():ce)},getPane:function(ce){return"string"==typeof ce?this._panes[ce]:ce},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ce,ze){var Ve=this.options.crs;return ze=void 0===ze?this._zoom:ze,Ve.scale(ce)/Ve.scale(ze)},getScaleZoom:function(ce,ze){var Ve=this.options.crs;ze=void 0===ze?this._zoom:ze;var qe=Ve.zoom(ce*Ve.scale(ze));return isNaN(qe)?1/0:qe},project:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.latLngToPoint(toLatLng(ce),ze)},unproject:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.pointToLatLng(toPoint(ce),ze)},layerPointToLatLng:function(ce){var ze=toPoint(ce).add(this.getPixelOrigin());return this.unproject(ze)},latLngToLayerPoint:function(ce){return this.project(toLatLng(ce))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(ce){return this.options.crs.wrapLatLng(toLatLng(ce))},wrapLatLngBounds:function(ce){return this.options.crs.wrapLatLngBounds(toLatLngBounds(ce))},distance:function(ce,ze){return this.options.crs.distance(toLatLng(ce),toLatLng(ze))},containerPointToLayerPoint:function(ce){return toPoint(ce).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ce){return toPoint(ce).add(this._getMapPanePos())},containerPointToLatLng:function(ce){var ze=this.containerPointToLayerPoint(toPoint(ce));return this.layerPointToLatLng(ze)},latLngToContainerPoint:function(ce){return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(ce)))},mouseEventToContainerPoint:function(ce){return getMousePosition(ce,this._container)},mouseEventToLayerPoint:function(ce){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ce))},mouseEventToLatLng:function(ce){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ce))},_initContainer:function(ce){var ze=this._container=get(ce);if(!ze)throw new Error("Map container not found.");if(ze._leaflet_id)throw new Error("Map container is already initialized.");on(ze,"scroll",this._onScroll,this),this._containerId=stamp(ze)},_initLayout:function(){var ce=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ei.any3d,addClass(ce,"leaflet-container"+(Ei.touch?" leaflet-touch":"")+(Ei.retina?" leaflet-retina":"")+(Ei.ielt9?" leaflet-oldie":"")+(Ei.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var ze=getStyle(ce,"position");"absolute"!==ze&&"relative"!==ze&&"fixed"!==ze&&"sticky"!==ze&&(ce.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ce=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),setPosition(this._mapPane,new Point(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(addClass(ce.markerPane,"leaflet-zoom-hide"),addClass(ce.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ce,ze,Ve){setPosition(this._mapPane,new Point(0,0));var qe=!this._loaded;this._loaded=!0,ze=this._limitZoom(ze),this.fire("viewprereset");var Ye=this._zoom!==ze;this._moveStart(Ye,Ve)._move(ce,ze)._moveEnd(Ye),this.fire("viewreset"),qe&&this.fire("load")},_moveStart:function(ce,ze){return ce&&this.fire("zoomstart"),ze||this.fire("movestart"),this},_move:function(ce,ze,Ve,qe){void 0===ze&&(ze=this._zoom);var Ye=this._zoom!==ze;return this._zoom=ze,this._lastCenter=ce,this._pixelOrigin=this._getNewPixelOrigin(ce),qe?Ve&&Ve.pinch&&this.fire("zoom",Ve):((Ye||Ve&&Ve.pinch)&&this.fire("zoom",Ve),this.fire("move",Ve)),this},_moveEnd:function(ce){return ce&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ce){setPosition(this._mapPane,this._getMapPanePos().subtract(ce))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ce){this._targets={},this._targets[stamp(this._container)]=this;var ze=ce?off:on;ze(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&ze(window,"resize",this._onResize,this),Ei.any3d&&this.options.transform3DLimit&&(ce?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){cancelAnimFrame(this._resizeRequest),this._resizeRequest=requestAnimFrame((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ce=this._getMapPanePos();Math.max(Math.abs(ce.x),Math.abs(ce.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ce,ze){for(var Ve,qe=[],Ye="mouseout"===ze||"mouseover"===ze,We=ce.target||ce.srcElement,Qe=!1;We;){if((Ve=this._targets[stamp(We)])&&("click"===ze||"preclick"===ze)&&this._draggableMoved(Ve)){Qe=!0;break}if(Ve&&Ve.listens(ze,!0)){if(Ye&&!isExternalTarget(We,ce))break;if(qe.push(Ve),Ye)break}if(We===this._container)break;We=We.parentNode}return qe.length||Qe||Ye||!this.listens(ze,!0)||(qe=[this]),qe},_isClickDisabled:function(ce){for(;ce&&ce!==this._container;){if(ce._leaflet_disable_click)return!0;ce=ce.parentNode}},_handleDOMEvent:function(ce){var ze=ce.target||ce.srcElement;if(!(!this._loaded||ze._leaflet_disable_events||"click"===ce.type&&this._isClickDisabled(ze))){var Ve=ce.type;"mousedown"===Ve&&preventOutline(ze),this._fireDOMEvent(ce,Ve)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ce,ze,Ve){if("click"===ce.type){var qe=extend({},ce);qe.type="preclick",this._fireDOMEvent(qe,qe.type,Ve)}var Ye=this._findEventTargets(ce,ze);if(Ve){for(var We=[],Qe=0;Qe0?Math.round(ce-ze)/2:Math.max(0,Math.ceil(ce))-Math.max(0,Math.floor(ze))},_limitZoom:function(ce){var ze=this.getMinZoom(),Ve=this.getMaxZoom(),qe=Ei.any3d?this.options.zoomSnap:1;return qe&&(ce=Math.round(ce/qe)*qe),Math.max(ze,Math.min(Ve,ce))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ce,ze){var Ve=this._getCenterOffset(ce)._trunc();return!(!0!==(ze&&ze.animate)&&!this.getSize().contains(Ve)||(this.panBy(Ve,ze),0))},_createAnimProxy:function(){var ce=this._proxy=create$1("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ce),this.on("zoomanim",(function(ce){var ze=Rr,Ve=this._proxy.style[ze];setTransform(this._proxy,this.project(ce.center,ce.zoom),this.getZoomScale(ce.zoom,1)),Ve===this._proxy.style[ze]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){remove(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ce=this.getCenter(),ze=this.getZoom();setTransform(this._proxy,this.project(ce,ze),this.getZoomScale(ze,1))},_catchTransitionEnd:function(ce){this._animatingZoom&&ce.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ce,ze,Ve){if(this._animatingZoom)return!0;if(Ve=Ve||{},!this._zoomAnimated||!1===Ve.animate||this._nothingToAnimate()||Math.abs(ze-this._zoom)>this.options.zoomAnimationThreshold)return!1;var qe=this.getZoomScale(ze),Ye=this._getCenterOffset(ce)._divideBy(1-1/qe);return!(!0!==Ve.animate&&!this.getSize().contains(Ye)||(requestAnimFrame((function(){this._moveStart(!0,Ve.noMoveStart||!1)._animateZoom(ce,ze,!0)}),this),0))},_animateZoom:function(ce,ze,Ve,qe){this._mapPane&&(Ve&&(this._animatingZoom=!0,this._animateToCenter=ce,this._animateToZoom=ze,addClass(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ce,zoom:ze,noUpdate:qe}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(bind(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function createMap(ce,ze){return new zr(ce,ze)}var Br=Class.extend({options:{position:"topright"},initialize:function(ce){setOptions(this,ce)},getPosition:function(){return this.options.position},setPosition:function(ce){var ze=this._map;return ze&&ze.removeControl(this),this.options.position=ce,ze&&ze.addControl(this),this},getContainer:function(){return this._container},addTo:function(ce){this.remove(),this._map=ce;var ze=this._container=this.onAdd(ce),Ve=this.getPosition(),qe=ce._controlCorners[Ve];return addClass(ze,"leaflet-control"),-1!==Ve.indexOf("bottom")?qe.insertBefore(ze,qe.firstChild):qe.appendChild(ze),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(remove(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ce){this._map&&ce&&ce.screenX>0&&ce.screenY>0&&this._map.getContainer().focus()}}),control=function(ce){return new Br(ce)};zr.include({addControl:function(ce){return ce.addTo(this),this},removeControl:function(ce){return ce.remove(),this},_initControlPos:function(){var ce=this._controlCorners={},ze="leaflet-",Ve=this._controlContainer=create$1("div",ze+"control-container",this._container);function createCorner(qe,Ye){var We=ze+qe+" "+ze+Ye;ce[qe+Ye]=create$1("div",We,Ve)}createCorner("top","left"),createCorner("top","right"),createCorner("bottom","left"),createCorner("bottom","right")},_clearControlPos:function(){for(var ce in this._controlCorners)remove(this._controlCorners[ce]);remove(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Nr=Br.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ce,ze,Ve,qe){return Ve1,this._baseLayersList.style.display=ce?"":"none"),this._separator.style.display=ze&&ce?"":"none",this},_onLayerChange:function(ce){this._handlingClick||this._update();var ze=this._getLayer(stamp(ce.target)),Ve=ze.overlay?"add"===ce.type?"overlayadd":"overlayremove":"add"===ce.type?"baselayerchange":null;Ve&&this._map.fire(Ve,ze)},_createRadioElement:function(ce,ze){var Ve='",qe=document.createElement("div");return qe.innerHTML=Ve,qe.firstChild},_addItem:function(ce){var ze,Ve=document.createElement("label"),qe=this._map.hasLayer(ce.layer);ce.overlay?((ze=document.createElement("input")).type="checkbox",ze.className="leaflet-control-layers-selector",ze.defaultChecked=qe):ze=this._createRadioElement("leaflet-base-layers_"+stamp(this),qe),this._layerControlInputs.push(ze),ze.layerId=stamp(ce.layer),on(ze,"click",this._onInputClick,this);var Ye=document.createElement("span");Ye.innerHTML=" "+ce.name;var We=document.createElement("span");return Ve.appendChild(We),We.appendChild(ze),We.appendChild(Ye),(ce.overlay?this._overlaysList:this._baseLayersList).appendChild(Ve),this._checkDisabledLayers(),Ve},_onInputClick:function(){if(!this._preventClick){var ce,ze,Ve=this._layerControlInputs,qe=[],Ye=[];this._handlingClick=!0;for(var We=Ve.length-1;We>=0;We--)ce=Ve[We],ze=this._getLayer(ce.layerId).layer,ce.checked?qe.push(ze):ce.checked||Ye.push(ze);for(We=0;We=0;Ye--)ce=Ve[Ye],ze=this._getLayer(ce.layerId).layer,ce.disabled=void 0!==ze.options.minZoom&&qeze.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ce=this._section;this._preventClick=!0,on(ce,"click",preventDefault),this.expand();var ze=this;setTimeout((function(){off(ce,"click",preventDefault),ze._preventClick=!1}))}}),layers=function(ce,ze,Ve){return new Nr(ce,ze,Ve)},Vr=Br.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(ce){var ze="leaflet-control-zoom",Ve=create$1("div",ze+" leaflet-bar"),qe=this.options;return this._zoomInButton=this._createButton(qe.zoomInText,qe.zoomInTitle,ze+"-in",Ve,this._zoomIn),this._zoomOutButton=this._createButton(qe.zoomOutText,qe.zoomOutTitle,ze+"-out",Ve,this._zoomOut),this._updateDisabled(),ce.on("zoomend zoomlevelschange",this._updateDisabled,this),Ve},onRemove:function(ce){ce.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ce){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ce.shiftKey?3:1))},_createButton:function(ce,ze,Ve,qe,Ye){var We=create$1("a",Ve,qe);return We.innerHTML=ce,We.href="#",We.title=ze,We.setAttribute("role","button"),We.setAttribute("aria-label",ze),disableClickPropagation(We),on(We,"click",stop),on(We,"click",Ye,this),on(We,"click",this._refocusOnMap,this),We},_updateDisabled:function(){var ce=this._map,ze="leaflet-disabled";removeClass(this._zoomInButton,ze),removeClass(this._zoomOutButton,ze),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ce._zoom===ce.getMinZoom())&&(addClass(this._zoomOutButton,ze),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ce._zoom===ce.getMaxZoom())&&(addClass(this._zoomInButton,ze),this._zoomInButton.setAttribute("aria-disabled","true"))}});zr.mergeOptions({zoomControl:!0}),zr.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Vr,this.addControl(this.zoomControl))}));var zoom=function(ce){return new Vr(ce)},Hr=Br.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ce){var ze="leaflet-control-scale",Ve=create$1("div",ze),qe=this.options;return this._addScales(qe,ze+"-line",Ve),ce.on(qe.updateWhenIdle?"moveend":"move",this._update,this),ce.whenReady(this._update,this),Ve},onRemove:function(ce){ce.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ce,ze,Ve){ce.metric&&(this._mScale=create$1("div",ze,Ve)),ce.imperial&&(this._iScale=create$1("div",ze,Ve))},_update:function(){var ce=this._map,ze=ce.getSize().y/2,Ve=ce.distance(ce.containerPointToLatLng([0,ze]),ce.containerPointToLatLng([this.options.maxWidth,ze]));this._updateScales(Ve)},_updateScales:function(ce){this.options.metric&&ce&&this._updateMetric(ce),this.options.imperial&&ce&&this._updateImperial(ce)},_updateMetric:function(ce){var ze=this._getRoundNum(ce),Ve=ze<1e3?ze+" m":ze/1e3+" km";this._updateScale(this._mScale,Ve,ze/ce)},_updateImperial:function(ce){var ze,Ve,qe,Ye=3.2808399*ce;Ye>5280?(ze=Ye/5280,Ve=this._getRoundNum(ze),this._updateScale(this._iScale,Ve+" mi",Ve/ze)):(qe=this._getRoundNum(Ye),this._updateScale(this._iScale,qe+" ft",qe/Ye))},_updateScale:function(ce,ze,Ve){ce.style.width=Math.round(this.options.maxWidth*Ve)+"px",ce.innerHTML=ze},_getRoundNum:function(ce){var ze=Math.pow(10,(Math.floor(ce)+"").length-1),Ve=ce/ze;return ze*(Ve=Ve>=10?10:Ve>=5?5:Ve>=3?3:Ve>=2?2:1)}}),scale=function(ce){return new Hr(ce)},qr='',Yr=Br.extend({options:{position:"bottomright",prefix:''+(Ei.inlineSvg?qr+" ":"")+"Leaflet"},initialize:function(ce){setOptions(this,ce),this._attributions={}},onAdd:function(ce){for(var ze in ce.attributionControl=this,this._container=create$1("div","leaflet-control-attribution"),disableClickPropagation(this._container),ce._layers)ce._layers[ze].getAttribution&&this.addAttribution(ce._layers[ze].getAttribution());return this._update(),ce.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ce){ce.off("layeradd",this._addAttribution,this)},_addAttribution:function(ce){ce.layer.getAttribution&&(this.addAttribution(ce.layer.getAttribution()),ce.layer.once("remove",(function(){this.removeAttribution(ce.layer.getAttribution())}),this))},setPrefix:function(ce){return this.options.prefix=ce,this._update(),this},addAttribution:function(ce){return ce?(this._attributions[ce]||(this._attributions[ce]=0),this._attributions[ce]++,this._update(),this):this},removeAttribution:function(ce){return ce?(this._attributions[ce]&&(this._attributions[ce]--,this._update()),this):this},_update:function(){if(this._map){var ce=[];for(var ze in this._attributions)this._attributions[ze]&&ce.push(ze);var Ve=[];this.options.prefix&&Ve.push(this.options.prefix),ce.length&&Ve.push(ce.join(", ")),this._container.innerHTML=Ve.join(' ')}}});zr.mergeOptions({attributionControl:!0}),zr.addInitHook((function(){this.options.attributionControl&&(new Yr).addTo(this)}));var attribution=function(ce){return new Yr(ce)};Br.Layers=Nr,Br.Zoom=Vr,Br.Scale=Hr,Br.Attribution=Yr,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution;var Ur=Class.extend({initialize:function(ce){this._map=ce},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ur.addTo=function(ce,ze){return ce.addHandler(ze,this),this};var Wr={Events:gt},$r=Ei.touch?"touchstart mousedown":"mousedown",Gr=yt.extend({options:{clickTolerance:3},initialize:function(ce,ze,Ve,qe){setOptions(this,qe),this._element=ce,this._dragStartTarget=ze||ce,this._preventOutline=Ve},enable:function(){this._enabled||(on(this._dragStartTarget,$r,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Gr._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,$r,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ce){if(this._enabled&&(this._moved=!1,!hasClass(this._element,"leaflet-zoom-anim")))if(ce.touches&&1!==ce.touches.length)Gr._dragging===this&&this.finishDrag();else if(!(Gr._dragging||ce.shiftKey||1!==ce.which&&1!==ce.button&&!ce.touches||(Gr._dragging=this,this._preventOutline&&preventOutline(this._element),disableImageDrag(),dr(),this._moving))){this.fire("down");var ze=ce.touches?ce.touches[0]:ce,Ve=getSizedParentNode(this._element);this._startPoint=new Point(ze.clientX,ze.clientY),this._startPos=getPosition(this._element),this._parentScale=getScale(Ve);var qe="mousedown"===ce.type;on(document,qe?"mousemove":"touchmove",this._onMove,this),on(document,qe?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(ce){if(this._enabled)if(ce.touches&&ce.touches.length>1)this._moved=!0;else{var ze=ce.touches&&1===ce.touches.length?ce.touches[0]:ce,Ve=new Point(ze.clientX,ze.clientY)._subtract(this._startPoint);(Ve.x||Ve.y)&&(Math.abs(Ve.x)+Math.abs(Ve.y)ot&&(We=Qe,ot=Xe);ot>Ve&&(ze[We]=1,_simplifyDPStep(ce,ze,Ve,qe,We),_simplifyDPStep(ce,ze,Ve,We,Ye))}function _reducePoints(ce,ze){for(var Ve=[ce[0]],qe=1,Ye=0,We=ce.length;qeze&&(Ve.push(ce[qe]),Ye=qe);return Yeze.max.x&&(Ve|=2),ce.yze.max.y&&(Ve|=8),Ve}function _sqDist(ce,ze){var Ve=ze.x-ce.x,qe=ze.y-ce.y;return Ve*Ve+qe*qe}function _sqClosestPointOnSegment(ce,ze,Ve,qe){var Ye,We=ze.x,Qe=ze.y,Xe=Ve.x-We,ot=Ve.y-Qe,st=Xe*Xe+ot*ot;return st>0&&((Ye=((ce.x-We)*Xe+(ce.y-Qe)*ot)/st)>1?(We=Ve.x,Qe=Ve.y):Ye>0&&(We+=Xe*Ye,Qe+=ot*Ye)),Xe=ce.x-We,ot=ce.y-Qe,qe?Xe*Xe+ot*ot:new Point(We,Qe)}function isFlat(ce){return!We(ce[0])||"object"!=typeof ce[0][0]&&void 0!==ce[0][0]}function _flat(ce){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),isFlat(ce)}function polylineCenter(ce,ze){var Ve,qe,Ye,We,Qe,Xe,ot,st;if(!ce||0===ce.length)throw new Error("latlngs not passed");isFlat(ce)||(console.warn("latlngs are not flat! Only the first ring will be used"),ce=ce[0]);var mt=toLatLng([0,0]),gt=toLatLngBounds(ce);gt.getNorthWest().distanceTo(gt.getSouthWest())*gt.getNorthEast().distanceTo(gt.getNorthWest())<1700&&(mt=centroid(ce));var yt=ce.length,bt=[];for(Ve=0;Veqe){ot=(We-qe)/Ye,st=[Xe.x-ot*(Xe.x-Qe.x),Xe.y-ot*(Xe.y-Qe.y)];break}var wt=ze.unproject(toPoint(st));return toLatLng([wt.lat+mt.lat,wt.lng+mt.lng])}var Zr={__proto__:null,simplify:simplify,pointToSegmentDistance:pointToSegmentDistance,closestPointOnSegment:closestPointOnSegment,clipSegment:clipSegment,_getEdgeIntersection:_getEdgeIntersection,_getBitCode:_getBitCode,_sqClosestPointOnSegment:_sqClosestPointOnSegment,isFlat:isFlat,_flat:_flat,polylineCenter:polylineCenter},ga={project:function(ce){return new Point(ce.lng,ce.lat)},unproject:function(ce){return new LatLng(ce.y,ce.x)},bounds:new Bounds([-180,-90],[180,90])},ya={R:6378137,R_MINOR:6356752.314245179,bounds:new Bounds([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(ce){var ze=Math.PI/180,Ve=this.R,qe=ce.lat*ze,Ye=this.R_MINOR/Ve,We=Math.sqrt(1-Ye*Ye),Qe=We*Math.sin(qe),Xe=Math.tan(Math.PI/4-qe/2)/Math.pow((1-Qe)/(1+Qe),We/2);return qe=-Ve*Math.log(Math.max(Xe,1e-10)),new Point(ce.lng*ze*Ve,qe)},unproject:function(ce){for(var ze,Ve=180/Math.PI,qe=this.R,Ye=this.R_MINOR/qe,We=Math.sqrt(1-Ye*Ye),Qe=Math.exp(-ce.y/qe),Xe=Math.PI/2-2*Math.atan(Qe),ot=0,st=.1;ot<15&&Math.abs(st)>1e-7;ot++)ze=We*Math.sin(Xe),ze=Math.pow((1-ze)/(1+ze),We/2),Xe+=st=Math.PI/2-2*Math.atan(Qe*ze)-Xe;return new LatLng(Xe*Ve,ce.x*Ve/qe)}},ba={__proto__:null,LonLat:ga,Mercator:ya,SphericalMercator:kt},va=extend({},Ct,{code:"EPSG:3395",projection:ya,transformation:function(){var ce=.5/(Math.PI*ya.R);return toTransformation(ce,.5,-ce,.5)}()}),_a=extend({},Ct,{code:"EPSG:4326",projection:ga,transformation:toTransformation(1/180,1,-1/180,.5)}),wa=extend({},wt,{projection:ga,transformation:toTransformation(1,0,-1,0),scale:function(ce){return Math.pow(2,ce)},zoom:function(ce){return Math.log(ce)/Math.LN2},distance:function(ce,ze){var Ve=ze.lng-ce.lng,qe=ze.lat-ce.lat;return Math.sqrt(Ve*Ve+qe*qe)},infinite:!0});wt.Earth=Ct,wt.EPSG3395=va,wt.EPSG3857=St,wt.EPSG900913=xt,wt.EPSG4326=_a,wt.Simple=wa;var ka=yt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ce){return ce.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ce){return ce&&ce.removeLayer(this),this},getPane:function(ce){return this._map.getPane(ce?this.options[ce]||ce:this.options.pane)},addInteractiveTarget:function(ce){return this._map._targets[stamp(ce)]=this,this},removeInteractiveTarget:function(ce){return delete this._map._targets[stamp(ce)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ce){var ze=ce.target;if(ze.hasLayer(this)){if(this._map=ze,this._zoomAnimated=ze._zoomAnimated,this.getEvents){var Ve=this.getEvents();ze.on(Ve,this),this.once("remove",(function(){ze.off(Ve,this)}),this)}this.onAdd(ze),this.fire("add"),ze.fire("layeradd",{layer:this})}}});zr.include({addLayer:function(ce){if(!ce._layerAdd)throw new Error("The provided object is not a Layer.");var ze=stamp(ce);return this._layers[ze]||(this._layers[ze]=ce,ce._mapToAdd=this,ce.beforeAdd&&ce.beforeAdd(this),this.whenReady(ce._layerAdd,ce)),this},removeLayer:function(ce){var ze=stamp(ce);return this._layers[ze]?(this._loaded&&ce.onRemove(this),delete this._layers[ze],this._loaded&&(this.fire("layerremove",{layer:ce}),ce.fire("remove")),ce._map=ce._mapToAdd=null,this):this},hasLayer:function(ce){return stamp(ce)in this._layers},eachLayer:function(ce,ze){for(var Ve in this._layers)ce.call(ze,this._layers[Ve]);return this},_addLayers:function(ce){for(var ze=0,Ve=(ce=ce?We(ce)?ce:[ce]:[]).length;zethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&ze[0]instanceof LatLng&&ze[0].equals(ze[Ve-1])&&ze.pop(),ze},_setLatLngs:function(ce){Co.prototype._setLatLngs.call(this,ce),isFlat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return isFlat(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ce=this._renderer._bounds,ze=this.options.weight,Ve=new Point(ze,ze);if(ce=new Bounds(ce.min.subtract(Ve),ce.max.add(Ve)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(ce))if(this.options.noClip)this._parts=this._rings;else for(var qe,Ye=0,We=this._rings.length;Yece.y!=qe.y>ce.y&&ce.x<(qe.x-Ve.x)*(ce.y-Ve.y)/(qe.y-Ve.y)+Ve.x&&(st=!st);return st||Co.prototype._containsPoint.call(this,ce,!0)}});function polygon(ce,ze){return new ko(ce,ze)}var Oo=Aa.extend({initialize:function(ce,ze){setOptions(this,ze),this._layers={},ce&&this.addData(ce)},addData:function(ce){var ze,Ve,qe,Ye=We(ce)?ce:ce.features;if(Ye){for(ze=0,Ve=Ye.length;ze0&&Ye.push(Ye[0].slice()),Ye}function getFeature(ce,ze){return ce.feature?extend({},ce.feature,{geometry:ze}):asFeature(ze)}function asFeature(ce){return"Feature"===ce.type||"FeatureCollection"===ce.type?ce:{type:"Feature",properties:{},geometry:ce}}var Po={toGeoJSON:function(ce){return getFeature(this,{type:"Point",coordinates:latLngToCoords(this.getLatLng(),ce)})}};function geoJSON(ce,ze){return new Oo(ce,ze)}po.include(Po),_o.include(Po),go.include(Po),Co.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs);return getFeature(this,{type:(ze?"Multi":"")+"LineString",coordinates:latLngsToCoords(this._latlngs,ze?1:0,!1,ce)})}}),ko.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs),Ve=ze&&!isFlat(this._latlngs[0]),qe=latLngsToCoords(this._latlngs,Ve?2:ze?1:0,!0,ce);return ze||(qe=[qe]),getFeature(this,{type:(Ve?"Multi":"")+"Polygon",coordinates:qe})}}),xa.include({toMultiPoint:function(ce){var ze=[];return this.eachLayer((function(Ve){ze.push(Ve.toGeoJSON(ce).geometry.coordinates)})),getFeature(this,{type:"MultiPoint",coordinates:ze})},toGeoJSON:function(ce){var ze=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===ze)return this.toMultiPoint(ce);var Ve="GeometryCollection"===ze,qe=[];return this.eachLayer((function(ze){if(ze.toGeoJSON){var Ye=ze.toGeoJSON(ce);if(Ve)qe.push(Ye.geometry);else{var We=asFeature(Ye);"FeatureCollection"===We.type?qe.push.apply(qe,We.features):qe.push(We)}}})),Ve?getFeature(this,{geometries:qe,type:"GeometryCollection"}):{type:"FeatureCollection",features:qe}}});var To=geoJSON,Ao=ka.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ce,ze,Ve){this._url=ce,this._bounds=toLatLngBounds(ze),setOptions(this,Ve)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){remove(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ce){return this.options.opacity=ce,this._image&&this._updateOpacity(),this},setStyle:function(ce){return ce.opacity&&this.setOpacity(ce.opacity),this},bringToFront:function(){return this._map&&toFront(this._image),this},bringToBack:function(){return this._map&&toBack(this._image),this},setUrl:function(ce){return this._url=ce,this._image&&(this._image.src=ce),this},setBounds:function(ce){return this._bounds=toLatLngBounds(ce),this._map&&this._reset(),this},getEvents:function(){var ce={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ce.zoomanim=this._animateZoom),ce},setZIndex:function(ce){return this.options.zIndex=ce,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ce="IMG"===this._url.tagName,ze=this._image=ce?this._url:create$1("img");addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onload=bind(this.fire,this,"load"),ze.onerror=bind(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(ze.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ce?this._url=ze.src:(ze.src=this._url,ze.alt=this.options.alt)},_animateZoom:function(ce){var ze=this._map.getZoomScale(ce.zoom),Ve=this._map._latLngBoundsToNewLayerBounds(this._bounds,ce.zoom,ce.center).min;setTransform(this._image,Ve,ze)},_reset:function(){var ce=this._image,ze=new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),Ve=ze.getSize();setPosition(ce,ze.min),ce.style.width=Ve.x+"px",ce.style.height=Ve.y+"px"},_updateOpacity:function(){setOpacity(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ce=this.options.errorOverlayUrl;ce&&this._url!==ce&&(this._url=ce,this._image.src=ce)},getCenter:function(){return this._bounds.getCenter()}}),imageOverlay=function(ce,ze,Ve){return new Ao(ce,ze,Ve)},jo=Ao.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ce="VIDEO"===this._url.tagName,ze=this._image=ce?this._url:create$1("video");if(addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onloadeddata=bind(this.fire,this,"load"),ce){for(var Ve=ze.getElementsByTagName("source"),qe=[],Ye=0;Ye0?qe:[ze.src]}else{We(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(ze.style,"objectFit")&&(ze.style.objectFit="fill"),ze.autoplay=!!this.options.autoplay,ze.loop=!!this.options.loop,ze.muted=!!this.options.muted,ze.playsInline=!!this.options.playsInline;for(var Qe=0;QeYe?(ze.height=Ye+"px",addClass(ce,We)):removeClass(ce,We),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ce){var ze=this._map._latLngToNewLayerPoint(this._latlng,ce.zoom,ce.center),Ve=this._getAnchor();setPosition(this._container,ze.add(Ve))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var ce=this._map,ze=parseInt(getStyle(this._container,"marginBottom"),10)||0,Ve=this._container.offsetHeight+ze,qe=this._containerWidth,Ye=new Point(this._containerLeft,-Ve-this._containerBottom);Ye._add(getPosition(this._container));var We=ce.layerPointToContainerPoint(Ye),Qe=toPoint(this.options.autoPanPadding),Xe=toPoint(this.options.autoPanPaddingTopLeft||Qe),ot=toPoint(this.options.autoPanPaddingBottomRight||Qe),st=ce.getSize(),mt=0,gt=0;We.x+qe+ot.x>st.x&&(mt=We.x+qe-st.x+ot.x),We.x-mt-Xe.x<0&&(mt=We.x-Xe.x),We.y+Ve+ot.y>st.y&&(gt=We.y+Ve-st.y+ot.y),We.y-gt-Xe.y<0&&(gt=We.y-Xe.y),(mt||gt)&&(this.options.keepInView&&(this._autopanning=!0),ce.fire("autopanstart").panBy([mt,gt]))}},_getAnchor:function(){return toPoint(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),popup=function(ce,ze){return new Vo(ce,ze)};zr.mergeOptions({closePopupOnClick:!0}),zr.include({openPopup:function(ce,ze,Ve){return this._initOverlay(Vo,ce,ze,Ve).openOn(this),this},closePopup:function(ce){return(ce=arguments.length?ce:this._popup)&&ce.close(),this}}),ka.include({bindPopup:function(ce,ze){return this._popup=this._initOverlay(Vo,this._popup,ce,ze),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ce){return this._popup&&(this instanceof Aa||(this._popup._source=this),this._popup._prepareOpen(ce||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(ce){return this._popup&&this._popup.setContent(ce),this},getPopup:function(){return this._popup},_openPopup:function(ce){if(this._popup&&this._map){stop(ce);var ze=ce.layer||ce.target;this._popup._source!==ze||ze instanceof ho?(this._popup._source=ze,this.openPopup(ce.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ce.latlng)}},_movePopup:function(ce){this._popup.setLatLng(ce.latlng)},_onKeyPress:function(ce){13===ce.originalEvent.keyCode&&this._openPopup(ce)}});var Ho=Bo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ce){Bo.prototype.onAdd.call(this,ce),this.setOpacity(this.options.opacity),ce.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ce){Bo.prototype.onRemove.call(this,ce),ce.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ce=Bo.prototype.getEvents.call(this);return this.options.permanent||(ce.preclick=this.close),ce},_initLayout:function(){var ce="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=create$1("div",ce),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+stamp(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ce){var ze,Ve,qe=this._map,Ye=this._container,We=qe.latLngToContainerPoint(qe.getCenter()),Qe=qe.layerPointToContainerPoint(ce),Xe=this.options.direction,ot=Ye.offsetWidth,st=Ye.offsetHeight,mt=toPoint(this.options.offset),gt=this._getAnchor();"top"===Xe?(ze=ot/2,Ve=st):"bottom"===Xe?(ze=ot/2,Ve=0):"center"===Xe?(ze=ot/2,Ve=st/2):"right"===Xe?(ze=0,Ve=st/2):"left"===Xe?(ze=ot,Ve=st/2):Qe.xthis.options.maxZoom||Veqe&&this._retainParent(Ye,We,Qe,qe))},_retainChildren:function(ce,ze,Ve,qe){for(var Ye=2*ce;Ye<2*ce+2;Ye++)for(var We=2*ze;We<2*ze+2;We++){var Qe=new Point(Ye,We);Qe.z=Ve+1;var Xe=this._tileCoordsToKey(Qe),ot=this._tiles[Xe];ot&&ot.active?ot.retain=!0:(ot&&ot.loaded&&(ot.retain=!0),Ve+1this.options.maxZoom||void 0!==this.options.minZoom&&Ye1)this._setView(ce,Ve);else{for(var gt=Ye.min.y;gt<=Ye.max.y;gt++)for(var yt=Ye.min.x;yt<=Ye.max.x;yt++){var bt=new Point(yt,gt);if(bt.z=this._tileZoom,this._isValidTile(bt)){var vt=this._tiles[this._tileCoordsToKey(bt)];vt?vt.current=!0:Qe.push(bt)}}if(Qe.sort((function(ce,ze){return ce.distanceTo(We)-ze.distanceTo(We)})),0!==Qe.length){this._loading||(this._loading=!0,this.fire("loading"));var wt=document.createDocumentFragment();for(yt=0;ytVe.max.x)||!ze.wrapLat&&(ce.yVe.max.y))return!1}if(!this.options.bounds)return!0;var qe=this._tileCoordsToBounds(ce);return toLatLngBounds(this.options.bounds).overlaps(qe)},_keyToBounds:function(ce){return this._tileCoordsToBounds(this._keyToTileCoords(ce))},_tileCoordsToNwSe:function(ce){var ze=this._map,Ve=this.getTileSize(),qe=ce.scaleBy(Ve),Ye=qe.add(Ve);return[ze.unproject(qe,ce.z),ze.unproject(Ye,ce.z)]},_tileCoordsToBounds:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=new LatLngBounds(ze[0],ze[1]);return this.options.noWrap||(Ve=this._map.wrapLatLngBounds(Ve)),Ve},_tileCoordsToKey:function(ce){return ce.x+":"+ce.y+":"+ce.z},_keyToTileCoords:function(ce){var ze=ce.split(":"),Ve=new Point(+ze[0],+ze[1]);return Ve.z=+ze[2],Ve},_removeTile:function(ce){var ze=this._tiles[ce];ze&&(remove(ze.el),delete this._tiles[ce],this.fire("tileunload",{tile:ze.el,coords:this._keyToTileCoords(ce)}))},_initTile:function(ce){addClass(ce,"leaflet-tile");var ze=this.getTileSize();ce.style.width=ze.x+"px",ce.style.height=ze.y+"px",ce.onselectstart=falseFn,ce.onmousemove=falseFn,Ei.ielt9&&this.options.opacity<1&&setOpacity(ce,this.options.opacity)},_addTile:function(ce,ze){var Ve=this._getTilePos(ce),qe=this._tileCoordsToKey(ce),Ye=this.createTile(this._wrapCoords(ce),bind(this._tileReady,this,ce));this._initTile(Ye),this.createTile.length<2&&requestAnimFrame(bind(this._tileReady,this,ce,null,Ye)),setPosition(Ye,Ve),this._tiles[qe]={el:Ye,coords:ce,current:!0},ze.appendChild(Ye),this.fire("tileloadstart",{tile:Ye,coords:ce})},_tileReady:function(ce,ze,Ve){ze&&this.fire("tileerror",{error:ze,tile:Ve,coords:ce});var qe=this._tileCoordsToKey(ce);(Ve=this._tiles[qe])&&(Ve.loaded=+new Date,this._map._fadeAnimated?(setOpacity(Ve.el,0),cancelAnimFrame(this._fadeFrame),this._fadeFrame=requestAnimFrame(this._updateOpacity,this)):(Ve.active=!0,this._pruneTiles()),ze||(addClass(Ve.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:Ve.el,coords:ce})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ei.ielt9||!this._map._fadeAnimated?requestAnimFrame(this._pruneTiles,this):setTimeout(bind(this._pruneTiles,this),250)))},_getTilePos:function(ce){return ce.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ce){var ze=new Point(this._wrapX?wrapNum(ce.x,this._wrapX):ce.x,this._wrapY?wrapNum(ce.y,this._wrapY):ce.y);return ze.z=ce.z,ze},_pxBoundsToTileRange:function(ce){var ze=this.getTileSize();return new Bounds(ce.min.unscaleBy(ze).floor(),ce.max.unscaleBy(ze).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ce in this._tiles)if(!this._tiles[ce].loaded)return!1;return!0}});function gridLayer(ce){return new Wo(ce)}var $o=Wo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ce,ze){this._url=ce,(ze=setOptions(this,ze)).detectRetina&&Ei.retina&&ze.maxZoom>0?(ze.tileSize=Math.floor(ze.tileSize/2),ze.zoomReverse?(ze.zoomOffset--,ze.minZoom=Math.min(ze.maxZoom,ze.minZoom+1)):(ze.zoomOffset++,ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom-1)),ze.minZoom=Math.max(0,ze.minZoom)):ze.zoomReverse?ze.minZoom=Math.min(ze.maxZoom,ze.minZoom):ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom),"string"==typeof ze.subdomains&&(ze.subdomains=ze.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ce,ze){return this._url===ce&&void 0===ze&&(ze=!0),this._url=ce,ze||this.redraw(),this},createTile:function(ce,ze){var Ve=document.createElement("img");return on(Ve,"load",bind(this._tileOnLoad,this,ze,Ve)),on(Ve,"error",bind(this._tileOnError,this,ze,Ve)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(Ve.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(Ve.referrerPolicy=this.options.referrerPolicy),Ve.alt="",Ve.src=this.getTileUrl(ce),Ve},getTileUrl:function(ce){var ze={r:Ei.retina?"@2x":"",s:this._getSubdomain(ce),x:ce.x,y:ce.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var Ve=this._globalTileRange.max.y-ce.y;this.options.tms&&(ze.y=Ve),ze["-y"]=Ve}return template(this._url,extend(ze,this.options))},_tileOnLoad:function(ce,ze){Ei.ielt9?setTimeout(bind(ce,this,null,ze),0):ce(null,ze)},_tileOnError:function(ce,ze,Ve){var qe=this.options.errorTileUrl;qe&&ze.getAttribute("src")!==qe&&(ze.src=qe),ce(Ve,ze)},_onTileRemove:function(ce){ce.tile.onload=null},_getZoomForUrl:function(){var ce=this._tileZoom,ze=this.options.maxZoom;return this.options.zoomReverse&&(ce=ze-ce),ce+this.options.zoomOffset},_getSubdomain:function(ce){var ze=Math.abs(ce.x+ce.y)%this.options.subdomains.length;return this.options.subdomains[ze]},_abortLoading:function(){var ce,ze;for(ce in this._tiles)if(this._tiles[ce].coords.z!==this._tileZoom&&((ze=this._tiles[ce].el).onload=falseFn,ze.onerror=falseFn,!ze.complete)){ze.src=Qe;var Ve=this._tiles[ce].coords;remove(ze),delete this._tiles[ce],this.fire("tileabort",{tile:ze,coords:Ve})}},_removeTile:function(ce){var ze=this._tiles[ce];if(ze)return ze.el.setAttribute("src",Qe),Wo.prototype._removeTile.call(this,ce)},_tileReady:function(ce,ze,Ve){if(this._map&&(!Ve||Ve.getAttribute("src")!==Qe))return Wo.prototype._tileReady.call(this,ce,ze,Ve)}});function tileLayer(ce,ze){return new $o(ce,ze)}var es=$o.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ce,ze){this._url=ce;var Ve=extend({},this.defaultWmsParams);for(var qe in ze)qe in this.options||(Ve[qe]=ze[qe]);var Ye=(ze=setOptions(this,ze)).detectRetina&&Ei.retina?2:1,We=this.getTileSize();Ve.width=We.x*Ye,Ve.height=We.y*Ye,this.wmsParams=Ve},onAdd:function(ce){this._crs=this.options.crs||ce.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var ze=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[ze]=this._crs.code,$o.prototype.onAdd.call(this,ce)},getTileUrl:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=this._crs,qe=toBounds(Ve.project(ze[0]),Ve.project(ze[1])),Ye=qe.min,We=qe.max,Qe=(this._wmsVersion>=1.3&&this._crs===_a?[Ye.y,Ye.x,We.y,We.x]:[Ye.x,Ye.y,We.x,We.y]).join(","),Xe=$o.prototype.getTileUrl.call(this,ce);return Xe+getParamString(this.wmsParams,Xe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Qe},setParams:function(ce,ze){return extend(this.wmsParams,ce),ze||this.redraw(),this}});function tileLayerWMS(ce,ze){return new es(ce,ze)}$o.WMS=es,tileLayer.wms=tileLayerWMS;var ts=ka.extend({options:{padding:.1},initialize:function(ce){setOptions(this,ce),stamp(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),addClass(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ce={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ce.zoomanim=this._onAnimZoom),ce},_onAnimZoom:function(ce){this._updateTransform(ce.center,ce.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ce,ze){var Ve=this._map.getZoomScale(ze,this._zoom),qe=this._map.getSize().multiplyBy(.5+this.options.padding),Ye=this._map.project(this._center,ze),We=qe.multiplyBy(-Ve).add(Ye).subtract(this._map._getNewPixelOrigin(ce,ze));Ei.any3d?setTransform(this._container,We,Ve):setPosition(this._container,We)},_reset:function(){for(var ce in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[ce]._reset()},_onZoomEnd:function(){for(var ce in this._layers)this._layers[ce]._project()},_updatePaths:function(){for(var ce in this._layers)this._layers[ce]._update()},_update:function(){var ce=this.options.padding,ze=this._map.getSize(),Ve=this._map.containerPointToLayerPoint(ze.multiplyBy(-ce)).round();this._bounds=new Bounds(Ve,Ve.add(ze.multiplyBy(1+2*ce)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ns=ts.extend({options:{tolerance:0},getEvents:function(){var ce=ts.prototype.getEvents.call(this);return ce.viewprereset=this._onViewPreReset,ce},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ts.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ce=this._container=document.createElement("canvas");on(ce,"mousemove",this._onMouseMove,this),on(ce,"click dblclick mousedown mouseup contextmenu",this._onClick,this),on(ce,"mouseout",this._handleMouseOut,this),ce._leaflet_disable_events=!0,this._ctx=ce.getContext("2d")},_destroyContainer:function(){cancelAnimFrame(this._redrawRequest),delete this._ctx,remove(this._container),off(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var ce in this._redrawBounds=null,this._layers)this._layers[ce]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=this._container,Ve=ce.getSize(),qe=Ei.retina?2:1;setPosition(ze,ce.min),ze.width=qe*Ve.x,ze.height=qe*Ve.y,ze.style.width=Ve.x+"px",ze.style.height=Ve.y+"px",Ei.retina&&this._ctx.scale(2,2),this._ctx.translate(-ce.min.x,-ce.min.y),this.fire("update")}},_reset:function(){ts.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ce){this._updateDashArray(ce),this._layers[stamp(ce)]=ce;var ze=ce._order={layer:ce,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=ze),this._drawLast=ze,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ce){this._requestRedraw(ce)},_removePath:function(ce){var ze=ce._order,Ve=ze.next,qe=ze.prev;Ve?Ve.prev=qe:this._drawLast=qe,qe?qe.next=Ve:this._drawFirst=Ve,delete ce._order,delete this._layers[stamp(ce)],this._requestRedraw(ce)},_updatePath:function(ce){this._extendRedrawBounds(ce),ce._project(),ce._update(),this._requestRedraw(ce)},_updateStyle:function(ce){this._updateDashArray(ce),this._requestRedraw(ce)},_updateDashArray:function(ce){if("string"==typeof ce.options.dashArray){var ze,Ve,qe=ce.options.dashArray.split(/[, ]+/),Ye=[];for(Ve=0;Ve')}}catch(ce){}return function(ce){return document.createElement("<"+ce+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),os={_initContainer:function(){this._container=create$1("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ts.prototype._update.call(this),this.fire("update"))},_initPath:function(ce){var ze=ce._container=rs("shape");addClass(ze,"leaflet-vml-shape "+(this.options.className||"")),ze.coordsize="1 1",ce._path=rs("path"),ze.appendChild(ce._path),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){var ze=ce._container;this._container.appendChild(ze),ce.options.interactive&&ce.addInteractiveTarget(ze)},_removePath:function(ce){var ze=ce._container;remove(ze),ce.removeInteractiveTarget(ze),delete this._layers[stamp(ce)]},_updateStyle:function(ce){var ze=ce._stroke,Ve=ce._fill,qe=ce.options,Ye=ce._container;Ye.stroked=!!qe.stroke,Ye.filled=!!qe.fill,qe.stroke?(ze||(ze=ce._stroke=rs("stroke")),Ye.appendChild(ze),ze.weight=qe.weight+"px",ze.color=qe.color,ze.opacity=qe.opacity,qe.dashArray?ze.dashStyle=We(qe.dashArray)?qe.dashArray.join(" "):qe.dashArray.replace(/( *, *)/g," "):ze.dashStyle="",ze.endcap=qe.lineCap.replace("butt","flat"),ze.joinstyle=qe.lineJoin):ze&&(Ye.removeChild(ze),ce._stroke=null),qe.fill?(Ve||(Ve=ce._fill=rs("fill")),Ye.appendChild(Ve),Ve.color=qe.fillColor||qe.color,Ve.opacity=qe.fillOpacity):Ve&&(Ye.removeChild(Ve),ce._fill=null)},_updateCircle:function(ce){var ze=ce._point.round(),Ve=Math.round(ce._radius),qe=Math.round(ce._radiusY||Ve);this._setPath(ce,ce._empty()?"M0 0":"AL "+ze.x+","+ze.y+" "+Ve+","+qe+" 0,23592600")},_setPath:function(ce,ze){ce._path.v=ze},_bringToFront:function(ce){toFront(ce._container)},_bringToBack:function(ce){toBack(ce._container)}},ss=Ei.vml?rs:svgCreate,ls=ts.extend({_initContainer:function(){this._container=ss("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ss("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){remove(this._container),off(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=ce.getSize(),Ve=this._container;this._svgSize&&this._svgSize.equals(ze)||(this._svgSize=ze,Ve.setAttribute("width",ze.x),Ve.setAttribute("height",ze.y)),setPosition(Ve,ce.min),Ve.setAttribute("viewBox",[ce.min.x,ce.min.y,ze.x,ze.y].join(" ")),this.fire("update")}},_initPath:function(ce){var ze=ce._path=ss("path");ce.options.className&&addClass(ze,ce.options.className),ce.options.interactive&&addClass(ze,"leaflet-interactive"),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ce._path),ce.addInteractiveTarget(ce._path)},_removePath:function(ce){remove(ce._path),ce.removeInteractiveTarget(ce._path),delete this._layers[stamp(ce)]},_updatePath:function(ce){ce._project(),ce._update()},_updateStyle:function(ce){var ze=ce._path,Ve=ce.options;ze&&(Ve.stroke?(ze.setAttribute("stroke",Ve.color),ze.setAttribute("stroke-opacity",Ve.opacity),ze.setAttribute("stroke-width",Ve.weight),ze.setAttribute("stroke-linecap",Ve.lineCap),ze.setAttribute("stroke-linejoin",Ve.lineJoin),Ve.dashArray?ze.setAttribute("stroke-dasharray",Ve.dashArray):ze.removeAttribute("stroke-dasharray"),Ve.dashOffset?ze.setAttribute("stroke-dashoffset",Ve.dashOffset):ze.removeAttribute("stroke-dashoffset")):ze.setAttribute("stroke","none"),Ve.fill?(ze.setAttribute("fill",Ve.fillColor||Ve.color),ze.setAttribute("fill-opacity",Ve.fillOpacity),ze.setAttribute("fill-rule",Ve.fillRule||"evenodd")):ze.setAttribute("fill","none"))},_updatePoly:function(ce,ze){this._setPath(ce,pointsToPath(ce._parts,ze))},_updateCircle:function(ce){var ze=ce._point,Ve=Math.max(Math.round(ce._radius),1),qe="a"+Ve+","+(Math.max(Math.round(ce._radiusY),1)||Ve)+" 0 1,0 ",Ye=ce._empty()?"M0 0":"M"+(ze.x-Ve)+","+ze.y+qe+2*Ve+",0 "+qe+2*-Ve+",0 ";this._setPath(ce,Ye)},_setPath:function(ce,ze){ce._path.setAttribute("d",ze)},_bringToFront:function(ce){toFront(ce._path)},_bringToBack:function(ce){toBack(ce._path)}});function svg(ce){return Ei.svg||Ei.vml?new ls(ce):null}Ei.vml&&ls.include(os),zr.include({getRenderer:function(ce){var ze=ce.options.renderer||this._getPaneRenderer(ce.options.pane)||this.options.renderer||this._renderer;return ze||(ze=this._renderer=this._createRenderer()),this.hasLayer(ze)||this.addLayer(ze),ze},_getPaneRenderer:function(ce){if("overlayPane"===ce||void 0===ce)return!1;var ze=this._paneRenderers[ce];return void 0===ze&&(ze=this._createRenderer({pane:ce}),this._paneRenderers[ce]=ze),ze},_createRenderer:function(ce){return this.options.preferCanvas&&canvas(ce)||svg(ce)}});var cs=ko.extend({initialize:function(ce,ze){ko.prototype.initialize.call(this,this._boundsToLatLngs(ce),ze)},setBounds:function(ce){return this.setLatLngs(this._boundsToLatLngs(ce))},_boundsToLatLngs:function(ce){return[(ce=toLatLngBounds(ce)).getSouthWest(),ce.getNorthWest(),ce.getNorthEast(),ce.getSouthEast()]}});function rectangle(ce,ze){return new cs(ce,ze)}ls.create=ss,ls.pointsToPath=pointsToPath,Oo.geometryToLayer=geometryToLayer,Oo.coordsToLatLng=coordsToLatLng,Oo.coordsToLatLngs=coordsToLatLngs,Oo.latLngToCoords=latLngToCoords,Oo.latLngsToCoords=latLngsToCoords,Oo.getFeature=getFeature,Oo.asFeature=asFeature,zr.mergeOptions({boxZoom:!0});var ds=Ur.extend({initialize:function(ce){this._map=ce,this._container=ce._container,this._pane=ce._panes.overlayPane,this._resetStateTimeout=0,ce.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){remove(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ce){if(!ce.shiftKey||1!==ce.which&&1!==ce.button)return!1;this._clearDeferredResetState(),this._resetState(),dr(),disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(ce),on(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ce){this._moved||(this._moved=!0,this._box=create$1("div","leaflet-zoom-box",this._container),addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ce);var ze=new Bounds(this._point,this._startPoint),Ve=ze.getSize();setPosition(this._box,ze.min),this._box.style.width=Ve.x+"px",this._box.style.height=Ve.y+"px"},_finish:function(){this._moved&&(remove(this._box),removeClass(this._container,"leaflet-crosshair")),ur(),enableImageDrag(),off(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ce){if((1===ce.which||1===ce.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(bind(this._resetState,this),0);var ze=new LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(ze).fire("boxzoomend",{boxZoomBounds:ze})}},_onKeyDown:function(ce){27===ce.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});zr.addInitHook("addHandler","boxZoom",ds),zr.mergeOptions({doubleClickZoom:!0});var us=Ur.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ce){var ze=this._map,Ve=ze.getZoom(),qe=ze.options.zoomDelta,Ye=ce.originalEvent.shiftKey?Ve-qe:Ve+qe;"center"===ze.options.doubleClickZoom?ze.setZoom(Ye):ze.setZoomAround(ce.containerPoint,Ye)}});zr.addInitHook("addHandler","doubleClickZoom",us),zr.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ps=Ur.extend({addHooks:function(){if(!this._draggable){var ce=this._map;this._draggable=new Gr(ce._mapPane,ce._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ce.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ce.on("zoomend",this._onZoomEnd,this),ce.whenReady(this._onZoomEnd,this))}addClass(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){removeClass(this._map._container,"leaflet-grab"),removeClass(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ce=this._map;if(ce._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var ze=toLatLngBounds(this._map.options.maxBounds);this._offsetLimit=toBounds(this._map.latLngToContainerPoint(ze.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(ze.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ce.fire("movestart").fire("dragstart"),ce.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ce){if(this._map.options.inertia){var ze=this._lastTime=+new Date,Ve=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(Ve),this._times.push(ze),this._prunePositions(ze)}this._map.fire("move",ce).fire("drag",ce)},_prunePositions:function(ce){for(;this._positions.length>1&&ce-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ce=this._map.getSize().divideBy(2),ze=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=ze.subtract(ce).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ce,ze){return ce-(ce-ze)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var ce=this._draggable._newPos.subtract(this._draggable._startPos),ze=this._offsetLimit;ce.xze.max.x&&(ce.x=this._viscousLimit(ce.x,ze.max.x)),ce.y>ze.max.y&&(ce.y=this._viscousLimit(ce.y,ze.max.y)),this._draggable._newPos=this._draggable._startPos.add(ce)}},_onPreDragWrap:function(){var ce=this._worldWidth,ze=Math.round(ce/2),Ve=this._initialWorldOffset,qe=this._draggable._newPos.x,Ye=(qe-ze+Ve)%ce+ze-Ve,We=(qe+ze+Ve)%ce-ze-Ve,Qe=Math.abs(Ye+Ve)0?We:-We))-ze;this._delta=0,this._startTime=null,Qe&&("center"===ce.options.scrollWheelZoom?ce.setZoom(ze+Qe):ce.setZoomAround(this._lastMousePos,ze+Qe))}});zr.addInitHook("addHandler","scrollWheelZoom",fs);var ms=600;zr.mergeOptions({tapHold:Ei.touchNative&&Ei.safari&&Ei.mobile,tapTolerance:15});var gs=Ur.extend({addHooks:function(){on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ce){if(clearTimeout(this._holdTimeout),1===ce.touches.length){var ze=ce.touches[0];this._startPos=this._newPos=new Point(ze.clientX,ze.clientY),this._holdTimeout=setTimeout(bind((function(){this._cancel(),this._isTapValid()&&(on(document,"touchend",preventDefault),on(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",ze))}),this),ms),on(document,"touchend touchcancel contextmenu",this._cancel,this),on(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function cancelClickPrevent(){off(document,"touchend",preventDefault),off(document,"touchend touchcancel",cancelClickPrevent)},_cancel:function(){clearTimeout(this._holdTimeout),off(document,"touchend touchcancel contextmenu",this._cancel,this),off(document,"touchmove",this._onMove,this)},_onMove:function(ce){var ze=ce.touches[0];this._newPos=new Point(ze.clientX,ze.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ce,ze){var Ve=new MouseEvent(ce,{bubbles:!0,cancelable:!0,view:window,screenX:ze.screenX,screenY:ze.screenY,clientX:ze.clientX,clientY:ze.clientY});Ve._simulated=!0,ze.target.dispatchEvent(Ve)}});zr.addInitHook("addHandler","tapHold",gs),zr.mergeOptions({touchZoom:Ei.touch,bounceAtZoomLimits:!0});var ys=Ur.extend({addHooks:function(){addClass(this._map._container,"leaflet-touch-zoom"),on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){removeClass(this._map._container,"leaflet-touch-zoom"),off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ce){var ze=this._map;if(ce.touches&&2===ce.touches.length&&!ze._animatingZoom&&!this._zooming){var Ve=ze.mouseEventToContainerPoint(ce.touches[0]),qe=ze.mouseEventToContainerPoint(ce.touches[1]);this._centerPoint=ze.getSize()._divideBy(2),this._startLatLng=ze.containerPointToLatLng(this._centerPoint),"center"!==ze.options.touchZoom&&(this._pinchStartLatLng=ze.containerPointToLatLng(Ve.add(qe)._divideBy(2))),this._startDist=Ve.distanceTo(qe),this._startZoom=ze.getZoom(),this._moved=!1,this._zooming=!0,ze._stop(),on(document,"touchmove",this._onTouchMove,this),on(document,"touchend touchcancel",this._onTouchEnd,this),preventDefault(ce)}},_onTouchMove:function(ce){if(ce.touches&&2===ce.touches.length&&this._zooming){var ze=this._map,Ve=ze.mouseEventToContainerPoint(ce.touches[0]),qe=ze.mouseEventToContainerPoint(ce.touches[1]),Ye=Ve.distanceTo(qe)/this._startDist;if(this._zoom=ze.getScaleZoom(Ye,this._startZoom),!ze.options.bounceAtZoomLimits&&(this._zoomze.getMaxZoom()&&Ye>1)&&(this._zoom=ze._limitZoom(this._zoom)),"center"===ze.options.touchZoom){if(this._center=this._startLatLng,1===Ye)return}else{var We=Ve._add(qe)._divideBy(2)._subtract(this._centerPoint);if(1===Ye&&0===We.x&&0===We.y)return;this._center=ze.unproject(ze.project(this._pinchStartLatLng,this._zoom).subtract(We),this._zoom)}this._moved||(ze._moveStart(!0,!1),this._moved=!0),cancelAnimFrame(this._animRequest);var Qe=bind(ze._move,ze,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimFrame(Qe,this,!0),preventDefault(ce)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimFrame(this._animRequest),off(document,"touchmove",this._onTouchMove,this),off(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});zr.addInitHook("addHandler","touchZoom",ys),zr.BoxZoom=ds,zr.DoubleClickZoom=us,zr.Drag=ps,zr.Keyboard=hs,zr.ScrollWheelZoom=fs,zr.TapHold=gs,zr.TouchZoom=ys,ce.Bounds=Bounds,ce.Browser=Ei,ce.CRS=wt,ce.Canvas=ns,ce.Circle=_o,ce.CircleMarker=go,ce.Class=Class,ce.Control=Br,ce.DivIcon=Uo,ce.DivOverlay=Bo,ce.DomEvent=jr,ce.DomUtil=Tr,ce.Draggable=Gr,ce.Evented=yt,ce.FeatureGroup=Aa,ce.GeoJSON=Oo,ce.GridLayer=Wo,ce.Handler=Ur,ce.Icon=Ba,ce.ImageOverlay=Ao,ce.LatLng=LatLng,ce.LatLngBounds=LatLngBounds,ce.Layer=ka,ce.LayerGroup=xa,ce.LineUtil=Zr,ce.Map=zr,ce.Marker=po,ce.Mixin=Wr,ce.Path=ho,ce.Point=Point,ce.PolyUtil=Jr,ce.Polygon=ko,ce.Polyline=Co,ce.Popup=Vo,ce.PosAnimation=Ir,ce.Projection=ba,ce.Rectangle=cs,ce.Renderer=ts,ce.SVG=ls,ce.SVGOverlay=Fo,ce.TileLayer=$o,ce.Tooltip=Ho,ce.Transformation=Transformation,ce.Util=mt,ce.VideoOverlay=jo,ce.bind=bind,ce.bounds=toBounds,ce.canvas=canvas,ce.circle=circle,ce.circleMarker=circleMarker,ce.control=control,ce.divIcon=divIcon,ce.extend=extend,ce.featureGroup=featureGroup,ce.geoJSON=geoJSON,ce.geoJson=To,ce.gridLayer=gridLayer,ce.icon=icon,ce.imageOverlay=imageOverlay,ce.latLng=toLatLng,ce.latLngBounds=toLatLngBounds,ce.layerGroup=layerGroup,ce.map=createMap,ce.marker=marker,ce.point=toPoint,ce.polygon=polygon,ce.polyline=polyline,ce.popup=popup,ce.rectangle=rectangle,ce.setOptions=setOptions,ce.stamp=stamp,ce.svg=svg,ce.svgOverlay=svgOverlay,ce.tileLayer=tileLayer,ce.tooltip=tooltip,ce.transformation=toTransformation,ce.version=ze,ce.videoOverlay=videoOverlay;var bs=window.L;ce.noConflict=function(){return window.L=bs,this},window.L=ce}(ze)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Dt}));var qe=Ve(29),Ye=Ve(117),We=Ve(285),Qe=Ve(153),Xe=Ve(446);class ot extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var st=Ve(282);function preventDefault(ce){return ce.bindTemplate.to((ze=>{ze.target===ce.element&&ze.preventDefault()}))}var mt=Ve(55),gt=Ve(362),yt=Ve(77),bt=Ve(195),vt=Ve(8),wt=Ve(286),Ct=Ve(678);class Dt extends qe.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate,qe=this.t;this.options=ze||{},this.set("ariaLabel",qe("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ye.a,this.keystrokes=new Qe.a,this.set("class"),this.set("isCompact",!1),this.itemsView=new kt(ce),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const Xe="rtl"===ce.uiLanguageDirection;this._focusCycler=new We.a({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[Xe?"arrowright":"arrowleft","arrowup"],focusNext:[Xe?"arrowleft":"arrowright","arrowdown"]}});const ot=["ck","ck-toolbar",Ve.to("class"),Ve.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&ot.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:ot,role:"toolbar","aria-label":Ve.to("ariaLabel"),style:{maxWidth:Ve.to("maxWidth")}},children:this.children,on:{mousedown:preventDefault(this)}}),this._behavior=this.options.shouldGroupWhenFull?new xt(this):new St(this)}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(ce,ze){const Ve=Object(wt.a)(ce),qe=Ve.items.filter(((ce,qe,Ye)=>"|"===ce||-1===Ve.removeItems.indexOf(ce)&&("-"===ce?!this.options.shouldGroupWhenFull||(Object(vt.b)("toolbarview-line-break-ignored-when-grouping-items",Ye),!1):!!ze.has(ce)||(Object(vt.b)("toolbarview-item-unavailable",{name:ce}),!1)))),Ye=this._cleanSeparators(qe).map((ce=>"|"===ce?new Xe.a:"-"===ce?new ot:ze.create(ce)));this.items.addMany(Ye)}_cleanSeparators(ce){const nonSeparatorPredicate=ce=>"-"!==ce&&"|"!==ce,ze=ce.length,Ve=ce.findIndex(nonSeparatorPredicate),qe=ze-ce.slice().reverse().findIndex(nonSeparatorPredicate);return ce.slice(Ve,qe).filter(((ce,ze,Ve)=>{if(nonSeparatorPredicate(ce))return!0;return!(ze>0&&Ve[ze-1]===ce)}))}}class kt extends qe.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class St{constructor(ce){const ze=ce.bindTemplate;ce.set("isVertical",!1),ce.itemsView.children.bindTo(ce.items).using((ce=>ce)),ce.focusables.bindTo(ce.items).using((ce=>ce)),ce.extendTemplate({attributes:{class:[ze.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class xt{constructor(ce){this.view=ce,this.viewChildren=ce.children,this.viewFocusables=ce.focusables,this.viewItemsView=ce.itemsView,this.viewFocusTracker=ce.focusTracker,this.viewLocale=ce.locale,this.ungroupedItems=ce.createCollection(),this.groupedItems=ce.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,ce.itemsView.children.bindTo(this.ungroupedItems).using((ce=>ce)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),ce.children.on("add",this._updateFocusCycleableItems.bind(this)),ce.children.on("remove",this._updateFocusCycleableItems.bind(this)),ce.items.on("change",((ce,ze)=>{const Ve=ze.index;for(const ce of ze.removed)Ve>=this.ungroupedItems.length?this.groupedItems.remove(ce):this.ungroupedItems.remove(ce);for(let ce=Ve;cethis.ungroupedItems.length?this.groupedItems.add(qe,ce-this.ungroupedItems.length):this.ungroupedItems.add(qe,ce)}this._updateGrouping()})),ce.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(ce){this.viewElement=ce.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(ce)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Object(gt.a)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const ce=this.groupedItems.length;let ze;for(;this._areItemsOverflowing;)this._groupLastItem(),ze=!0;if(!ze&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==ce&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const ce=this.viewElement,ze=this.viewLocale.uiLanguageDirection,Ve=new mt.a(ce.lastChild),qe=new mt.a(ce);if(!this.cachedPadding){const Ve=yt.a.window.getComputedStyle(ce),qe="ltr"===ze?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(Ve[qe])}return"ltr"===ze?Ve.right>qe.right-this.cachedPadding:Ve.left{ce&&ce===ze.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),ce=ze.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(ce){ce.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Xe.a),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const ce=this.viewLocale,ze=ce.t,Ve=Object(bt.c)(ce);return Ve.class="ck-toolbar__grouped-dropdown",Ve.panelPosition="ltr"===ce.uiLanguageDirection?"sw":"se",Object(bt.b)(Ve,[]),Ve.buttonView.set({label:ze("Show more items"),tooltip:!0,tooltipPosition:"rtl"===ce.uiLanguageDirection?"se":"sw",icon:Ct.a}),Ve.toolbarView.items.bindTo(this.groupedItems).using((ce=>ce)),Ve}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((ce=>{this.viewFocusables.add(ce)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="spinner--JOvoXr-6M5",ot="double-bounce1--bxN5IINllU",st="double-bounce2---16LSNss73";class mt extends Ye.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},qe=Qe()(Xe,ze);return Ye.a.createElement("div",{className:qe,style:Ve},Ye.a.createElement("div",{className:ot}),Ye.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";ze.a=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(166);class Ye extends qe.a{constructor(ce,ze,Ve){super(ce,ze),this.startRange=Ve,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(165),Ye=Ve(8),We=Ve(92);Ve(325);class Qe{constructor(ce){this.parent=null,this._attrs=Object(qe.a)(ce)}get index(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildIndex(this)))throw new Ye.a("model-node-not-found-in-parent",this);return ce}get startOffset(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildStartOffset(this)))throw new Ye.a("model-node-not-found-in-parent",this);return ce}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce+1)||null}get previousSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce-1)||null}get root(){let ce=this;for(;ce.parent;)ce=ce.parent;return ce}isAttached(){return this.root.is("rootElement")}getPath(){const ce=[];let ze=this;for(;ze.parent;)ce.unshift(ze.startOffset),ze=ze.parent;return ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),qe=ce.getAncestors(ze);let Ye=0;for(;Ve[Ye]==qe[Ye]&&Ve[Ye];)Ye++;return 0===Ye?null:Ve[Ye-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),qe=Object(We.a)(ze,Ve);switch(qe){case"prefix":return!0;case"extension":return!1;default:return ze[qe](ce[ze[0]]=ze[1],ce)),{})),ce}is(ce){return"node"===ce||"model:node"===ce}_clone(){return new Qe(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(ce,ze){this._attrs.set(ce,ze)}_setAttributesTo(ce){this._attrs=Object(qe.a)(ce)}_removeAttribute(ce){return this._attrs.delete(ce)}_clearAttributes(){this._attrs.clear()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(16),Ye=Ve(39),We=Ve(25);class Qe extends qe.a{constructor(ce,ze){super(ce,ze),bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"liveRange"===ce||"model:liveRange"===ce||"range"==ce||"model:range"===ce}toRange(){return new qe.a(this.start,this.end)}static fromRange(ce){return new Qe(ce.start,ce.end)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce),Ve=qe.a._createFromRanges(ze),Ye=!Ve.isEqual(this),We=doesOperationChangeRangeContent(this,ce);let Qe=null;if(Ye){"$graveyard"==Ve.root.rootName&&(Qe="remove"==ce.type?ce.sourcePosition:ce.deletionPosition);const ze=this.toRange();this.start=Ve.start,this.end=Ve.end,this.fire("change:range",ze,{deletionPosition:Qe})}else We&&this.fire("change:content",this.toRange(),{deletionPosition:Qe})}function doesOperationChangeRangeContent(ce,ze){switch(ze.type){case"insert":return ce.containsPosition(ze.position);case"move":case"remove":case"reinsert":case"merge":return ce.containsPosition(ze.sourcePosition)||ce.start.isEqual(ze.sourcePosition)||ce.containsPosition(ze.targetPosition);case"split":return ce.containsPosition(ze.splitPosition)||ce.containsPosition(ze.insertionPosition)}return!1}Object(We.a)(Qe,Ye.c)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(36),ot=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(ce,ze){var Ve=withMimeType(ce);if("string"!=typeof Ve.path){var qe=ce.webkitRelativePath;Object.defineProperty(Ve,"path",{value:"string"==typeof ze?ze:"string"==typeof qe&&qe.length>0?qe:ce.name,writable:!1,configurable:!1,enumerable:!0})}return Ve}function withMimeType(ce){var ze=ce.name;if(ze&&-1!==ze.lastIndexOf(".")&&!ce.type){var Ve=ze.split(".").pop().toLowerCase(),qe=ot.get(Ve);qe&&Object.defineProperty(ce,"type",{value:qe,writable:!1,configurable:!1,enumerable:!0})}return ce}var st=[".DS_Store","Thumbs.db"];function isDataTransfer(ce){return isObject(ce.dataTransfer)}function isChangeEvt(ce){return isObject(ce)&&isObject(ce.target)}function isObject(ce){return"object"==typeof ce&&null!==ce}function getInputFiles(ce){return fromList(ce.target.files).map((function(ce){return toFileWithPath(ce)}))}function getFsHandleFiles(ce){return Object(Xe.b)(this,void 0,void 0,(function(){return Object(Xe.d)(this,(function(ze){switch(ze.label){case 0:return[4,Promise.all(ce.map((function(ce){return ce.getFile()})))];case 1:return[2,ze.sent().map((function(ce){return toFileWithPath(ce)}))]}}))}))}function getDataTransferFiles(ce,ze){return Object(Xe.b)(this,void 0,void 0,(function(){var Ve;return Object(Xe.d)(this,(function(qe){switch(qe.label){case 0:return null===ce?[2,[]]:ce.items?(Ve=fromList(ce.items).filter((function(ce){return"file"===ce.kind})),"drop"!==ze?[2,Ve]:[4,Promise.all(Ve.map(toFilePromises))]):[3,2];case 1:return[2,noIgnoredFiles(flatten(qe.sent()))];case 2:return[2,noIgnoredFiles(fromList(ce.files).map((function(ce){return toFileWithPath(ce)})))]}}))}))}function noIgnoredFiles(ce){return ce.filter((function(ce){return-1===st.indexOf(ce.name)}))}function fromList(ce){if(null===ce)return[];for(var ze=[],Ve=0;Vece.length)&&(ze=ce.length);for(var Ve=0,qe=new Array(ze);VeVe)return[!1,Dt(Ve)];if(ce.sizeVe)return[!1,Dt(Ve)]}return[!0,null]}function isDefined(ce){return null!=ce}function allFilesAccepted(ce){var ze=ce.files,Ve=ce.accept,qe=ce.minSize,Ye=ce.maxSize,We=ce.multiple,Qe=ce.maxFiles;return!(!We&&ze.length>1||We&&Qe>=1&&ze.length>Qe)&&ze.every((function(ce){var ze=_slicedToArray(fileAccepted(ce,Ve),1)[0],We=_slicedToArray(fileMatchSize(ce,qe,Ye),1)[0];return ze&&We}))}function isPropagationStopped(ce){return"function"==typeof ce.isPropagationStopped?ce.isPropagationStopped():void 0!==ce.cancelBubble&&ce.cancelBubble}function isEvtWithFiles(ce){return ce.dataTransfer?Array.prototype.some.call(ce.dataTransfer.types,(function(ce){return"Files"===ce||"application/x-moz-file"===ce})):!!ce.target&&!!ce.target.files}function onDocumentDragOver(ce){ce.preventDefault()}function isIe(ce){return-1!==ce.indexOf("MSIE")||-1!==ce.indexOf("Trident/")}function isEdge(ce){return-1!==ce.indexOf("Edge/")}function isIeOrEdge(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(ce)||isEdge(ce)}function composeEventHandlers(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve1?Ve-1:0),Ye=1;Yece.length)&&(ze=ce.length);for(var Ve=0,qe=new Array(ze);Ve=0||Object.prototype.propertyIsEnumerable.call(ce,Ve)&&(Ye[Ve]=ce[Ve])}return Ye}function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,qe,Ye={},We=Object.keys(ce);for(qe=0;qe=0||(Ye[Ve]=ce[Ve]);return Ye}var Lt=Object(qe.forwardRef)((function(ce,ze){var Ve=ce.children,We=useDropzone(_objectWithoutProperties(ce,xt)),Qe=We.open,Xe=_objectWithoutProperties(We,Et);return Object(qe.useImperativeHandle)(ze,(function(){return{open:Qe}}),[Qe]),Ye.a.createElement(qe.Fragment,null,Ve(es_objectSpread(es_objectSpread({},Xe),{},{open:Qe})))}));Lt.displayName="Dropzone";var Ft={disabled:!1,getFilesFromEvent:function fromEvent(ce){return Object(Xe.b)(this,void 0,void 0,(function(){return Object(Xe.d)(this,(function(ze){return isObject(ce)&&isDataTransfer(ce)?[2,getDataTransferFiles(ce.dataTransfer,ce.type)]:isChangeEvt(ce)?[2,getInputFiles(ce)]:Array.isArray(ce)&&ce.every((function(ce){return"getFile"in ce&&"function"==typeof ce.getFile}))?[2,getFsHandleFiles(ce)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Lt.defaultProps=Ft,Lt.propTypes={children:Qe.a.func,accept:Qe.a.oneOfType([Qe.a.string,Qe.a.arrayOf(Qe.a.string)]),multiple:Qe.a.bool,preventDropOnDocument:Qe.a.bool,noClick:Qe.a.bool,noKeyboard:Qe.a.bool,noDrag:Qe.a.bool,noDragEventsBubbling:Qe.a.bool,minSize:Qe.a.number,maxSize:Qe.a.number,maxFiles:Qe.a.number,disabled:Qe.a.bool,getFilesFromEvent:Qe.a.func,onFileDialogCancel:Qe.a.func,onFileDialogOpen:Qe.a.func,useFsAccessApi:Qe.a.bool,onDragEnter:Qe.a.func,onDragLeave:Qe.a.func,onDragOver:Qe.a.func,onDrop:Qe.a.func,onDropAccepted:Qe.a.func,onDropRejected:Qe.a.func,validator:Qe.a.func};ze.a=Lt;var Bt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=es_objectSpread(es_objectSpread({},Ft),ce),Ve=ze.accept,Ye=ze.disabled,We=ze.getFilesFromEvent,Qe=ze.maxSize,Xe=ze.minSize,ot=ze.multiple,st=ze.maxFiles,mt=ze.onDragEnter,gt=ze.onDragLeave,yt=ze.onDragOver,bt=ze.onDrop,vt=ze.onDropAccepted,wt=ze.onDropRejected,Ct=ze.onFileDialogCancel,Dt=ze.onFileDialogOpen,kt=ze.useFsAccessApi,xt=ze.preventDropOnDocument,Et=ze.noClick,Lt=ze.noKeyboard,Vt=ze.noDrag,Ht=ze.noDragEventsBubbling,Ut=ze.validator,Wt=Object(qe.useMemo)((function(){return"function"==typeof Dt?Dt:noop}),[Dt]),Jt=Object(qe.useMemo)((function(){return"function"==typeof Ct?Ct:noop}),[Ct]),Qt=Object(qe.useRef)(null),en=Object(qe.useRef)(null),rn=es_slicedToArray(Object(qe.useReducer)(reducer,Bt),2),ln=rn[0],mn=rn[1],gn=ln.isFocused,bn=ln.isFileDialogActive,wn=ln.draggedFiles,Cn=function onWindowFocus(){bn&&setTimeout((function(){en.current&&(en.current.files.length||(mn({type:"closeDialog"}),Jt()))}),300)};Object(qe.useEffect)((function(){return kt&&canUseFileSystemAccessAPI()?function(){}:(window.addEventListener("focus",Cn,!1),function(){window.removeEventListener("focus",Cn,!1)})}),[en,bn,Jt,kt]);var Sn=Object(qe.useRef)([]),En=function onDocumentDrop(ce){Qt.current&&Qt.current.contains(ce.target)||(ce.preventDefault(),Sn.current=[])};Object(qe.useEffect)((function(){return xt&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",En,!1)),function(){xt&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",En))}}),[Qt,xt]);var Tn=Object(qe.useCallback)((function(ce){var ze;ce.preventDefault(),ce.persist(),Ri(ce),Sn.current=[].concat(_arrayWithoutHoles(ze=Sn.current)||_iterableToArray(ze)||es_unsupportedIterableToArray(ze)||_nonIterableSpread(),[ce.target]),isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Ht||(mn({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(ce))}))}),[We,mt,Ht]),Ln=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce);var ze=isEvtWithFiles(ce);if(ze&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch(ce){}return ze&&yt&&yt(ce),!1}),[yt,Ht]),Fn=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce);var ze=Sn.current.filter((function(ce){return Qt.current&&Qt.current.contains(ce)})),Ve=ze.indexOf(ce.target);-1!==Ve&&ze.splice(Ve,1),Sn.current=ze,ze.length>0||(mn({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(ce)&>&>(ce))}),[Qt,gt,Ht]),Yn=Object(qe.useCallback)((function(ce,ze){var qe=[],Ye=[];ce.forEach((function(ce){var ze=es_slicedToArray(fileAccepted(ce,Ve),2),We=ze[0],ot=ze[1],st=es_slicedToArray(fileMatchSize(ce,Xe,Qe),2),mt=st[0],gt=st[1],yt=Ut?Ut(ce):null;if(We&&mt&&!yt)qe.push(ce);else{var bt=[ot,gt];yt&&(bt=bt.concat(yt)),Ye.push({file:ce,errors:bt.filter((function(ce){return ce}))})}})),(!ot&&qe.length>1||ot&&st>=1&&qe.length>st)&&(qe.forEach((function(ce){Ye.push({file:ce,errors:[St]})})),qe.splice(0)),mn({acceptedFiles:qe,fileRejections:Ye,type:"setFiles"}),bt&&bt(qe,Ye,ze),Ye.length>0&&wt&&wt(Ye,ze),qe.length>0&&vt&&vt(qe,ze)}),[mn,ot,Ve,Xe,Qe,st,bt,vt,wt,Ut]),Un=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce),Sn.current=[],isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Ht||Yn(ze,ce)})),mn({type:"reset"})}),[We,Yn,Ht]),Gn=Object(qe.useCallback)((function(){if(kt&&canUseFileSystemAccessAPI()){mn({type:"openDialog"}),Wt();var ce={multiple:ot,types:filePickerOptionsTypes(Ve)};window.showOpenFilePicker(ce).then((function(ce){return We(ce)})).then((function(ce){return Yn(ce,null)})).catch((function(ce){return Jt(ce)})).finally((function(){return mn({type:"closeDialog"})}))}else en.current&&(mn({type:"openDialog"}),Wt(),en.current.value=null,en.current.click())}),[mn,Wt,Jt,kt,Yn,Ve,ot]),Kn=Object(qe.useCallback)((function(ce){Qt.current&&Qt.current.isEqualNode(ce.target)&&(32!==ce.keyCode&&13!==ce.keyCode||(ce.preventDefault(),Gn()))}),[Qt,en,Gn]),Jn=Object(qe.useCallback)((function(){mn({type:"focus"})}),[]),Zn=Object(qe.useCallback)((function(){mn({type:"blur"})}),[]),Xn=Object(qe.useCallback)((function(){Et||(isIeOrEdge()?setTimeout(Gn,0):Gn())}),[en,Et,Gn]),ei=function composeHandler(ce){return Ye?null:ce},si=function composeKeyboardHandler(ce){return Lt?null:ei(ce)},_i=function composeDragHandler(ce){return Vt?null:ei(ce)},Ri=function stopPropagation(ce){Ht&&ce.stopPropagation()},Ci=Object(qe.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ve=void 0===ze?"ref":ze,qe=ce.role,We=ce.onKeyDown,Qe=ce.onFocus,Xe=ce.onBlur,ot=ce.onClick,st=ce.onDragEnter,mt=ce.onDragOver,gt=ce.onDragLeave,yt=ce.onDrop,bt=_objectWithoutProperties(ce,Pt);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:si(composeEventHandlers(We,Kn)),onFocus:si(composeEventHandlers(Qe,Jn)),onBlur:si(composeEventHandlers(Xe,Zn)),onClick:ei(composeEventHandlers(ot,Xn)),onDragEnter:_i(composeEventHandlers(st,Tn)),onDragOver:_i(composeEventHandlers(mt,Ln)),onDragLeave:_i(composeEventHandlers(gt,Fn)),onDrop:_i(composeEventHandlers(yt,Un)),role:"string"==typeof qe&&""!==qe?qe:"button"},Ve,Qt),Ye||Lt?{}:{tabIndex:0}),bt)}}),[Qt,Kn,Jn,Zn,Xn,Tn,Ln,Fn,Un,Lt,Vt,Ye]),Di=Object(qe.useCallback)((function(ce){ce.stopPropagation()}),[]),Ei=Object(qe.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,qe=void 0===ze?"ref":ze,Ye=ce.onChange,We=ce.onClick,Qe=_objectWithoutProperties(ce,Tt);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:Ve,multiple:ot,type:"file",style:{display:"none"},onChange:ei(composeEventHandlers(Ye,Un)),onClick:ei(composeEventHandlers(We,Di)),autoComplete:"off",tabIndex:-1},qe,en)),Qe)}}),[en,Ve,ot,Un,Ye]),Oi=wn.length,Ti=Oi>0&&allFilesAccepted({files:wn,accept:Ve,minSize:Xe,maxSize:Qe,multiple:ot,maxFiles:st}),er=Oi>0&&!Ti;return es_objectSpread(es_objectSpread({},ln),{},{isDragAccept:Ti,isDragReject:er,isFocused:gn&&!Ye,getRootProps:Ci,getInputProps:Ei,rootRef:Qt,inputRef:en,open:ei(Gn)})}function reducer(ce,ze){switch(ze.type){case"focus":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},Bt),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},ce),{},{isFileDialogActive:!1});case"setDraggedFiles":var Ve=ze.isDragActive,qe=ze.draggedFiles;return es_objectSpread(es_objectSpread({},ce),{},{draggedFiles:qe,isDragActive:Ve});case"setFiles":return es_objectSpread(es_objectSpread({},ce),{},{acceptedFiles:ze.acceptedFiles,fileRejections:ze.fileRejections});case"reset":return es_objectSpread({},Bt);default:return ce}}function noop(){}},function(ce,ze,Ve){"use strict";var qe=Ve(718),Ye=Ve(395),We=Ve(658),Qe=Object(We.a)(Object.keys,Object),Xe=Object.prototype.hasOwnProperty;var ot=function baseKeys(ce){if(!Object(Ye.a)(ce))return Qe(ce);var ze=[];for(var Ve in Object(ce))Xe.call(ce,Ve)&&"constructor"!=Ve&&ze.push(Ve);return ze},st=Ve(174);ze.a=function keys(ce){return Object(st.a)(ce)?Object(qe.a)(ce):ot(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return qe.a})),Ve.d(ze,"k",(function(){return Ye.a})),Ve.d(ze,"a",(function(){return We.a})),Ve.d(ze,"j",(function(){return We.b})),Ve.d(ze,"c",(function(){return Qe})),Ve.d(ze,"h",(function(){return Xe.a})),Ve.d(ze,"f",(function(){return getDataFromElement})),Ve.d(ze,"i",(function(){return ot.d})),Ve.d(ze,"g",(function(){return ot.c})),Ve.d(ze,"b",(function(){return st.a})),Ve.d(ze,"e",(function(){return mt.a})),Ve.d(ze,"l",(function(){return gt.a}));var qe=Ve(58),Ye=(Ve(199),Ve(25)),We=(Ve(39),Ve(42),Ve(8));class Qe{constructor(){this._replacedElements=[]}replace(ce,ze){this._replacedElements.push({element:ce,newElement:ze}),ce.style.display="none",ze&&ce.parentNode.insertBefore(ze,ce.nextSibling)}restore(){this._replacedElements.forEach((ce=>{let{element:ze,newElement:Ve}=ce;ze.style.display="",Ve&&Ve.remove()})),this._replacedElements=[]}}Ve(635),Ve(151);var Xe=Ve(77);function getDataFromElement(ce){return ce instanceof HTMLTextAreaElement?ce.value:ce.innerHTML}Ve(55),Ve(282),Ve(519),Ve(152),Ve(362),Ve(520);var ot=Ve(37),st=(Ve(442),Ve(634),Ve(129)),mt=Ve(283),gt=(Ve(117),Ve(153),Ve(91),Ve(165),Ve(198));Ve(114),Ve(325)},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function lexer(ce){for(var ze=[],Ve=0;Ve=48&&ot<=57||ot>=65&&ot<=90||ot>=97&&ot<=122||95===ot))break;Qe+=ce[Xe++]}if(!Qe)throw new TypeError("Missing parameter name at ".concat(Ve));ze.push({type:"NAME",index:Ve,value:Qe}),Ve=Xe}else ze.push({type:"CLOSE",index:Ve,value:ce[Ve++]});else ze.push({type:"OPEN",index:Ve,value:ce[Ve++]});else ze.push({type:"ESCAPED_CHAR",index:Ve++,value:ce[Ve++]});else ze.push({type:"MODIFIER",index:Ve,value:ce[Ve++]})}return ze.push({type:"END",index:Ve,value:""}),ze}function parse(ce,ze){void 0===ze&&(ze={});for(var Ve=lexer(ce),qe=ze.prefixes,Ye=void 0===qe?"./":qe,We="[^".concat(escapeString(ze.delimiter||"/#?"),"]+?"),Qe=[],Xe=0,ot=0,st="",tryConsume=function(ce){if(ot)?(?!\?)/g,qe=0,Ye=Ve.exec(ce.source);Ye;)ze.push({name:Ye[1]||qe++,prefix:"",suffix:"",modifier:"",pattern:""}),Ye=Ve.exec(ce.source);return ce}function arrayToRegexp(ce,ze,Ve){var qe=ce.map((function(ce){return pathToRegexp(ce,ze,Ve).source}));return new RegExp("(?:".concat(qe.join("|"),")"),flags(Ve))}function stringToRegexp(ce,ze,Ve){return tokensToRegexp(parse(ce,Ve),ze,Ve)}function tokensToRegexp(ce,ze,Ve){void 0===Ve&&(Ve={});for(var qe=Ve.strict,Ye=void 0!==qe&&qe,We=Ve.start,Qe=void 0===We||We,Xe=Ve.end,ot=void 0===Xe||Xe,st=Ve.encode,mt=void 0===st?function(ce){return ce}:st,gt=Ve.delimiter,yt=void 0===gt?"/#?":gt,bt=Ve.endsWith,vt="[".concat(escapeString(void 0===bt?"":bt),"]|$"),wt="[".concat(escapeString(yt),"]"),Ct=Qe?"^":"",Dt=0,kt=ce;Dt-1:void 0===Tt;Ye||(Ct+="(?:".concat(wt,"(?=").concat(vt,"))?")),Lt||(Ct+="(?=".concat(wt,"|").concat(vt,")"))}return new RegExp(Ct,flags(Ve))}function pathToRegexp(ce,ze,Ve){return ce instanceof RegExp?regexpToRegexp(ce,ze):Array.isArray(ce)?arrayToRegexp(ce,ze,Ve):stringToRegexp(ce,ze,Ve)}Ve.d(ze,"a",(function(){return compile})),Ve.d(ze,"b",(function(){return pathToRegexp}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(225),Ye=Ve(8);class We{constructor(ce){this._nodes=[],ce&&this._insertNodes(0,ce)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((ce,ze)=>ce+ze.offsetSize),0)}getNode(ce){return this._nodes[ce]||null}getNodeIndex(ce){const ze=this._nodes.indexOf(ce);return-1==ze?null:ze}getNodeStartOffset(ce){const ze=this.getNodeIndex(ce);return null===ze?null:this._nodes.slice(0,ze).reduce(((ce,ze)=>ce+ze.offsetSize),0)}indexToOffset(ce){if(ce==this._nodes.length)return this.maxOffset;const ze=this._nodes[ce];if(!ze)throw new Ye.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(ze)}offsetToIndex(ce){let ze=0;for(const Ve of this._nodes){if(ce>=ze&&ce1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(ce,ze)}toJSON(){return this._nodes.map((ce=>ce.toJSON()))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(20),Ye=Ve(225),We=Ve(16),Qe=Ve(39),Xe=Ve(8),ot=Ve(25),st=Ve(99);class mt{constructor(ce,ze,Ve){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,ce&&this.setTo(ce,ze,Ve)}get anchor(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.end:ce.start}return null}get focus(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.start:ce.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(ce){if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const qe of ce._ranges)if(ze.isEqual(qe)){Ve=!0;break}if(!Ve)return!1}return!0}*getRanges(){for(const ce of this._ranges)yield new We.a(ce.start,ce.end)}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]);else if(ce instanceof mt)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce&&"function"==typeof ce.getRanges)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce instanceof We.a)this._setRanges([ce],!!ze&&!!ze.backward);else if(ce instanceof qe.a)this._setRanges([new We.a(ce)]);else if(ce instanceof Ye.a){const Ye=!!Ve&&!!Ve.backward;let Qe;if("in"==ze)Qe=We.a._createIn(ce);else if("on"==ze)Qe=We.a._createOn(ce);else{if(void 0===ze)throw new Xe.a("model-selection-setto-required-second-parameter",[this,ce]);Qe=new We.a(qe.a._createAt(ce,ze))}this._setRanges([Qe],Ye)}else{if(!Object(st.a)(ce))throw new Xe.a("model-selection-setto-not-selectable",[this,ce]);this._setRanges(ce,ze&&!!ze.backward)}}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=(ce=Array.from(ce)).some((ze=>{if(!(ze instanceof We.a))throw new Xe.a("model-selection-set-ranges-not-range",[this,ce]);return this._ranges.every((ce=>!ce.isEqual(ze)))}));if(ce.length!==this._ranges.length||Ve){this._removeAllRanges();for(const ze of ce)this._pushRange(ze);this._lastRangeBackward=!!ze,this.fire("change:range",{directChange:!0})}}setFocus(ce,ze){if(null===this.anchor)throw new Xe.a("model-selection-setfocus-no-ranges",[this,ce]);const Ve=qe.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Ye=this.anchor;this._ranges.length&&this._popRange(),"before"==Ve.compareWith(Ye)?(this._pushRange(new We.a(Ve,Ye)),this._lastRangeBackward=!0):(this._pushRange(new We.a(Ye,Ve)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(ce){return this._attrs.get(ce)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(ce){return this._attrs.has(ce)}removeAttribute(ce){this.hasAttribute(ce)&&(this._attrs.delete(ce),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}setAttribute(ce,ze){this.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(ce){return"selection"===ce||"model:selection"===ce}*getSelectedBlocks(){const ce=new WeakSet;for(const ze of this.getRanges()){const Ve=getParentBlock(ze.start,ce);Ve&&isTopBlockInRange(Ve,ze)&&(yield Ve);for(const Ve of ze.getWalker()){const qe=Ve.item;"elementEnd"==Ve.type&&isUnvisitedTopBlock(qe,ce,ze)&&(yield qe)}const Ye=getParentBlock(ze.end,ce);Ye&&!ze.end.isTouching(qe.a._createAt(Ye,0))&&isTopBlockInRange(Ye,ze)&&(yield Ye)}}containsEntireContent(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root;const ze=qe.a._createAt(ce,0),Ve=qe.a._createAt(ce,"end");return ze.isTouching(this.getFirstPosition())&&Ve.isTouching(this.getLastPosition())}_pushRange(ce){this._checkRange(ce),this._ranges.push(new We.a(ce.start,ce.end))}_checkRange(ce){for(let ze=0;ze0;)this._popRange()}_popRange(){this._ranges.pop()}}function isUnvisitedBlock(ce,ze){return!ze.has(ce)&&(ze.add(ce),ce.root.document.model.schema.isBlock(ce)&&ce.parent)}function isUnvisitedTopBlock(ce,ze,Ve){return isUnvisitedBlock(ce,ze)&&isTopBlockInRange(ce,Ve)}function getParentBlock(ce,ze){const Ve=ce.parent.root.document.model.schema,qe=ce.parent.getAncestors({parentFirst:!0,includeSelf:!0});let Ye=!1;const We=qe.find((ce=>!Ye&&(Ye=Ve.isLimit(ce),!Ye&&isUnvisitedBlock(ce,ze))));return qe.forEach((ce=>ze.add(ce))),We}function isTopBlockInRange(ce,ze){const Ve=findAncestorBlock(ce);if(!Ve)return!0;return!ze.containsRange(We.a._createOn(Ve),!0)}function findAncestorBlock(ce){const ze=ce.root.document.model.schema;let Ve=ce.parent;for(;Ve;){if(ze.isBlock(Ve))return Ve;Ve=Ve.parent}}Object(ot.a)(mt,Qe.c)},function(ce,ze,Ve){"use strict";function autoParagraphEmptyRoots(ce){const{schema:ze,document:Ve}=ce.model;for(const qe of Ve.getRootNames()){const Ye=Ve.getRoot(qe);if(Ye.isEmpty&&!ze.checkChild(Ye,"$text")&&ze.checkChild(Ye,"paragraph"))return ce.insertElement("paragraph",Ye),!0}return!1}function isParagraphable(ce,ze,Ve){const qe=Ve.createContext(ce);return!!Ve.checkChild(qe,"paragraph")&&!!Ve.checkChild(qe.push("paragraph"),ze)}function wrapInParagraph(ce,ze){const Ve=ze.createElement("paragraph");return ze.insert(Ve,ce),ze.createPositionAt(Ve,0)}Ve.d(ze,"a",(function(){return autoParagraphEmptyRoots})),Ve.d(ze,"b",(function(){return isParagraphable})),Ve.d(ze,"c",(function(){return wrapInParagraph}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return mt})),Ve.d(ze,"c",(function(){return ot.c})),Ve.d(ze,"d",(function(){return ot.d})),Ve.d(ze,"e",(function(){return ot.e}));var qe=Ve(579),Ye=Ve(31),We=Ve(138),Qe=Ve(221),Xe=Ve(180),ot=Ve(74),st=Ve(8);class mt extends Ye.a{static get requires(){return[We.a]}static get pluginName(){return"WidgetToolbarRepository"}init(){const ce=this.editor;if(ce.plugins.has("BalloonToolbar")){const ze=ce.plugins.get("BalloonToolbar");this.listenTo(ze,"show",(ze=>{isWidgetSelected(ce.editing.view.document.selection)&&ze.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const ce of this._toolbarDefinitions.values())ce.view.destroy()}register(ce,ze){let{ariaLabel:Ve,items:qe,getRelatedElement:Ye,balloonClassName:We="ck-toolbar-container"}=ze;if(!qe.length)return void Object(st.b)("widget-toolbar-no-items",{toolbarId:ce});const Xe=this.editor,ot=Xe.t,mt=new Qe.a(Xe.locale);if(mt.ariaLabel=Ve||ot("Widget toolbar"),this._toolbarDefinitions.has(ce))throw new st.a("widget-toolbar-duplicated",this,{toolbarId:ce});mt.fillFromConfig(qe,Xe.ui.componentFactory),this._toolbarDefinitions.set(ce,{view:mt,getRelatedElement:Ye,balloonClassName:We})}_updateToolbarsVisibility(){let ce=0,ze=null,Ve=null;for(const qe of this._toolbarDefinitions.values()){const Ye=qe.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&Ye)if(this.editor.ui.focusTracker.isFocused){const We=Ye.getAncestors().length;We>ce&&(ce=We,ze=Ye,Ve=qe)}else this._isToolbarVisible(qe)&&this._hideToolbar(qe);else this._isToolbarInBalloon(qe)&&this._hideToolbar(qe)}Ve&&this._showToolbar(Ve,ze)}_hideToolbar(ce){this._balloon.remove(ce.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(ce,ze){this._isToolbarVisible(ce)?repositionContextualBalloon(this.editor,ze):this._isToolbarInBalloon(ce)||(this._balloon.add({view:ce.view,position:getBalloonPositionData(this.editor,ze),balloonClassName:ce.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const ce of this._toolbarDefinitions.values())if(this._isToolbarVisible(ce)){const ze=ce.getRelatedElement(this.editor.editing.view.document.selection);repositionContextualBalloon(this.editor,ze)}})))}_isToolbarVisible(ce){return this._balloon.visibleView===ce.view}_isToolbarInBalloon(ce){return this._balloon.hasView(ce.view)}}function repositionContextualBalloon(ce,ze){const Ve=ce.plugins.get("ContextualBalloon"),qe=getBalloonPositionData(ce,ze);Ve.updatePosition(qe)}function getBalloonPositionData(ce,ze){const Ve=ce.editing.view,qe=Xe.a.defaultPositions;return{target:Ve.domConverter.mapViewToDom(ze),positions:[qe.northArrowSouth,qe.northArrowSouthWest,qe.northArrowSouthEast,qe.southArrowNorth,qe.southArrowNorthWest,qe.southArrowNorthEast,qe.viewportStickyNorth]}}function isWidgetSelected(ce){const ze=ce.getSelectedElement();return!(!ze||!Object(ot.c)(ze))}var gt=Ve(132),yt=Ve(55),bt=Ve(92),vt=Ve(42),wt=Ve(25);class Ct{constructor(ce){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=ce,this._referenceCoordinates=null}begin(ce,ze,Ve){const qe=new yt.a(ze);this.activeHandlePosition=getHandlePosition(ce),this._referenceCoordinates=getAbsoluteBoundaryPoint(ze,getOppositePosition(this.activeHandlePosition)),this.originalWidth=qe.width,this.originalHeight=qe.height,this.aspectRatio=qe.width/qe.height;const Ye=Ve.style.width;Ye&&Ye.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(Ye):this.originalWidthPercents=calculateHostPercentageWidth(Ve,qe)}update(ce){this.proposedWidth=ce.width,this.proposedHeight=ce.height,this.proposedWidthPercents=ce.widthPercents,this.proposedHandleHostWidth=ce.handleHostWidth,this.proposedHandleHostHeight=ce.handleHostHeight}}function calculateHostPercentageWidth(ce,ze){const Ve=ce.parentElement,qe=parseFloat(Ve.ownerDocument.defaultView.getComputedStyle(Ve).width);return ze.width/qe*100}function getAbsoluteBoundaryPoint(ce,ze){const Ve=new yt.a(ce),qe=ze.split("-"),Ye={x:"right"==qe[1]?Ve.right:Ve.left,y:"bottom"==qe[0]?Ve.bottom:Ve.top};return Ye.x+=ce.ownerDocument.defaultView.scrollX,Ye.y+=ce.ownerDocument.defaultView.scrollY,Ye}function getHandlePosition(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ve of ze)if(ce.classList.contains(`ck-widget__resizer__handle-${Ve}`))return Ve}function getOppositePosition(ce){const ze=ce.split("-"),Ve={top:"bottom",bottom:"top",left:"right",right:"left"};return`${Ve[ze[0]]}-${Ve[ze[1]]}`}Object(wt.a)(Ct,vt.a);var Dt=Ve(29);class kt extends Dt.a{constructor(){super();const ce=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",ce.to("_viewPosition",(ce=>ce?`ck-orientation-${ce}`:""))],style:{display:ce.if("_isVisible","none",(ce=>!ce))}},children:[{text:ce.to("_label")}]})}_bindToState(ce,ze){this.bind("_isVisible").to(ze,"proposedWidth",ze,"proposedHeight",((ce,ze)=>null!==ce&&null!==ze)),this.bind("_label").to(ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",ze,"proposedWidthPercents",((ze,Ve,qe)=>"px"===ce.unit?`${ze}×${Ve}`:`${qe}%`)),this.bind("_viewPosition").to(ze,"activeHandlePosition",ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",((ce,ze,Ve)=>ze<50||Ve<50?"above-center":ce))}_dismiss(){this.unbind(),this._isVisible=!1}}class St{constructor(ce){this._options=ce,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(ce=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),ce.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const ce=this,ze=this._options.viewElement;this._options.editor.editing.view.change((Ve=>{const qe=Ve.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(ze){const Ve=this.toDomElement(ze);return ce._appendHandles(Ve),ce._appendSizeUI(Ve),ce.on("change:isEnabled",((ce,ze,qe)=>{Ve.style.display=qe?"":"none"})),Ve.style.display=ce.isEnabled?"":"none",Ve}));Ve.insert(Ve.createPositionAt(ze,"end"),qe),Ve.addClass("ck-widget_with-resizer",ze),this._viewResizerWrapper=qe}))}begin(ce){this.state=new Ct(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(ce,this._getHandleHost(),this._getResizeHost())}updateSize(ce){const ze=this._proposeNewSize(ce);this._options.editor.editing.view.change((ce=>{const Ve=this._options.unit||"%",qe=("%"===Ve?ze.widthPercents:ze.width)+Ve;ce.setStyle("width",qe,this._options.viewElement)}));const Ve=this._getHandleHost(),qe=new yt.a(Ve);ze.handleHostWidth=Math.round(qe.width),ze.handleHostHeight=Math.round(qe.height);const Ye=new yt.a(Ve);ze.width=Math.round(Ye.width),ze.height=Math.round(Ye.height),this.redraw(qe),this.state.update(ze)}commit(){const ce=this._options.unit||"%",ze=("%"===ce?this.state.proposedWidthPercents:this.state.proposedWidth)+ce;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(ze)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(ce){const ze=this._domResizerWrapper;if(!((Ve=ze)&&Ve.ownerDocument&&Ve.ownerDocument.contains(Ve)))return;var Ve;const qe=ze.parentElement,Ye=this._getHandleHost(),We=this._viewResizerWrapper,Qe=[We.getStyle("width"),We.getStyle("height"),We.getStyle("left"),We.getStyle("top")];let Xe;if(qe.isSameNode(Ye)){const ze=ce||new yt.a(Ye);Xe=[ze.width+"px",ze.height+"px",void 0,void 0]}else Xe=[Ye.offsetWidth+"px",Ye.offsetHeight+"px",Ye.offsetLeft+"px",Ye.offsetTop+"px"];"same"!==Object(bt.a)(Qe,Xe)&&this._options.editor.editing.view.change((ce=>{ce.setStyle({width:Xe[0],height:Xe[1],left:Xe[2],top:Xe[3]},We)}))}containsHandle(ce){return this._domResizerWrapper.contains(ce)}static isResizeHandle(ce){return ce.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((ce=>{ce.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(ce){const ze=this.state,Ve={x:(qe=ce).pageX,y:qe.pageY};var qe;const Ye=!this._options.isCentered||this._options.isCentered(this),We={x:ze._referenceCoordinates.x-(Ve.x+ze.originalWidth),y:Ve.y-ze.originalHeight-ze._referenceCoordinates.y};Ye&&ze.activeHandlePosition.endsWith("-right")&&(We.x=Ve.x-(ze._referenceCoordinates.x+ze.originalWidth)),Ye&&(We.x*=2);const Qe={width:Math.abs(ze.originalWidth+We.x),height:Math.abs(ze.originalHeight+We.y)};Qe.dominant=Qe.width/ze.aspectRatio>Qe.height?"width":"height",Qe.max=Qe[Qe.dominant];const Xe={width:Qe.width,height:Qe.height};return"width"==Qe.dominant?Xe.height=Xe.width/ze.aspectRatio:Xe.width=Xe.height*ze.aspectRatio,{width:Math.round(Xe.width),height:Math.round(Xe.height),widthPercents:Math.min(Math.round(ze.originalWidthPercents/ze.originalWidth*Xe.width*100)/100,100)}}_getResizeHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getResizeHost(ce)}_getHandleHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getHandleHost(ce)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const qe of ze)ce.appendChild(new gt.a({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(Ve=qe,`ck-widget__resizer__handle-${Ve}`)}}).render());var Ve}_appendSizeUI(ce){this._sizeView=new kt,this._sizeView.render(),ce.appendChild(this._sizeView.element)}}Object(wt.a)(St,vt.a);var xt=Ve(151),Et=Ve(77),Pt=Ve(288),Tt=Ve(1087);class Lt extends Ye.a{static get pluginName(){return"WidgetResize"}init(){const ce=this.editor.editing,ze=Et.a.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,ce.view.addObserver(Pt.a),this._observer=Object.create(xt.a),this.listenTo(ce.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(ze,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(ze,"mouseup",this._mouseUpListener.bind(this));const redrawFocusedResizer=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Object(Tt.a)(redrawFocusedResizer,200),this.on("change:visibleResizer",redrawFocusedResizer),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[ce,ze]of this._resizers)ce.isAttached()||(this._resizers.delete(ce),ze.destroy())}),{priority:"lowest"}),this._observer.listenTo(Et.a.window,"resize",this._redrawFocusedResizerThrottled);const Ve=this.editor.editing.view.document.selection;Ve.on("change",(()=>{const ce=Ve.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(ce)||null}))}destroy(){this._observer.stopListening();for(const ce of this._resizers.values())ce.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(ce){const ze=new St(ce),Ve=this.editor.plugins;if(ze.attach(),Ve.has("WidgetToolbarRepository")){const ce=Ve.get("WidgetToolbarRepository");ze.on("begin",(()=>{ce.forceDisabled("resize")}),{priority:"lowest"}),ze.on("cancel",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"}),ze.on("commit",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(ce.viewElement,ze);const qe=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(qe)==ze&&(this.visibleResizer=ze),ze}getResizerByViewElement(ce){return this._resizers.get(ce)}_getResizerByHandle(ce){for(const ze of this._resizers.values())if(ze.containsHandle(ce))return ze}_mouseDownListener(ce,ze){const Ve=ze.domTarget;St.isResizeHandle(Ve)&&(this._activeResizer=this._getResizerByHandle(Ve),this._activeResizer&&(this._activeResizer.begin(Ve),ce.stop(),ze.preventDefault()))}_mouseMoveListener(ce,ze){this._activeResizer&&this._activeResizer.updateSize(ze)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Object(wt.a)(Lt,vt.a);Ve(580)},function(ce,ze,Ve){"use strict";var qe=Ve(306);var Ye=function stackClear(){this.__data__=new qe.a,this.size=0};var We=function stackDelete(ce){var ze=this.__data__,Ve=ze.delete(ce);return this.size=ze.size,Ve};var Qe=function stackGet(ce){return this.__data__.get(ce)};var Xe=function stackHas(ce){return this.__data__.has(ce)},ot=Ve(308),st=Ve(337);var mt=function stackSet(ce,ze){var Ve=this.__data__;if(Ve instanceof qe.a){var Ye=Ve.__data__;if(!ot.a||Ye.length<199)return Ye.push([ce,ze]),this.size=++Ve.size,this;Ve=this.__data__=new st.a(Ye)}return Ve.set(ce,ze),this.size=Ve.size,this};function Stack(ce){var ze=this.__data__=new qe.a(ce);this.size=ze.size}Stack.prototype.clear=Ye,Stack.prototype.delete=We,Stack.prototype.get=Qe,Stack.prototype.has=Xe,Stack.prototype.set=mt;ze.a=Stack},function(ce,ze,Ve){"use strict";var qe=Object({});ze.a=qe},function(ce,ze,Ve){"use strict";var qe=Object({});ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(107),Ye=Ve(63),We=Ve(181),Qe=Ve(24),Xe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Xe.a("view-tree-walker-no-start-position",null);if(ce.direction&&"forward"!=ce.direction&&"backward"!=ce.direction)throw new Xe.a("view-tree-walker-unknown-direction",ce.startPosition,{direction:ce.direction});this.boundaries=ce.boundaries||null,ce.startPosition?this.position=Qe.a._createAt(ce.startPosition):this.position=Qe.a._createAt(ce.boundaries["backward"==ce.direction?"end":"start"]),this.direction=ce.direction||"forward",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(ce){let ze,Ve,qe;do{qe=this.position,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=qe)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&ce.offset===Ve.childCount)return{done:!0};if(Ve===this._boundaryEndParent&&ce.offset==this.boundaries.end.offset)return{done:!0};let Xe;if(Ve instanceof Ye.a){if(ce.isAtEnd)return this.position=Qe.a._createAfter(Ve),this._next();Xe=Ve.data[ce.offset]}else Xe=Ve.getChild(ce.offset);if(Xe instanceof qe.a)return this.shallow?ce.offset++:ce=new Qe.a(Xe,0),this.position=ce,this._formatReturnValue("elementStart",Xe,ze,ce,1);if(Xe instanceof Ye.a){if(this.singleCharacters)return ce=new Qe.a(Xe,0),this.position=ce,this._next();{let Ve,qe=Xe.data.length;return Xe==this._boundaryEndParent?(qe=this.boundaries.end.offset,Ve=new We.a(Xe,0,qe),ce=Qe.a._createAfter(Ve)):(Ve=new We.a(Xe,0,Xe.data.length),ce.offset++),this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Xe){let qe;if(this.singleCharacters)qe=1;else{qe=(Ve===this._boundaryEndParent?this.boundaries.end.offset:Ve.data.length)-ce.offset}const Ye=new We.a(Ve,ce.offset,qe);return ce.offset+=qe,this.position=ce,this._formatReturnValue("text",Ye,ze,ce,qe)}return ce=Qe.a._createAfter(Ve),this.position=ce,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",Ve,ze,ce)}_previous(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&0===ce.offset)return{done:!0};if(Ve==this._boundaryStartParent&&ce.offset==this.boundaries.start.offset)return{done:!0};let Xe;if(Ve instanceof Ye.a){if(ce.isAtStart)return this.position=Qe.a._createBefore(Ve),this._previous();Xe=Ve.data[ce.offset-1]}else Xe=Ve.getChild(ce.offset-1);if(Xe instanceof qe.a)return this.shallow?(ce.offset--,this.position=ce,this._formatReturnValue("elementStart",Xe,ze,ce,1)):(ce=new Qe.a(Xe,Xe.childCount),this.position=ce,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",Xe,ze,ce));if(Xe instanceof Ye.a){if(this.singleCharacters)return ce=new Qe.a(Xe,Xe.data.length),this.position=ce,this._previous();{let Ve,qe=Xe.data.length;if(Xe==this._boundaryStartParent){const ze=this.boundaries.start.offset;Ve=new We.a(Xe,ze,Xe.data.length-ze),qe=Ve.data.length,ce=Qe.a._createBefore(Ve)}else Ve=new We.a(Xe,0,Xe.data.length),ce.offset--;return this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Xe){let qe;if(this.singleCharacters)qe=1;else{const ze=Ve===this._boundaryStartParent?this.boundaries.start.offset:0;qe=ce.offset-ze}ce.offset-=qe;const Ye=new We.a(Ve,ce.offset,qe);return this.position=ce,this._formatReturnValue("text",Ye,ze,ce,qe)}return ce=Qe.a._createBefore(Ve),this.position=ce,this._formatReturnValue("elementStart",Ve,ze,ce,1)}_formatReturnValue(ce,ze,Ve,qe,Ye){return ze instanceof We.a&&(ze.offsetInText+ze.data.length==ze.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?Ve=Qe.a._createAfter(ze.textNode):(qe=Qe.a._createAfter(ze.textNode),this.position=qe)),0===ze.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?Ve=Qe.a._createBefore(ze.textNode):(qe=Qe.a._createBefore(ze.textNode),this.position=qe))),{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:qe,length:Ye}}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _createClass}));var qe=Ve(715);function _defineProperties(ce,ze){for(var Ve=0;Ve{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove},Ye.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(19),Dt=Ve(89),kt={option:"option--8tv8vgUy1a",selected:"selected--+xFcKmIarn",icon:"icon--DSZ0Y3dHoR",checkbox:"checkbox--oXaD4hyw4F",input:"input--IRO3glVqFu"};class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?Ye.a.createElement(Ct.a,{className:kt.icon,name:"su-check"}):null:Ye.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:qe,selectedVisualization:We}=this.props,Qe=wt()(kt.option,kt[We],{[kt.selected]:ze});return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},Ye.a.createElement("button",{className:Qe,disabled:qe,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(196),Et={displayValue:"displayValue--jra4TeJ7nC",flat:"flat--fcQoMyt8uW",dark:"dark--vUzR-fJei+",default:"default--AHL9-NjVKf","has-icon":"has-icon--sWFrLVpLhL",hasIcon:"has-icon--sWFrLVpLhL","front-icon":"front-icon--PhbTIZPrze",frontIcon:"front-icon--PhbTIZPrze",toggle:"toggle--BW0pj2m1yE"};class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props,We=wt()(Et.displayValue,Et[qe],{[Et.hasIcon]:!!Ve});return Ye.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&Ye.a.createElement(Ct.a,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?Ye.a.createElement(xt.a,null,String(ce)):ce,Ye.a.createElement(Ct.a,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--gDrAPOSEh4";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cn=Object(Qe.b)((bn=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Vt,this),_initializerDefineProperty(this,"searchText",Ht,this),_initializerDefineProperty(this,"focusedElementIndex",Ut,this),_initializerDefineProperty(this,"open",Wt,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,qe]=ze;return ce.set(Ve,qe.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return Ye.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return Ye.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return Ye.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return Ye.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:qe}=this.props,We=this.cloneChildren();return Ye.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},Ye.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:qe},Ve),Ye.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>Ye.a.createElement(gt.a,{menuRef:ce,style:ze},Ye.a.Children.count(We)>0?We:Ye.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.a.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ht=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;var Sn=Cn;ze.a=Sn},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";var qe=Ve(724),Ye=Function.prototype,We=Ye.call,Qe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Qe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=qe({}.toString),We=qe("".slice);ce.exports=function(ce){return We(Ye(ce),8,-1)}},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Ve(106);ce.exports=function(ce,ze){return arguments.length<2?(Ve=qe[ce],Ye(Ve)?Ve:void 0):qe[ce]&&qe[ce][ze];var Ve}},function(ce,ze,Ve){"use strict";Ve(1222),Ve(1227),Ve(1228),Ve(1229),Ve(1231)},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(120),We=Ve(105),Qe=Ve(70),Xe=Ve(111),ot=Ve(106),st=Ve(343),mt=Ve(149),gt=Ve(347),yt=Ve(828),bt=We.Symbol,vt=bt&&bt.prototype;if(Ye&&ot(bt)&&(!("description"in vt)||void 0!==bt().description)){var wt={},Ct=function Symbol(){var ce=arguments.length<1||void 0===arguments[0]?void 0:mt(arguments[0]),ze=st(vt,this)?new bt(ce):void 0===ce?bt():bt(ce);return""===ce&&(wt[ze]=!0),ze};yt(Ct,bt),Ct.prototype=vt,vt.constructor=Ct;var Dt="Symbol(description detection)"===String(bt("description detection")),kt=Qe(vt.valueOf),St=Qe(vt.toString),xt=/^Symbol\((.*)\)[^)]+$/,Et=Qe("".replace),Pt=Qe("".slice);gt(vt,"description",{configurable:!0,get:function description(){var ce=kt(this);if(Xe(wt,ce))return"";var ze=St(ce),Ve=Dt?Pt(ze,7,-1):Et(ze,xt,"$1");return""===Ve?void 0:Ve}}),qe({global:!0,constructor:!0,forced:!0},{Symbol:Ct})}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(209),We=Ve(469);qe({target:"Object",stat:!0,forced:Ve(61)((function(){We(1)}))},{keys:function keys(ce){return We(Ye(ce))}})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(429).filter;qe({target:"Array",proto:!0,forced:!Ve(745)("filter")},{filter:function filter(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.MissingRefError=ze.ValidationError=ze.CodeGen=ze.Name=ze.nil=ze.stringify=ze.str=ze._=ze.KeywordCxt=ze.Ajv=void 0;const qe=Ve(1736),Ye=Ve(1748),We=Ve(1781),Qe=Ve(1783),Xe=["/properties"],ot="http://json-schema.org/draft-07/schema";class st extends qe.default{_addVocabularies(){super._addVocabularies(),Ye.default.forEach((ce=>this.addVocabulary(ce))),this.opts.discriminator&&this.addKeyword(We.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const ce=this.opts.$data?this.$dataMetaSchema(Qe,Xe):Qe;this.addMetaSchema(ce,ot,!1),this.refs["http://json-schema.org/schema"]=ot}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ot)?ot:void 0)}}ze.Ajv=st,ce.exports=ze=st,ce.exports.Ajv=st,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=st;var mt=Ve(489);Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return mt.KeywordCxt}});var gt=Ve(50);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return gt._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return gt.str}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return gt.stringify}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return gt.nil}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return gt.Name}}),Object.defineProperty(ze,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var yt=Ve(769);Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return yt.default}});var bt=Ve(494);Object.defineProperty(ze,"MissingRefError",{enumerable:!0,get:function(){return bt.default}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(268),Ye=Ve(8);class We{constructor(){this._patterns=[],this.add(...arguments)}add(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0?ce:null}getElementName(){if(1!==this._patterns.length)return null;const ce=this._patterns[0],ze=ce.name;return"function"==typeof ce||!ze||ze instanceof RegExp?null:ze}}function isElementMatching(ce,ze){if("function"==typeof ze)return ze(ce);const Ve={};return ze.name&&(Ve.name=matchName(ze.name,ce.name),!Ve.name)||ze.attributes&&(Ve.attributes=matchAttributes(ze.attributes,ce),!Ve.attributes)?null:!(ze.classes&&(Ve.classes=matchClasses(ze.classes,ce),!Ve.classes))&&(!(ze.styles&&(Ve.styles=matchStyles(ze.styles,ce),!Ve.styles))&&Ve)}function matchName(ce,ze){return ce instanceof RegExp?!!ze.match(ce):ce===ze}function matchPatterns(ce,ze,Ve){const qe=normalizePatterns(ce),Ye=Array.from(ze),We=[];return qe.forEach((ce=>{let[ze,qe]=ce;Ye.forEach((ce=>{isKeyMatched(ze,ce)&&isValueMatched(qe,ce,Ve)&&We.push(ce)}))})),!qe.length||We.lengthObject(qe.a)(ce)?(void 0!==ce.key&&void 0!==ce.value||Object(Ye.b)("matcher-pattern-missing-key-or-value",ce),[ce.key,ce.value]):[ce,!0])):Object(qe.a)(ce)?Object.entries(ce):[[ce,!0]]}function isKeyMatched(ce,ze){return!0===ce||ce===ze||ce instanceof RegExp&&ze.match(ce)}function isValueMatched(ce,ze,Ve){if(!0===ce)return!0;const qe=Ve(ze);return ce===qe||ce instanceof RegExp&&!!String(qe).match(ce)}function matchAttributes(ce,ze){const Ve=new Set(ze.getAttributeKeys());return Object(qe.a)(ce)?(void 0!==ce.style&&Object(Ye.b)("matcher-pattern-deprecated-attributes-style-key",ce),void 0!==ce.class&&Object(Ye.b)("matcher-pattern-deprecated-attributes-class-key",ce)):(Ve.delete("style"),Ve.delete("class")),matchPatterns(ce,Ve,(ce=>ze.getAttribute(ce)))}function matchClasses(ce,ze){return matchPatterns(ce,ze.getClassNames())}function matchStyles(ce,ze){return matchPatterns(ce,ze.getStyleNames(!0),(ce=>ze.getStyle(ce)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"b",(function(){return injectUiElementHandling}));var qe=Ve(107),Ye=Ve(8),We=Ve(177),Qe=Ve(37);class Xe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce):"uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-uielement-cannot-add",this)}render(ce){return this.toDomElement(ce)}toDomElement(ce){const ze=ce.createElement(this.name);for(const ce of this.getAttributeKeys())ze.setAttribute(ce,this.getAttribute(ce));return ze}}function injectUiElementHandling(ce){ce.document.on("arrowKey",((ze,Ve)=>jumpOverUiElement(ze,Ve,ce.domConverter)),{priority:"low"})}function getFillerOffset(){return null}function jumpOverUiElement(ce,ze,Ve){if(ze.keyCode==Qe.f.arrowright){const ce=ze.domTarget.ownerDocument.defaultView.getSelection(),qe=1==ce.rangeCount&&ce.getRangeAt(0).collapsed;if(qe||ze.shiftKey){const ze=ce.focusNode,Ye=ce.focusOffset,We=Ve.domPositionToView(ze,Ye);if(null===We)return;let Qe=!1;const Xe=We.getLastMatchingPosition((ce=>(ce.item.is("uiElement")&&(Qe=!0),!(!ce.item.is("uiElement")&&!ce.item.is("attributeElement")))));if(Qe){const ze=Ve.viewPositionToDom(Xe);qe?ce.collapse(ze.parent,ze.offset):ce.extend(ze.parent,ze.offset)}}}}},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(216),mt=Ve(708);var gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,metadataOptions:Ye,options:We,preSelectedItem:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe);const gt=[];Qe&>.push(Qe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,Ye,gt),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural}),this.selectionDisposer=Object(Xe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},qe=Ye))||qe;ze.a=gt},function(ce,ze,Ve){"use strict";var qe=Ve(588);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(415);const Ye="form";ze.a=new class{getSchemaTypes(ce,ze){return qe.a.loadMetadata(Ye,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!qe&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in qe)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.form}))}getJsonSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in qe)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";(function(ce){var qe=Ve(102),Ye=Ve(1086),We="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=Qe&&Qe.exports===We?qe.a.Buffer:void 0,ot=(Xe?Xe.isBuffer:void 0)||Ye.a;ze.a=ot}).call(this,Ve(785)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(107),Ye=Ve(8);class We extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new Ye.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce):"attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}isSimilar(ce){return null!==this.id||null!==ce.id?this.id===ce.id:super.isSimilar(ce)&&this.priority==ce.priority}_clone(ce){const ze=super._clone(ce);return ze._priority=this._priority,ze._id=this._id,ze}}function getFillerOffset(){if(nonUiChildrenCount(this))return null;let ce=this.parent;for(;ce&&ce.is("attributeElement");){if(nonUiChildrenCount(ce)>1)return null;ce=ce.parent}return!ce||nonUiChildrenCount(ce)>1?null:this.childCount}function nonUiChildrenCount(ce){return Array.from(ce.getChildren()).filter((ce=>!ce.is("uiElement"))).length}We.DEFAULT_PRIORITY=10},function(ce,ze,Ve){"use strict";var qe=Ve(416);const Ye="form";ze.a=new class{getSchemaTypes(ce,ze){return qe.a.loadMetadata(Ye,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!qe&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in qe)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.form}))}getJsonSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in qe)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return enablePlaceholder})),Ve.d(ze,"b",(function(){return Ye.a})),Ve.d(ze,"d",(function(){return We.b})),Ve.d(ze,"a",(function(){return Qe.a}));const qe=new WeakMap;function enablePlaceholder(ce){const{view:ze,element:Ve,text:Ye,isDirectHost:We=!0,keepOnFocus:Qe=!1}=ce,Xe=ze.document;qe.has(Xe)||(qe.set(Xe,new Map),Xe.registerPostFixer((ce=>updateDocumentPlaceholders(Xe,ce)))),qe.get(Xe).set(Ve,{text:Ye,isDirectHost:We,keepOnFocus:Qe,hostElement:We?Ve:null}),ze.change((ce=>updateDocumentPlaceholders(Xe,ce)))}function showPlaceholder(ce,ze){return!ze.hasClass("ck-placeholder")&&(ce.addClass("ck-placeholder",ze),!0)}function hidePlaceholder(ce,ze){return!!ze.hasClass("ck-placeholder")&&(ce.removeClass("ck-placeholder",ze),!0)}function needsPlaceholder(ce,ze){if(!ce.isAttached())return!1;const Ve=Array.from(ce.getChildren()).some((ce=>!ce.is("uiElement")));if(Ve)return!1;if(ze)return!0;const qe=ce.document;if(!qe.isFocused)return!0;const Ye=qe.selection.anchor;return Ye&&Ye.parent!==ce}function updateDocumentPlaceholders(ce,ze){const Ve=qe.get(ce),Ye=[];let We=!1;for(const[ce,qe]of Ve)qe.isDirectHost&&(Ye.push(ce),updatePlaceholder(ze,ce,qe)&&(We=!0));for(const[ce,qe]of Ve){if(qe.isDirectHost)continue;const Ve=getChildPlaceholderHostSubstitute(ce);Ve&&(Ye.includes(Ve)||(qe.hostElement=Ve,updatePlaceholder(ze,ce,qe)&&(We=!0)))}return We}function updatePlaceholder(ce,ze,Ve){const{text:qe,isDirectHost:Ye,hostElement:We}=Ve;let Qe=!1;We.getAttribute("data-placeholder")!==qe&&(ce.setAttribute("data-placeholder",qe,We),Qe=!0);return(Ye||1==ze.childCount)&&needsPlaceholder(We,Ve.keepOnFocus)?showPlaceholder(ce,We)&&(Qe=!0):hidePlaceholder(ce,We)&&(Qe=!0),Qe}function getChildPlaceholderHostSubstitute(ce){if(ce.childCount){const ze=ce.getChild(0);if(ze.is("element")&&!ze.is("uiElement")&&!ze.is("attributeElement"))return ze}return null}Ve(536),Ve(581),Ve(521),Ve(638),Ve(109),Ve(142),Ve(523),Ve(524),Ve(119),Ve(16),Ve(226),Ve(124),Ve(534);var Ye=Ve(156),We=(Ve(57),Ve(20),Ve(203),Ve(522),Ve(64),Ve(294),Ve(563),Ve(383),Ve(63),Ve(107),Ve(218)),Qe=(Ve(258),Ve(443),Ve(444),Ve(253),Ve(178),Ve(116),Ve(219),Ve(130));Ve(288),Ve(361),Ve(268),Ve(24),Ve(41),Ve(139);Ve(252),Ve(281),Ve(365);new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"])},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=Ve(102),We=Object(qe.a)(Ye.a,"DataView"),Qe=Ve(308),Xe=Object(qe.a)(Ye.a,"Promise"),ot=Object(qe.a)(Ye.a,"Set"),st=Object(qe.a)(Ye.a,"WeakMap"),mt=Ve(140),gt=Ve(267),yt="[object Map]",bt="[object Promise]",vt="[object Set]",wt="[object WeakMap]",Ct="[object DataView]",Dt=Object(gt.a)(We),kt=Object(gt.a)(Qe.a),St=Object(gt.a)(Xe),xt=Object(gt.a)(ot),Et=Object(gt.a)(st),Pt=mt.a;(We&&Pt(new We(new ArrayBuffer(1)))!=Ct||Qe.a&&Pt(new Qe.a)!=yt||Xe&&Pt(Xe.resolve())!=bt||ot&&Pt(new ot)!=vt||st&&Pt(new st)!=wt)&&(Pt=function(ce){var ze=Object(mt.a)(ce),Ve="[object Object]"==ze?ce.constructor:void 0,qe=Ve?Object(gt.a)(Ve):"";if(qe)switch(qe){case Dt:return Ct;case kt:return yt;case St:return bt;case xt:return vt;case Et:return wt}return ze});ze.a=Pt},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return unquote})),Ve.d(ze,"a",(function(){return getType})),Ve.d(ze,"b",(function(){return showSpaces}));Ve(1271),Ve(68),Ve(86),Ve(148),Ve(274);function unquote(ce){return ce&&ce.replace(/^['"]|['"]$/g,"")}function getType(ce){return ce.flowType?"union"===ce.flowType.name&&ce.flowType.elements.every((function(ce){return"literal"===ce.name}))?Object.assign({},ce.flowType,{name:"enum",value:ce.flowType.elements}):ce.flowType:ce.tsType?ce.tsType:ce.type}function showSpaces(ce){return ce&&ce.replace(/^\s|\s$/g,"␣")}},function(ce,ze,Ve){"use strict";(function(ce){var qe=Ve(654),Ye="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=We&&We.exports===Ye&&qe.a.process,Xe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Qe&&Qe.binding&&Qe.binding("util")}catch(ce){}}();ze.a=Xe}).call(this,Ve(785)(ce))},function(ce,ze,Ve){"use strict";function isNode(ce){if(ce){if(ce.defaultView)return ce instanceof ce.defaultView.Document;if(ce.ownerDocument&&ce.ownerDocument.defaultView)return ce instanceof ce.ownerDocument.defaultView.Node}return!1}Ve.d(ze,"a",(function(){return isNode}))},function(ce,ze,Ve){"use strict";var qe=Function.prototype.toString;ze.a=function toSource(ce){if(null!=ce){try{return qe.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(393),We=Ve(98),Qe=Function.prototype,Xe=Object.prototype,ot=Qe.toString,st=Xe.hasOwnProperty,mt=ot.call(Object);ze.a=function isPlainObject(ce){if(!Object(We.a)(ce)||"[object Object]"!=Object(qe.a)(ce))return!1;var ze=Object(Ye.a)(ce);if(null===ze)return!0;var Ve=st.call(ze,"constructor")&&ze.constructor;return"function"==typeof Ve&&Ve instanceof Ve&&ot.call(Ve)==mt}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(436);const Ye="default";ze.b=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new qe.a;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}}},,function(ce,ze,Ve){"use strict";var qe=Ve(243);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var qe=Ve(169);ce.exports=function(ce){return"object"==typeof ce?null!==ce:qe(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(106),Ye=Ve(185),We=Ve(826),Qe=Ve(736);ce.exports=function(ce,ze,Ve,Xe){Xe||(Xe={});var ot=Xe.enumerable,st=void 0!==Xe.name?Xe.name:ze;if(qe(Ve)&&We(Ve,st,Xe),Xe.global)ot?ce[ze]=Ve:Qe(ze,Ve);else{try{Xe.unsafe?ce[ze]&&(ot=!0):delete ce[ze]}catch(ce){}ot?ce[ze]=Ve:Ye.f(ce,ze,{value:Ve,enumerable:!1,configurable:!Xe.nonConfigurable,writable:!Xe.nonWritable})}return ce}},function(ce,ze,Ve){"use strict";var qe=Ve(746),Ye=Ve(136),We=Ve(70),Qe=Ve(472),Xe=Ve(61),ot=Ve(147),st=Ve(106),mt=Ve(319),gt=Ve(465),yt=Ve(467),bt=Ve(149),vt=Ve(208),wt=Ve(750),Ct=Ve(419),Dt=Ve(1166),kt=Ve(473),St=Ve(122)("replace"),xt=Math.max,Et=Math.min,Pt=We([].concat),Tt=We([].push),Lt=We("".indexOf),Ft=We("".slice),Bt="$0"==="a".replace(/./,"$0"),Vt=!!/./[St]&&""===/./[St]("a","$0");Qe("replace",(function(ce,ze,Ve){var We=Vt?"$":"$0";return[function replace(ce,Ve){var qe=vt(this),We=mt(ce)?void 0:Ct(ce,St);return We?Ye(We,ce,qe,Ve):Ye(ze,bt(qe),ce,Ve)},function(ce,Ye){var Qe=ot(this),Xe=bt(ce);if("string"==typeof Ye&&-1===Lt(Ye,We)&&-1===Lt(Ye,"$<")){var mt=Ve(ze,Qe,Xe,Ye);if(mt.done)return mt.value}var vt=st(Ye);vt||(Ye=bt(Ye));var Ct,St=Qe.global;St&&(Ct=Qe.unicode,Qe.lastIndex=0);for(var Bt,Vt=[];null!==(Bt=kt(Qe,Xe))&&(Tt(Vt,Bt),St);){""===bt(Bt[0])&&(Qe.lastIndex=wt(Xe,yt(Qe.lastIndex),Ct))}for(var Ht,Ut="",Wt=0,Jt=0;Jt=Wt&&(Ut+=Ft(Xe,Wt,rn)+Qt,Wt=rn+en.length)}return Ut+Ft(Xe,Wt)}]}),!!Xe((function(){var ce=/./;return ce.exec=function(){var ce=[];return ce.groups={a:"7"},ce},"7"!=="".replace(ce,"$")}))||!Bt||Vt)},function(ce,ze,Ve){var qe=Ve(752),Ye=Ve(757);ce.exports=function isArrayLike(ce){return null!=ce&&Ye(ce.length)&&!qe(ce)}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(50),Ye={data:new qe.Name("data"),valCxt:new qe.Name("valCxt"),instancePath:new qe.Name("instancePath"),parentData:new qe.Name("parentData"),parentDataProperty:new qe.Name("parentDataProperty"),rootData:new qe.Name("rootData"),dynamicAnchors:new qe.Name("dynamicAnchors"),vErrors:new qe.Name("vErrors"),errors:new qe.Name("errors"),this:new qe.Name("this"),self:new qe.Name("self"),scope:new qe.Name("scope"),json:new qe.Name("json"),jsonPos:new qe.Name("jsonPos"),jsonLen:new qe.Name("jsonLen"),jsonPart:new qe.Name("jsonPart")};ze.default=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(557);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.views={},this.viewConfigs={}}add(ce,ze,Ve){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze,this.viewConfigs[ce]=Ve||{}}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}getConfig(ce){if(ce in this.viewConfigs)return this.viewConfigs[ce];throw new Error('There is not view config for the key "'+ce+'" registered')}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(722);class Ye{constructor(ce,ze,Ve){this.view=ce,this.document=ce.document,this.domEvent=ze,this.domTarget=ze.target,Object(qe.a)(this,Ve)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(25),Ye=Ve(77),We=Ve(55),Qe=Ve(151);class Xe{constructor(ce,ze){Xe._observerInstance||Xe._createObserver(),this._element=ce,this._callback=ze,Xe._addElementCallback(ce,ze),Xe._observerInstance.observe(ce)}destroy(){Xe._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ce,ze){Xe._elementCallbacks||(Xe._elementCallbacks=new Map);let Ve=Xe._elementCallbacks.get(ce);Ve||(Ve=new Set,Xe._elementCallbacks.set(ce,Ve)),Ve.add(ze)}static _deleteElementCallback(ce,ze){const Ve=Xe._getElementCallbacks(ce);Ve&&(Ve.delete(ze),Ve.size||(Xe._elementCallbacks.delete(ce),Xe._observerInstance.unobserve(ce))),Xe._elementCallbacks&&!Xe._elementCallbacks.size&&(Xe._observerInstance=null,Xe._elementCallbacks=null)}static _getElementCallbacks(ce){return Xe._elementCallbacks?Xe._elementCallbacks.get(ce):null}static _createObserver(){let ce;ce="function"==typeof Ye.a.window.ResizeObserver?Ye.a.window.ResizeObserver:ot,Xe._observerInstance=new ce((ce=>{for(const ze of ce){const ce=Xe._getElementCallbacks(ze.target);if(ce)for(const Ve of ce)Ve(ze)}}))}}Xe._observerInstance=null,Xe._elementCallbacks=null;class ot{constructor(ce){this._callback=ce,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(ce){this._elements.add(ce),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(ce){this._elements.delete(ce),this._previousRects.delete(ce),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const periodicCheck=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(periodicCheck,100)};this.listenTo(Ye.a.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(periodicCheck,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const ce=[];for(const ze of this._elements)this._hasRectChanged(ze)&&ce.push({target:ze,contentRect:this._previousRects.get(ze)});ce.length&&this._callback(ce)}_hasRectChanged(ce){if(!ce.ownerDocument.body.contains(ce))return!1;const ze=new We.a(ce),Ve=this._previousRects.get(ce),qe=!Ve||!Ve.isEqual(ze);return this._previousRects.set(ce,ze),qe}}Object(qe.a)(ot,Qe.a)},function(ce,ze,Ve){"use strict";function first(ce){const ze=ce.next();return ze.done?null:ze.value}Ve.d(ze,"a",(function(){return first}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(8),Ye=Ve(129);class We extends Ye.a{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{idProperty:"viewUid"}),this.on("add",((ce,ze,Ve)=>{this._renderViewIntoCollectionParent(ze,Ve)})),this.on("remove",((ce,ze)=>{ze.element&&this._parentElement&&ze.element.remove()})),this._parentElement=null}destroy(){this.map((ce=>ce.destroy()))}setParent(ce){this._parentElement=ce;for(const ce of this)this._renderViewIntoCollectionParent(ce)}delegate(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve"string"==typeof ce)))throw new qe.a("ui-viewcollection-delegate-wrong-events",this);return{to:ce=>{for(const Ve of this)for(const qe of ze)Ve.delegate(qe).to(ce);this.on("add",((Ve,qe)=>{for(const Ve of ze)qe.delegate(Ve).to(ce)})),this.on("remove",((Ve,qe)=>{for(const Ve of ze)qe.stopDelegating(Ve,ce)}))}}}_renderViewIntoCollectionParent(ce,ze){ce.isRendered||ce.render(),ce.element&&this._parentElement&&this._parentElement.insertBefore(ce.element,this._parentElement.children[ze])}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(362);class Ye{constructor(ce){if(Object.assign(this,ce),ce.actions&&ce.keystrokeHandler)for(const ze in ce.actions){let Ve=ce.actions[ze];"string"==typeof Ve&&(Ve=[Ve]);for(const qe of Ve)ce.keystrokeHandler.set(qe,((ce,Ve)=>{this[ze](),Ve()}))}}get first(){return this.focusables.find(isFocusable)||null}get last(){return this.focusables.filter(isFocusable).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let ce=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((ze,Ve)=>{const qe=ze.element===this.focusTracker.focusedElement;return qe&&(ce=Ve),qe})),ce)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(ce){ce&&ce.focus()}_getFocusableItem(ce){const ze=this.current,Ve=this.focusables.length;if(!Ve)return null;if(null===ze)return this[1===ce?"first":"last"];let qe=(ze+Ve+ce)%Ve;do{const ze=this.focusables.get(qe);if(isFocusable(ze))return ze;qe=(qe+Ve+ce)%Ve}while(qe!==ze);return null}}function isFocusable(ce){return!(!ce.focus||!Object(qe.a)(ce.element))}},function(ce,ze,Ve){"use strict";function normalizeToolbarConfig(ce){return Array.isArray(ce)?{items:ce,removeItems:[]}:ce?Object.assign({items:[],removeItems:[]},ce):{items:[],removeItems:[]}}Ve.d(ze,"a",(function(){return normalizeToolbarConfig}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(130);class Ye extends qe.a{constructor(ce){super(ce),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformDateForUrl}));var transformDateForUrl=function(ce){const ze=ce.getFullYear().toString(),Ve=(ce.getMonth()+1).toString(),qe=ce.getDate().toString(),Ye=ce.getHours().toString(),We=ce.getMinutes().toString();return ze+"-"+(Ve[1]?Ve:"0"+Ve)+"-"+(qe[1]?qe:"0"+qe)+" "+((Ye[1]?Ye:"0"+Ye)+":"+(We[1]?We:"0"+We))};new Intl.DateTimeFormat("en",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!1})},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(3),St=Ve(1),xt=Ve(51),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(19),Vt=Ve(54),Ht=Ve(697),Ut=Ve(711),Wt="multi-auto-complete--qUaqDaWXyD",Jt="chip--CtDYP6BWFq",Qt="input--BIQwPuIyw5",en="icon--LuW0QMll6r",rn="items--a5m896nhHd",ln="disabled--MBw8d+Jnsa";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mn=Object(kt.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputContainerRef",We,this),_initializerDefineProperty(this,"inputRef",Qe,this),_initializerDefineProperty(this,"displaySuggestions",Xe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setInputContainerRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze(qe.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:qe,value:Ye}=this.props;if(0===this.inputValue.length)return!1;const We=qe.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Qe=Ye.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Qe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.inputContainerRef?this.inputContainerRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:qe,loading:Ye,searchProperties:We,suggestions:Qe,value:Xe}=this.props,ot=Ft()(Wt,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("div",{className:ot,ref:this.setInputContainerRef},Dt.a.createElement("div",{className:en},Ye?Dt.a.createElement(Vt.a,{size:16}):Dt.a.createElement(Bt.a,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Xe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[qe]},Dt.a.createElement(Ut.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Ht.a,{anchorElement:this.inputContainerRef,idProperty:qe,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Qe.length>0,query:this.inputValue,searchProperties:We,suggestions:Qe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((Ye=wt).prototype,"inputContainerRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"displaySuggestions",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputValue",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(Ye.prototype,"setInputContainerRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.inputContainerRef=ce)}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(Ye.prototype,"popoverMinWidth",[St.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"popoverMinWidth"),Ye.prototype),gt=_applyDecoratedDescriptor(Ye.prototype,"handleInputChange",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleSelect",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze([...qe,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(Ye.prototype,"search",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),qe=Ye))||qe;var gn,bn,wn=mn,Cn=Ve(719);Ve(192);var Sn=Object(kt.b)(((bn=class extends Dt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:qe}=this.props;this.searchStore=new Cn.a(qe.resourceKey,Ve,ze,qe.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,searchProperties:Qe,selectionStore:Xe}=this.props;return Dt.a.createElement(wn,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,loading:this.searchStore.loading||Xe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Qe,suggestions:this.searchStore.searchResults,value:Xe.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},gn=bn))||gn;ze.a=Sn},function(ce,ze,Ve){"use strict";var qe=Ve(1),Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(3),Xe=Ve(230),ot=Ve(262),st="container--r1nzIE5Vvz";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}ze.a=function withContainerSize_withContainerSize(ce){var ze,Ve,Ye,mt;let gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st,yt=Object(Qe.b)((Ve=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",Ye,this),_initializerDefineProperty(this,"containerHeight",mt,this),this.readContainerDimensions=ce=>{Object(ot.a)(Object(qe.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(ot.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return We.a.createElement("div",{className:gt,ref:this.readContainerDimensions},We.a.createElement(ce,ze))}},Ye=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mt=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return yt.displayName=Object(Xe.a)("withContainerSize",ce),yt}},function(ce,ze,Ve){"use strict";var qe=Ve(5),Ye=Ve.n(qe),We=Ve(0),Qe=Ve.n(We),Xe="backdrop--NZJVO6A-OW",ot="visible--hFwYopciso",st="fixed--aOYT+NGh1F";class mt extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=Ye()(Xe,{[ot]:ce,[st]:ze});return Qe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var qe=Ve(31),Ye=Ve(80),We=Ve(452),Qe=Ve(682);class Xe extends Ye.a{constructor(ce,ze){super(ce),this.direction=ze,this._buffer=new Qe.a(ce.model,ce.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.enqueueChange(this._buffer.batch,(qe=>{this._buffer.lock();const Ye=qe.createSelection(ce.selection||Ve.selection),Qe=ce.sequence||1,Xe=Ye.isCollapsed;if(Ye.isCollapsed&&ze.modifySelection(Ye,{direction:this.direction,unit:ce.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(Qe))return void this._replaceEntireContentWithParagraph(qe);if(this._shouldReplaceFirstBlockWithParagraph(Ye,Qe))return void this.editor.execute("paragraph",{selection:Ye});if(Ye.isCollapsed)return;let ot=0;Ye.getFirstRange().getMinimalFlatRanges().forEach((ce=>{ot+=Object(We.a)(ce.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),ze.deleteContent(Ye,{doNotResetEntireContent:Xe,direction:this.direction}),this._buffer.input(ot),qe.setSelection(Ye),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(ce){if(ce>1)return!1;const ze=this.editor.model,Ve=ze.document.selection,qe=ze.schema.getLimitElement(Ve);if(!(Ve.isCollapsed&&Ve.containsEntireContent(qe)))return!1;if(!ze.schema.checkChild(qe,"paragraph"))return!1;const Ye=qe.getChild(0);return!Ye||"paragraph"!==Ye.name}_replaceEntireContentWithParagraph(ce){const ze=this.editor.model,Ve=ze.document.selection,qe=ze.schema.getLimitElement(Ve),Ye=ce.createElement("paragraph");ce.remove(ce.createRangeIn(qe)),ce.insert(Ye,qe),ce.setSelection(Ye,0)}_shouldReplaceFirstBlockWithParagraph(ce,ze){const Ve=this.editor.model;if(ze>1||"backward"!=this.direction)return!1;if(!ce.isCollapsed)return!1;const qe=ce.getFirstPosition(),Ye=Ve.schema.getLimitElement(qe),We=Ye.getChild(0);return qe.parent==We&&(!!ce.containsEntireContent(We)&&(!!Ve.schema.checkChild(Ye,"paragraph")&&"paragraph"!=We.name))}}var ot=Ve(116),st=Ve(281),mt=Ve(224),gt=Ve(37),yt=Ve(58),bt=Ve(341);class vt extends ot.a{constructor(ce){super(ce);const ze=ce.document;let Ve=0;function fireViewDeleteEvent(ce,Ve,qe){const Ye=new mt.a(ze,"delete",ze.selection.getFirstRange());ze.fire(Ye,new st.a(ze,Ve,qe)),Ye.stop.called&&ce.stop()}ze.on("keyup",((ce,ze)=>{ze.keyCode!=gt.f.delete&&ze.keyCode!=gt.f.backspace||(Ve=0)})),ze.on("keydown",((ce,qe)=>{if(yt.a.isWindows&&Object(bt.c)(qe,ze))return;const Ye={};if(qe.keyCode==gt.f.delete)Ye.direction="forward",Ye.unit="character";else{if(qe.keyCode!=gt.f.backspace)return;Ye.direction="backward",Ye.unit="codePoint"}const We=yt.a.isMac?qe.altKey:qe.ctrlKey;Ye.unit=We?"word":Ye.unit,Ye.sequence=++Ve,fireViewDeleteEvent(ce,qe.domEvent,Ye)})),yt.a.isAndroid&&ze.on("beforeinput",((ze,Ve)=>{if("deleteContentBackward"!=Ve.domEvent.inputType)return;const qe={unit:"codepoint",direction:"backward",sequence:1},Ye=Ve.domTarget.ownerDocument.defaultView.getSelection();Ye.anchorNode==Ye.focusNode&&Ye.anchorOffset+1!=Ye.focusOffset&&(qe.selectionToRemove=ce.domConverter.domSelectionToView(Ye)),fireViewDeleteEvent(ze,Ve.domEvent,qe)}))}observe(){}}class wt extends qe.a{static get pluginName(){return"Delete"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document,qe=ce.model.document;ze.addObserver(vt),this._undoOnBackspace=!1;const Ye=new Xe(ce,"forward");if(ce.commands.add("deleteForward",Ye),ce.commands.add("forwardDelete",Ye),ce.commands.add("delete",new Xe(ce,"backward")),this.listenTo(Ve,"delete",((Ve,qe)=>{const Ye={unit:qe.unit,sequence:qe.sequence};if(qe.selectionToRemove){const ze=ce.model.createSelection(),Ve=[];for(const ze of qe.selectionToRemove.getRanges())Ve.push(ce.editing.mapper.toModelRange(ze));ze.setTo(Ve),Ye.selection=ze}ce.execute("forward"==qe.direction?"deleteForward":"delete",Ye),qe.preventDefault(),ze.scrollToTheSelection()}),{priority:"low"}),yt.a.isAndroid){let ce=null;this.listenTo(Ve,"delete",((ze,Ve)=>{const qe=Ve.domTarget.ownerDocument.defaultView.getSelection();ce={anchorNode:qe.anchorNode,anchorOffset:qe.anchorOffset,focusNode:qe.focusNode,focusOffset:qe.focusOffset}}),{priority:"lowest"}),this.listenTo(Ve,"keyup",((ze,Ve)=>{if(ce){const ze=Ve.domTarget.ownerDocument.defaultView.getSelection();ze.collapse(ce.anchorNode,ce.anchorOffset),ze.extend(ce.focusNode,ce.focusOffset),ce=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(Ve,"delete",((ze,Ve)=>{this._undoOnBackspace&&"backward"==Ve.direction&&1==Ve.sequence&&"codePoint"==Ve.unit&&(this._undoOnBackspace=!1,ce.execute("undo"),Ve.preventDefault(),ze.stop())}),{context:"$capture"}),this.listenTo(qe,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Pt}));var qe=Ve(63),Ye=Ve(107),We=Ve(253),Qe=Ve(24),Xe=Ve(41),ot=Ve(139),st=Ve(178),mt=Ve(240),gt=Ve(252),yt=Ve(60),bt=Ve(77),vt=Ve(8);function indexOf(ce){let ze=0;for(;ce.previousSibling;)ce=ce.previousSibling,ze++;return ze}function getAncestors(ce){const ze=[];for(;ce&&ce.nodeType!=Node.DOCUMENT_NODE;)ze.unshift(ce),ce=ce.parentNode;return ze}var wt=Ve(104),Ct=Ve(313);const Dt=Object(yt.a)(document),kt=Object(yt.e)(document),St=Object(yt.d)(document),xt="data-ck-unsafe-attribute-",Et="data-ck-unsafe-element";class Pt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=ce,this.renderingMode=ze.renderingMode||"editing",this.blockFillerMode=ze.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new gt.a,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(ce,ze){this._fakeSelectionMapping.set(ce,new ot.a(ze))}fakeSelectionToView(ce){return this._fakeSelectionMapping.get(ce)}bindElements(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}unbindDomElement(ce){const ze=this._domToViewMapping.get(ce);if(ze){this._domToViewMapping.delete(ce),this._viewToDomMapping.delete(ze);for(const ze of ce.childNodes)this.unbindDomElement(ze)}}bindDocumentFragments(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}shouldRenderAttribute(ce,ze,Ve){return"data"===this.renderingMode||!(ce=ce.toLowerCase()).startsWith("on")&&(("srcdoc"!==ce||!ze.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===Ve&&("src"===ce||"srcset"===ce)||("source"===Ve&&"srcset"===ce||!ze.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(ce,ze){if("data"===this.renderingMode)return void(ce.innerHTML=ze);const Ve=(new DOMParser).parseFromString(ze,"text/html"),qe=Ve.createDocumentFragment(),Ye=Ve.body.childNodes;for(;Ye.length>0;)qe.appendChild(Ye[0]);const We=Ve.createTreeWalker(qe,NodeFilter.SHOW_ELEMENT),Qe=[];let Xe;for(;Xe=We.nextNode();)Qe.push(Xe);for(const ce of Qe){for(const ze of ce.getAttributeNames())this.setDomElementAttribute(ce,ze,ce.getAttribute(ze));const ze=ce.tagName.toLowerCase();this._shouldRenameElement(ze)&&(_logUnsafeElement(ze),ce.replaceWith(this._createReplacementDomElement(ze,ce)))}for(;ce.firstChild;)ce.firstChild.remove();ce.append(qe)}viewToDom(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce.is("$text")){const Ve=this._processDataFromViewText(ce);return ze.createTextNode(Ve)}{if(this.mapViewToDom(ce))return this.mapViewToDom(ce);let qe;if(ce.is("documentFragment"))qe=ze.createDocumentFragment(),Ve.bind&&this.bindDocumentFragments(qe,ce);else{if(ce.is("uiElement"))return qe="$comment"===ce.name?ze.createComment(ce.getCustomProperty("$rawContent")):ce.render(ze,this),Ve.bind&&this.bindElements(qe,ce),qe;this._shouldRenameElement(ce.name)?(_logUnsafeElement(ce.name),qe=this._createReplacementDomElement(ce.name)):qe=ce.hasAttribute("xmlns")?ze.createElementNS(ce.getAttribute("xmlns"),ce.name):ze.createElement(ce.name),ce.is("rawElement")&&ce.render(qe,this),Ve.bind&&this.bindElements(qe,ce);for(const ze of ce.getAttributeKeys())this.setDomElementAttribute(qe,ze,ce.getAttribute(ze),ce)}if(!1!==Ve.withChildren)for(const Ye of this.viewChildrenToDom(ce,ze,Ve))qe.appendChild(Ye);return qe}}setDomElementAttribute(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const Ye=this.shouldRenderAttribute(ze,Ve,ce.tagName.toLowerCase())||qe&&qe.shouldRenderUnsafeAttribute(ze);Ye||Object(vt.b)("domconverter-unsafe-attribute-detected",{domElement:ce,key:ze,value:Ve}),ce.hasAttribute(ze)&&!Ye?ce.removeAttribute(ze):ce.hasAttribute(xt+ze)&&Ye&&ce.removeAttribute(xt+ze),ce.setAttribute(Ye?ze:xt+ze,Ve)}removeDomElementAttribute(ce,ze){ze!=Et&&(ce.removeAttribute(ze),ce.removeAttribute(xt+ze))}viewChildrenToDom(ce,ze){var Ve=this;let qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const Ye=ce.getFillerOffset&&ce.getFillerOffset();let We=0;for(const Qe of ce.getChildren()){Ye===We&&(yield Ve._getBlockFiller(ze));const ce=Qe.is("element")&&Qe.getCustomProperty("dataPipeline:transparentRendering");ce&&"data"==Ve.renderingMode?yield*Ve.viewChildrenToDom(Qe,ze,qe):(ce&&Object(vt.b)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:Qe}),yield Ve.viewToDom(Qe,ze,qe)),We++}Ye===We&&(yield Ve._getBlockFiller(ze))}()}viewRangeToDom(ce){const ze=this.viewPositionToDom(ce.start),Ve=this.viewPositionToDom(ce.end),qe=document.createRange();return qe.setStart(ze.parent,ze.offset),qe.setEnd(Ve.parent,Ve.offset),qe}viewPositionToDom(ce){const ze=ce.parent;if(ze.is("$text")){const Ve=this.findCorrespondingDomText(ze);if(!Ve)return null;let qe=ce.offset;return Object(yt.i)(Ve)&&(qe+=yt.c),{parent:Ve,offset:qe}}{let Ve,qe,Ye;if(0===ce.offset){if(Ve=this.mapViewToDom(ze),!Ve)return null;Ye=Ve.childNodes[0]}else{const ze=ce.nodeBefore;if(qe=ze.is("$text")?this.findCorrespondingDomText(ze):this.mapViewToDom(ce.nodeBefore),!qe)return null;Ve=qe.parentNode,Ye=qe.nextSibling}if(Object(wt.a)(Ye)&&Object(yt.i)(Ye))return{parent:Ye,offset:yt.c};return{parent:Ve,offset:qe?indexOf(qe)+1:0}}}domToView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(ce))return null;const Ve=this.getHostViewElement(ce);if(Ve)return Ve;if(Object(Ct.a)(ce)&&ze.skipComments)return null;if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return null;{const ze=this._processDataFromDomText(ce);return""===ze?null:new qe.a(this.document,ze)}}{if(this.mapDomToView(ce))return this.mapDomToView(ce);let Ve;if(this.isDocumentFragment(ce))Ve=new st.a(this.document),ze.bind&&this.bindDocumentFragments(ce,Ve);else{Ve=this._createViewElement(ce,ze),ze.bind&&this.bindElements(ce,Ve);const qe=ce.attributes;if(qe)for(let ce=qe.length,ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(let qe=0;qe1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.mapDomToView(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Qe.a._createBefore(Ve);if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.findCorrespondingViewText(ce);let qe=ze;return Ve?(Object(yt.i)(ce)&&(qe-=yt.c,qe=qe<0?0:qe),new Qe.a(Ve,qe)):null}if(0===ze){const ze=this.mapDomToView(ce);if(ze)return new Qe.a(ze,0)}else{const Ve=ce.childNodes[ze-1],qe=Object(wt.a)(Ve)?this.findCorrespondingViewText(Ve):this.mapDomToView(Ve);if(qe&&qe.parent)return new Qe.a(qe.parent,qe.index+1)}return null}mapDomToView(ce){return this.getHostViewElement(ce)||this._domToViewMapping.get(ce)}findCorrespondingViewText(ce){if(Object(yt.h)(ce))return null;const ze=this.getHostViewElement(ce);if(ze)return ze;const Ve=ce.previousSibling;if(Ve){if(!this.isElement(Ve))return null;const ce=this.mapDomToView(Ve);if(ce){return ce.nextSibling instanceof qe.a?ce.nextSibling:null}}else{const ze=this.mapDomToView(ce.parentNode);if(ze){const ce=ze.getChild(0);return ce instanceof qe.a?ce:null}}return null}mapViewToDom(ce){return this._viewToDomMapping.get(ce)}findCorrespondingDomText(ce){const ze=ce.previousSibling;return ze&&this.mapViewToDom(ze)?this.mapViewToDom(ze).nextSibling:!ze&&ce.parent&&this.mapViewToDom(ce.parent)?this.mapViewToDom(ce.parent).childNodes[0]:null}focus(ce){const ze=this.mapViewToDom(ce);if(ze&&ze.ownerDocument.activeElement!==ze){const{scrollX:ce,scrollY:Ve}=bt.a.window,qe=[];forEachDomNodeAncestor(ze,(ce=>{const{scrollLeft:ze,scrollTop:Ve}=ce;qe.push([ze,Ve])})),ze.focus(),forEachDomNodeAncestor(ze,(ce=>{const[ze,Ve]=qe.shift();ce.scrollLeft=ze,ce.scrollTop=Ve})),bt.a.window.scrollTo(ce,Ve)}}isElement(ce){return ce&&ce.nodeType==Node.ELEMENT_NODE}isDocumentFragment(ce){return ce&&ce.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(ce){return"br"==this.blockFillerMode?ce.isEqualNode(Dt):!("BR"!==ce.tagName||!hasBlockParent(ce,this.blockElements)||1!==ce.parentNode.childNodes.length)||(ce.isEqualNode(St)||isNbspBlockFiller(ce,this.blockElements))}isDomSelectionBackward(ce){if(ce.isCollapsed)return!1;const ze=document.createRange();ze.setStart(ce.anchorNode,ce.anchorOffset),ze.setEnd(ce.focusNode,ce.focusOffset);const Ve=ze.collapsed;return ze.detach(),Ve}getHostViewElement(ce){const ze=getAncestors(ce);for(ze.pop();ze.length;){const ce=ze.pop(),Ve=this._domToViewMapping.get(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Ve}return null}isDomSelectionCorrect(ce){return this._isDomSelectionPositionCorrect(ce.anchorNode,ce.anchorOffset)&&this._isDomSelectionPositionCorrect(ce.focusNode,ce.focusOffset)}registerRawContentMatcher(ce){this._rawContentElementMatcher.add(ce)}_getBlockFiller(ce){switch(this.blockFillerMode){case"nbsp":return Object(yt.e)(ce);case"markedNbsp":return Object(yt.d)(ce);case"br":return Object(yt.a)(ce)}}_isDomSelectionPositionCorrect(ce,ze){if(Object(wt.a)(ce)&&Object(yt.i)(ce)&&zethis.preElements.includes(ce.name))))return ze;if(" "==ze.charAt(0)){const Ve=this._getTouchingInlineViewNode(ce,!1);!(Ve&&Ve.is("$textProxy")&&this._nodeEndsWithSpace(Ve))&&Ve||(ze=" "+ze.substr(1))}if(" "==ze.charAt(ze.length-1)){const Ve=this._getTouchingInlineViewNode(ce,!0),qe=Ve&&Ve.is("$textProxy")&&" "==Ve.data.charAt(0);" "!=ze.charAt(ze.length-2)&&Ve&&!qe||(ze=ze.substr(0,ze.length-1)+" ")}return ze.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(ce){if(ce.getAncestors().some((ce=>this.preElements.includes(ce.name))))return!1;const ze=this._processDataFromViewText(ce);return" "==ze.charAt(ze.length-1)}_processDataFromDomText(ce){let ze=ce.data;if(_hasDomParentOfType(ce,this.preElements))return Object(yt.f)(ce);ze=ze.replace(/[ \n\t\r]{1,}/g," ");const Ve=this._getTouchingInlineDomNode(ce,!1),qe=this._getTouchingInlineDomNode(ce,!0),Ye=this._checkShouldLeftTrimDomText(ce,Ve),We=this._checkShouldRightTrimDomText(ce,qe);Ye&&(ze=ze.replace(/^ /,"")),We&&(ze=ze.replace(/ $/,"")),ze=Object(yt.f)(new Text(ze)),ze=ze.replace(/ \u00A0/g," ");const Qe=qe&&this.isElement(qe)&&"BR"!=qe.tagName,Xe=qe&&Object(wt.a)(qe)&&" "==qe.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(ze)||!qe||Qe||Xe)&&(ze=ze.replace(/\u00A0$/," ")),(Ye||Ve&&this.isElement(Ve)&&"BR"!=Ve.tagName)&&(ze=ze.replace(/^\u00A0/," ")),ze}_checkShouldLeftTrimDomText(ce,ze){return!ze||(this.isElement(ze)?"BR"===ze.tagName:!this._encounteredRawContentDomNodes.has(ce.previousSibling)&&/[^\S\u00A0]/.test(ze.data.charAt(ze.data.length-1)))}_checkShouldRightTrimDomText(ce,ze){return!ze&&!Object(yt.i)(ce)}_getTouchingInlineViewNode(ce,ze){const Ve=new mt.a({startPosition:ze?Qe.a._createAfter(ce):Qe.a._createBefore(ce),direction:ze?"forward":"backward"});for(const ce of Ve){if(ce.item.is("element")&&this.inlineObjectElements.includes(ce.item.name))return ce.item;if(ce.item.is("containerElement"))return null;if(ce.item.is("element","br"))return null;if(ce.item.is("$textProxy"))return ce.item}return null}_getTouchingInlineDomNode(ce,ze){if(!ce.parentNode)return null;const Ve=ze?"firstChild":"lastChild",qe=ze?"nextSibling":"previousSibling";let Ye=!0;do{if(!Ye&&ce[Ve]?ce=ce[Ve]:ce[qe]?(ce=ce[qe],Ye=!1):(ce=ce.parentNode,Ye=!0),!ce||this._isBlockElement(ce))return null}while(!Object(wt.a)(ce)&&"BR"!=ce.tagName&&!this._isInlineObjectElement(ce));return ce}_isBlockElement(ce){return this.isElement(ce)&&this.blockElements.includes(ce.tagName.toLowerCase())}_isInlineObjectElement(ce){return this.isElement(ce)&&this.inlineObjectElements.includes(ce.tagName.toLowerCase())}_createViewElement(ce,ze){if(Object(Ct.a)(ce))return new We.a(this.document,"$comment");const Ve=ze.keepOriginalCase?ce.tagName:ce.tagName.toLowerCase();return new Ye.a(this.document,Ve)}_isViewElementWithRawContent(ce,ze){return!1!==ze.withChildren&&this._rawContentElementMatcher.match(ce)}_shouldRenameElement(ce){const ze=ce.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(ze)}_createReplacementDomElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=document.createElement("span");if(Ve.setAttribute(Et,ce),ze){for(;ze.firstChild;)Ve.appendChild(ze.firstChild);for(const ce of ze.getAttributeNames())Ve.setAttribute(ce,ze.getAttribute(ce))}return Ve}}function _hasDomParentOfType(ce,ze){return getAncestors(ce).some((ce=>ce.tagName&&ze.includes(ce.tagName.toLowerCase())))}function forEachDomNodeAncestor(ce,ze){for(;ce&&ce!=bt.a.document;)ze(ce),ce=ce.parentNode}function isNbspBlockFiller(ce,ze){return ce.isEqualNode(kt)&&hasBlockParent(ce,ze)&&1===ce.parentNode.childNodes.length}function hasBlockParent(ce,ze){const Ve=ce.parentNode;return Ve&&Ve.tagName&&ze.includes(Ve.tagName.toLowerCase())}function _logUnsafeElement(ce){"script"===ce&&Object(vt.b)("domconverter-unsafe-script-element-detected"),"style"===ce&&Object(vt.b)("domconverter-unsafe-style-element-detected")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(29),Ye=Ve(117),We=Ve(285),Qe=Ve(153);class Xe extends qe.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ye.a,this.keystrokes=new Qe.a,this._focusCycler=new We.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(){super();const ce=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:ce.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const ce=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),ze=ce.getAttribute("viewBox");for(ze&&(this.viewBox=ze),this.element.innerHTML="";ce.childNodes.length>0;)this.element.appendChild(ce.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((ce=>{ce.style.fill=this.fillColor}))}}},function(ce,ze,Ve){"use strict";(function(ce){const qe=Ve(1786),Ye=Ve(865),We={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,undesiredNonAscii:25,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161,errDotAfterDomainLiteral:162},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};We.specials=function(){const ce='()<>[]:;@\\,."',ze=new Array(256);ze.fill(!1);for(let Ve=0;Ve<13;++Ve)ze[ce.codePointAt(Ve)]=!0;return function(ce){return ze[ce]}}(),We.c0Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=0;ze<33;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.c1Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=127;ze<160;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},We.normalizeSupportsNul="\0"==="\0".normalize("NFC"),We.nulNormalize=function(ce){return ce.split("\0").map((ce=>ce.normalize("NFC"))).join("\0")},We.normalize=function(ce){return ce.normalize("NFC")},We.normalizeSupportsNul||(We.normalize=function(ce){return ce.indexOf("\0")>=0?We.nulNormalize(ce):ce.normalize("NFC")}),We.checkIpV6=function(ce){return ce.every((ce=>We.regex.ipV6.test(ce)))},We.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(We.isIterable=ce=>Array.isArray(ce)||!!ce&&"object"==typeof ce&&"function"==typeof ce[Symbol.iterator]),We._isSet=ce=>ce instanceof Set,We._isMap=ce=>ce instanceof Map,We.isSet=Ye.types&&Ye.types.isSet||We._isSet,We.isMap=Ye.types&&Ye.types.isMap||We._isMap,We.normalizeTable=function(ce){return We.isSet(ce)||Array.isArray(ce)?ce:We.isMap(ce)?ce.keys():Object.keys(ce)},We.canonicalizeAtom=function(ce){return qe.toASCII(ce).toLowerCase()},We.includesMapped=function(ce,ze,Ve){for(const qe of ce)if(Ve===ze(qe))return!0;return!1},We.validDomain=function(ce,ze){const Ve=We.canonicalizeAtom(ce);return ze.tldBlacklist?!We.includesMapped(We.normalizeTable(ze.tldBlacklist),We.canonicalizeAtom,Ve):We.includesMapped(We.normalizeTable(ze.tldWhitelist),We.canonicalizeAtom,Ve)},We.hasDomainLiteralThenAtom=function(ce){let ze=!1;for(let Ve=0;Ve{!(ce>ot)||Ve.excludeDiagnoses&&Ve.excludeDiagnoses.has(ce)||(ot=ce)};!(void 0===Ve.allowUnicode||!!Ve.allowUnicode)&&/[^\x00-\x7f]/.test(ze)&&updateResult(We.diagnoses.undesiredNonAscii);const st={now:We.components.localpart,prev:We.components.localpart,stack:[We.components.localpart]};let mt="";const gt={local:"",domain:""},yt={locals:[""],domains:[""]};let bt,vt=0,wt=0,Ct=0,Dt=!1,kt=!1;const St=ze.length;let xt;for(let Ve=0;Ve64?updateResult(We.diagnoses.rfc5322LocalTooLong):st.prev!==We.components.contextComment&&st.prev!==We.components.contextFWS||updateResult(We.diagnoses.deprecatedCFWSNearAt),st.now=We.components.domain,st.stack[0]=We.components.domain,vt=0,wt=0,kt=!1;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.contextQuotedString:updateResult(We.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}else st.prev=st.now,bt=xt.codePointAt(0),(We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt))&&updateResult(We.diagnoses.errExpectingATEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.domain:switch(xt){case"(":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedComment):(kt=!0,updateResult(We.diagnoses.cfwsComment)),st.stack.push(st.now),st.now=We.components.contextComment;break;case".":const Ye=qe.toASCII(yt.domains[vt]).length;0===wt?updateResult(0===vt?We.diagnoses.errDotStart:We.diagnoses.errConsecutiveDots):Dt?updateResult(We.diagnoses.errDomainHyphenEnd):Ye>63&&updateResult(We.diagnoses.rfc5322LabelTooLong),kt=!1,wt=0,++vt,yt.domains[vt]="",gt.domain+=xt;break;case"[":0===yt.domains[vt].length?(gt.domain.length&&updateResult(We.diagnoses.errDotAfterDomainLiteral),kt=!0,wt+=ce.byteLength(xt,"utf8"),st.stack.push(st.now),st.now=We.components.literal,gt.domain+=xt,yt.domains[vt]+=xt,gt.literal=""):updateResult(We.diagnoses.errExpectingATEXT);break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedFWS):(updateResult(We.diagnoses.cfwsFWS),kt=!0),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.literal:updateResult(We.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}bt=xt.codePointAt(0),Dt=!1,We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingATEXT):"-"===xt?(0===wt&&updateResult(We.diagnoses.errDomainHyphenStart),Dt=!0):(bt<48||bt>122&&bt<192||bt>57&&bt<65||bt>90&&bt<97)&&updateResult(We.diagnoses.rfc5322Domain),gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.literal:switch(xt){case"]":if(otqe?updateResult(We.diagnoses.rfc5322IPv6MaxGroups):Ye.length===qe&&updateResult(We.diagnoses.deprecatedIPv6)):Ye.length!==qe&&updateResult(We.diagnoses.rfc5322IPv6GroupCount),":"===Ve[0]&&":"!==Ve[1]?updateResult(We.diagnoses.rfc5322IPv6ColonStart):":"===Ve[Ve.length-1]&&":"!==Ve[Ve.length-2]?updateResult(We.diagnoses.rfc5322IPv6ColonEnd):We.checkIpV6(Ye)?updateResult(We.diagnoses.rfc5321AddressLiteral):updateResult(We.diagnoses.rfc5322IPv6BadCharacter)}}else updateResult(We.diagnoses.rfc5322DomainLiteral);gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;case"\\":updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||"["===xt){updateResult(We.diagnoses.errExpectingDTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),gt.literal+=xt,gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedString:switch(xt){case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case"\t":gt.local+=" ",yt.locals[vt]+=" ",wt+=ce.byteLength(xt,"utf8"),updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;case'"':gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;default:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||10===bt?updateResult(We.diagnoses.errExpectingQTEXT):(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedQTEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedPair:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingQPair):(bt<31&&9!==bt||127===bt)&&updateResult(We.diagnoses.deprecatedQP),st.prev=st.now,st.now=st.stack.pop();const Ye="\\"+xt;switch(st.now){case We.components.contextComment:break;case We.components.contextQuotedString:gt.local+=Ye,yt.locals[vt]+=Ye,wt+=2;break;case We.components.literal:gt.domain+=Ye,yt.domains[vt]+=Ye,wt+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+st.now)}break;case We.components.contextComment:switch(xt){case"(":st.stack.push(st.now),st.now=We.components.contextComment;break;case")":st.prev=st.now,st.now=st.stack.pop();break;case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),0===bt||10===bt||127!==bt&&We.c1Controls(bt)){updateResult(We.diagnoses.errExpectingCTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedCTEXT)}break;case We.components.contextFWS:if("\r"===mt){if("\r"===xt){updateResult(We.diagnoses.errFWSCRLFx2);break}++Ct>1?updateResult(We.diagnoses.deprecatedFWS):Ct=1}switch(xt){case"\r":St!==++Ve&&"\n"===ze[Ve]||updateResult(We.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===mt&&updateResult(We.diagnoses.errFWSCRLFEnd),Ct=0,st.prev=st.now,st.now=st.stack.pop(),--Ve}mt=xt;break;default:throw new Error("unknown context: "+st.now)}if(ot>We.categories.rfc5322)break}if(ot255)updateResult(We.diagnoses.rfc5322DomainTooLong);else if(ce.byteLength(gt.local,"utf8")+ze+1>254)updateResult(We.diagnoses.rfc5322TooLong);else if(wt>63)updateResult(We.diagnoses.rfc5322LabelTooLong);else if(Ve.minDomainAtoms&&yt.domains.length2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(546);ze.a=qe.default},function(ce,ze,Ve){"use strict";ze.a=function identity(ce){return ce}},function(ce,ze,Ve){"use strict";var qe=/^(?:0|[1-9]\d*)$/;ze.a=function isIndex(ce,ze){var Ve=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==Ve||"symbol"!=Ve&&qe.test(ce))&&ce>-1&&ce%1==0&&cemt))return!1;var yt=We.get(ce),bt=We.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Xe:void 0;for(We.set(ce,ze),We.set(ze,ce);++vt{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:qe,options:Ye}=this.props,We=bt()(St.button,St[qe],{[St.hasLabel]:Ve,[St.hasOptions]:Ye}),Qe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.a,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),Ye&&mt.a.createElement(kt.a,{name:"su-angle-down"}));return Ye?mt.a.createElement(Dt.a,{anchorElement:Qe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,Ye.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Qe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Et=xt,Pt="header--gKNR2ZffzU",Tt="disabled--HMlox4NnLW",Lt="empty-list--N0CVUSEn5X",Ft="label--70OAuMsWZr",Bt="loader--XuEdVBrC-x";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:qe,onClick:Ye,onEdit:We,onRemove:Qe,sortable:Xe}=this.props,ot=this.createDragHandle(),st=bt()(Ht,{[Ut]:Ve}),gt=bt()(Jt,{[Qt]:Ye}),yt=bt()(Wt,{[ln]:Xe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Xe&&mt.a.createElement(kt.a,{name:"su-more"}),mt.a.createElement("span",{className:mn},qe)),Ye?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.a,{name:"su-pen"})),Qe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.a,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass---o9A8qyxFL",wn="disabled--b2meQpX+vj",Cn="list--lzFOb27VZc",Sn="list-element--dc5ZPkhJYB",En="dragging--SBnsmOsTuJ";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const qe=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:qe},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:qe}=this.props;qe&&qe(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:qe,loading:Ye,rightButton:We,onItemClick:Qe,onItemEdit:Xe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Vt,{disabled:ce,emptyList:gt,label:Ve,leftButton:qe?{disabled:ce,...qe}:void 0,loading:Ye,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Qe||ze.props.onClick,onEdit:Xe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;var Yn=Fn;ze.a=Yn},function(ce,ze,Ve){"use strict";var qe=function listCacheClear(){this.__data__=[],this.size=0},Ye=Ve(223);var We=function assocIndexOf(ce,ze){for(var Ve=ce.length;Ve--;)if(Object(Ye.a)(ce[Ve][0],ze))return Ve;return-1},Qe=Array.prototype.splice;var Xe=function listCacheDelete(ce){var ze=this.__data__,Ve=We(ze,ce);return!(Ve<0)&&(Ve==ze.length-1?ze.pop():Qe.call(ze,Ve,1),--this.size,!0)};var ot=function listCacheGet(ce){var ze=this.__data__,Ve=We(ze,ce);return Ve<0?void 0:ze[Ve][1]};var st=function listCacheHas(ce){return We(this.__data__,ce)>-1};var mt=function listCacheSet(ce,ze){var Ve=this.__data__,qe=We(Ve,ce);return qe<0?(++this.size,Ve.push([ce,ze])):Ve[qe][1]=ze,this};function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{if(!ze.modelRange&&Ve.consumable.consume(ze.viewItem,{name:!0})){const{modelRange:ce,modelCursor:qe}=Ve.convertChildren(ze.viewItem,ze.modelCursor);ze.modelRange=ce,ze.modelCursor=qe}}}function convertText(){return(ce,ze,Ve)=>{let{schema:qe,consumable:Ye,writer:We}=Ve,Qe=ze.modelCursor;if(!Ye.test(ze.viewItem))return;if(!qe.checkChild(Qe,"$text")){if(!Object(Xe.b)(Qe,"$text",qe))return;if(0==ze.viewItem.data.trim().length)return;Qe=Object(Xe.c)(Qe,We)}Ye.consume(ze.viewItem);const ot=We.createText(ze.viewItem.data);We.insert(ot,Qe),ze.modelRange=We.createRange(Qe,Qe.getShiftedBy(ot.offsetSize)),ze.modelCursor=ze.modelRange.end}}function convertSelectionChange(ce,ze){return(Ve,qe)=>{const Ye=qe.newSelection,We=[];for(const ce of Ye.getRanges())We.push(ze.toModelRange(ce));const Qe=ce.createSelection(We,{backward:Ye.isBackward});Qe.isEqual(ce.document.selection)||ce.change((ce=>{ce.setSelection(Qe)}))}}function upcastElementToElement(ce){const ze=prepareToElementConverter(ce=Object(We.a)(ce)),Ve=getViewElementNameFromConfig(ce.view),qe=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(qe,ze,{priority:ce.converterPriority||"normal"})}}function upcastElementToAttribute(ce){normalizeModelAttributeConfig(ce=Object(We.a)(ce));const ze=prepareToAttributeConverter(ce,!1),Ve=getViewElementNameFromConfig(ce.view),qe=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(qe,ze,{priority:ce.converterPriority||"low"})}}function upcastAttributeToAttribute(ce){let ze=null;("string"==typeof(ce=Object(We.a)(ce)).view||ce.view.key)&&(ze=normalizeViewAttributeKeyValueConfig(ce)),normalizeModelAttributeConfig(ce,ze);const Ve=prepareToAttributeConverter(ce,!0);return ze=>{ze.on("element",Ve,{priority:ce.converterPriority||"low"})}}function upcastElementToMarker(ce){return normalizeElementToMarkerConfig(ce=Object(We.a)(ce)),upcastElementToElement(ce)}function upcastDataToMarker(ce){(ce=Object(We.a)(ce)).model||(ce.model=ze=>ze?ce.view+":"+ze:ce.view);const ze=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"start")),Ve=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"end"));return qe=>{qe.on("element:"+ce.view+"-start",ze,{priority:ce.converterPriority||"normal"}),qe.on("element:"+ce.view+"-end",Ve,{priority:ce.converterPriority||"normal"});const Ye=Qe.a.get("low"),We=Qe.a.get("highest"),Xe=Qe.a.get(ce.converterPriority)/We;qe.on("element",upcastAttributeToMarker(ce),{priority:Ye+Xe})}}function upcastAttributeToMarker(ce){return(ze,Ve,qe)=>{const Ye=`data-${ce.view}`;function addMarkerElements(ze,Ye){for(const We of Ye){const Ye=ce.model(We,qe),Qe=qe.writer.createElement("$marker",{"data-name":Ye});qe.writer.insert(Qe,ze),Ve.modelCursor.isEqual(ze)?Ve.modelCursor=Ve.modelCursor.getShiftedBy(1):Ve.modelCursor=Ve.modelCursor._getTransformedByInsertion(ze,1),Ve.modelRange=Ve.modelRange._getTransformedByInsertion(ze,1)[0]}}(qe.consumable.test(Ve.viewItem,{attributes:Ye+"-end-after"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-start-after"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-end-before"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-start-before"}))&&(Ve.modelRange||Object.assign(Ve,qe.convertChildren(Ve.viewItem,Ve.modelCursor)),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-end-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(Ye+"-end-after").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-start-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(Ye+"-start-after").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-end-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(Ye+"-end-before").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-start-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(Ye+"-start-before").split(",")))}}function getViewElementNameFromConfig(ce){return"string"==typeof ce?ce:"object"==typeof ce&&"string"==typeof ce.name?ce.name:null}function prepareToElementConverter(ce){const ze=new qe.a(ce.view);return(Ve,qe,Ye)=>{const We=ze.match(qe.viewItem);if(!We)return;const Qe=We.match;if(Qe.name=!0,!Ye.consumable.test(qe.viewItem,Qe))return;const Xe=getModelElement(ce.model,qe.viewItem,Ye);Xe&&Ye.safeInsert(Xe,qe.modelCursor)&&(Ye.consumable.consume(qe.viewItem,Qe),Ye.convertChildren(qe.viewItem,Xe),Ye.updateConversionResult(Xe,qe))}}function getModelElement(ce,ze,Ve){return ce instanceof Function?ce(ze,Ve):Ve.writer.createElement(ce)}function normalizeViewAttributeKeyValueConfig(ce){"string"==typeof ce.view&&(ce.view={key:ce.view});const ze=ce.view.key;let Ve;if("class"==ze||"style"==ze){const qe="class"==ze?"classes":"styles";Ve={[qe]:ce.view.value}}else{const qe=void 0===ce.view.value?/[\s\S]*/:ce.view.value;Ve={attributes:{[ze]:qe}}}return ce.view.name&&(Ve.name=ce.view.name),ce.view=Ve,ze}function normalizeModelAttributeConfig(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=null===ze||(ce=>ce.getAttribute(ze)),qe="object"!=typeof ce.model?ce.model:ce.model.key,Ye="object"!=typeof ce.model||void 0===ce.model.value?Ve:ce.model.value;ce.model={key:qe,value:Ye}}function prepareToAttributeConverter(ce,ze){const Ve=new qe.a(ce.view);return(qe,Ye,We)=>{if(!Ye.modelRange&&ze)return;const Qe=Ve.match(Ye.viewItem);if(!Qe)return;if(onlyViewNameIsDefined(ce.view,Ye.viewItem)?Qe.match.name=!0:delete Qe.match.name,!We.consumable.test(Ye.viewItem,Qe.match))return;const Xe=ce.model.key,ot="function"==typeof ce.model.value?ce.model.value(Ye.viewItem,We):ce.model.value;if(null===ot)return;Ye.modelRange||Object.assign(Ye,We.convertChildren(Ye.viewItem,Ye.modelCursor));setAttributeOn(Ye.modelRange,{key:Xe,value:ot},ze,We)&&(We.consumable.test(Ye.viewItem,{name:!0})&&(Qe.match.name=!0),We.consumable.consume(Ye.viewItem,Qe.match))}}function onlyViewNameIsDefined(ce,ze){const Ve="function"==typeof ce?ce(ze):ce;return!("object"==typeof Ve&&!getViewElementNameFromConfig(Ve))&&(!Ve.classes&&!Ve.attributes&&!Ve.styles)}function setAttributeOn(ce,ze,Ve,qe){let Ye=!1;for(const We of Array.from(ce.getItems({shallow:Ve})))qe.schema.checkAttribute(We,ze.key)&&(Ye=!0,We.hasAttribute(ze.key)||qe.writer.setAttribute(ze.key,ze.value,We));return Ye}function normalizeElementToMarkerConfig(ce){const ze=ce.model;ce.model=(ce,Ve)=>{const qe="string"==typeof ze?ze:ze(ce,Ve);return Ve.writer.createElement("$marker",{"data-name":qe})}}function normalizeDataToMarkerConfig(ce,ze){const Ve={};return Ve.view=ce.view+"-"+ze,Ve.model=(ze,Ve)=>{const qe=ze.getAttribute("name"),Ye=ce.model(qe,Ve);return Ve.writer.createElement("$marker",{"data-name":Ye})},Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(100),Ye=Ve(8);class We extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.root=ce,this.key=ze,this.oldValue=Ve,this.newValue=qe}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new We(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new We(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Ye.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Ye.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Ye.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const ce=super.toJSON();return ce.root=this.root.toJSON(),ce}static get className(){return"RootAttributeOperation"}static fromJSON(ce,ze){if(!ze.getRoot(ce.root))throw new Ye.a("rootattribute-operation-fromjson-no-root",this,{rootName:ce.root});return new We(ze.getRoot(ce.root),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return vt})),Ve.d(ze,"a",(function(){return bt.a})),Ve.d(ze,"b",(function(){return St})),Ve.d(ze,"d",(function(){return inlineHighlight}));var qe=Ve(31),Ye=Ve(80),We=Ve(682);class Qe extends Ye.a{constructor(ce,ze){super(ce),this._buffer=new We.a(ce.model,ze)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,qe=ce.text||"",Ye=qe.length,We=ce.range?ze.createSelection(ce.range):Ve.selection,Qe=ce.resultRange;ze.enqueueChange(this._buffer.batch,(ce=>{this._buffer.lock(),ze.deleteContent(We),qe&&ze.insertContent(ce.createText(qe,Ve.selection.getAttributes()),We),Qe?ce.setSelection(Qe):We.is("documentSelection")||ce.setSelection(We),this._buffer.unlock(),this._buffer.input(Ye)}))}}var Xe=Ve(364),ot=Ve(199),st=Ve(294),mt=Ve(341);function injectTypingMutationsHandling(ce){ce.editing.view.document.on("mutations",((ze,Ve,qe)=>{new gt(ce).handle(Ve,qe)}))}class gt{constructor(ce){this.editor=ce,this.editing=this.editor.editing}handle(ce,ze){if(Object(mt.a)(ce))this._handleContainerChildrenMutations(ce,ze);else for(const Ve of ce)this._handleTextMutation(Ve,ze),this._handleTextNodeInsertion(Ve)}_handleContainerChildrenMutations(ce,ze){const Ve=getMutationsContainer(ce);if(!Ve)return;const qe=this.editor.editing.view.domConverter.mapViewToDom(Ve),Ye=new st.a(this.editor.editing.view.document),We=this.editor.data.toModel(Ye.domToView(qe)).getChild(0),Qe=this.editor.editing.mapper.toModelElement(Ve);if(!Qe)return;const Xe=Array.from(We.getChildren()),mt=Array.from(Qe.getChildren()),gt=Xe[Xe.length-1],yt=mt[mt.length-1],bt=gt&>.is("element","softBreak"),vt=yt&&!yt.is("element","softBreak");bt&&vt&&Xe.pop();const wt=this.editor.model.schema;if(!isSafeForTextMutation(Xe,wt)||!isSafeForTextMutation(mt,wt))return;const Ct=Xe.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," "),Dt=mt.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," ");if(Dt===Ct)return;const kt=Object(ot.a)(Dt,Ct),{firstChangeAt:St,insertions:xt,deletions:Et}=calculateChanges(kt);let Pt=null;ze&&(Pt=this.editing.mapper.toModelRange(ze.getFirstRange()));const Tt=Ct.substr(St,xt),Lt=this.editor.model.createRange(this.editor.model.createPositionAt(Qe,St),this.editor.model.createPositionAt(Qe,St+Et));this.editor.execute("input",{text:Tt,range:Lt,resultRange:Pt})}_handleTextMutation(ce,ze){if("text"!=ce.type)return;const Ve=ce.newText.replace(/\u00A0/g," "),qe=ce.oldText.replace(/\u00A0/g," ");if(qe===Ve)return;const Ye=Object(ot.a)(qe,Ve),{firstChangeAt:We,insertions:Qe,deletions:Xe}=calculateChanges(Ye);let st=null;ze&&(st=this.editing.mapper.toModelRange(ze.getFirstRange()));const mt=this.editing.view.createPositionAt(ce.node,We),gt=this.editing.mapper.toModelPosition(mt),yt=this.editor.model.createRange(gt,gt.getShiftedBy(Xe)),bt=Ve.substr(We,Qe);this.editor.execute("input",{text:bt,range:yt,resultRange:st})}_handleTextNodeInsertion(ce){if("children"!=ce.type)return;const ze=Object(mt.b)(ce),Ve=this.editing.view.createPositionAt(ce.node,ze.index),qe=this.editing.mapper.toModelPosition(Ve),Ye=ze.values[0].data;this.editor.execute("input",{text:Ye.replace(/\u00A0/g," "),range:this.editor.model.createRange(qe)})}}function getMutationsContainer(ce){const ze=ce.map((ce=>ce.node)).reduce(((ce,ze)=>ce.getCommonAncestor(ze,{includeSelf:!0})));if(ze)return ze.getAncestors({includeSelf:!0,parentFirst:!0}).find((ce=>ce.is("containerElement")||ce.is("rootElement")))}function isSafeForTextMutation(ce,ze){return ce.every((ce=>ze.isInline(ce)))}function calculateChanges(ce){let ze=null,Ve=null;for(let qe=0;qeqe.is("$text")||qe.is("$textProxy")?ce+qe.data:(Ve=ze.createPositionAfter(qe),"")),""),range:ze.createRange(Ve,ce.end)}}class Dt{constructor(ce,ze){this.model=ce,this.testCallback=ze,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(ce.document.selection),this.stopListening(ce.document))})),this._startListening()}_startListening(){const ce=this.model.document;this.listenTo(ce.selection,"change:range",((ze,Ve)=>{let{directChange:qe}=Ve;qe&&(ce.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(ce,"change:data",((ce,ze)=>{!ze.isUndo&&ze.isLocal&&this._evaluateTextBeforeSelection("data",{batch:ze})}))}_evaluateTextBeforeSelection(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.model,qe=Ve.document.selection,Ye=Ve.createRange(Ve.createPositionAt(qe.focus.parent,0),qe.focus),{text:We,range:Qe}=getLastTextLine(Ye,Ve),Xe=this.testCallback(We);if(!Xe&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!Xe,Xe){const Ve=Object.assign(ze,{text:We,range:Qe});"object"==typeof Xe&&Object.assign(Ve,Xe),this.fire(`matched:${ce}`,Ve)}}}Object(wt.a)(Dt,Ct.a);var kt=Ve(37);class St extends qe.a{static get pluginName(){return"TwoStepCaretMovement"}constructor(ce){super(ce),this.attributes=new Set,this._overrideUid=null}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,qe=ce.locale,Ye=ze.document.selection;this.listenTo(Ve.document,"arrowKey",((ce,ze)=>{if(!Ye.isCollapsed)return;if(ze.shiftKey||ze.altKey||ze.ctrlKey)return;const Ve=ze.keyCode==kt.f.arrowright,We=ze.keyCode==kt.f.arrowleft;if(!Ve&&!We)return;const Qe=qe.contentLanguageDirection;let Xe=!1;Xe="ltr"===Qe&&Ve||"rtl"===Qe&&We?this._handleForwardMovement(ze):this._handleBackwardMovement(ze),!0===Xe&&ce.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(Ye,"change:range",((ce,ze)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!ze.directChange&&isBetweenDifferentAttributes(Ye.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(ce){this.attributes.add(ce)}_handleForwardMovement(ce){const ze=this.attributes,Ve=this.editor.model.document.selection,qe=Ve.getFirstPosition();return!this._isGravityOverridden&&((!qe.isAtStart||!hasAnyAttribute(Ve,ze))&&(isBetweenDifferentAttributes(qe,ze)?(preventCaretMovement(ce),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(ce){const ze=this.attributes,Ve=this.editor.model,qe=Ve.document.selection,Ye=qe.getFirstPosition();return this._isGravityOverridden?(preventCaretMovement(ce),this._restoreGravity(),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):Ye.isAtStart?!!hasAnyAttribute(qe,ze)&&(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):isStepAfterAnyAttributeBoundary(Ye,ze)?Ye.isAtEnd&&!hasAnyAttribute(qe,ze)&&isBetweenDifferentAttributes(Ye,ze)?(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((ce=>ce.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((ce=>{ce.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function hasAnyAttribute(ce,ze){for(const Ve of ze)if(ce.hasAttribute(Ve))return!0;return!1}function setSelectionAttributesFromTheNodeBefore(ce,ze,Ve){const qe=Ve.nodeBefore;ce.change((ce=>{qe?ce.setSelectionAttribute(qe.getAttributes()):ce.removeSelectionAttribute(ze)}))}function preventCaretMovement(ce){ce.preventDefault()}function isStepAfterAnyAttributeBoundary(ce,ze){return isBetweenDifferentAttributes(ce.getShiftedBy(-1),ze)}function isBetweenDifferentAttributes(ce,ze){const{nodeBefore:Ve,nodeAfter:qe}=ce;for(const ce of ze){const ze=Ve?Ve.getAttribute(ce):void 0;if((qe?qe.getAttribute(ce):void 0)!==ze)return!0}return!1}Ve(716);var xt=/[\\^$.*+?()[\]{}|]/g;RegExp(xt.source);buildQuotesRegExp('"'),buildQuotesRegExp("'"),buildQuotesRegExp("'"),buildQuotesRegExp('"'),buildQuotesRegExp('"'),buildQuotesRegExp("'");qe.a;function buildQuotesRegExp(ce){return new RegExp(`(^|\\s)(${ce})([^${ce}]*)(${ce})$`)}function findAttributeRange(ce,ze,Ve,qe){return qe.createRange(_findBound(ce,ze,Ve,!0,qe),_findBound(ce,ze,Ve,!1,qe))}function _findBound(ce,ze,Ve,qe,Ye){let We=ce.textNode||(qe?ce.nodeBefore:ce.nodeAfter),Qe=null;for(;We&&We.getAttribute(ze)==Ve;)Qe=We,We=qe?We.previousSibling:We.nextSibling;return Qe?Ye.createPositionAt(Qe,qe?"before":"after"):ce}function inlineHighlight(ce,ze,Ve,qe){const Ye=ce.editing.view,We=new Set;Ye.document.registerPostFixer((Ye=>{const Qe=ce.model.document.selection;let Xe=!1;if(Qe.hasAttribute(ze)){const ot=findAttributeRange(Qe.getFirstPosition(),ze,Qe.getAttribute(ze),ce.model),st=ce.editing.mapper.toViewRange(ot);for(const ce of st.getItems())ce.is("element",Ve)&&!ce.hasClass(qe)&&(Ye.addClass(qe,ce),We.add(ce),Xe=!0)}return Xe})),ce.conversion.for("editingDowncast").add((ce=>{function removeHighlight(){Ye.change((ce=>{for(const ze of We.values())ce.removeClass(qe,ze),We.delete(ze)}))}ce.on("insert",removeHighlight,{priority:"highest"}),ce.on("remove",removeHighlight,{priority:"highest"}),ce.on("attribute",removeHighlight,{priority:"highest"}),ce.on("selection",removeHighlight,{priority:"highest"})}))}},function(ce,ze,Ve){"use strict";var qe=Ve(9),Ye=Ve.n(qe);var We=new class{getSystems(){return Object.keys(this.securityContexts)}setSecurityContexts(ce){this.securityContexts=ce}getSecurityContextByResourceKey(ce){return this.resourceKeyMapping[ce]}getSecurityContextGroups(ce){return this.securityContexts[ce]}getAvailableActions(ce,ze){const Ve=this.securityContexts[ze||this.suluSecuritySystem];if(!Ve)return[];for(const ze in Ve){const qe=Ve[ze];for(const ze in qe)if(ze===this.resourceKeyMapping[ce])return qe[ze]}return[]}loadSecurityContextGroups(ce){return Ye.a.warn('The "loadSecurityContextGroups" method is deprecated since 2.2 and will be removed. Use the "getSecurityContextGroups" method instead.'),Promise.resolve(this.getSecurityContextGroups(ce))}loadAvailableActions(ce){return Ye.a.warn('The "loadAvailableActions" method is deprecated since 2.2 and will be removed. Use the "getAvailableActions" method instead.'),Promise.resolve(this.getAvailableActions(ce))}};ze.a=We},function(ce,ze,Ve){"use strict";function isComment(ce){return ce&&ce.nodeType===Node.COMMENT_NODE}Ve.d(ze,"a",(function(){return isComment}))},function(ce,ze,Ve){"use strict";var qe=Ve(570);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(1),Xe=Ve(3),ot=Ve(34),st=Ve(7),mt=Ve(6),gt=Ve(11),yt=Ve(76);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var bt,vt,wt,Ct,Dt,kt,St,xt=(_applyDecoratedDescriptor((qe=class{constructor(ce,ze){this.collectionId=ce,this.locale=ze,this.resourceStore=new yt.c("collections",ce,{locale:ze},{depth:1,breadcrumb:!0,parent:!0})}destroy(){this.resourceStore.destroy()}get loading(){return!!this.resourceStore&&this.resourceStore.loading}get id(){return this.resourceStore.id}get locked(){return!this.loading&&this.resourceStore.data.locked}get permissions(){return this.resourceStore.loading||!this.resourceStore.id?{}:this.resourceStore.data._permissions||{}}get parentId(){const{data:ce}=this.resourceStore;if(!ce._embedded)return null;const{_embedded:{parent:ze}}=ce;return ze?ze.id:null}}).prototype,"loading",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locked",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locked"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"permissions",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"permissions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"parentId",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"parentId"),qe.prototype),qe),Et=Ve(227),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaUploadStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ft="media",Bt="media_preview",Vt="fileVersion";var Ht,Ut=(vt=MediaUploadStore_applyDecoratedDescriptor((bt=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",vt,this),_initializerDefineProperty(this,"progress",wt,this),_initializerDefineProperty(this,"media",Ct,this),_initializerDefineProperty(this,"error",Dt,this),_initializerDefineProperty(this,"handleResponse",kt,this),_initializerDefineProperty(this,"handleError",St,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return Lt.c.delete(Ft,{id:this.id}).then(Object(Qe.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Ft,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,Vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=Lt.d.getDetailUrl(Ft,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,Vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return Lt.c.delete(Bt,{id:this.id}).then(Object(Qe.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((qe,Ye)=>{const We=new XMLHttpRequest,Qe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)qe(JSON.parse(ce.target.response));else try{Ye(JSON.parse(ce.target.response))}catch(ze){Ye(ce.target)}},We.onerror=ce=>Ye(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Qe.append(Ve,ce),We.send(Qe)}))}}).prototype,"uploading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"progress",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"media",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"id",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"id"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"downloadUrl",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"downloadUrl"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"mimeType",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"mimeType"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setUploading",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setUploading"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setProgress",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setProgress"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"delete",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"delete"),bt.prototype),kt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleResponse",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),St=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleError",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),bt),Wt="media-item--i1slzbiO2z",Jt="progressbar-container--zwNiAALe6Z";var Qt,en,rn=Object(Xe.b)(Ht=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:Wt},ce.uploading&&We.a.createElement("div",{className:Jt},We.a.createElement(st.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||Ht,ln=Ve(26),mn=Ve.n(ln),gn=Ve(2138),bn="dropzone-overlay--p1a2GYaKwB",wn="close-icon--LACaXh13yC",Cn="drop-area--190zXu+gQx",Sn="upload-info-container--yWWmN-i5em",En="upload-info--r7p6WjxwJY",Tn="upload-info-headline--RW58fEn6Ro",Ln="upload-info-subline--VPGL7CROiO",Fn="upload-icon--7qORNHiOsu",Yn="media-items--Z3x1f4kuLm";const Un="esc";var Gn,Kn,Jn,Zn,Xn,ei,si,_i,Ri=Object(Xe.b)(((en=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&mn.a.bind(Un,ze)}componentWillUnmount(){this.props.open&&mn.a.unbind(Un)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?mn.a.bind(Un,ze):mn.a.unbind(Un))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(gn.a,null,We.a.createElement("div",{className:bn,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Cn,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Sn},Ve&&We.a.createElement("div",{className:En},We.a.createElement(st.Icon,{className:Fn,name:"su-upload"}),We.a.createElement("div",{className:Tn},Object(mt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Ln},Object(mt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Yn},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(st.Icon,{className:wn,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Qt=en))||Qt,Ci="dropzone--ggmbKoqa8h";function MultiMediaDropzone_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MultiMediaDropzone_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Di="collections";let Ei=Object(Xe.b)((_i=class extends We.a.Component{constructor(){super(...arguments),MultiMediaDropzone_initializerDefineProperty(this,"filesScheduledForUpload",Jn,this),MultiMediaDropzone_initializerDefineProperty(this,"mediaUploadStores",Zn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:qe,onUpload:Ye,onUploadError:We}=this.props,Qe=[];return ce.forEach((ce=>{const qe=new Ut(void 0,Ve),Ye=qe.create(ze,ce);Qe.push(Ye),this.addMediaUploadStore(qe)})),Promise.allSettled(Qe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?Ye(ze):We(Ve),setTimeout((()=>{qe(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},MultiMediaDropzone_initializerDefineProperty(this,"handleDrop",Xn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",ei,this),MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",si,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(rn,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:qe,locale:Ye,open:Qe}=this.props,st=Tt()(Ci,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(Et.a,{accept:ce,disabled:qe,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:qe}=ce;return We.a.createElement(Xe.a,null,(()=>We.a.createElement("div",qe({className:st}),ze,We.a.createElement("input",Ve()),We.a.createElement(Ri,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Qe},this.createMediaItems()))))})),We.a.createElement(ot.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:Di,locale:Ye,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:Di,title:Object(gt.b)("sulu_media.select_collection_for_upload")}))}},_i.defaultProps={accept:void 0,disabled:!1},Jn=MultiMediaDropzone_applyDecoratedDescriptor((Kn=_i).prototype,"filesScheduledForUpload",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"mediaUploadStores",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"addMediaUploadStore",[Qe.action],Object.getOwnPropertyDescriptor(Kn.prototype,"addMediaUploadStore"),Kn.prototype),MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"destroyMediaUploadStores",[Qe.action],Object.getOwnPropertyDescriptor(Kn.prototype,"destroyMediaUploadStores"),Kn.prototype),Xn=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleDrop",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),ei=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleSelectCollectionOverlayClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),si=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleSelectCollectionOverlayConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),Gn=Kn))||Gn;var Oi,Ti,er,tr,nr=Ei,rr=Ve(401),ar=Ve(335),sr="overlay--nyNBhHN8Va";function CollectionFormOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CollectionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const lr="collection_details";var dr,ur,pr=Object(Xe.b)((Ti=class extends We.a.Component{constructor(ce){super(ce),CollectionFormOverlay_initializerDefineProperty(this,"title",er,this),CollectionFormOverlay_initializerDefineProperty(this,"formStore",tr,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=ot.j.createFromResourceStore(ze,lr)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(mt.translate)("sulu_media.add_collection"):Object(mt.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=ot.j.createFromResourceStore(this.props.resourceStore,lr))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,qe="create"===ce||"update"===ce,Ye=Object(mt.translate)("sulu_admin.ok"),Qe=Object(mt.translate)("sulu_admin.cancel"),Xe=We.a.createElement(ot.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?We.a.createElement(st.Dialog,{cancelText:Qe,confirmLoading:Ve.saving,confirmText:Ye,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},Xe):We.a.createElement(st.Overlay,{confirmLoading:Ve.saving,confirmText:Ye,onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},We.a.createElement("div",{className:sr},Xe))}},er=CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"title",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tr=CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"formStore",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(Ti.prototype,"componentDidUpdate"),Ti.prototype),Oi=Ti))||Oi;let vr=Object(Xe.b)((ur=class ce extends We.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:qe}}=Ve,Ye=ce.getCurrentCollectionItem(Ve);return qe?[...qe,Ye]:[Ye]}render(){const ce=st.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(mt.translate)("sulu_media.all_media");if(!ze||!ze.length)return We.a.createElement(st.Breadcrumb,null,We.a.createElement(ce,null,Ve));if(1===ze.length){const qe=ze[0];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,null,qe.title))}const qe=ze[ze.length-1],Ye=ze[ze.length-2];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,{value:Ye.id},"..."),We.a.createElement(ce,null,qe.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(ur.prototype,"breadcrumb",[Qe.computed],Object.getOwnPropertyDescriptor(ur.prototype,"breadcrumb"),ur.prototype),dr=ur))||dr;var _r,Rr,Cr,Dr,Er,Tr,Ar,Mr,Lr,jr,Ir=vr,zr="overlay--4vlgQyxpWS";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Br={resourceKey:"media"};var Nr,Vr,Hr,qr,Yr,Ur,Wr,$r,Gr,Kr=Object(Xe.b)((Rr=class extends We.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Cr,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Dr,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Er,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Tr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Ar,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Mr,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...Br}).then((()=>ze())).catch((ce=>{ce.json().then(Object(Qe.action)((ce=>{const ze=ce.detail||ce.title||Object(mt.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",Lr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",jr,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new yt.c("permissions",ce,{},Br),this.formStore=ot.j.createFromResourceStore(this.resourceStore,"permission_details",Br),this.inheritDialogFormStore=ot.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return We.a.createElement(Ye.Fragment,null,We.a.createElement(st.Overlay,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(mt.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(mt.translate)("sulu_security.permissions")},We.a.createElement("div",{className:zr},We.a.createElement(ot.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(mt.translate)("sulu_security.inherit_permissions_title")},We.a.createElement(ot.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Cr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"showInheritDialog",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(Rr.prototype,"componentDidUpdate"),Rr.prototype),Er=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Tr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleConfirmInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Ar=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleSubmitInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Mr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleCancelInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),Lr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleSnackbarCloseClick",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),jr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),_r=Rr))||_r,Jr="collection-section--pi1B29igFv",Zr="left--KWb5Oxux68",ga="right--7zITYQUc-5";function CollectionSection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ya="collections";let ba=Object(Xe.b)((Vr=class extends We.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Hr,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",qr,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",Yr,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,qe=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(qe)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(Qe.action)((Ve=>{409!==ze.status||Ve.code!==ar.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",Ur,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Wr,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$r,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Gr,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(Qe.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const qe=new yt.c(ya,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&qe.set("parent",this.collectionId),qe}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?We.a.createElement(rr.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:qe,locale:Ye,overlayType:Qe,resourceStore:Xe,securable:gt}=this.props,yt=this.openedCollectionOperationOverlayType;return We.a.createElement("div",null,!Xe.loading&&We.a.createElement("div",{className:Jr},We.a.createElement("div",{className:Zr},We.a.createElement(Ir,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Xe})),We.a.createElement("div",{className:ga},We.a.createElement(st.ButtonGroup,null,ce&&We.a.createElement(st.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(mt.translate)("sulu_media.add_collection")),!!Xe.id&&(Ve||ze||Ve||gt)&&We.a.createElement(st.DropdownButton,{icon:"su-cog"},Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(mt.translate)("sulu_admin.edit")),ze&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(mt.translate)("sulu_admin.delete")),Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(mt.translate)("sulu_admin.move")),gt&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(mt.translate)("sulu_security.permissions")))))),We.a.createElement(ot.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:qe}),We.a.createElement(pr,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:yt,overlayType:Qe,resourceStore:this.resourceStoreByOperationType}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:Xe.deleting,confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===yt,title:Object(mt.translate)("sulu_media.remove_collection")},Object(mt.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),We.a.createElement(Kr,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===yt}),We.a.createElement(ot.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Xe.moving,disabledIds:Xe.id?[Xe.id]:[],itemDisabledCondition:"!!locked",listKey:ya,locale:Ye,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===yt,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:ya,title:Object(mt.translate)("sulu_media.move_collection")}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(mt.translate)("sulu_security.move_permission_title")},Object(mt.translate)("sulu_security.move_permission_warning")))}},Hr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"openedCollectionOperationOverlayType",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"movingRestrictedTargetCollection",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Yr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"dependantResourcesData",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"openCollectionOperationOverlay",[Qe.action],Object.getOwnPropertyDescriptor(Vr.prototype,"openCollectionOperationOverlay"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"closeCollectionOperationOverlay",[Qe.action],Object.getOwnPropertyDescriptor(Vr.prototype,"closeCollectionOperationOverlay"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"collectionId",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"collectionId"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"hasChildren",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"hasChildren"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"resourceStoreByOperationType",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"resourceStoreByOperationType"),Vr.prototype),Ur=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMoveCollectionConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Wr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMovePermissionWarningConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),$r=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMovePermissionWarningCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Gr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"closeDeleteDependantResourcesDialog",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"deleteDependantResourcesDialogRequestOptions",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"deleteDependantResourcesDialogRequestOptions"),Vr.prototype),Nr=Vr))||Nr;var va,_a,wa,ka,xa,Aa=ba;function MediaCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ba=Object(Xe.b)((xa=class ce extends We.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",wa,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",ka,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:qe,collectionStore:Ye,hideUploadAction:Qe,locale:Xe,overlayType:mt,mediaListAdapters:yt,mediaListRef:bt,mediaListStore:vt,onMediaNavigate:wt,onUploadOverlayClose:Ct,onUploadOverlayOpen:Dt,uploadOverlayOpen:kt}=this.props,{locked:St,permissions:xt}=Ye,Et=[],Pt=!St&&(void 0!==xt.add?xt.add:ce.addable),Tt=!St&&(void 0!==xt.edit?xt.edit:ce.editable),Lt=!St&&(void 0!==xt.delete?xt.delete:ce.deletable),Ft=!St&&(void 0!==xt.security?xt.security:ce.securable);return Pt&&!Qe&&Et.push({disabled:Ye.loading,icon:"su-upload",label:Object(gt.b)("sulu_media.upload_file"),onClick:Dt}),We.a.createElement(nr,{className:Ve,collectionId:Ye.id,disabled:Ye.loading||!Pt,locale:Xe,onClose:Ct,onOpen:Dt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:kt},We.a.createElement(Aa,{addable:Pt,deletable:Lt,editable:Tt,listStore:qe,locale:Xe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:mt,resourceStore:Ye.resourceStore,securable:Ft}),We.a.createElement(st.Divider,null),We.a.createElement(ot.b,{actions:Et,adapters:yt,onDeleteError:ze,onItemClick:wt,ref:bt,store:vt}))}},xa.defaultProps={hideUploadAction:!1,overlayType:"overlay"},xa.addable=!0,xa.deletable=!0,xa.editable=!0,xa.securable=!0,wa=MediaCollection_applyDecoratedDescriptor((_a=xa).prototype,"handleUpload",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(Qe.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),ka=MediaCollection_applyDecoratedDescriptor(_a.prototype,"handleUploadError",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),va=_a))||va;var Ja,io,po,ho,go,_o,Co,ko,Oo=Ba,Po="overlay--ELcKC82pcm";function MediaSelectionOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaSelectionOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const To="media",Ao="collections",jo="media_selection_overlay";var Fo=Object(Xe.b)(((ko=class extends We.a.Component{static createCollectionListStore(ce,ze){return new ot.c(Ao,Ao,jo,{page:Qe.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,qe){const Ye={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(Qe.isArrayLike)(qe)&&qe.length>0&&(Ye.types=qe.join(",")),new ot.c(To,To,jo,{page:Qe.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},Ye)}constructor(ce){super(ce),MediaSelectionOverlay_initializerDefineProperty(this,"collectionStore",po,this),MediaSelectionOverlay_initializerDefineProperty(this,"showMediaUploadOverlay",ho,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleCollectionNavigate",go,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayOpen",_o,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayClose",Co,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(Qe.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new xt(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:qe,locale:Ye}=this.props,Qe=[{title:Object(mt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return We.a.createElement(st.Overlay,{actions:Qe,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(mt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:Object(mt.translate)("sulu_media.select_media_plural")},We.a.createElement("div",{className:Po},We.a.createElement(Oo,{collectionListStore:ce,collectionStore:this.collectionStore,locale:Ye,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},po=MediaSelectionOverlay_applyDecoratedDescriptor((io=ko).prototype,"collectionStore",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"showMediaUploadOverlay",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"updateCollectionStore",[Qe.action],Object.getOwnPropertyDescriptor(io.prototype,"updateCollectionStore"),io.prototype),go=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleCollectionNavigate",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),_o=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayOpen",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),Co=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),Ja=io))||Ja;ze.a=Fo},function(ce,ze,Ve){"use strict";function getIconForDisplayOption(ce){switch(ce){case"leftTop":return"su-display-top-left";case"top":return"su-display-top-center";case"rightTop":return"su-display-top-right";case"left":return"su-display-center-left";case"middle":return"su-display-center-center";case"right":return"su-display-center-right";case"leftBottom":return"su-display-bottom-left";case"bottom":return"su-display-bottom-center";case"rightBottom":return"su-display-bottom-right";default:return"su-display-default"}}Ve.d(ze,"a",(function(){return getIconForDisplayOption})),Ve.d(ze,"b",(function(){return getTranslationForDisplayOption}));var qe=Ve(6);function getTranslationForDisplayOption(ce){switch(ce){case"leftTop":return Object(qe.translate)("sulu_media.left_top");case"top":return Object(qe.translate)("sulu_media.top");case"rightTop":return Object(qe.translate)("sulu_media.right_top");case"left":return Object(qe.translate)("sulu_media.left");case"middle":return Object(qe.translate)("sulu_media.middle");case"right":return Object(qe.translate)("sulu_media.right");case"leftBottom":return Object(qe.translate)("sulu_media.left_bottom");case"bottom":return Object(qe.translate)("sulu_media.bottom");case"rightBottom":return Object(qe.translate)("sulu_media.right_bottom");default:return""}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce,ze,Ve,qe,Ye,We,Qe,Xe){if(!ce){var ot;if(void 0===ze)ot=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var st=[Ve,qe,Ye,We,Qe,Xe],mt=0;(ot=new Error(ze.replace(/%s/g,(function(){return st[mt++]})))).name="Invariant Violation"}throw ot.framesToPop=1,ot}}},function(ce,ze,Ve){"use strict";var qe=Ve(418),Ye=Ve(208);ce.exports=function(ce){return qe(Ye(ce))}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){return null==ce}},function(ce,ze,Ve){var qe=Ve(1178),Ye=Ve(1183);ce.exports=function getNative(ce,ze){var Ve=Ye(ce,ze);return qe(Ve)?Ve:void 0}},function(ce,ze,Ve){var qe=Ve(425),Ye=Ve(1179),We=Ve(1180),Qe=qe?qe.toStringTag:void 0;ce.exports=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":Qe&&Qe in Object(ce)?Ye(ce):We(ce)}},function(ce,ze){ce.exports=function(ce){return ce.webpackPolyfill||(ce.deprecate=function(){},ce.paths=[],ce.children||(ce.children=[]),Object.defineProperty(ce,"loaded",{enumerable:!0,get:function(){return ce.l}}),Object.defineProperty(ce,"id",{enumerable:!0,get:function(){return ce.i}}),ce.webpackPolyfill=1),ce}},function(ce,ze){ce.exports=function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){"use strict";let qe,Ye,We,Qe,{isClean:Xe,my:ot}=Ve(775),st=Ve(495),mt=Ve(499),gt=Ve(496);function cleanSource(ce){return ce.map((ce=>(ce.nodes&&(ce.nodes=cleanSource(ce.nodes)),delete ce.source,ce)))}function markTreeDirty(ce){if(ce[Xe]=!1,ce.proxyOf.nodes)for(let ze of ce.proxyOf.nodes)markTreeDirty(ze)}class yt extends gt{append(...ce){for(let ze of ce){let ce=this.normalize(ze,this.last);for(let ze of ce)this.proxyOf.nodes.push(ze)}return this.markDirty(),this}cleanRaws(ce){if(super.cleanRaws(ce),this.nodes)for(let ze of this.nodes)ze.cleanRaws(ce)}each(ce){if(!this.proxyOf.nodes)return;let ze,Ve,qe=this.getIterator();for(;this.indexes[qe]"proxyOf"===ze?ce:ce[ze]?"each"===ze||"string"==typeof ze&&ze.startsWith("walk")?(...Ve)=>ce[ze](...Ve.map((ce=>"function"==typeof ce?(ze,Ve)=>ce(ze.toProxy(),Ve):ce))):"every"===ze||"some"===ze?Ve=>ce[ze](((ce,...ze)=>Ve(ce.toProxy(),...ze))):"root"===ze?()=>ce.root().toProxy():"nodes"===ze?ce.nodes.map((ce=>ce.toProxy())):"first"===ze||"last"===ze?ce[ze].toProxy():ce[ze]:ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"name"!==ze&&"params"!==ze&&"selector"!==ze||ce.markDirty()),!0)}}index(ce){return"number"==typeof ce?ce:(ce.proxyOf&&(ce=ce.proxyOf),this.proxyOf.nodes.indexOf(ce))}insertAfter(ce,ze){let Ve,qe=this.index(ce),Ye=this.normalize(ze,this.proxyOf.nodes[qe]).reverse();qe=this.index(ce);for(let ce of Ye)this.proxyOf.nodes.splice(qe+1,0,ce);for(let ce in this.indexes)Ve=this.indexes[ce],qe(ce[ot]||yt.rebuild(ce),(ce=ce.proxyOf).parent&&ce.parent.removeChild(ce),ce[Xe]&&markTreeDirty(ce),void 0===ce.raws.before&&ze&&void 0!==ze.raws.before&&(ce.raws.before=ze.raws.before.replace(/\S/g,"")),ce.parent=this.proxyOf,ce)))}prepend(...ce){ce=ce.reverse();for(let ze of ce){let ce=this.normalize(ze,this.first,"prepend").reverse();for(let ze of ce)this.proxyOf.nodes.unshift(ze);for(let ze in this.indexes)this.indexes[ze]=this.indexes[ze]+ce.length}return this.markDirty(),this}push(ce){return ce.parent=this,this.proxyOf.nodes.push(ce),this}removeAll(){for(let ce of this.proxyOf.nodes)ce.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(ce){let ze;ce=this.index(ce),this.proxyOf.nodes[ce].parent=void 0,this.proxyOf.nodes.splice(ce,1);for(let Ve in this.indexes)ze=this.indexes[Ve],ze>=ce&&(this.indexes[Ve]=ze-1);return this.markDirty(),this}replaceValues(ce,ze,Ve){return Ve||(Ve=ze,ze={}),this.walkDecls((qe=>{ze.props&&!ze.props.includes(qe.prop)||ze.fast&&!qe.value.includes(ze.fast)||(qe.value=qe.value.replace(ce,Ve))})),this.markDirty(),this}some(ce){return this.nodes.some(ce)}walk(ce){return this.each(((ze,Ve)=>{let qe;try{qe=ce(ze,Ve)}catch(ce){throw ze.addToError(ce)}return!1!==qe&&ze.walk&&(qe=ze.walk(ce)),qe}))}walkAtRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("atrule"===Ve.type&&ce.test(Ve.name))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("atrule"===Ve.type&&Ve.name===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("atrule"===ce.type)return ze(ce,Ve)})))}walkComments(ce){return this.walk(((ze,Ve)=>{if("comment"===ze.type)return ce(ze,Ve)}))}walkDecls(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("decl"===Ve.type&&ce.test(Ve.prop))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("decl"===Ve.type&&Ve.prop===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("decl"===ce.type)return ze(ce,Ve)})))}walkRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("rule"===Ve.type&&ce.test(Ve.selector))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("rule"===Ve.type&&Ve.selector===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("rule"===ce.type)return ze(ce,Ve)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}yt.registerParse=ce=>{qe=ce},yt.registerRule=ce=>{Ye=ce},yt.registerAtRule=ce=>{We=ce},yt.registerRoot=ce=>{Qe=ce},ce.exports=yt,yt.default=yt,yt.rebuild=ce=>{"atrule"===ce.type?Object.setPrototypeOf(ce,We.prototype):"rule"===ce.type?Object.setPrototypeOf(ce,Ye.prototype):"decl"===ce.type?Object.setPrototypeOf(ce,st.prototype):"comment"===ce.type?Object.setPrototypeOf(ce,mt.prototype):"root"===ce.type&&Object.setPrototypeOf(ce,Qe.prototype),ce[ot]=!0,ce.nodes&&ce.nodes.forEach((ce=>{yt.rebuild(ce)}))}},function(ce,ze,Ve){"use strict";(function(ce){var ze=Ve(8);const qe="34.2.0";const Ye="object"==typeof window?window:ce;if(Ye.CKEDITOR_VERSION)throw new ze.a("ckeditor-duplicated-modules",null);Ye.CKEDITOR_VERSION=qe}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(85);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=qe,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Xe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Qe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},Ye=_applyDecoratedDescriptor(qe.prototype,"item",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"loadItem"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(204),Qe=Ve(15);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Qe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Xe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props;return Ye.a.createElement(We.default,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default"},Xe.Action=We.default.Action,Xe.Option=We.default.Option,Xe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";var qe=Ve(599);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(9),mt=Ve.n(st),gt=Ve(28),yt=Ve.n(gt),bt=Ve(368),vt=Ve(414);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const wt=Object(bt.a)();let Ct=(qe=class extends vt.b{constructor(ce,ze,Ve,qe,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",Ye,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"types",Xe,this),this.data=ce,this.schema=ze,this.locale=qe,this.addMissingSchemaProperties(),this.validator=Ve?wt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const qe=ce.startsWith("/")?ce:"/"+ce;yt.a.set(this.data,qe,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(ot.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){mt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},Ye=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"dirty",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"change",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We="divider--1yF2ej4tQa";class Qe extends Ye.a.PureComponent{render(){return Ye.a.createElement("li",{className:We})}}var Xe="menu--XoYz+ChQAk";class ot extends Ye.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return Ye.a.createElement("ul",{className:Xe,ref:this.setRef,style:ce},ze)}}ot.Divider=Qe;ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(649),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(1036),Ve(10)),xt=Ve.n(St),Et=Ve(48),Pt=Ve(118);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.a,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:qe,valid:Ye}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Qe={placeholder:qe||this.getFormat(),valid:Ye&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Qe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((Ye=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setOpen"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setShowError"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),qe=Ye))||qe;ze.a=Tt},function(ce,ze,Ve){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}Ve.d(ze,"a",(function(){return _typeof}))},function(ce,ze,Ve){"use strict";var qe=Ve(504);ze.a=qe.default},function(ce,ze,Ve){"use strict";function isRange(ce){return"[object Range]"==Object.prototype.toString.apply(ce)}Ve.d(ze,"a",(function(){return isRange}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe})),Ve.d(ze,"b",(function(){return Ye}));const qe=1105,Ye=1106},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Lt})),Ve.d(ze,"a",(function(){return wa.a}));var qe,Ye,We,Qe,Xe,ot=Ve(564),st=(Ve(213),Ve(200),Ve(1)),mt=Ve(28),gt=Ve.n(mt),yt=Ve(27),bt=(Ve(353),Ve(354),Ve(9)),vt=Ve.n(bt),wt=Ve(367),Ct=Ve(410);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Dt=Object(wt.a)();let kt=(qe=class extends Ct.b{constructor(ce,ze,Ve,qe,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",Ye,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"types",Xe,this),this.data=ce,this.schema=ze,this.locale=qe,this.addMissingSchemaProperties(),this.validator=Ve?Dt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const qe=ce.startsWith("/")?ce:"/"+ce;gt.a.set(this.data,qe,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(st.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},Ye=_applyDecoratedDescriptor(qe.prototype,"data",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"dirty",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"types",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"change",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),qe);var St,xt,Et,Pt=Ve(256);function SchemaFormStoreDecorator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Tt=(St=st.computed.struct,Et=SchemaFormStoreDecorator_applyDecoratedDescriptor((xt=class{constructor(ce,ze,Ve,qe){var Ye,We,Qe,Xe;Ye=this,We="innerFormStore",Xe=this,(Qe=Et)&&Object.defineProperty(Ye,We,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(Xe):void 0}),Promise.all([Pt.a.getSchema(ze,Ve,qe),Pt.a.getJsonSchema(ze,Ve,qe)]).then(Object(st.action)((ze=>{let[Ve,qe]=ze;this.innerFormStore=ce(Ve,qe)})))}change(ce,ze,Ve){Object(st.when)((()=>!!this.innerFormStore),(()=>{var qe;null===(qe=this.innerFormStore)||void 0===qe||qe.change(ce,ze,Ve)}))}changeType(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(vt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"data",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"data"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"dirty",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"dirty"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"errors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"errors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasErrors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasErrors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"forbidden",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"forbidden"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasInvalidType",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasInvalidType"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"id",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"id"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"loading",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"loading"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"locale"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"metadataOptions",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"metadataOptions"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"options",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"options"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"resourceKey",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"resourceKey"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"schema",[St],Object.getOwnPropertyDescriptor(xt.prototype,"schema"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"types",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),xt);var Lt=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,qe=arguments.length>4?arguments[4]:void 0;return new Tt(((ce,Ye)=>new kt(ze,ce,Ye,Ve,qe)),ce,arguments.length>3?arguments[3]:void 0,qe)}createFromSchema(ce,ze){return new kt(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ce,ze)}},Ft=Ve(355);Ve(351);new class{createFromResourceStore(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;return new Ft.a(ce,ze,Ve,qe)}};var Bt,Vt,Ht,Ut,Wt,Jt,Qt=Ve(0),en=Ve.n(Qt),rn=Ve(3),ln=Ve(47),mn=Ve(49),gn=Ve(15);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((Vt=class extends en.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Ht,this),ChangelogLine_initializerDefineProperty(this,"creator",Ut,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Wt,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Jt,this),this.loadChanger=()=>{"number"==typeof this.changerId?mn.a.get("users",{id:this.changerId}).then(Object(st.action)((ce=>{this.setChanger(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?mn.a.get("users",{id:this.creatorId}).then(Object(st.action)((ce=>{this.setCreator(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(st.autorun)(this.loadChanger),this.creatorDisposer=Object(st.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?en.a.createElement(Qt.Fragment,null,en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):en.a.createElement(ln.a,null)}},Ht=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changer",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creator",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"setChanger",[st.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setChanger"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"setCreator",[st.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setCreator"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerId",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changerId"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorId",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"creatorId"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerFullName",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changerFullName"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changed",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changed"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorFullName",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"creatorFullName"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"created",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"created"),Vt.prototype),Bt=Vt));var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Ve(566).default,Gn=Ve(128),Kn="overlay--4K-u1kFoiV";function CardCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((wn=class extends en.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Cn,this),CardCollection_initializerDefineProperty(this,"formStore",Sn,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",En,this),CardCollection_initializerDefineProperty(this,"handleEdit",Tn,this),CardCollection_initializerDefineProperty(this,"handleRemove",Ln,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",Fn,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",Yn,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:qe}=this.props;return en.a.createElement(Qt.Fragment,null,en.a.createElement(Un,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!qe&&qe.map(((ce,ze)=>en.a.createElement(Un.Card,{key:ze},Ve(ce))))),en.a.createElement(Gn.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(gn.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(gn.b)(ze):Object(gn.b)(ce)},en.a.createElement("div",{className:Kn},!!this.formStore&&en.a.createElement(ho,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Cn=CardCollection_applyDecoratedDescriptor(wn.prototype,"overlayIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Sn=CardCollection_applyDecoratedDescriptor(wn.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleAdd",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Lt.createFromSchema(ze,ce)}}}),Tn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:qe}=this.props;if(!qe)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Lt.createFromSchema(Ve,ze,Object(st.toJS)(qe[ce]))}}}),Ln=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleRemove",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),Fn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleCloseOverlay",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),Yn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleOverlaySubmit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:qe}=this;if(!qe)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([qe.data]):void 0===this.overlayIndex?ce([...Ve,qe.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?qe.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(wn.prototype,"closeFormStore",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeFormStore"),wn.prototype),bn=wn));var Jn,Zn,Xn,ei=Ve(22),si=Ve.n(ei),_i=Ve(686),Ri=Ve(215),Ci=Ve(190),Di=Ve(387),Ei=Ve(606).default,Oi="list---35vI7JUIe";function Selection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((Zn=class extends en.a.Component{constructor(ce){var ze,Ve,qe,Ye;if(super(ce),ze=this,Ve="requestOptions",Ye=this,(qe=Xn)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||si()(Object(st.toJS)(this.value),Object(st.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||si()(Object(st.toJS)(this.value)||[],Object(st.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Qe,schemaOptions:{request_parameters:{value:Xe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Xe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Xe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;if(this.requestOptions=this.buildRequestOptions(mt,yt,Qe),Qe.addFinishFieldHandler((ce=>{if(yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,yt,Qe);si()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new Ri.a(We,ce||We,"selection",{locale:this.locale,page:st.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(st.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(st.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(st.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Ci.a(We,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!si()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(st.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(st.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(vt.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:Ye}=ce,We="string"==typeof Ye?Ye:ze;qe[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),qe}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,list_key:Ye,display_properties:We,icon:Qe,label:Xe,overlay_title:ot}}},schemaOptions:{types:{value:st}={},item_disabled_condition:{value:mt}={},allow_deselect_for_disabled_items:{value:gt=!0}={},sortable:{value:yt=!0}={}}}=this.props;if(void 0!==st&&"string"!=typeof st)throw new Error('The "types" schema option must be a string if given!');if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==gt&&"boolean"!=typeof gt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!qe)throw new Error('The selection field needs a "adapter" option to work properly');const bt={...this.requestOptions};return st&&(bt.types=st),en.a.createElement(Ei,{adapter:qe,allowDeselectForDisabledItems:!!gt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Qe,itemDisabledCondition:mt,label:Object(gn.b)(Xe,{count:this.value?this.value.length:0}),listKey:Ye||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:bt,overlayTitle:Object(gn.b)(ot),resourceKey:Ve,sortable:yt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:qe,search_properties:Ye}}}}=this.props;if(!qe)throw new Error('The selection field needs a "display_property" option to work properly!');if(!Ye)throw new Error('The selection field needs a "search_properties" option to work properly!');return en.a.createElement(Di.a,{allowAdd:Ve,disabled:!!ze,displayProperty:qe,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:Ye,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return en.a.createElement("div",{className:Oi},en.a.createElement(_i.a,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},Xn=Selection_applyDecoratedDescriptor(Zn.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Zn.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"value"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"locale"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"type"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteIdProperty",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteIdProperty"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteFilterParameter",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteFilterParameter"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"viewName"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"resultToView"),Zn.prototype),Jn=Zn));var Ti,er,tr,nr=Ve(553).default,rr=Ve(607).default,ar=Ve(653),sr=Ve(326);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((er=class extends en.a.Component{constructor(ce){var ze,Ve,qe,Ye;if(super(ce),ze=this,Ve="requestOptions",Ye=this,(qe=tr)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Qe,schemaOptions:{request_parameters:{value:Xe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Xe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Xe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;this.requestOptions=this.buildRequestOptions(mt,yt,Qe),Qe.addFinishFieldHandler((ce=>{if(yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,yt,Qe);si()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new sr.a(We,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:Ye}=ce,We="string"==typeof Ye?Ye:ze;qe[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),qe}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||vt.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&vt.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,detail_options:Ye,list_key:We,display_properties:Qe,empty_text:Xe,icon:ot,overlay_title:mt}}},schemaOptions:{form_options_to_list_options:{value:gt=[]}={},item_disabled_condition:{value:yt}={},allow_deselect_for_disabled_items:{value:bt=!0}={},types:{value:vt}={}}={}}=this.props;if(void 0!==vt&&"string"!=typeof vt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==yt&&"string"!=typeof yt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(st.isArrayLike)(gt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const wt=gt;if(Ye&&"object"!=typeof Ye)throw new Error('The "detail_options" option has to be an array if defined!');const Ct=wt.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),Dt=vt?{types:vt}:void 0,kt={...this.requestOptions,...Ct,...Dt},St={...this.requestOptions,...Ye};return en.a.createElement(ar.a,{adapter:qe,allowDeselectForDisabledItems:!!bt,detailOptions:St,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:Qe,emptyText:Object(gn.b)(Xe),icon:ot,itemDisabledCondition:yt,listKey:We||Ve,listOptions:kt,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(gn.b)(mt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:qe,overlay_title:Ye}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof qe)throw new Error('The "id_property" field-type option must be a string!');return en.a.createElement(nr,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:qe,onChange:this.handleChange,overlayTitle:Object(gn.b)(Ye),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:qe,schemaOptions:{data_path_to_auto_complete:{value:Ye=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:We,search_properties:Qe}}}=Ve;if(!Object(st.isArrayLike)(Ye))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const Xe=Ye;Xe.length>0&&vt.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const ot={...Xe.reduce(((ce,ze)=>{const{name:Ve,value:Ye}=ze;if("string"!=typeof Ve||"string"!=typeof Ye)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[Ye]=qe.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return en.a.createElement(rr,{disabled:!!ce,displayProperty:We,id:ze,options:ot,searchProperties:Qe,selectionStore:this.autoCompleteSelectionStore})}},tr=SingleSelection_applyDecoratedDescriptor(er.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(er.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"value"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"type"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"locale"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"viewName"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"resultToView"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"useDeprecatedObjectDataFormat",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"useDeprecatedObjectDataFormat"),er.prototype),Ti=er));var lr,dr,ur=Ve(87),pr=Ve(150),vr=Ve(508);function Heading_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var _r,Rr,Cr=Object(rn.b)((Heading_applyDecoratedDescriptor((dr=class extends en.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return en.a.createElement(vr.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"schemaOptions"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"description",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"description"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"icon",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"icon"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"label"),dr.prototype),lr=dr))||lr;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_value:{value:Ye}={}}=Ve;if(null!=Ye){if("boolean"!=typeof Ye)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===qe&&ze(Ye,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?en.a.createElement(pr.default,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):en.a.createElement(ur.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?en.a.createElement(Cr,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"schemaOptions"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"label"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"skin",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"skin"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"type"),Rr.prototype),_r=Rr)),Ve(567).default;en.a.Component;var Dr,Er,Tr=Ve(10),Ar=Ve.n(Tr),Mr=Ve(328);function createStringValue(ce,ze){if(ce)return Ar()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ar()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(rn.b)((Er=class extends en.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:qe,value:Ye}=this.props,{dateFormat:We,timeFormat:Qe}=qe;if(void 0===We||void 0===Qe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const Xe={};return Qe&&(Xe.timeFormat=Qe),We||(Xe.dateFormat=!1),en.a.createElement(Mr.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:Xe,valid:!Ve,value:getValue(Ye,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Er.prototype,"format",[st.computed],Object.getOwnPropertyDescriptor(Er.prototype,"format"),Er.prototype),Dr=Er));Ve(509);en.a.Component;Ve(38);en.a.Component;var Lr,jr,Ir=Ve(358);function Number_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((jr=class extends en.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:qe,value:Ye}=this.props;return en.a.createElement(Ir.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:qe,step:this.step,valid:!Ve,value:Ye})}},Number_applyDecoratedDescriptor(jr.prototype,"min",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"min"),jr.prototype),Number_applyDecoratedDescriptor(jr.prototype,"max",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"max"),jr.prototype),Number_applyDecoratedDescriptor(jr.prototype,"step",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"step"),jr.prototype),Lr=jr));Ve(610).default;en.a.Component;Ve(512);en.a.Component;Ve(514);en.a.Component;Ve(35);en.a.Component;var zr,Br=Ve(197);(function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We})((zr=class extends en.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,qe=this.values.map((ce=>ce.name)),Ye=ce.filter((ce=>qe.includes(ce)));ze(Ye.length>0?Ye:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_values:{value:Ye}={}}=Ve;if(null==Ye)return;if(!Object(st.isArrayLike)(Ye))throw new Error('The "default_values" schema option must be an array!');const We=Ye.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===qe&&ze(We,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(st.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return en.a.createElement(Br.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return en.a.createElement(Br.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"values"),zr.prototype);var Nr,Vr,Hr,qr,Yr,Ur,Wr,$r,Gr=Ve(516),Kr=Ve(613).default,Jr=Ve(78),Zr=Ve(33),ga="buttons-container--PmWNPlBqI+",ya="refresh-button--BUDSw4z+ON";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ba="sulu.rlp.part";Object(rn.b)((Vr=class extends en.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(ba).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Hr,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",qr,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Yr,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Ur,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Wr,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",$r,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:qe,value:Ye}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(st.action)((ce=>this.mode=ce))),"/"!==Ye&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(st.reaction)((()=>this.parts),Object(st.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:st.comparer.structural}),qe.addFinishFieldHandler(Object(st.action)(((ce,ze)=>{const{tags:Ve}=qe.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===ba))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:qe,formInspector:Ye,schemaOptions:{entity_class:{value:We}={}}={},value:Qe}=this.props;return"/"===Qe?"/":en.a.createElement(Qt.Fragment,null,en.a.createElement(Gr.a,{disabled:!!qe,id:Ve,locale:Ye.locale?Ye.locale:st.observable.box(yt.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:Qe}),en.a.createElement("div",{className:ga},en.a.createElement(Zr.default,{className:ya,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(gn.b)("sulu_admin.refresh_url")),en.a.createElement(Kr,{id:Ye.id,options:{locale:Ye.locale?Ye.locale.get():yt.a.contentLocale,resourceKey:Ye.resourceKey,webspace:Ye.options.webspace,entityClass:We,...ze},resourceKey:ce})))}},Hr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"mode",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"inputChanged",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"inputChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ur=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"partsChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"parts",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"parts"),Vr.prototype),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"enableAutoGeneration",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"enableAutoGeneration"),Vr.prototype),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"enableRefreshButton",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"enableRefreshButton"),Vr.prototype),Wr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"refreshResourceLocator",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:qe,schemaOptions:{entity_class:{value:Ye}={},route_schema:{value:We}={}}={}}=this.props,Qe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,qe]=ce;const Ye=Object(st.toJS)(Ve.getValueByPath("/"+ze));void 0!==Ye&&(Qe[qe]=Ye)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,Jr.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():yt.a.contentLocale,id:Ve.id,entityClass:Ye,routeSchema:We,...Qe}).then(Object(st.action)((ce=>{qe(ce.resourcelocator)})))}}}),$r=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"handleInputChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),Nr=Vr));var va,_a,wa=Ve(562),ka=Ve(796),xa=Ve(517),Aa=Ve(500),Ba=ka.default;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ja,io=new(_a=smartContentStorePool_applyDecoratedDescriptor((va=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,qe;ce=this,ze="entries",qe=this,(Ve=_a)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const qe=this.findPreviousStores(ze);0!==qe.length?Object(st.when)((()=>qe.every((ce=>!ce.itemsLoading))),(()=>{const Ve=qe.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"stores",[st.computed],Object.getOwnPropertyDescriptor(va.prototype,"stores"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"add",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"add"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"remove",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"remove"),va.prototype),va);function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}SmartContent_applyDecoratedDescriptor((Ja=class extends en.a.Component{get previousSmartContentStores(){return io.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(st.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return xa.a.getDefaultValue(this.provider,this.presentations)}get viewName(){return xa.a.getConfig(this.provider).view}get resultToView(){return xa.a.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props,Ye=Object(st.toJS)(qe),We=Object(st.toJS)(ce);Ye&&(Ye.categories&&Ye.categories.sort(),Ye.tags&&Ye.tags.sort()),We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),this.smartContentStore.loading||si()(Ye,We)||(ze(ce),Ve(),io.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ye&&qe&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:qe,schemaOptions:Ye={},value:We}=this.props,{exclude_duplicates:{value:Qe=!1}={}}=Ye;if("boolean"!=typeof Qe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:Xe}=xa.a.getConfig(this.provider);void 0===We&&qe(this.value,{isDefaultValue:!0}),this.smartContentStore=new Aa.a(this.provider,this.value,Ve.locale,Xe,Ve.resourceKey===this.provider?Ve.id:void 0,Ye,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),io.add(this.smartContentStore,Qe),this.filterCriteriaChangeDisposer=Object(st.reaction)((()=>Object(st.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Qe&&0!==this.previousSmartContentStores.length?Object(st.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{io.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){io.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return en.a.createElement(Ba,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"previousSmartContentStores"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"presentations",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"presentations"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"provider",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"provider"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"defaultValue",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"defaultValue"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ve(665);en.a.Component;var po=Ve(518);Ve(435),po.default;en.a.Component;Ve(359);en.a.Component;Ve(616);en.a.Component;var ho=ze.b=ot.default},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=Object(qe.a)(Object,"create");var We=function hashClear(){this.__data__=Ye?Ye(null):{},this.size=0};var Qe=function hashDelete(ce){var ze=this.has(ce)&&delete this.__data__[ce];return this.size-=ze?1:0,ze},Xe=Object.prototype.hasOwnProperty;var ot=function hashGet(ce){var ze=this.__data__;if(Ye){var Ve=ze[ce];return"__lodash_hash_undefined__"===Ve?void 0:Ve}return Xe.call(ze,ce)?ze[ce]:void 0},st=Object.prototype.hasOwnProperty;var mt=function hashHas(ce){var ze=this.__data__;return Ye?void 0!==ze[ce]:st.call(ze,ce)};var gt=function hashSet(ce,ze){var Ve=this.__data__;return this.size+=this.has(ce)?0:1,Ve[ce]=Ye&&void 0===ze?"__lodash_hash_undefined__":ze,this};function Hash(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),qe=Ye))||qe;var Tt=Pt;ze.a=Tt},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(98);var We=function baseIsArguments(ce){return Object(Ye.a)(ce)&&"[object Arguments]"==Object(qe.a)(ce)},Qe=Object.prototype,Xe=Qe.hasOwnProperty,ot=Qe.propertyIsEnumerable,st=We(function(){return arguments}())?We:function(ce){return Object(Ye.a)(ce)&&Xe.call(ce,"callee")&&!ot.call(ce,"callee")};ze.a=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(23),ot=function CodeRenderer(ce){var ze=ce.classes,Ve=ce.children;return Ye.a.createElement("code",{className:ze.code},Ve)};ot.propTypes={classes:Qe.a.objectOf(Qe.a.string.isRequired).isRequired,children:Qe.a.node.isRequired};var st=Object(Xe.a)((function styles(ce){return{code:{fontFamily:ce.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(ot)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return containerChildrenMutated})),Ve.d(ze,"b",(function(){return getSingleTextNodeChange})),Ve.d(ze,"c",(function(){return isShiftDeleteOnNonCollapsedSelection}));var qe=Ve(199);function diffToChanges(ce,ze){const Ve=[];let qe,Ye=0;return ce.forEach((ce=>{"equal"==ce?(pushLast(),Ye++):"insert"==ce?(isContinuationOf("insert")?qe.values.push(ze[Ye]):(pushLast(),qe={type:"insert",index:Ye,values:[ze[Ye]]}),Ye++):isContinuationOf("delete")?qe.howMany++:(pushLast(),qe={type:"delete",index:Ye,howMany:1})})),pushLast(),Ve;function pushLast(){qe&&(Ve.push(qe),qe=null)}function isContinuationOf(ce){return qe&&qe.type==ce}}var Ye=Ve(37);function containerChildrenMutated(ce){if(0==ce.length)return!1;for(const ze of ce)if("children"===ze.type&&!getSingleTextNodeChange(ze))return!0;return!1}function getSingleTextNodeChange(ce){if(ce.newChildren.length-ce.oldChildren.length!=1)return;const ze=diffToChanges(Object(qe.a)(ce.oldChildren,ce.newChildren,compareChildNodes),ce.newChildren);if(ze.length>1)return;const Ve=ze[0];return Ve.values[0]&&Ve.values[0].is("$text")?Ve:void 0}function compareChildNodes(ce,ze){return ce&&ce.is("$text")&&ze&&ze.is("$text")?ce.data===ze.data:ce===ze}function isShiftDeleteOnNonCollapsedSelection(ce,ze){const Ve=ze.selection,qe=ce.shiftKey&&ce.keyCode===Ye.f.delete,We=!Ve.isCollapsed;return qe&&We}},function(ce,ze,Ve){"use strict";var qe=Ve(244),Ye=Ve(725),We=qe({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(Ye(ce),ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(70);ce.exports=qe({}.isPrototypeOf)},function(ce,ze,Ve){"use strict";var qe=Ve(734),Ye=Ve(61),We=Ve(105).String;ce.exports=!!Object.getOwnPropertySymbols&&!Ye((function(){var ce=Symbol("symbol detection");return!We(ce)||!(Object(ce)instanceof Symbol)||!Symbol.sham&&qe&&qe<41}))},function(ce,ze,Ve){"use strict";var qe=Ve(735);ce.exports=function(ce,ze){return qe[ce]||(qe[ce]=ze||{})}},function(ce,ze,Ve){"use strict";var qe=Ve(120),Ye=Ve(185),We=Ve(459);ce.exports=qe?function(ce,ze,Ve){return Ye.f(ce,ze,We(1,Ve))}:function(ce,ze,Ve){return ce[ze]=Ve,ce}},function(ce,ze,Ve){"use strict";var qe=Ve(826),Ye=Ve(185);ce.exports=function(ce,ze,Ve){return Ve.get&&qe(Ve.get,ze,{getter:!0}),Ve.set&&qe(Ve.set,ze,{setter:!0}),Ye.f(ce,ze,Ve)}},function(ce,ze,Ve){var qe=Ve(856),Ye=Ve(873),We=Ve(275);ce.exports=function keys(ce){return We(ce)?qe(ce):Ye(ce)}},function(ce,ze){ce.exports=function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){var qe=Ve(1032);function _defineProperties(ce,ze){for(var Ve=0;Ve2&&void 0!==arguments[2]?arguments[2]:{},Ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},kt=arguments.length>4?arguments[4]:void 0,St=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_initializerDefineProperty(this,"id",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"saving",Xe,this),_initializerDefineProperty(this,"deleting",ot,this),_initializerDefineProperty(this,"moving",st,this),_initializerDefineProperty(this,"data",mt,this),_initializerDefineProperty(this,"dirty",gt,this),_initializerDefineProperty(this,"forbidden",yt,this),this.loadOptions={},this.load=()=>{const{id:ce,observableOptions:{locale:ze}}=this;ze&&!ze.get()||(this.preventLoadingOnce?this.preventLoadingOnce=!1:ce?(Dt.a.info('ResourceStore loads "'+this.resourceKey+'" data with the ID "'+ce+'"'),this.setLoading(!0),this.setForbidden(!1),this.requestRemoteData().then(Object(wt.action)((ce=>{this.idQueryParameter?(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce)):this.setMultiple(ce),this.initialized=!0,this.setLoading(!1),this.dirty=!1}))).catch(Object(wt.action)((ce=>{403===ce.status&&this.setForbidden(!0)})))):this.initialized=!0)},this.requestRemoteData=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:ze,observableOptions:{locale:qe}}=Ve;return qe&&(ce.locale=qe.get()),Ve.idQueryParameter?xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,[Ve.idQueryParameter]:ze}):xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,id:ze})},_initializerDefineProperty(this,"reload",bt,this),_initializerDefineProperty(this,"move",vt,this),this.resourceKey=ce,this.id=ze,this.observableOptions=qe,this.loadOptions=Ct,this.idQueryParameter=kt,this.preventLoadingOnce=St,this.disposer=Object(wt.autorun)(this.load)}setLoading(ce){this.loading=ce}setForbidden(ce){this.forbidden=ce}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),this.idQueryParameter||!this.id?this.create(ce):this.update(ce)}create(ce){this.saving=!0;const ze=ce;return this.idQueryParameter&&(ze[this.idQueryParameter]=this.id),xt.a.post(this.resourceKey,this.data,ze).then(Object(wt.action)((ce=>(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}update(ce){if(!this.id)throw new Error('Can not save resource with an undefined "id"');return this.saving=!0,xt.a.put(this.resourceKey,this.data,{...ce,id:this.id}).then(Object(wt.action)((ce=>(this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}delete(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.data.id)throw new Error('Cannot delete resource with an undefined "id"');const{locale:ze}=this.observableOptions;if(ce.deleteLocale&&!ze)throw new Error('Cannot delete a localized resource with an undefined "locale"');this.deleting=!0;const Ve=ce;return ze&&(Ve.locale=ze.get()),xt.a.delete(this.resourceKey,{...Ve,id:this.data.id}).then(Object(wt.action)((ce=>{this.id=void 0,this.setMultiple(ce),this.deleting=!1,this.dirty=!1,this.destroy()}))).catch(Object(wt.action)((ce=>{throw this.deleting=!1,ce})))}copyFromLocale(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.id)throw new Error("Copying from another locale does not work for new objects!");if(!this.locale)throw new Error("Copying from another locale does only work for objects with locales!");const Ve=this.locale.get();return xt.a.post(this.resourceKey,{},{...ze,action:"copy-locale",dest:Ve,id:this.id,locale:Ve,src:ce}).then(Object(wt.action)((ce=>(this.setMultiple(ce),ce))))}set(ce,ze){const Ve=ce.startsWith("/")?ce.substring(1):ce;"id"!==Ve||"string"!=typeof ze&&"number"!=typeof ze||(this.id=ze),St.a.set(this.data,"/"+Ve,ze)}setMultiple(ce){ce.id&&(this.id=ce.id),Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])})),Object(wt.set)(this.data,this.data),Dt.a.info('ResourceStore changed "'+this.resourceKey+'" data with the ID "'+(this.id||"undefined")+'"',this.data)}change(ce,ze){this.set(ce,ze),this.dirty=!0}changeMultiple(ce){this.setMultiple(ce),this.dirty=!0}clone(){const ze=new ce(this.resourceKey,this.id,this.observableOptions,this.loadOptions,void 0,!0);return ze.loading=this.loading,Object(wt.when)((()=>!this.loading),(()=>{ze.data=Object(wt.toJS)(this.data),ze.loading=!1})),ze}get locale(){return this.observableOptions.locale}destroy(){this.disposer()}handleIdQueryParameterResponse(ce){ce.id&&(this.idQueryParameter=void 0,this.id=ce.id,this.preventLoadingOnce=!0)}},Ye=_applyDecoratedDescriptor(qe.prototype,"id",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"saving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"deleting",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"moving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"data",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gt=_applyDecoratedDescriptor(qe.prototype,"dirty",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(qe.prototype,"forbidden",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(qe.prototype,"reload",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.load()}}}),_applyDecoratedDescriptor(qe.prototype,"setLoading",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForbidden",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"save",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"save"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"create",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"create"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"update",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"update"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"delete",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"delete"),qe.prototype),vt=_applyDecoratedDescriptor(qe.prototype,"move",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.id)throw new Error("Moving does not work for new objects!");this.moving=!0;const{locale:ze}=this.observableOptions,Ve={action:"move",destination:ce,locale:ze?ze.get():void 0};return xt.a.post(this.resourceKey,void 0,{...Ve,id:this.id}).then(Object(wt.action)((()=>{this.moving=!1}))).catch(Object(wt.action)((ce=>{throw this.moving=!1,ce})))}}}),_applyDecoratedDescriptor(qe.prototype,"set",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"change",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clone",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clone"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"handleIdQueryParameterResponse",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"handleIdQueryParameterResponse"),qe.prototype),qe);ze.a=Et},function(ce,ze,Ve){"use strict";function findById(ce,ze){for(const Ve of ce){if(ze===Ve.id)return Ve;if(Ve.items){const ce=findById(Ve.items,ze);if(ce)return ce}}}Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.navigationItems=[]}set(ce){this.navigationItems=ce}get(ce){const ze=findById(this.navigationItems,ce);if(!ze)throw new Error('Navigation item with id "'+ce+'" not found.');return ze}getAll(){return this.navigationItems}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return kt}));var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(28),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(367),vt=(Ve(351),Ve(410)),wt=Ve(256);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ct="template",Dt=Object(bt.a)();function mergeData(ce,ze,Ve,qe){let Ye={};if(!ce||!ze)return Ye;for(const Qe in ze){const{items:Xe,defaultType:st,type:mt,types:gt}=ze[Qe],{items:yt,defaultType:bt,type:wt,types:Ct}=ce[Qe]||{};if(mt===vt.a&&Xe)Ye=mergeData(ce,Xe,Ve,qe);else if(wt===vt.a&&yt)Ye=mergeData(yt,ze,Ve,qe);else if(gt&&Ct&&Object.keys(gt).length>0&&Object.keys(Ct).length>0&&Ve[Qe]&&qe[Qe]&&Object(ot.isArrayLike)(Ve[Qe])&&Object(ot.isArrayLike)(qe[Qe]))for(let ce=0;cece&&qe[Qe][ce]||{}),Xe=Object(ot.toJS)(Ve[Qe].length>ce&&Ve[Qe][ce]||{}),mt=null==Xe?void 0:Xe.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(We=Ct[Xe.type])||void 0===We?void 0:We.form)||Ct[bt].form,gt[yt].form,Xe,ze);Ye[Qe]||(Ye[Qe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==Xe?void 0:Xe.settings)||ze.settings,Ye[Qe].push(vt))}else Ve[Qe]&&mt===wt?Ye[Qe]=Ve[Qe]:Ye[Qe]=qe[Qe]}return Ye}let kt=(qe=class extends vt.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;super(),_initializerDefineProperty(this,"types",Ye,this),_initializerDefineProperty(this,"schemaLoading",We,this),_initializerDefineProperty(this,"typesLoading",Qe,this),_initializerDefineProperty(this,"handleSchemaTypeResponse",Xe,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Dt.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(ot.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const qe=mergeData(ce,ze,this.data,Ve);this.setMultiple(qe)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=qe,wt.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(ot.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(ot.get)(this.data,Ct):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(ot.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){yt.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){yt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(yt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Ct,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Ct,ce,ze)}getSchemaEntryByPath(ce){return mt.a.get(this.schema,ce)}},Ye=_applyDecoratedDescriptor(qe.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),We=_applyDecoratedDescriptor(qe.prototype,"schemaLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_applyDecoratedDescriptor(qe.prototype,"typesLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleSchemaTypeResponse",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(ot.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Ct]||Ve||Object.keys(this.types)[0];Object(ot.set)(this.data,{[Ct]:ce})})),this.schemaDisposer=Object(ot.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([wt.a.getSchema(this.formKey,this.type,this.metadataOptions),wt.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),_applyDecoratedDescriptor(qe.prototype,"hasTypes",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasTypes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasInvalidType",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasInvalidType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"data",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"data"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"type",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"type"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"save",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"save"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"resourceKey",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"saving",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"saving"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"deleting"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"forbidden",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"forbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"dirty",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"dirty"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setSchemaLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setSchemaLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setType",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeType",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeType"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(596);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(602);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(511);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(615);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.context=ce}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Dt}));var qe=Ve(24),Ye=Ve(41),We=Ve(139),Qe=Ve(218),Xe=Ve(258),ot=Ve(443),st=Ve(253),mt=Ve(444),gt=Ve(8),yt=Ve(178),bt=Ve(99),vt=Ve(63),wt=Ve(398),Ct=Ve(268);class Dt{constructor(ce){this.document=ce,this._cloneGroups=new Map,this._slotFactory=null}setSelection(ce,ze,Ve){this.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this.document.selection._setFocus(ce,ze)}createDocumentFragment(ce){return new yt.a(this.document,ce)}createText(ce){return new vt.a(this.document,ce)}createAttributeElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new Xe.a(this.document,ce,ze);return"number"==typeof Ve.priority&&(qe._priority=Ve.priority),Ve.id&&(qe._id=Ve.id),Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createContainerElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ye=null;Object(Ct.a)(Ve)?qe=Ve:Ye=Ve;const We=new Qe.a(this.document,ce,ze,Ye);return qe.renderUnsafeAttributes&&We._unsafeAttributesToRender.push(...qe.renderUnsafeAttributes),We}createEditableElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new wt.a(this.document,ce,ze);return qe._document=this.document,Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createEmptyElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new ot.a(this.document,ce,ze);return Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createUIElement(ce,ze,Ve){const qe=new st.a(this.document,ce,ze);return Ve&&(qe.render=Ve),qe}createRawElement(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=new mt.a(this.document,ce,ze);return Ye.render=Ve||(()=>{}),qe.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...qe.renderUnsafeAttributes),Ye}setAttribute(ce,ze,Ve){Ve._setAttribute(ce,ze)}removeAttribute(ce,ze){ze._removeAttribute(ce)}addClass(ce,ze){ze._addClass(ce)}removeClass(ce,ze){ze._removeClass(ce)}setStyle(ce,ze,Ve){Object(Ct.a)(ce)&&void 0===Ve&&(Ve=ze),Ve._setStyle(ce,ze)}removeStyle(ce,ze){ze._removeStyle(ce)}setCustomProperty(ce,ze,Ve){Ve._setCustomProperty(ce,ze)}removeCustomProperty(ce,ze){return ze._removeCustomProperty(ce)}breakAttributes(ce){return ce instanceof qe.a?this._breakAttributes(ce):this._breakAttributesRange(ce)}breakContainer(ce){const ze=ce.parent;if(!ze.is("containerElement"))throw new gt.a("view-writer-break-non-container-element",this.document);if(!ze.parent)throw new gt.a("view-writer-break-root",this.document);if(ce.isAtStart)return qe.a._createBefore(ze);if(!ce.isAtEnd){const Ve=ze._clone(!1);this.insert(qe.a._createAfter(ze),Ve);const We=new Ye.a(ce,qe.a._createAt(ze,"end")),Qe=new qe.a(Ve,0);this.move(We,Qe)}return qe.a._createAfter(ze)}mergeAttributes(ce){const ze=ce.offset,Ve=ce.parent;if(Ve.is("$text"))return ce;if(Ve.is("attributeElement")&&0===Ve.childCount){const ce=Ve.parent,ze=Ve.index;return Ve._remove(),this._removeFromClonedElementsGroup(Ve),this.mergeAttributes(new qe.a(ce,ze))}const Ye=Ve.getChild(ze-1),We=Ve.getChild(ze);if(!Ye||!We)return ce;if(Ye.is("$text")&&We.is("$text"))return mergeTextNodes(Ye,We);if(Ye.is("attributeElement")&&We.is("attributeElement")&&Ye.isSimilar(We)){const ce=Ye.childCount;return Ye._appendChild(We.getChildren()),We._remove(),this._removeFromClonedElementsGroup(We),this.mergeAttributes(new qe.a(Ye,ce))}return ce}mergeContainers(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze&&Ve&&ze.is("containerElement")&&Ve.is("containerElement")))throw new gt.a("view-writer-merge-containers-invalid-position",this.document);const We=ze.getChild(ze.childCount-1),Qe=We instanceof vt.a?qe.a._createAt(We,"end"):qe.a._createAt(ze,"end");return this.move(Ye.a._createIn(Ve),qe.a._createAt(ze,"end")),this.remove(Ye.a._createOn(Ve)),Qe}insert(ce,ze){validateNodesToInsert(ze=Object(bt.a)(ze)?[...ze]:[ze],this.document);const Ve=ze.reduce(((ce,ze)=>{const Ve=ce[ce.length-1],qe=!ze.is("uiElement");return Ve&&Ve.breakAttributes==qe?Ve.nodes.push(ze):ce.push({breakAttributes:qe,nodes:[ze]}),ce}),[]);let qe=null,We=ce;for(const{nodes:ce,breakAttributes:ze}of Ve){const Ve=this._insertNodes(We,ce,ze);qe||(qe=Ve.start),We=Ve.end}return qe?new Ye.a(qe,We):new Ye.a(ce)}remove(ce){const ze=ce instanceof Ye.a?ce:Ye.a._createOn(ce);if(validateRangeContainer(ze,this.document),ze.isCollapsed)return new yt.a(this.document);const{start:Ve,end:qe}=this._breakAttributesRange(ze,!0),We=Ve.parent,Qe=qe.offset-Ve.offset,Xe=We._removeChildren(Ve.offset,Qe);for(const ce of Xe)this._removeFromClonedElementsGroup(ce);const ot=this.mergeAttributes(Ve);return ze.start=ot,ze.end=ot.clone(),new yt.a(this.document,Xe)}clear(ce,ze){validateRangeContainer(ce,this.document);const Ve=ce.getWalker({direction:"backward",ignoreElementEnd:!0});for(const qe of Ve){const Ve=qe.item;let We;if(Ve.is("element")&&ze.isSimilar(Ve))We=Ye.a._createOn(Ve);else if(!qe.nextPosition.isAfter(ce.start)&&Ve.is("$textProxy")){const ce=Ve.getAncestors().find((ce=>ce.is("element")&&ze.isSimilar(ce)));ce&&(We=Ye.a._createIn(ce))}We&&(We.end.isAfter(ce.end)&&(We.end=ce.end),We.start.isBefore(ce.start)&&(We.start=ce.start),this.remove(We))}}move(ce,ze){let Ve;if(ze.isAfter(ce.end)){const qe=(ze=this._breakAttributes(ze,!0)).parent,Ye=qe.childCount;ce=this._breakAttributesRange(ce,!0),Ve=this.remove(ce),ze.offset+=qe.childCount-Ye}else Ve=this.remove(ce);return this.insert(ze,Ve)}wrap(ce,ze){if(!(ze instanceof Xe.a))throw new gt.a("view-writer-wrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed){let qe=ce.start;qe.parent.is("element")&&(Ve=qe.parent,!Array.from(Ve.getChildren()).some((ce=>!ce.is("uiElement"))))&&(qe=qe.getLastMatchingPosition((ce=>ce.item.is("uiElement")))),qe=this._wrapPosition(qe,ze);const We=this.document.selection;return We.isCollapsed&&We.getFirstPosition().isEqual(ce.start)&&this.setSelection(qe),new Ye.a(qe)}return this._wrapRange(ce,ze);var Ve}unwrap(ce,ze){if(!(ze instanceof Xe.a))throw new gt.a("view-writer-unwrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed)return ce;const{start:Ve,end:qe}=this._breakAttributesRange(ce,!0),We=Ve.parent,Qe=this._unwrapChildren(We,Ve.offset,qe.offset,ze),ot=this.mergeAttributes(Qe.start);ot.isEqual(Qe.start)||Qe.end.offset--;const st=this.mergeAttributes(Qe.end);return new Ye.a(ot,st)}rename(ce,ze){const Ve=new Qe.a(this.document,ce,ze.getAttributes());return this.insert(qe.a._createAfter(ze),Ve),this.move(Ye.a._createIn(ze),qe.a._createAt(Ve,0)),this.remove(Ye.a._createOn(ze)),Ve}clearClonedElementsGroup(ce){this._cloneGroups.delete(ce)}createPositionAt(ce,ze){return qe.a._createAt(ce,ze)}createPositionAfter(ce){return qe.a._createAfter(ce)}createPositionBefore(ce){return qe.a._createBefore(ce)}createRange(ce,ze){return new Ye.a(ce,ze)}createRangeOn(ce){return Ye.a._createOn(ce)}createRangeIn(ce){return Ye.a._createIn(ce)}createSelection(ce,ze,Ve){return new We.a(ce,ze,Ve)}createSlot(ce){if(!this._slotFactory)throw new gt.a("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,ce)}_registerSlotFactory(ce){this._slotFactory=ce}_clearSlotFactory(){this._slotFactory=null}_insertNodes(ce,ze,Ve){let qe,We;if(qe=Ve?getParentContainer(ce):ce.parent.is("$text")?ce.parent.parent:ce.parent,!qe)throw new gt.a("view-writer-invalid-position-container",this.document);We=Ve?this._breakAttributes(ce,!0):ce.parent.is("$text")?breakTextNode(ce):ce;const Qe=qe._insertChild(We.offset,ze);for(const ce of ze)this._addToClonedElementsGroup(ce);const Xe=We.getShiftedBy(Qe),ot=this.mergeAttributes(We);ot.isEqual(We)||Xe.offset--;const st=this.mergeAttributes(Xe);return new Ye.a(ot,st)}_wrapChildren(ce,ze,Ve,We){let Qe=ze;const Xe=[];for(;Qe!1,ce.parent._insertChild(ce.offset,Ve);const We=new Ye.a(ce,ce.getShiftedBy(1));this.wrap(We,ze);const Qe=new qe.a(Ve.parent,Ve.index);Ve._remove();const Xe=Qe.nodeBefore,ot=Qe.nodeAfter;return Xe instanceof vt.a&&ot instanceof vt.a?mergeTextNodes(Xe,ot):movePositionToTextNode(Qe)}_wrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&ze.hasAttribute(Ve)&&ze.getAttribute(Ve)!==ce.getAttribute(Ve))return!1;for(const Ve of ce.getStyleNames())if(ze.hasStyle(Ve)&&ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&(ze.hasAttribute(Ve)||this.setAttribute(Ve,ce.getAttribute(Ve),ze));for(const Ve of ce.getStyleNames())ze.hasStyle(Ve)||this.setStyle(Ve,ce.getStyle(Ve),ze);for(const Ve of ce.getClassNames())ze.hasClass(Ve)||this.addClass(Ve,ze);return!0}_unwrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&(!ze.hasAttribute(Ve)||ze.getAttribute(Ve)!==ce.getAttribute(Ve)))return!1;if(!ze.hasClass(...ce.getClassNames()))return!1;for(const Ve of ce.getStyleNames())if(!ze.hasStyle(Ve)||ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&this.removeAttribute(Ve,ze);return this.removeClass(Array.from(ce.getClassNames()),ze),this.removeStyle(Array.from(ce.getStyleNames()),ze),!0}_breakAttributesRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.start,qe=ce.end;if(validateRangeContainer(ce,this.document),ce.isCollapsed){const Ve=this._breakAttributes(ce.start,ze);return new Ye.a(Ve,Ve)}const We=this._breakAttributes(qe,ze),Qe=We.parent.childCount,Xe=this._breakAttributes(Ve,ze);return We.offset+=We.parent.childCount-Qe,new Ye.a(Xe,We)}_breakAttributes(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.offset,Ye=ce.parent;if(ce.parent.is("emptyElement"))throw new gt.a("view-writer-cannot-break-empty-element",this.document);if(ce.parent.is("uiElement"))throw new gt.a("view-writer-cannot-break-ui-element",this.document);if(ce.parent.is("rawElement"))throw new gt.a("view-writer-cannot-break-raw-element",this.document);if(!ze&&Ye.is("$text")&&isContainerOrFragment(Ye.parent))return ce.clone();if(isContainerOrFragment(Ye))return ce.clone();if(Ye.is("$text"))return this._breakAttributes(breakTextNode(ce),ze);if(Ve==Ye.childCount){const ce=new qe.a(Ye.parent,Ye.index+1);return this._breakAttributes(ce,ze)}if(0===Ve){const ce=new qe.a(Ye.parent,Ye.index);return this._breakAttributes(ce,ze)}{const ce=Ye.index+1,We=Ye._clone();Ye.parent._insertChild(ce,We),this._addToClonedElementsGroup(We);const Qe=Ye.childCount-Ve,Xe=Ye._removeChildren(Ve,Qe);We._appendChild(Xe);const ot=new qe.a(Ye.parent,ce);return this._breakAttributes(ot,ze)}}_addToClonedElementsGroup(ce){if(!ce.root.is("rootElement"))return;if(ce.is("element"))for(const ze of ce.getChildren())this._addToClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;let Ve=this._cloneGroups.get(ze);Ve||(Ve=new Set,this._cloneGroups.set(ze,Ve)),Ve.add(ce),ce._clonesGroup=Ve}_removeFromClonedElementsGroup(ce){if(ce.is("element"))for(const ze of ce.getChildren())this._removeFromClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;const Ve=this._cloneGroups.get(ze);Ve&&Ve.delete(ce)}}function getParentContainer(ce){let ze=ce.parent;for(;!isContainerOrFragment(ze);){if(!ze)return;ze=ze.parent}return ze}function shouldABeOutsideB(ce,ze){return ce.priorityze.priority)&&ce.getIdentity()Ve instanceof ce)))throw new gt.a("view-writer-insert-invalid-node-type",ze);Ve.is("$text")||validateNodesToInsert(Ve.getChildren(),ze)}}const kt=[vt.a,Xe.a,Qe.a,ot.a,mt.a,st.a];function isContainerOrFragment(ce){return ce&&(ce.is("containerElement")||ce.is("documentFragment"))}function validateRangeContainer(ce,ze){const Ve=getParentContainer(ce.start),qe=getParentContainer(ce.end);if(!Ve||!qe||Ve!==qe)throw new gt.a("view-writer-invalid-range-container",ze)}function canBeJoined(ce,ze){return null===ce.id&&null===ze.id}},function(ce,ze,Ve){"use strict";function isVisible(ce){return!!(ce&&ce.getClientRects&&ce.getClientRects().length)}Ve.d(ze,"a",(function(){return isVisible}))},function(ce,ze,Ve){"use strict";function clickOutsideHandler(ce){let{emitter:ze,activator:Ve,callback:qe,contextElements:Ye}=ce;ze.listenTo(document,"mousedown",((ce,ze)=>{if(!Ve())return;const We="function"==typeof ze.composedPath?ze.composedPath():[];for(const ce of Ye)if(ce.contains(ze.target)||We.includes(ce))return;qe()}))}Ve.d(ze,"a",(function(){return clickOutsideHandler}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return injectUnsafeKeystrokesHandling})),Ve.d(ze,"b",(function(){return isNonTypingKeystroke}));var qe=Ve(37),Ye=Ve(58),We=Ve(341);function injectUnsafeKeystrokesHandling(ce){let ze=null;const Ve=ce.model,qe=ce.editing.view,Qe=ce.commands.get("input");function handleUnsafeKeystroke(ce){if(Ye.a.isWindows&&Object(We.c)(ce,qe.document))return;const Xe=Ve.document,ot=qe.document.isComposing,st=ze&&ze.isEqual(Xe.selection);ze=null,Qe.isEnabled&&(isNonTypingKeystroke(ce)||Xe.selection.isCollapsed||ot&&229===ce.keyCode||!ot&&229===ce.keyCode&&st||deleteSelectionContent())}function deleteSelectionContent(){const ce=Qe.buffer;ce.lock();const ze=ce.batch;Ve.enqueueChange(ze,(()=>{Ve.deleteContent(Ve.document.selection)})),ce.unlock()}Ye.a.isAndroid?qe.document.on("beforeinput",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}):qe.document.on("keydown",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}),qe.document.on("compositionstart",(function handleCompositionStart(){const ce=Ve.document,ze=1!==ce.selection.rangeCount||ce.selection.getFirstRange().isFlat;if(ce.selection.isCollapsed||ze)return;deleteSelectionContent()}),{priority:"lowest"}),qe.document.on("compositionend",(()=>{ze=Ve.createSelection(Ve.document.selection)}),{priority:"lowest"})}const Qe=[Object(qe.a)("arrowUp"),Object(qe.a)("arrowRight"),Object(qe.a)("arrowDown"),Object(qe.a)("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let ce=112;ce<=135;ce++)Qe.push(ce);function isNonTypingKeystroke(ce){return!(!ce.ctrlKey&&!ce.metaKey)||Qe.includes(ce.keyCode)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return kt})),Ve.d(ze,"a",(function(){return St}));var qe=Ve(71),Ye=Ve(307);var We=function last(ce){var ze=null==ce?0:ce.length;return ze?ce[ze-1]:void 0},Qe=Ve(397);var Xe=function baseSlice(ce,ze,Ve){var qe=-1,Ye=ce.length;ze<0&&(ze=-ze>Ye?0:Ye+ze),(Ve=Ve>Ye?Ye:Ve)<0&&(Ve+=Ye),Ye=ze>Ve?0:Ve-ze>>>0,ze>>>=0;for(var We=Array(Ye);++qe{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)}set(ce,ze){if(Object(qe.a)(ce))for(const[ze,Ve]of Object.entries(ce))this._styleProcessor.toNormalizedForm(ze,Ve,this._styles);else this._styleProcessor.toNormalizedForm(ce,ze,this._styles)}remove(ce){const ze=toPath(ce);gt(this._styles,ze),delete this._styles[ce],this._cleanEmptyObjectsOnPath(ze)}getNormalized(ce){return this._styleProcessor.getNormalized(ce,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((ce=>ce.join(":"))).sort().join(";")+";"}getAsString(ce){if(this.isEmpty)return;if(this._styles[ce]&&!Object(qe.a)(this._styles[ce]))return this._styles[ce];const ze=this._styleProcessor.getReducedForm(ce,this._styles).find((ze=>{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)?ze[1]:void 0}getStyleNames(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty)return[];if(ce)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((ce=>{let[ze]=ce;return ze}))}clear(){this._styles={}}_getStylesEntries(){const ce=[],ze=Object.keys(this._styles);for(const Ve of ze)ce.push(...this._styleProcessor.getReducedForm(Ve,this._styles));return ce}_cleanEmptyObjectsOnPath(ce){const ze=ce.split(".");if(!(ze.length>1))return;const Ve=ze.splice(0,ze.length-1).join("."),qe=Object(yt.a)(this._styles,Ve);if(!qe)return;!Array.from(Object.keys(qe)).length&&this.remove(Ve)}}class St{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(ce,ze,Ve){if(Object(qe.a)(ze))appendStyleValue(Ve,toPath(ce),ze);else if(this._normalizers.has(ce)){const qe=this._normalizers.get(ce),{path:Ye,value:We}=qe(ze);appendStyleValue(Ve,Ye,We)}else appendStyleValue(Ve,ce,ze)}getNormalized(ce,ze){if(!ce)return Object(bt.a)({},ze);if(void 0!==ze[ce])return ze[ce];if(this._extractors.has(ce)){const Ve=this._extractors.get(ce);if("string"==typeof Ve)return Object(yt.a)(ze,Ve);const qe=Ve(ce,ze);if(qe)return qe}return Object(yt.a)(ze,toPath(ce))}getReducedForm(ce,ze){const Ve=this.getNormalized(ce,ze);if(void 0===Ve)return[];if(this._reducers.has(ce)){return this._reducers.get(ce)(Ve)}return[[ce,Ve]]}getStyleNames(ce){const ze=Array.from(this._consumables.keys()).filter((ze=>{const Ve=this.getNormalized(ze,ce);return Ve&&"object"==typeof Ve?Object.keys(Ve).length:Ve})),Ve=new Set([...ze,...Object.keys(ce)]);return Array.from(Ve.values())}getRelatedStyles(ce){return this._consumables.get(ce)||[]}setNormalizer(ce,ze){this._normalizers.set(ce,ze)}setExtractor(ce,ze){this._extractors.set(ce,ze)}setReducer(ce,ze){this._reducers.set(ce,ze)}setStyleRelation(ce,ze){this._mapStyleNames(ce,ze);for(const Ve of ze)this._mapStyleNames(Ve,[ce])}_mapStyleNames(ce,ze){this._consumables.has(ce)||this._consumables.set(ce,[]),this._consumables.get(ce).push(...ze)}}function parseInlineStyles(ce){let ze=null,Ve=0,qe=0,Ye=null;const We=new Map;if(""===ce)return We;";"!=ce.charAt(ce.length-1)&&(ce+=";");for(let Qe=0;Qeot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new Ye.a(ce);return Qe()(ze),Object.entries(st).forEach((ce=>{let[Ve,qe]=ce;ze.addFormat(Ve,qe)})),ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ajv_createAjv}));var qe=Ve(251),Ye=Ve.n(qe),We=Ve(643),Qe=Ve.n(We),Xe=Ve(297),ot=Ve.n(Xe);var st={"idn-email":ce=>ot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new Ye.a(ce);return Qe()(ze),Object.entries(st).forEach((ce=>{let[Ve,qe]=ce;ze.addFormat(Ve,qe)})),ze}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);const Qe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Xe{static get(ce){const ze=ce.split("/")[0];return Qe[ce]?Qe[ce]:Qe[ze]?Qe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--BJnDc+jsOT";class st extends Ye.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:qe}=this.props,{icon:Qe,backgroundColor:st}=Xe.get(qe),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),Ye.a.createElement("div",{className:ot,style:mt},Ye.a.createElement(We.Icon,{name:Qe}))}}st.defaultProps={iconSize:52};ze.a=st},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));Ve(887),Ve(888);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st="clickable--gheuqOwzCi";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,iconRef:qe,style:We}=this.props;let Xe="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":Xe=null;break;case"fa-":Xe="fa";break;default:return logInvalidIconWarning(ze),null}const ot=Qe()(Xe||void 0,ze,{[st]:Ve},ce),mt=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return Ye.a.createElement("span",_extends({"aria-label":ze,className:ot,ref:qe,style:We},mt))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return yt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(644),ot=Ve(17),st=Ve(47),mt=Ve(585).default,gt={input:"input--GwyohBMkr0",left:"left--jqE60JbxNL",center:"center--KkWWwgx62u",right:"right--xFu0OPgBpR",collapsed:"collapsed--O1JXR5bw7L","has-append-icon":"has-append-icon--Lu2UlczQff",hasAppendIcon:"has-append-icon--Lu2UlczQff",dark:"dark--DZ07bvfCbp",error:"error--C7l70iztHs",disabled:"disabled--P-5jSgcsYg","prepended-container":"prepended-container--D+QwicpkCM",prependedContainer:"prepended-container--D+QwicpkCM",icon:"icon--Ncd5A0qR+H",headline:"headline--Q5o4Q21pEM","append-container":"append-container--gjPbDwwz9g",appendContainer:"append-container--gjPbDwwz9g","icon-clickable":"icon-clickable--7suxJ5r9Ng",iconClickable:"icon-clickable--7suxJ5r9Ng"};class yt extends Ye.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setInputContainerRef=ce=>{const{inputContainerRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:yt,valid:bt,disabled:vt,icon:wt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Vt,type:Ht,value:Ut,iconStyle:Wt,iconClassName:Jt,inputMode:Qt,inputRef:en,inputContainerRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Qe()(gt.input,gt[ln],gt[ce],{[gt.error]:!bt,[gt.disabled]:vt,[gt.collapsed]:Dt,[gt.hasAppendIcon]:Lt,[gt.headline]:Ve}),Cn=Qe()(gt.icon,gt[ln],Jt,{[gt.iconClickable]:!!wt&&!!Tt,[gt.collapsed]:Dt}),Sn=Qe()(gt.prependedContainer,gt[ln],{[gt.collapsed]:Dt});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("div",{className:wn,ref:rn?this.setInputContainerRef:void 0},!Ct&&wt&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(ot.default,{className:Cn,name:wt,onClick:Tt||void 0,style:Wt})),Ct&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(st.a,{size:20})),Ye.a.createElement("input",{autoComplete:ze,className:yt,disabled:vt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Ht,value:null==Ut?"":Ut}),!Dt&&!!Ut&&Lt&&Ye.a.createElement("div",{className:gt.appendContainer},Ye.a.createElement(ot.default,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Wt}))),kt&&Ye.a.createElement(Xe.a,{max:kt,value:Ut}),Vt&&St&&Ye.a.createElement(mt,{delimiter:Vt,max:St,value:Ut?Ut.toString():void 0}))}}yt.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(80),Ye=Ve(283);class We extends qe.a{refresh(){const ce=this.editor.model,ze=ce.document,Ve=Object(Ye.a)(ze.selection.getSelectedBlocks());this.value=!!Ve&&Ve.is("element","paragraph"),this.isEnabled=!!Ve&&checkCanBecomeParagraph(Ve,ce.schema)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.change((qe=>{const Ye=(ce.selection||Ve.selection).getSelectedBlocks();for(const ce of Ye)!ce.is("element","paragraph")&&checkCanBecomeParagraph(ce,ze.schema)&&qe.rename(ce,"paragraph")}))}}function checkCanBecomeParagraph(ce,ze){return ze.checkChild(ce.parent,"paragraph")&&!ze.isObject(ce)}class Qe extends qe.a{execute(ce){const ze=this.editor.model,Ve=ce.attributes;let qe=ce.position;ze.change((ce=>{const Ye=ce.createElement("paragraph");if(Ve&&ze.schema.setAllowedAttributes(Ye,Ve,ce),!ze.schema.checkChild(qe.parent,Ye)){const Ve=ze.schema.findAllowedParent(qe,Ye);if(!Ve)return;qe=ce.split(qe,Ve).position}ze.insertContent(Ye,qe),ce.setSelection(Ye,"in")}))}}var Xe=Ve(31);class ot extends Xe.a{static get pluginName(){return"Paragraph"}init(){const ce=this.editor,ze=ce.model;ce.commands.add("paragraph",new We(ce)),ce.commands.add("insertParagraph",new Qe(ce)),ze.schema.register("paragraph",{inheritAllFrom:"$block"}),ce.conversion.elementToElement({model:"paragraph",view:"p"}),ce.conversion.for("upcast").elementToElement({model:(ce,ze)=>{let{writer:Ve}=ze;return ot.paragraphLikeElements.has(ce.name)?ce.isEmpty?null:Ve.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}ot.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=(Ve(40),Ve(789),"button-group--qlcr5mKxfX"),ot="button--FVhuZqLzqh";class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return Ye.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Qe()(ot,ce.props.className);return Ye.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return Ye.a.createElement("div",{className:Xe},this.cloneChildren())}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="ghost-indicator--WSUP-JcZo9";class ot extends Ye.a.Component{render(){const{className:ce}=this.props,ze=Qe()(Xe,ce);return Ye.a.createElement("span",{className:ze},this.props.locale)}}ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(297),Et=Ve.n(xt),Pt=Ve(32),Tt="url--8uqaJgtC7F",Lt="error--RnWk++VEOm",Ft="protocols--e2rGpz4UzD";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Qe,this),_initializerDefineProperty(this,"validUrl",Xe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:qe}=this.props;if(qe===this.url)return;const Ye=Ve.find((ze=>ce&&ce.startsWith(ze)));Ye||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=Ye||this.selectedProtocol,this.path=ce.substring(Ye?Ye.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(Ye)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:qe}=this.props,Ye=Dt()(Tt,{[Lt]:!qe||!this.validUrl});return bt.a.createElement("div",{className:Ye},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((Ye=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(Ye.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUrl"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"url"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:qe}=this.props;if("string"!=typeof ce||!qe.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+qe.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,qe=ze.find((ce=>Ve.startsWith(ce)));qe&&(this.selectedProtocol=qe,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),qe=Ye))||qe;ze.a=Bt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(90),vt=Ve.n(bt),wt=Ve(402),Ct=Ve(173),Dt=Ve(161),kt=Ve(254),St="item-container--UbyyXGs9zG",xt="publish-indicator--FdYm7qgkPv",Et="column-list--EGOkMmV5YQ",Pt="item-column--DwiI-enH6x";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Tt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Qe,this),_initializerDefineProperty(this,"handleOverlayClose",Xe,this),this.handleOverlayConfirm=ce=>{this.singleSelectionStore.loadItem(ce.id),this.closeOverlay()},this.handleRemove=()=>{this.singleSelectionStore.clear()};const{detailOptions:ze,locale:Ve,resourceKey:qe,value:Ye}=this.props;this.singleSelectionStore=new Dt.a(qe,Ye,Ve,ze),this.changeDisposer=Object(gt.reaction)((()=>void 0===this.singleSelectionStore.item?void 0:null===this.singleSelectionStore.item?null:this.singleSelectionStore.item.id),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve!==ce&&ze(ce,this.singleSelectionStore.item)}))}componentWillUnmount(){this.changeDisposer()}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value);(this.singleSelectionStore.item?this.singleSelectionStore.item.id:void 0)!==ce&&this.singleSelectionStore.loadItem(ce)}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:qe,disabledIds:Ye,displayProperties:We,emptyText:Qe,icon:Xe,itemDisabledCondition:ot,locale:gt,listOptions:yt,onItemClick:bt,overlayTitle:Dt,resourceKey:Tt}=this.props,{item:Lt,loading:Ft}=this.singleSelectionStore,Bt=We.length,Vt=!!Lt&&Ye.includes(Lt.id)||!!Lt&&!!ot&&vt.a.evalSync(ot,Lt),Ht=Lt?Lt.published:void 0,Ut=Lt?Lt.publishedState:void 0;return mt.a.createElement(st.Fragment,null,mt.a.createElement(wt.a,{allowRemoveWhileItemDisabled:ze,disabled:qe,emptyText:Qe,id:Lt&&Lt.id,itemDisabled:Vt,leftButton:{icon:Xe,onClick:this.handleOverlayOpen},loading:Ft,onItemClick:bt,onRemove:Lt?this.handleRemove:void 0,value:Lt},Lt&&mt.a.createElement("div",{className:St},(void 0!==Ut||void 0!==Ht)&&!(Ut&&Ht)&&mt.a.createElement("div",{className:xt},mt.a.createElement(Ct.a,{draft:!Ut,published:!!Ht})),mt.a.createElement("div",{className:Et},We.map((ce=>mt.a.createElement("span",{className:Pt,key:ce,style:{width:100/Bt+"%"}},Lt[ce])))))),!Ft&&mt.a.createElement(kt.a,{adapter:ce,disabledIds:Ye,itemDisabledCondition:ot,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:yt,preSelectedItem:Lt,resourceKey:Tt,title:Dt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],icon:"su-plus"},We=_applyDecoratedDescriptor((Ye=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeOverlay"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),qe=Ye))||qe;ze.a=Tt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(1),gt=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const yt="media",bt="media_preview",vt="fileVersion";let wt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",Ye,this),_initializerDefineProperty(this,"progress",We,this),_initializerDefineProperty(this,"media",Qe,this),_initializerDefineProperty(this,"error",Xe,this),_initializerDefineProperty(this,"handleResponse",ot,this),_initializerDefineProperty(this,"handleError",st,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return gt.c.delete(yt,{id:this.id}).then(Object(mt.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(yt,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=gt.d.getDetailUrl(yt,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return gt.c.delete(bt,{id:this.id}).then(Object(mt.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((qe,Ye)=>{const We=new XMLHttpRequest,Qe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)qe(JSON.parse(ce.target.response));else try{Ye(JSON.parse(ce.target.response))}catch(ze){Ye(ce.target)}},We.onerror=ce=>Ye(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Qe.append(Ve,ce),We.send(Qe)}))}}).prototype,"uploading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"progress",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"media",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"error",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"id",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"downloadUrl",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"downloadUrl"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"mimeType",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"mimeType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUploading",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUploading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setProgress",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setProgress"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"delete",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"delete"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleResponse",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),st=_applyDecoratedDescriptor(qe.prototype,"handleError",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),qe);ze.a=wt},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(48);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,inputContainerRef:this.props.inputContainerRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return Ye.a.createElement(We.a,ce)}}Qe.defaultProps={alignment:"left",disabled:!1,valid:!0};ze.a=Qe},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(53),yt=Ve(239),bt=Ve(11),vt=Ve(103),wt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"config",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"bundles"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitialized"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitializedTranslationsLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=Ct},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(216),mt=Ve(708);var gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,options:Ye,preloadSelectedItems:We,preSelectedItems:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,Ye,void 0,We?Qe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},qe=Ye))||qe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var qe=Ve(670),Ye=Ve(129),We=Ve(25),Qe=Ve(166),Xe=Ve(8),ot=Ve(39),st=Ve(91),mt=Ve(224);const gt=Symbol("bubbling contexts"),yt={fire(ce){try{const Ye=ce instanceof Qe.a?ce:new Qe.a(this,ce),We=getBubblingContexts(this);if(!We.size)return;updateEventInfo(Ye,"capturing",this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe3?Ye-3:0),Qe=3;QeYe.length?ze:Ve}var vt=Ve(42);class wt{constructor(ce){this.selection=new qe.a,this.roots=new Ye.a({idProperty:"rootName"}),this.stylesProcessor=ce,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}registerPostFixer(ce){this._postFixers.add(ce)}destroy(){this.roots.map((ce=>ce.destroy())),this.stopListening()}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(ze=Ve(ce),ze)break}while(ze)}}Object(We.a)(wt,bt),Object(We.a)(wt,vt.a)},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.DOCS_THIRDPARTIES=ze.DOCS_DOCUMENTING=ze.DOCS_WEBPACK=ze.DOCS_COMPONENTS=ze.DOCS_CONFIG=ze.BUGS=ze.HOMEPAGE=void 0;ze.HOMEPAGE="https://react-styleguidist.js.org/";ze.BUGS="https://github.com/styleguidist/react-styleguidist/issues";ze.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration";ze.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components";ze.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack";ze.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting";ze.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties"},function(ce,ze,Ve){"use strict";var qe=Ve(549);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(586);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(600);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(71);ze.a=function isFunction(ce){if(!Object(Ye.a)(ce))return!1;var ze=Object(qe.a)(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){"use strict";ze.a=function isLength(ce){return"number"==typeof ce&&ce>-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze,Ve){"use strict";var qe=Ve(411);ze.a=function baseAssignValue(ce,ze,Ve){"__proto__"==ze&&qe.a?Object(qe.a)(ce,ze,{configurable:!0,enumerable:!0,value:Ve,writable:!0}):ce[ze]=Ve}},function(ce,ze,Ve){"use strict";ze.a=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){"use strict";var qe=Ve(412);ze.a=function cloneArrayBuffer(ce){var ze=new ce.constructor(ce.byteLength);return new qe.a(ze).set(new qe.a(ce)),ze}},function(ce,ze,Ve){"use strict";var qe=Ve(658),Ye=Object(qe.a)(Object.getPrototypeOf,Object);ze.a=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(390),Ye=Ve(223),We=Object.prototype.hasOwnProperty;ze.a=function assignValue(ce,ze,Ve){var Qe=ce[ze];We.call(ce,ze)&&Object(Ye.a)(Qe,Ve)&&(void 0!==Ve||ze in ce)||Object(qe.a)(ce,ze,Ve)}},function(ce,ze,Ve){"use strict";var qe=Object.prototype;ze.a=function isPrototype(ce){var ze=ce&&ce.constructor;return ce===("function"==typeof ze&&ze.prototype||qe)}},function(ce,ze,Ve){"use strict";var qe=Ve(82),Ye=Ve(302),We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/;ze.a=function isKey(ce,ze){if(Object(qe.a)(ce))return!1;var Ve=typeof ce;return!("number"!=Ve&&"symbol"!=Ve&&"boolean"!=Ve&&null!=ce&&!Object(Ye.a)(ce))||(Qe.test(ce)||!We.test(ce)||null!=ze&&ce in Object(ze))}},function(ce,ze,Ve){"use strict";var qe=Ve(307),Ye=Ve(176);ze.a=function baseGet(ce,ze){for(var Ve=0,We=(ze=Object(qe.a)(ze,ce)).length;null!=ce&&Veze&&ce.selection.editableElement==this)),this.listenTo(ce.selection,"change",(()=>{this.isFocused=ce.isFocused&&ce.selection.editableElement==this}))}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}destroy(){this.stopListening()}}Object(Ye.a)(Qe,We.a)},function(ce,ze,Ve){var populateChar=function(ce,ze){for(var Ve="",qe=0;qe/i);yt&&(gt=gt.substring(0,yt.index));const bt=gt.match(/]*>/i);if(bt&&(gt=gt.substring(bt.index+bt[0].length,gt.length)),gt=(gt=(gt=gt.replace(/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,"")).replace(/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,"")).replace(/]*)>/gi,(function(ce,ze){var Ve="",Ye="",We=/src="([^"]*)"/i.exec(ze),Qe=/alt="([^"]*)"/i.exec(ze);return null!==We&&(Ve=We[1]),null!==Qe&&(Ye=Qe[1]),"function"==typeof qe?qe(Ve,Ye):""===Ye?"![image] ("+Ve+")":"!["+Ye+"] ("+Ve+")"})),"linebreak"===We)gt=gt.replace(/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,"\n");else if("indention"===We)for(;/<(o|u)l[^>]*>(.*)<\/\1l>/gi.test(gt);)gt=gt.replace(/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,(function(ce,ze,Ve,qe){var Ye=0;return Ve&&/start="([0-9]+)"/i.test(Ve)&&(Ye=/start="([0-9]+)"/i.exec(Ve)[1]-1),"

"+qe.replace(/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,(function(ce,Ve){var qe=0;return Ve.replace(/(^|(
))(?!

)/gi,(function(){return"o"===ze&&0===qe?(qe+=1,"
"+(Ye+=1)+populateChar(ot,Xe-String(Ye).length)):"
"+mt}))}))+"

"}));for("linebreak"===Ye?gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,"\n$2\n"):"underline"===Ye?gt=(gt=(gt=gt.replace(/]*>(((?!<\/h1>).)*)<\/h1>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("=",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h2>).)*)<\/h2>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("-",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+Ve+"\n \n"})):"hashify"===Ye&&(gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+populateChar("#",ze)+" "+Ve+"\n \n"}))),gt=(gt=(gt=(gt=gt.replace(/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,"\n")).replace(/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,(function(ce,ze,qe){return"function"==typeof Ve?Ve(ze,qe):" ["+qe+"] ("+ze+") "}))).replace(/\n[ \t\f]*/gi,"\n")).replace(/\n\n+/gi,"\n"),gt=(gt=(gt=st?(gt=gt.replace(/( |\t)+/gi," ")).replace(/ /gi," "):gt.replace(/( | |\t)+/gi," ")).replace(/\n +/gi,"\n")).replace(/^ +/gi,"");0===gt.indexOf("\n");)gt=gt.substring(1);return 0!==gt.length&>.lastIndexOf("\n")===gt.length-1||(gt+="\n"),gt}!function(ze,Ve){if(this&&"function"==typeof this.define)this.define(Ve);else if(ce.exports)ce.exports=Ve();else{var qe=Ve(),Ye=this,We=Ye[ze];qe.noConflict=function(){return Ye[ze]=We,qe},Ye[ze]=qe}}("createTextVersion",(function(){return htmlToPlainText}))},function(ce,ze,Ve){"use strict";var qe=Ve(237),Ye=Ve(659),We=Ve(394),Qe=Ve(175),Xe=Ve(228);var ot=function baseAssign(ce,ze){return ce&&Object(Qe.a)(ze,Object(Xe.a)(ze),ce)},st=Ve(179);var mt=function baseAssignIn(ce,ze){return ce&&Object(Qe.a)(ze,Object(st.a)(ze),ce)},gt=Ve(656),yt=Ve(655),bt=Ve(407);var vt=function copySymbols(ce,ze){return Object(Qe.a)(ce,Object(bt.a)(ce),ze)},wt=Ve(662),Ct=Ve(393),Dt=Ve(663),kt=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Object(wt.a)(ze,Object(bt.a)(ce)),ce=Object(Ct.a)(ce);return ze}:Dt.a;var St=function copySymbolsIn(ce,ze){return Object(Qe.a)(ce,kt(ce),ze)},xt=Ve(450),Et=Ve(661);var Pt=function getAllKeysIn(ce){return Object(Et.a)(ce,st.a,kt)},Tt=Ve(261),Lt=Object.prototype.hasOwnProperty;var Ft=function initCloneArray(ce){var ze=ce.length,Ve=new ce.constructor(ze);return ze&&"string"==typeof ce[0]&&Lt.call(ce,"index")&&(Ve.index=ce.index,Ve.input=ce.input),Ve},Bt=Ve(392);var Vt=function cloneDataView(ce,ze){var Ve=ze?Object(Bt.a)(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.byteLength)},Ht=/\w*$/;var Ut=function cloneRegExp(ce){var ze=new ce.constructor(ce.source,Ht.exec(ce));return ze.lastIndex=ce.lastIndex,ze},Wt=Ve(141),Jt=Wt.a?Wt.a.prototype:void 0,Qt=Jt?Jt.valueOf:void 0;var en=function cloneSymbol(ce){return Qt?Object(Qt.call(ce)):{}},rn=Ve(657);var ln=function initCloneByTag(ce,ze,Ve){var qe=ce.constructor;switch(ze){case"[object ArrayBuffer]":return Object(Bt.a)(ce);case"[object Boolean]":case"[object Date]":return new qe(+ce);case"[object DataView]":return Vt(ce,Ve);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(rn.a)(ce,Ve);case"[object Map]":case"[object Set]":return new qe;case"[object Number]":case"[object String]":return new qe(ce);case"[object RegExp]":return Ut(ce);case"[object Symbol]":return en(ce)}},mn=Ve(720),gn=Ve(82),bn=Ve(257),wn=Ve(98);var Cn=function baseIsMap(ce){return Object(wn.a)(ce)&&"[object Map]"==Object(Tt.a)(ce)},Sn=Ve(391),En=Ve(265),Tn=En.a&&En.a.isMap,Ln=Tn?Object(Sn.a)(Tn):Cn,Fn=Ve(71);var Yn=function baseIsSet(ce){return Object(wn.a)(ce)&&"[object Set]"==Object(Tt.a)(ce)},Un=En.a&&En.a.isSet,Gn=Un?Object(Sn.a)(Un):Yn,Kn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Xn={};Xn[Kn]=Xn["[object Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object DataView]"]=Xn["[object Boolean]"]=Xn["[object Date]"]=Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn[Zn]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object String]"]=Xn["[object Symbol]"]=Xn["[object Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Error]"]=Xn[Jn]=Xn["[object WeakMap]"]=!1;ze.a=function baseClone(ce,ze,Ve,Qe,bt,wt){var Ct,Dt=1&ze,kt=2&ze,Et=4&ze;if(Ve&&(Ct=bt?Ve(ce,Qe,bt,wt):Ve(ce)),void 0!==Ct)return Ct;if(!Object(Fn.a)(ce))return ce;var Lt=Object(gn.a)(ce);if(Lt){if(Ct=Ft(ce),!Dt)return Object(yt.a)(ce,Ct)}else{var Bt=Object(Tt.a)(ce),Vt=Bt==Jn||"[object GeneratorFunction]"==Bt;if(Object(bn.a)(ce))return Object(gt.a)(ce,Dt);if(Bt==Zn||Bt==Kn||Vt&&!bt){if(Ct=kt||Vt?{}:Object(mn.a)(ce),!Dt)return kt?St(ce,mt(Ct,ce)):vt(ce,ot(Ct,ce))}else{if(!Xn[Bt])return bt?ce:{};Ct=ln(ce,Bt,Dt)}}wt||(wt=new qe.a);var Ht=wt.get(ce);if(Ht)return Ht;wt.set(ce,Ct),Gn(ce)?ce.forEach((function(qe){Ct.add(baseClone(qe,ze,Ve,qe,ce,wt))})):Ln(ce)&&ce.forEach((function(qe,Ye){Ct.set(Ye,baseClone(qe,ze,Ve,Ye,ce,wt))}));var Ut=Et?kt?Pt:xt.a:kt?st.a:Xe.a,Wt=Lt?void 0:Ut(ce);return Object(Ye.a)(Wt||ce,(function(qe,Ye){Wt&&(qe=ce[Ye=qe]),Object(We.a)(Ct,Ye,baseClone(qe,ze,Ve,Ye,ce,wt))})),Ct}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(3),Qe=Ve(1),Xe=Ve(22),ot=Ve.n(Xe),st=Ve(101),mt=Ve(5),gt=Ve.n(mt),yt={progressBar:"progressBar--kLLc8cFSQ+",error:"error--xLPhjfPDdJ",warning:"warning--0TgviD4vg5",success:"success--CIpG5wsMBt"};class bt extends Ye.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=gt()(yt.progressBar,yt[ce]);return Ye.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}bt.defaultProps={skin:"progress"};var vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft=bt,Bt=Ve(45),Vt=(Ve(280),Ve(6)),Ht="progressBar--EYsYhZFK-j";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ut=Object(We.b)((wt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inProgress",Ct,this),_initializerDefineProperty(this,"finished",Dt,this),_initializerDefineProperty(this,"showSnackbar",kt,this),_initializerDefineProperty(this,"error",St,this),_initializerDefineProperty(this,"closed",xt,this),_initializerDefineProperty(this,"totalDeletedResources",Et,this),this.promises=[],_initializerDefineProperty(this,"handleConfirm",Pt,this),this.deleteResourceBatches=ce=>{const{requestOptions:ze}=this.props;if(0===ce.length)return Promise.resolve();const[Ve,...qe]=ce;return Ve.forEach((ce=>{const Ve=Bt.a.delete(ce.resourceKey,{...ze,id:ce.id});Ve.then(Object(Qe.action)((()=>{this.totalDeletedResources++}))).catch((()=>{})),this.promises.push(Ve)})),Promise.all(this.promises).then((()=>{if(this.promises.splice(0,this.promises.length),this.inProgress)return this.deleteResourceBatches(qe)}))},_initializerDefineProperty(this,"handleCancel",Tt,this),_initializerDefineProperty(this,"handleSnackbarCloseClick",Lt,this)}get title(){return this.props.dependantResourcesData.title}get detail(){return this.props.dependantResourcesData.detail}get dependantResourceBatches(){return this.props.dependantResourcesData.dependantResourceBatches}get dependantResourcesCount(){return this.props.dependantResourcesData.dependantResourcesCount}componentDidUpdate(ce){ot()(Object(Qe.toJS)(ce.dependantResourcesData),Object(Qe.toJS)(this.props.dependantResourcesData))&&ot()(Object(Qe.toJS)(ce.requestOptions),Object(Qe.toJS)(this.props.requestOptions))||(this.inProgress=!1,this.finished=!1,this.showSnackbar=!0,this.error=void 0,this.closed=!1,this.totalDeletedResources=0,this.promises=[])}get errored(){return!!this.error}get snackbarType(){if(this.showSnackbar&&this.errored)return"error"}get snackbarMessage(){if("error"===this.snackbarType&&this.error)return this.error}render(){return Ye.a.createElement(st.a,{cancelText:this.errored||this.finished?Object(Vt.translate)("sulu_admin.close"):Object(Vt.translate)("sulu_admin.cancel"),confirmDisabled:this.errored||this.finished,confirmLoading:this.inProgress,confirmText:Object(Vt.translate)("sulu_admin.delete"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:!this.closed,snackbarMessage:this.snackbarMessage,snackbarType:this.snackbarType,title:this.title},!this.inProgress&&!this.finished&&!this.errored&&Ye.a.createElement("p",null,this.detail),(this.inProgress||this.finished||this.errored)&&Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement("div",{className:Ht},Ye.a.createElement(Ft,{max:this.dependantResourcesCount,skin:this.errored?"error":this.finished?"success":"progress",value:this.errored?this.totalDeletedResources+1:this.totalDeletedResources})),Ye.a.createElement("p",null,Object(Vt.translate)("sulu_admin.delete_dependants_progress_text",{count:`${this.totalDeletedResources}/${this.dependantResourcesCount}`}))))}},Ct=_applyDecoratedDescriptor(wt.prototype,"inProgress",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(wt.prototype,"finished",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(wt.prototype,"showSnackbar",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),St=_applyDecoratedDescriptor(wt.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xt=_applyDecoratedDescriptor(wt.prototype,"closed",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(wt.prototype,"totalDeletedResources",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_applyDecoratedDescriptor(wt.prototype,"title",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"title"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"detail",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"detail"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourceBatches",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourceBatches"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourcesCount",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourcesCount"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"componentDidUpdate"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"errored",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"errored"),wt.prototype),Pt=_applyDecoratedDescriptor(wt.prototype,"handleConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce,onError:ze}=this.props;this.inProgress=!0,this.deleteResourceBatches(this.dependantResourceBatches).then(Object(Qe.action)((()=>{this.inProgress=!1,this.finished=!0,ce&&ce()}))).catch((ce=>{ce.json().then(Object(Qe.action)((ce=>{this.inProgress=!1,this.error=ce.detail||ce.title||Object(Vt.translate)("sulu_admin.unexpected_delete_server_error"),ze&&ze(ce)})))}))}}}),Tt=_applyDecoratedDescriptor(wt.prototype,"handleCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onCancel:ce}=this.props;this.inProgress&&(this.inProgress=!1,this.promises.forEach((ce=>{ce.abort()}))),this.closed=!0,ce&&ce()}}}),Lt=_applyDecoratedDescriptor(wt.prototype,"handleSnackbarCloseClick",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showSnackbar=!1}}}),_applyDecoratedDescriptor(wt.prototype,"snackbarType",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarType"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"snackbarMessage",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarMessage"),wt.prototype),vt=wt))||vt;var Wt=Ut;ze.a=Wt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(19),vt=Ve(405),wt="single-item-selection---kA-JYVira",Ct="item-container--zqZpp-ygwS",Dt="item--CwE0v6eB41",kt="clickable--sd1+oyeuMr",St="empty--QnP4cwEBWH",xt="remove-button--MZzexds7TQ",Et="loader--vL67uCNnqF",Pt="error--h0DdmMU5ae",Tt="disabled--t25RP77rRV",Lt=Ve(1),Ft=Ve(3),Bt=Ve(66),Vt={button:"button--E8E5iuGORv",left:"left--IsGnVmtBTw",right:"right--IberqDy3Ag","has-options":"has-options--8DgfyVSJSv",hasOptions:"has-options--8DgfyVSJSv",icon:"icon--t5D9-7GOo5"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ht=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:qe}=this.props,Ye=yt()(Vt.button,Vt[Ve],{[Vt.hasOptions]:qe}),We=mt.a.createElement("button",{className:Ye,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.a,{className:Vt.icon,name:ze}),qe&&mt.a.createElement(bt.a,{name:"su-angle-down"}));return qe?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,qe.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Ut=Ht;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:qe,itemDisabled:Ye,emptyText:We,leftButton:Qe,loading:Xe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:qe||Ye}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Ut,_extends({},Qe,{disabled:qe||Ye,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Xe?"…":We)),st&&!Xe&&!qe&&(!Ye||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.a,{name:"su-trash-alt"})),Xe&&mt.a.createElement(vt.a,{className:Et,size:14})),gt&&mt.a.createElement(Ut,_extends({},gt,{disabled:qe||Ye,location:"right"})))}}Wt.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0};ze.a=Wt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot={label:"label--NExT2msrBj",disabled:"disabled--G3RpqBocRC",small:"small--qe9GiAwIBK",switch:"switch--s8wD-Fpng8"};class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:qe,checked:We,children:st,className:mt,disabled:gt,size:yt,tabIndex:bt}=this.props,vt=Qe()(ot.label,{[ot.disabled]:gt},"default"!==yt?ot[yt]:null),wt=Qe()(ot.switch,{[ot.disabled]:gt},mt);return Ye.a.createElement("label",{className:vt,onClick:this.handleClick,tabIndex:-1},Ye.a.createElement("span",{className:wt},Ye.a.createElement("input",{checked:We,disabled:gt,name:Ve,onChange:this.handleChange,tabIndex:bt,type:ze,value:qe}),Ye.a.createElement("span",null,ce&&Ye.a.createElement(Xe.a,{name:ce}))),st&&Ye.a.createElement("div",null,st))}}st.defaultProps={checked:!1,disabled:!1,size:"default",type:"checkbox"};ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(389),We=Ve(98),Qe={};Qe["[object Float32Array]"]=Qe["[object Float64Array]"]=Qe["[object Int8Array]"]=Qe["[object Int16Array]"]=Qe["[object Int32Array]"]=Qe["[object Uint8Array]"]=Qe["[object Uint8ClampedArray]"]=Qe["[object Uint16Array]"]=Qe["[object Uint32Array]"]=!0,Qe["[object Arguments]"]=Qe["[object Array]"]=Qe["[object ArrayBuffer]"]=Qe["[object Boolean]"]=Qe["[object DataView]"]=Qe["[object Date]"]=Qe["[object Error]"]=Qe["[object Function]"]=Qe["[object Map]"]=Qe["[object Number]"]=Qe["[object Object]"]=Qe["[object RegExp]"]=Qe["[object Set]"]=Qe["[object String]"]=Qe["[object WeakMap]"]=!1;var Xe=function baseIsTypedArray(ce){return Object(We.a)(ce)&&Object(Ye.a)(ce.length)&&!!Qe[Object(qe.a)(ce)]},ot=Ve(391),st=Ve(265),mt=st.a&&st.a.isTypedArray,gt=mt?Object(ot.a)(mt):Xe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="spinner--6TDb2Dt3oi",ot="double-bounce1--lt1kT0687K",st="double-bounce2--lF96T7rn67";class mt extends Ye.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},qe=Qe()(Xe,ze);return Ye.a.createElement("div",{className:qe,style:Ve},Ye.a.createElement("div",{className:ot}),Ye.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getOptimalPosition}));var qe=Ve(77),Ye=Ve(55);function getPositionedAncestor(ce){return ce&&ce.parentNode?ce.offsetParent===qe.a.document.body?null:ce.offsetParent:null}var We=Ve(672),Qe=Ve(388);function getOptimalPosition(ce){let{element:ze,target:Ve,positions:qe,limiter:We,fitInViewport:ot,viewportOffsetConfig:st}=ce;Object(Qe.a)(Ve)&&(Ve=Ve()),Object(Qe.a)(We)&&(We=We());const mt=getPositionedAncestor(ze),gt=new Ye.a(ze);let yt;const bt={targetRect:new Ye.a(Ve),elementRect:gt,positionedElementAncestor:mt};if(We||ot){const ce=We&&new Ye.a(We).getVisible(),ze=ot&&getConstrainedViewportRect(st);Object.assign(bt,{limiterRect:ce,viewportRect:ze}),yt=getBestPosition(qe,bt)||new Xe(qe[0],bt)}else yt=new Xe(qe[0],bt);return yt}function getConstrainedViewportRect(ce){ce=Object.assign({top:0,bottom:0,left:0,right:0},ce);const ze=new Ye.a(qe.a.window);return ze.top+=ce.top,ze.height-=ce.top,ze.bottom-=ce.bottom,ze.height-=ce.bottom,ze}function getBestPosition(ce,ze){const{elementRect:Ve}=ze,qe=Ve.getArea(),Ye=ce.map((ce=>new Xe(ce,ze))).filter((ce=>!!ce.name));let We=0,Qe=null;for(const ce of Ye){const{_limiterIntersectionArea:ze,_viewportIntersectionArea:Ve}=ce;if(ze===qe)return ce;const Ye=Ve**2+ze**2;Ye>We&&(We=Ye,Qe=ce)}return Qe}function shiftRectToCompensatePositionedAncestor(ce,ze){const Ve=getRectForAbsolutePositioning(new Ye.a(ze)),qe=Object(We.a)(ze);let Qe=0,Xe=0;Qe-=Ve.left,Xe-=Ve.top,Qe+=ze.scrollLeft,Xe+=ze.scrollTop,Qe-=qe.left,Xe-=qe.top,ce.moveBy(Qe,Xe)}function getRectForAbsolutePositioning(ce){const{scrollX:ze,scrollY:Ve}=qe.a.window;return ce.clone().moveBy(ze,Ve)}class Xe{constructor(ce,ze){const Ve=ce(ze.targetRect,ze.elementRect,ze.viewportRect);if(!Ve)return;const{left:qe,top:Ye,name:We,config:Qe}=Ve;Object.assign(this,{name:We,config:Qe}),this._positioningFunctionCorrdinates={left:qe,top:Ye},this._options=ze}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get _limiterIntersectionArea(){const ce=this._options.limiterRect;if(ce){const ze=this._options.viewportRect;if(!ze)return ce.getIntersectionArea(this._rect);{const Ve=ce.getIntersection(ze);if(Ve)return Ve.getIntersectionArea(this._rect)}}return 0}get _viewportIntersectionArea(){const ce=this._options.viewportRect;return ce?ce.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=getRectForAbsolutePositioning(this._rect),this._options.positionedElementAncestor&&shiftRectToCompensatePositionedAncestor(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}},function(ce,ze,Ve){"use strict";var qe=function arrayFilter(ce,ze){for(var Ve=-1,qe=null==ce?0:ce.length,Ye=0,We=[];++Ve=0&&(ze.hash=ce.substr(Ve),ce=ce.substr(0,Ve));var qe=ce.indexOf("?");qe>=0&&(ze.search=ce.substr(qe),ce=ce.substr(0,qe)),ce&&(ze.pathname=ce)}return ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(28),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const gt="section";function addSchemaProperties(ce,ze,Ve){const qe=Ve[ze].type;qe!==gt&&ot.a.set(ce,"/"+ze,void 0);const Ye=Ve[ze].items;return qe===gt&&Ye&&Object.keys(Ye).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,Ye)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const Ye=[];for(const We in Ve){const{items:Xe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Xe)Ye.push(...collectTagPathsWithPriority(ce,ze,Xe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Qe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Qe=ze[We][Ve];Qe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Qe,mt[Qe.type].form,qe.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;Ye.push({path:qe.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return Ye.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"schema",Ye,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Qe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Qe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Qe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=function(){try{var ce=Object(qe.a)(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ze.a=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(102).a.Uint8Array;ze.a=qe},function(ce,ze,Ve){"use strict";function isWindow(ce){const ze=Object.prototype.toString.apply(ce);return"[object Window]"==ze||"[object global]"==ze}Ve.d(ze,"a",(function(){return isWindow}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(28),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const gt="section";function addSchemaProperties(ce,ze,Ve){const qe=Ve[ze].type;qe!==gt&&ot.a.set(ce,"/"+ze,void 0);const Ye=Ve[ze].items;return qe===gt&&Ye&&Object.keys(Ye).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,Ye)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const Ye=[];for(const We in Ve){const{items:Xe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Xe)Ye.push(...collectTagPathsWithPriority(ce,ze,Xe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Qe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Qe=ze[We][Ve];Qe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Qe,mt[Qe.type].form,qe.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;Ye.push({path:qe.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return Ye.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"schema",Ye,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Qe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Qe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Qe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(133),Ye=Ve.n(qe),We=Ve(378),Qe=Ve(85);const Xe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=Ye.a.generate("sulu_admin.metadata",qe),Ve=Qe.b.fetch(ze,Xe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(133),Ye=Ve.n(qe),We=Ve(379),Qe=Ve(30);const Xe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=Ye.a.generate("sulu_admin.metadata",qe),Ve=Qe.b.fetch(ze,Xe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(61),We=Ve(245),Qe=Object,Xe=qe("".split);ce.exports=Ye((function(){return!Qe("z").propertyIsEnumerable(0)}))?function(ce){return"String"===We(ce)?Xe(ce,""):Qe(ce)}:Qe},function(ce,ze,Ve){"use strict";var qe=Ve(461),Ye=Ve(319);ce.exports=function(ce,ze){var Ve=ce[ze];return Ye(Ve)?void 0:qe(Ve)}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=0,We=Math.random(),Qe=qe(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Qe(++Ye+We,36)}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1148),Xe=Ve(105),ot=Ve(121),st=Ve(346),mt=Ve(111),gt=Ve(735),yt=Ve(464),bt=Ve(422),vt="Object already initialized",wt=Xe.TypeError,Ct=Xe.WeakMap;if(Qe||gt.state){var Dt=gt.state||(gt.state=new Ct);Dt.get=Dt.get,Dt.has=Dt.has,Dt.set=Dt.set,qe=function(ce,ze){if(Dt.has(ce))throw new wt(vt);return ze.facade=ce,Dt.set(ce,ze),ze},Ye=function(ce){return Dt.get(ce)||{}},We=function(ce){return Dt.has(ce)}}else{var kt=yt("state");bt[kt]=!0,qe=function(ce,ze){if(mt(ce,kt))throw new wt(vt);return ze.facade=ce,st(ce,kt,ze),ze},Ye=function(ce){return mt(ce,kt)?ce[kt]:{}},We=function(ce){return mt(ce,kt)}}ce.exports={set:qe,get:Ye,has:We,enforce:function(ce){return We(ce)?Ye(ce):qe(ce,{})},getterFor:function(ce){return function(ze){var Ve;if(!ot(ze)||(Ve=Ye(ze)).type!==ce)throw new wt("Incompatible receiver, "+ce+" required");return Ve}}}},function(ce,ze,Ve){"use strict";ce.exports={}},function(ce,ze,Ve){"use strict";var qe=Ve(829),Ye=Ve(738).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function getOwnPropertyNames(ce){return qe(ce,Ye)}},function(ce,ze){ce.exports=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){var qe=Ve(171).Symbol;ce.exports=qe},function(ce,ze,Ve){(function(ce){var qe=Ve(171),Ye=Ve(1201),We=ze&&!ze.nodeType&&ze,Qe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=Qe&&Qe.exports===We?qe.Buffer:void 0,ot=(Xe?Xe.isBuffer:void 0)||Ye;ce.exports=ot}).call(this,Ve(322)(ce))},function(ce,ze,Ve){var qe=Ve(855),Ye=Ve(754);ce.exports=function copyObject(ce,ze,Ve,We){var Qe=!Ve;Ve||(Ve={});for(var Xe=-1,ot=ze.length;++XeLt;Lt++)if((bt||Lt in Et)&&(St=Tt(kt=Et[Lt],Lt,xt),ce))if(ze)Bt[Lt]=St;else if(St)switch(ce){case 3:return!0;case 5:return kt;case 6:return Lt;case 2:st(Bt,kt)}else switch(ce){case 4:return!1;case 7:st(Bt,kt)}return gt?-1:Ye||mt?mt:Bt}};ce.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(70),We=Ve(418),Qe=Ve(318),Xe=Ve(484),ot=Ye([].join);qe({target:"Array",proto:!0,forced:We!==Object||!Xe("join",",")},{join:function join(ce){return ot(Qe(this),void 0===ce?",":ce)}})},function(ce,ze,Ve){var qe=Ve(1253),Ye=Ve(751),We=Ve(1254),Qe=Ve(1255),Xe=Ve(1256),ot=Ve(321),st=Ve(843),mt="[object Map]",gt="[object Promise]",yt="[object Set]",bt="[object WeakMap]",vt="[object DataView]",wt=st(qe),Ct=st(Ye),Dt=st(We),kt=st(Qe),St=st(Xe),xt=ot;(qe&&xt(new qe(new ArrayBuffer(1)))!=vt||Ye&&xt(new Ye)!=mt||We&&xt(We.resolve())!=gt||Qe&&xt(new Qe)!=yt||Xe&&xt(new Xe)!=bt)&&(xt=function(ce){var ze=ot(ce),Ve="[object Object]"==ze?ce.constructor:void 0,qe=Ve?st(Ve):"";if(qe)switch(qe){case wt:return vt;case Ct:return mt;case Dt:return gt;case kt:return yt;case St:return bt}return ze}),ce.exports=xt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"clearTranslations",(function(){return clearTranslations})),Ve.d(ze,"setTranslations",(function(){return setTranslations})),Ve.d(ze,"translate",(function(){return translate}));var qe=Ve(9),Ye=Ve.n(qe),We=Ve(689);let Qe;function setTranslations(ce,ze){Qe=Object.keys(ce).reduce(((Ve,qe)=>{try{Ve[qe]=new We.a(ce[qe],ze)}catch(ze){Ye.a.error("The translation key "+qe+' could not be translated. It is translated to "'+ce[qe]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function clearTranslations(){Qe=null}function translate(ce,ze){return Qe&&ce in Qe?Qe[ce].format(ze):(Ye.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";let qe,Ye,We=Ve(324);class Qe extends We{constructor(ce){super(ce),this.type="root",this.nodes||(this.nodes=[])}normalize(ce,ze,Ve){let qe=super.normalize(ce);if(ze)if("prepend"===Ve)this.nodes.length>1?ze.raws.before=this.nodes[1].raws.before:delete ze.raws.before;else if(this.first!==ze)for(let ce of qe)ce.raws.before=ze.raws.before;return qe}removeChild(ce,ze){let Ve=this.index(ce);return!ze&&0===Ve&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[Ve].raws.before),super.removeChild(ce)}toResult(ce={}){return new qe(new Ye,this,ce).stringify()}}Qe.registerLazyResult=ce=>{qe=ce},Qe.registerProcessor=ce=>{Ye=ce},ce.exports=Qe,Qe.default=Qe,We.registerRoot(Qe)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(386),ot={radio:"radio--6SPkS7f2GG",dark:"dark--tCbcJGXJpb",light:"light--dVY52Qatz3",disabled:"disabled--OiuQnSOO-M"};class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:We}=this.props,st=Qe()(ot.radio,ot[this.props.skin],{[ot.disabled]:ce});return Ye.a.createElement(Xe.a,{checked:qe,className:st,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},We)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="config",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.showSuccessDisposer=Object(We.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(We.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Xe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Xe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Xe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Xe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"setConfig",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clearConfig",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"clearConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"disableAll",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"disableAll"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"warnings",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"warnings"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"showSuccess",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"showSuccess"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe);var We=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}};class Qe extends Ye.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.get(ce);return Ye.a.createElement(Ve,ze)}}Qe.defaultProps={disabled:!1};ze.a=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(386),ot={checkbox:"checkbox--W3VJ4iRnvV",dark:"dark--9ANew0mYch",light:"light--LZcLfDMoNI",small:"small--l-tNA2xkQA"};class st extends Ye.a.PureComponent{render(){const{size:ce,skin:ze,name:Ve,value:qe,checked:We,onChange:st,children:mt,className:gt,disabled:yt,tabIndex:bt}=this.props,vt=Qe()(ot.checkbox,ot[ze],gt);return Ye.a.createElement(Xe.a,{checked:We,className:vt,disabled:yt,icon:We?"su-check":void 0,name:Ve,onChange:st,size:ce,tabIndex:bt,value:qe},mt)}}st.defaultProps={checked:!1,disabled:!1,size:"default",skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(17),Qe="folder--w0696HNIyJ",Xe="description--P7Fy161SQC",ot="title--GxsDkafQyr",st="info--ZA5QF1FD62",mt="icon-container--5zzf7JJJTX";class gt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)},this.handleKeypress=ce=>{const{onClick:ze,id:Ve}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze(Ve)))}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Ye.a.createElement("div",{className:Qe,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Ye.a.createElement("div",{className:mt},Ye.a.createElement(We.default,{name:ce?"su-folder-permission":"su-folder"})),Ye.a.createElement("div",{className:Xe},Ye.a.createElement("h5",{className:ot},Ve),Ye.a.createElement("div",{className:st},ze)))}}},function(ce,ze,Ve){"use strict";Ve(127);ze.a=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getLanguageDirection}));const qe=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function getLanguageDirection(ce){return qe.includes(ce)?"rtl":"ltr"}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(107),Ye=Ve(8),We=Ve(177);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce):"emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-emptyelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(107),Ye=Ve(8),We=Ve(177);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rawElement"===ce||"view:rawElement"===ce||"element"===ce||"view:element"===ce):"rawElement"===ce||"view:rawElement"===ce||ce===this.name||ce==="view:"+this.name||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-rawelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(52),Ye=Ve(679),We=Ve(296);class Qe extends qe.a{constructor(ce){super(ce),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const ce=new We.a;return ce.content=Ye.a,ce.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},function(ce,ze,Ve){"use strict";Ve(86);var qe=Ve(59),Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},We="object"===("undefined"==typeof window?"undefined":Ye(window))&&"object"===("undefined"==typeof document?"undefined":Ye(document))&&9===document.nodeType;var Qe=Ve(241),Xe=Ve(639);function _inheritsLoose(ce,ze){ce.prototype=Object.create(ze.prototype),ce.prototype.constructor=ce,Object(Xe.a)(ce,ze)}var ot=Ve(43);function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve={};for(var qe in ce)if({}.hasOwnProperty.call(ce,qe)){if(ze.includes(qe))continue;Ve[qe]=ce[qe]}return Ve}var st={}.constructor;function cloneStyle(ce){if(null==ce||"object"!=typeof ce)return ce;if(Array.isArray(ce))return ce.map(cloneStyle);if(ce.constructor!==st)return ce;var ze={};for(var Ve in ce)ze[Ve]=cloneStyle(ce[Ve]);return ze}function createRule(ce,ze,Ve){void 0===ce&&(ce="unnamed");var qe=Ve.jss,Ye=cloneStyle(ze),We=qe.plugins.onCreateRule(ce,Ye,Ve);return We||(ce[0],null)}var mt=function join(ce,ze){for(var Ve="",qe=0;qe<+~=|^:(),"'`\s])/g,bt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(ce){return bt?bt(ce):ce.replace(yt,"\\$1")},vt=function(){function BaseStyleRule(ce,ze,Ve){this.type="style",this.isProcessed=!1;var qe=Ve.sheet,Ye=Ve.Renderer;this.key=ce,this.options=Ve,this.style=ze,qe?this.renderer=qe.renderer:Ye&&(this.renderer=new Ye)}return BaseStyleRule.prototype.prop=function prop(ce,ze,Ve){if(void 0===ze)return this.style[ce];var qe=!!Ve&&Ve.force;if(!qe&&this.style[ce]===ze)return this;var Ye=ze;Ve&&!1===Ve.process||(Ye=this.options.jss.plugins.onChangeValue(ze,ce,this));var We=null==Ye||!1===Ye,Qe=ce in this.style;if(We&&!Qe&&!qe)return this;var Xe=We&&Qe;if(Xe?delete this.style[ce]:this.style[ce]=Ye,this.renderable&&this.renderer)return Xe?this.renderer.removeProperty(this.renderable,ce):this.renderer.setProperty(this.renderable,ce,Ye),this;var ot=this.options.sheet;return ot&&ot.attached,this},BaseStyleRule}(),wt=function(ce){function StyleRule(ze,Ve,qe){var Ye;Ye=ce.call(this,ze,Ve,qe)||this;var We=qe.selector,Qe=qe.scoped,Xe=qe.sheet,st=qe.generateId;return We?Ye.selectorText=We:!1!==Qe&&(Ye.id=st(Object(ot.a)(Object(ot.a)(Ye)),Xe),Ye.selectorText="."+jss_esm_escape(Ye.id)),Ye}_inheritsLoose(StyleRule,ce);var ze=StyleRule.prototype;return ze.applyTo=function applyTo(ce){var ze=this.renderer;if(ze){var Ve=this.toJSON();for(var qe in Ve)ze.setProperty(ce,qe,Ve[qe])}return this},ze.toJSON=function toJSON(){var ce={};for(var ze in this.style){var Ve=this.style[ze];"object"!=typeof Ve?ce[ze]=Ve:Array.isArray(Ve)&&(ce[ze]=gt(Ve))}return ce},ze.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(qe.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.selectorText,this.style,Ve)},Object(Qe.a)(StyleRule,[{key:"selector",set:function set(ce){if(ce!==this.selectorText){this.selectorText=ce;var ze=this.renderer,Ve=this.renderable;if(Ve&&ze)ze.setSelector(Ve,ce)||ze.replaceRule(Ve,this)}},get:function get(){return this.selectorText}}]),StyleRule}(vt),Ct={onCreateRule:function onCreateRule(ce,ze,Ve){return"@"===ce[0]||Ve.parent&&"keyframes"===Ve.parent.type?null:new wt(ce,ze,Ve)}},Dt={indent:1,children:!0},kt=/@([\w-]+)/,St=function(){function ConditionalRule(ce,ze,Ve){this.type="conditional",this.isProcessed=!1,this.key=ce;var Ye=ce.match(kt);for(var We in this.at=Ye?Ye[1]:"unknown",this.query=Ve.name||"@"+this.at,this.options=Ve,this.rules=new En(Object(qe.a)({},Ve,{parent:this})),ze)this.rules.add(We,ze[We]);this.rules.process()}var ce=ConditionalRule.prototype;return ce.getRule=function getRule(ce){return this.rules.get(ce)},ce.indexOf=function indexOf(ce){return this.rules.indexOf(ce)},ce.addRule=function addRule(ce,ze,Ve){var qe=this.rules.add(ce,ze,Ve);return qe?(this.options.jss.plugins.onProcessRule(qe),qe):null},ce.replaceRule=function replaceRule(ce,ze,Ve){var qe=this.rules.replace(ce,ze,Ve);return qe&&this.options.jss.plugins.onProcessRule(qe),qe},ce.toString=function toString(ce){void 0===ce&&(ce=Dt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Dt.indent),null==ce.children&&(ce.children=Dt.children),!1===ce.children)return this.query+" {}";var Ve=this.rules.toString(ce);return Ve?this.query+" {"+ze+Ve+ze+"}":""},ConditionalRule}(),xt=/@container|@media|@supports\s+/,Et={onCreateRule:function onCreateRule(ce,ze,Ve){return xt.test(ce)?new St(ce,ze,Ve):null}},Pt={indent:1,children:!0},Tt=/@keyframes\s+([\w-]+)/,Lt=function(){function KeyframesRule(ce,ze,Ve){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var Ye=ce.match(Tt);Ye&&Ye[1]?this.name=Ye[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=Ve;var We=Ve.scoped,Qe=Ve.sheet,Xe=Ve.generateId;for(var ot in this.id=!1===We?this.name:jss_esm_escape(Xe(this,Qe)),this.rules=new En(Object(qe.a)({},Ve,{parent:this})),ze)this.rules.add(ot,ze[ot],Object(qe.a)({},Ve,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(ce){void 0===ce&&(ce=Pt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Pt.indent),null==ce.children&&(ce.children=Pt.children),!1===ce.children)return this.at+" "+this.id+" {}";var Ve=this.rules.toString(ce);return Ve&&(Ve=""+ze+Ve+ze),this.at+" "+this.id+" {"+Ve+"}"},KeyframesRule}(),Ft=/@keyframes\s+/,Bt=/\$([\w-]+)/g,Vt=function findReferencedKeyframe(ce,ze){return"string"==typeof ce?ce.replace(Bt,(function(ce,Ve){return Ve in ze?ze[Ve]:ce})):ce},Ht=function replaceRef(ce,ze,Ve){var qe=ce[ze],Ye=Vt(qe,Ve);Ye!==qe&&(ce[ze]=Ye)},Ut={onCreateRule:function onCreateRule(ce,ze,Ve){return"string"==typeof ce&&Ft.test(ce)?new Lt(ce,ze,Ve):null},onProcessStyle:function onProcessStyle(ce,ze,Ve){return"style"===ze.type&&Ve?("animation-name"in ce&&Ht(ce,"animation-name",Ve.keyframes),"animation"in ce&&Ht(ce,"animation",Ve.keyframes),ce):ce},onChangeValue:function onChangeValue(ce,ze,Ve){var qe=Ve.options.sheet;if(!qe)return ce;switch(ze){case"animation":case"animation-name":return Vt(ce,qe.keyframes);default:return ce}}},Wt=function(ce){function KeyframeRule(){return ce.apply(this,arguments)||this}return _inheritsLoose(KeyframeRule,ce),KeyframeRule.prototype.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(qe.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.key,this.style,Ve)},KeyframeRule}(vt),Jt={onCreateRule:function onCreateRule(ce,ze,Ve){return Ve.parent&&"keyframes"===Ve.parent.type?new Wt(ce,ze,Ve):null}},Qt=function(){function FontFaceRule(ce,ze,Ve){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=ce,this.style=ze,this.options=Ve}return FontFaceRule.prototype.toString=function toString(ce){var ze=getWhitespaceSymbols(ce).linebreak;if(Array.isArray(this.style)){for(var Ve="",qe=0;qe=this.index)ze.push(ce);else for(var qe=0;qeVe)return void ze.splice(qe,0,ce)},ce.reset=function reset(){this.registry=[]},ce.remove=function remove(ce){var ze=this.registry.indexOf(ce);this.registry.splice(ze,1)},ce.toString=function toString(ce){for(var ze=void 0===ce?{}:ce,Ve=ze.attached,qe=_objectWithoutPropertiesLoose(ze,["attached"]),Ye=getWhitespaceSymbols(qe).linebreak,We="",Qe=0;Qe-1?qe.substr(0,Ye-1):qe;ce.style.setProperty(ze,We,Ye>-1?"important":"")}}catch(ce){return!1}return!0},ei=function removeProperty(ce,ze){try{ce.attributeStyleMap?ce.attributeStyleMap.delete(ze):ce.style.removeProperty(ze)}catch(ce){}},si=function setSelector(ce,ze){return ce.selectorText=ze,ce.selectorText===ze},_i=Jn((function(){return document.querySelector("head")}));function findHigherSheet(ce,ze){for(var Ve=0;Veze.index&&qe.options.insertionPoint===ze.insertionPoint)return qe}return null}function findHighestSheet(ce,ze){for(var Ve=ce.length-1;Ve>=0;Ve--){var qe=ce[Ve];if(qe.attached&&qe.options.insertionPoint===ze.insertionPoint)return qe}return null}function findCommentNode(ce){for(var ze=_i(),Ve=0;Ve0){var Ve=findHigherSheet(ze,ce);if(Ve&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element};if((Ve=findHighestSheet(ze,ce))&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element.nextSibling}}var qe=ce.insertionPoint;if(qe&&"string"==typeof qe){var Ye=findCommentNode(qe);if(Ye)return{parent:Ye.parentNode,node:Ye.nextSibling}}return!1}function insertStyle(ce,ze){var Ve=ze.insertionPoint,qe=findPrevNode(ze);if(!1!==qe&&qe.parent)qe.parent.insertBefore(ce,qe.node);else if(Ve&&"number"==typeof Ve.nodeType){var Ye=Ve,We=Ye.parentNode;We&&We.insertBefore(ce,Ye.nextSibling)}else _i().appendChild(ce)}var Ri=Jn((function(){var ce=document.querySelector('meta[property="csp-nonce"]');return ce?ce.getAttribute("content"):null})),Ci=function insertRule(ce,ze,Ve){try{"insertRule"in ce?ce.insertRule(ze,Ve):"appendRule"in ce&&ce.appendRule(ze)}catch(ce){return!1}return ce.cssRules[Ve]},Di=function getValidRuleInsertionIndex(ce,ze){var Ve=ce.cssRules.length;return void 0===ze||ze>Ve?Ve:ze},Ei=function createStyle(){var ce=document.createElement("style");return ce.textContent="\n",ce},Oi=function(){function DomRenderer(ce){this.getPropertyValue=Zn,this.setProperty=Xn,this.removeProperty=ei,this.setSelector=si,this.hasInsertedRules=!1,this.cssRules=[],ce&&Fn.add(ce),this.sheet=ce;var ze=this.sheet?this.sheet.options:{},Ve=ze.media,qe=ze.meta,Ye=ze.element;this.element=Ye||Ei(),this.element.setAttribute("data-jss",""),Ve&&this.element.setAttribute("media",Ve),qe&&this.element.setAttribute("data-meta",qe);var We=Ri();We&&this.element.setAttribute("nonce",We)}var ce=DomRenderer.prototype;return ce.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var ce=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&ce&&(this.hasInsertedRules=!1,this.deploy())}},ce.detach=function detach(){if(this.sheet){var ce=this.element.parentNode;ce&&ce.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},ce.deploy=function deploy(){var ce=this.sheet;ce&&(ce.options.link?this.insertRules(ce.rules):this.element.textContent="\n"+ce.toString()+"\n")},ce.insertRules=function insertRules(ce,ze){for(var Ve=0;Ve-1)return registerClass(ce,ze.split(" "));var qe=ce.options.parent;if("$"===ze[0]){var Ye=qe.getRule(ze.substr(1));return!!Ye&&(Ye!==ce&&(qe.classes[ce.key]+=" "+qe.classes[Ye.key],!0))}return qe.classes[ce.key]+=" "+ze,!0}var Wr=function jssCompose(){return{onProcessStyle:function onProcessStyle(ce,ze){return"composes"in ce?(registerClass(ze,ce.composes),delete ce.composes,ce):ce}}},$r=tr({createGenerateId:function createGenerateId(){var ce=0;return function(ze){return"rsg--"+ze.key+"-"+ce++}},plugins:[ur(),Er({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),Lr(),Nr(),Ur(),Wr()]});ze.a=$r},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(29),Ye=Ve(52);class We extends Ye.a{constructor(ce){super(ce),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const ce=new qe.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),ce}}},function(ce,ze,Ve){var qe=Ve(0),Ye=Ve(2);function Group(ce){var ze=qe.Children.toArray(ce.children).filter(Boolean);if(1===ze.length)return ze;var Ve=ce.separator,Ye=qe.isValidElement(Ve),We=[ze.shift()];return ze.forEach((function(ce,ze){if(Ye){var Qe="separator-"+(ce.key||ze);Ve=qe.cloneElement(Ve,{key:Qe})}We.push(Ve,ce)})),We}Group.propTypes={children:Ye.node,separator:Ye.node},Group.defaultProps={separator:" "},ce.exports=Group},function(ce,ze,Ve){"use strict";var qe=Ve(661),Ye=Ve(407),We=Ve(228);ze.a=function getAllKeys(ce){return Object(qe.a)(ce,We.a,Ye.a)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(242),Qe=Ve(11);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Qe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Xe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props;return Ye.a.createElement(We.a,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default"},Xe.Action=We.a.Action,Xe.Option=We.a.Option,Xe.Divider=We.a.Divider},function(ce,ze,Ve){"use strict";function count(ce){let ze=0;for(const Ve of ce)ze++;return ze}Ve.d(ze,"a",(function(){return count}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return st}));var qe=Ve(637),Ye=Ve(80),We=Ve(680);class Qe extends Ye.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{softBreakAction(ce,Ve,ze.selection),this.fire("afterExecute",{writer:Ve})}))}refresh(){const ce=this.editor.model,ze=ce.document;this.isEnabled=isEnabled(ce.schema,ze.selection)}}function isEnabled(ce,ze){if(ze.rangeCount>1)return!1;const Ve=ze.anchor;if(!Ve||!ce.checkChild(Ve,"softBreak"))return!1;const qe=ze.getFirstRange(),Ye=qe.start.parent,We=qe.end.parent;return!isInsideLimitElement(Ye,ce)&&!isInsideLimitElement(We,ce)||Ye===We}function softBreakAction(ce,ze,Ve){const qe=Ve.isCollapsed,Ye=Ve.getFirstRange(),Qe=Ye.start.parent,Xe=Ye.end.parent,ot=Qe==Xe;if(qe){const qe=Object(We.a)(ce.schema,Ve.getAttributes());insertBreak(ce,ze,Ye.end),ze.removeSelectionAttribute(Ve.getAttributeKeys()),ze.setSelectionAttribute(qe)}else{const qe=!(Ye.start.isAtStart&&Ye.end.isAtEnd);ce.deleteContent(Ve,{leaveUnmerged:qe}),ot?insertBreak(ce,ze,Ve.focus):qe&&ze.setSelection(Xe,0)}}function insertBreak(ce,ze,Ve){const qe=ze.createElement("softBreak");ce.insertContent(qe,Ve),ze.setSelection(qe,"after")}function isInsideLimitElement(ce,ze){return!ce.is("rootElement")&&(ze.isLimit(ce)||isInsideLimitElement(ce.parent,ze))}var Xe=Ve(681),ot=Ve(31);class st extends ot.a{static get pluginName(){return"ShiftEnter"}init(){const ce=this.editor,ze=ce.model.schema,Ve=ce.conversion,qe=ce.editing.view,Ye=qe.document;ze.register("softBreak",{allowWhere:"$text",isInline:!0}),Ve.for("upcast").elementToElement({model:"softBreak",view:"br"}),Ve.for("downcast").elementToElement({model:"softBreak",view:(ce,ze)=>{let{writer:Ve}=ze;return Ve.createEmptyElement("br")}}),qe.addObserver(Xe.a),ce.commands.add("shiftEnter",new Qe(ce)),this.listenTo(Ye,"enter",((ze,Ve)=>{Ve.preventDefault(),Ve.isSoft&&(ce.execute("shiftEnter"),qe.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ot=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="allWebspaces",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return Xe.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return Xe.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setWebspaces",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setWebspaces"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"grantedWebspaces",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"grantedWebspaces"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(qe=Qe.observable.shallow,Ye=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="messages",qe=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.timeouts=[]}add(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.messages.push(ce),this.timeouts.push(null),ze&&(this.timeouts[this.messages.length-1]=setTimeout((()=>{this.remove(ce)}),ze))}remove(ce){const ze=this.messages.indexOf(ce);-1!==ze&&(this.timeouts[ze]&&clearTimeout(this.timeouts[ze]),this.timeouts.splice(ze,1),this.messages.splice(ze,1))}clear(){this.messages=[],this.timeouts.forEach((ce=>{clearTimeout(ce)})),this.timeouts=[]}},We=_applyDecoratedDescriptor(Ye.prototype,"messages",[qe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"add",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"add"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"remove",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"remove"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),Ye);var ot=new Xe;ze.a=ot},function(ce,ze,Ve){ce.exports=function(){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}var ce=/^\s+/,ze=/\s+$/;function tinycolor(ce,ze){if(ze=ze||{},(ce=ce||"")instanceof tinycolor)return ce;if(!(this instanceof tinycolor))return new tinycolor(ce,ze);var Ve=inputToRGB(ce);this._originalInput=ce,this._r=Ve.r,this._g=Ve.g,this._b=Ve.b,this._a=Ve.a,this._roundA=Math.round(100*this._a)/100,this._format=ze.format||Ve.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ve.ok}function inputToRGB(ce){var ze={r:0,g:0,b:0},Ve=1,qe=null,Ye=null,We=null,Qe=!1,Xe=!1;return"string"==typeof ce&&(ce=stringInputToObject(ce)),"object"==_typeof(ce)&&(isValidCSSUnit(ce.r)&&isValidCSSUnit(ce.g)&&isValidCSSUnit(ce.b)?(ze=rgbToRgb(ce.r,ce.g,ce.b),Qe=!0,Xe="%"===String(ce.r).substr(-1)?"prgb":"rgb"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.v)?(qe=convertToPercentage(ce.s),Ye=convertToPercentage(ce.v),ze=hsvToRgb(ce.h,qe,Ye),Qe=!0,Xe="hsv"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.l)&&(qe=convertToPercentage(ce.s),We=convertToPercentage(ce.l),ze=hslToRgb(ce.h,qe,We),Qe=!0,Xe="hsl"),ce.hasOwnProperty("a")&&(Ve=ce.a)),Ve=boundAlpha(Ve),{ok:Qe,format:ce.format||Xe,r:Math.min(255,Math.max(ze.r,0)),g:Math.min(255,Math.max(ze.g,0)),b:Math.min(255,Math.max(ze.b,0)),a:Ve}}function rgbToRgb(ce,ze,Ve){return{r:255*bound01(ce,255),g:255*bound01(ze,255),b:255*bound01(Ve,255)}}function rgbToHsl(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var qe,Ye,We=Math.max(ce,ze,Ve),Qe=Math.min(ce,ze,Ve),Xe=(We+Qe)/2;if(We==Qe)qe=Ye=0;else{var ot=We-Qe;switch(Ye=Xe>.5?ot/(2-We-Qe):ot/(We+Qe),We){case ce:qe=(ze-Ve)/ot+(ze1&&(Ve-=1),Ve<1/6?ce+6*(ze-ce)*Ve:Ve<.5?ze:Ve<2/3?ce+(ze-ce)*(2/3-Ve)*6:ce}if(ce=bound01(ce,360),ze=bound01(ze,100),Ve=bound01(Ve,100),0===ze)qe=Ye=We=Ve;else{var Qe=Ve<.5?Ve*(1+ze):Ve+ze-Ve*ze,Xe=2*Ve-Qe;qe=hue2rgb(Xe,Qe,ce+1/3),Ye=hue2rgb(Xe,Qe,ce),We=hue2rgb(Xe,Qe,ce-1/3)}return{r:255*qe,g:255*Ye,b:255*We}}function rgbToHsv(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var qe,Ye,We=Math.max(ce,ze,Ve),Qe=Math.min(ce,ze,Ve),Xe=We,ot=We-Qe;if(Ye=0===We?0:ot/We,We==Qe)qe=0;else{switch(We){case ce:qe=(ze-Ve)/ot+(ze>1)+720)%360;--ze;)qe.h=(qe.h+Ye)%360,We.push(tinycolor(qe));return We}function _monochromatic(ce,ze){ze=ze||6;for(var Ve=tinycolor(ce).toHsv(),qe=Ve.h,Ye=Ve.s,We=Ve.v,Qe=[],Xe=1/ze;ze--;)Qe.push(tinycolor({h:qe,s:Ye,v:We})),We=(We+Xe)%1;return Qe}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function getLuminance(){var ce,ze,Ve,qe=this.toRgb();return ce=qe.r/255,ze=qe.g/255,Ve=qe.b/255,.2126*(ce<=.03928?ce/12.92:Math.pow((ce+.055)/1.055,2.4))+.7152*(ze<=.03928?ze/12.92:Math.pow((ze+.055)/1.055,2.4))+.0722*(Ve<=.03928?Ve/12.92:Math.pow((Ve+.055)/1.055,2.4))},setAlpha:function setAlpha(ce){return this._a=boundAlpha(ce),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var ce=rgbToHsv(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function toHsvString(){var ce=rgbToHsv(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),qe=Math.round(100*ce.v);return 1==this._a?"hsv("+ze+", "+Ve+"%, "+qe+"%)":"hsva("+ze+", "+Ve+"%, "+qe+"%, "+this._roundA+")"},toHsl:function toHsl(){var ce=rgbToHsl(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function toHslString(){var ce=rgbToHsl(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),qe=Math.round(100*ce.l);return 1==this._a?"hsl("+ze+", "+Ve+"%, "+qe+"%)":"hsla("+ze+", "+Ve+"%, "+qe+"%, "+this._roundA+")"},toHex:function toHex(ce){return rgbToHex(this._r,this._g,this._b,ce)},toHexString:function toHexString(ce){return"#"+this.toHex(ce)},toHex8:function toHex8(ce){return rgbaToHex(this._r,this._g,this._b,this._a,ce)},toHex8String:function toHex8String(ce){return"#"+this.toHex8(ce)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(qe[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(ce){var ze="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Ve=ze,qe=this._gradientType?"GradientType = 1, ":"";if(ce){var Ye=tinycolor(ce);Ve="#"+rgbaToArgbHex(Ye._r,Ye._g,Ye._b,Ye._a)}return"progid:DXImageTransform.Microsoft.gradient("+qe+"startColorstr="+ze+",endColorstr="+Ve+")"},toString:function toString(ce){var ze=!!ce;ce=ce||this._format;var Ve=!1,qe=this._a<1&&this._a>=0;return ze||!qe||"hex"!==ce&&"hex6"!==ce&&"hex3"!==ce&&"hex4"!==ce&&"hex8"!==ce&&"name"!==ce?("rgb"===ce&&(Ve=this.toRgbString()),"prgb"===ce&&(Ve=this.toPercentageRgbString()),"hex"!==ce&&"hex6"!==ce||(Ve=this.toHexString()),"hex3"===ce&&(Ve=this.toHexString(!0)),"hex4"===ce&&(Ve=this.toHex8String(!0)),"hex8"===ce&&(Ve=this.toHex8String()),"name"===ce&&(Ve=this.toName()),"hsl"===ce&&(Ve=this.toHslString()),"hsv"===ce&&(Ve=this.toHsvString()),Ve||this.toHexString()):"name"===ce&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(ce,ze){var Ve=ce.apply(null,[this].concat([].slice.call(ze)));return this._r=Ve._r,this._g=Ve._g,this._b=Ve._b,this.setAlpha(Ve._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(ce,ze){return ce.apply(null,[this].concat([].slice.call(ze)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(ce,ze){if("object"==_typeof(ce)){var Ve={};for(var qe in ce)ce.hasOwnProperty(qe)&&(Ve[qe]="a"===qe?ce[qe]:convertToPercentage(ce[qe]));ce=Ve}return tinycolor(ce,ze)},tinycolor.equals=function(ce,ze){return!(!ce||!ze)&&tinycolor(ce).toRgbString()==tinycolor(ze).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(ce,ze,Ve){Ve=0===Ve?0:Ve||50;var qe=tinycolor(ce).toRgb(),Ye=tinycolor(ze).toRgb(),We=Ve/100;return tinycolor({r:(Ye.r-qe.r)*We+qe.r,g:(Ye.g-qe.g)*We+qe.g,b:(Ye.b-qe.b)*We+qe.b,a:(Ye.a-qe.a)*We+qe.a})},tinycolor.readability=function(ce,ze){var Ve=tinycolor(ce),qe=tinycolor(ze);return(Math.max(Ve.getLuminance(),qe.getLuminance())+.05)/(Math.min(Ve.getLuminance(),qe.getLuminance())+.05)},tinycolor.isReadable=function(ce,ze,Ve){var qe,Ye,We=tinycolor.readability(ce,ze);switch(Ye=!1,(qe=validateWCAG2Parms(Ve)).level+qe.size){case"AAsmall":case"AAAlarge":Ye=We>=4.5;break;case"AAlarge":Ye=We>=3;break;case"AAAsmall":Ye=We>=7}return Ye},tinycolor.mostReadable=function(ce,ze,Ve){var qe,Ye,We,Qe,Xe=null,ot=0;Ye=(Ve=Ve||{}).includeFallbackColors,We=Ve.level,Qe=Ve.size;for(var st=0;stot&&(ot=qe,Xe=tinycolor(ze[st]));return tinycolor.isReadable(ce,Xe,{level:We,size:Qe})||!Ye?Xe:(Ve.includeFallbackColors=!1,tinycolor.mostReadable(ce,["#fff","#000"],Ve))};var Ve=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qe=tinycolor.hexNames=flip(Ve);function flip(ce){var ze={};for(var Ve in ce)ce.hasOwnProperty(Ve)&&(ze[ce[Ve]]=Ve);return ze}function boundAlpha(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function bound01(ce,ze){isOnePointZero(ce)&&(ce="100%");var Ve=isPercentage(ce);return ce=Math.min(ze,Math.max(0,parseFloat(ce))),Ve&&(ce=parseInt(ce*ze,10)/100),Math.abs(ce-ze)<1e-6?1:ce%ze/parseFloat(ze)}function clamp01(ce){return Math.min(1,Math.max(0,ce))}function parseIntFromHex(ce){return parseInt(ce,16)}function isOnePointZero(ce){return"string"==typeof ce&&-1!=ce.indexOf(".")&&1===parseFloat(ce)}function isPercentage(ce){return"string"==typeof ce&&-1!=ce.indexOf("%")}function pad2(ce){return 1==ce.length?"0"+ce:""+ce}function convertToPercentage(ce){return ce<=1&&(ce=100*ce+"%"),ce}function convertDecimalToHex(ce){return Math.round(255*parseFloat(ce)).toString(16)}function convertHexToDecimal(ce){return parseIntFromHex(ce)/255}var Ye,We,Qe,Xe=(We="[\\s|\\(]+("+(Ye="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",Qe="[\\s|\\(]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",{CSS_UNIT:new RegExp(Ye),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+Qe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+Qe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+Qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(ce){return!!Xe.CSS_UNIT.exec(ce)}function stringInputToObject(qe){qe=qe.replace(ce,"").replace(ze,"").toLowerCase();var Ye,We=!1;if(Ve[qe])qe=Ve[qe],We=!0;else if("transparent"==qe)return{r:0,g:0,b:0,a:0,format:"name"};return(Ye=Xe.rgb.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3]}:(Ye=Xe.rgba.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3],a:Ye[4]}:(Ye=Xe.hsl.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3]}:(Ye=Xe.hsla.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3],a:Ye[4]}:(Ye=Xe.hsv.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3]}:(Ye=Xe.hsva.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3],a:Ye[4]}:(Ye=Xe.hex8.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),a:convertHexToDecimal(Ye[4]),format:We?"name":"hex8"}:(Ye=Xe.hex6.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),format:We?"name":"hex"}:(Ye=Xe.hex4.exec(qe))?{r:parseIntFromHex(Ye[1]+""+Ye[1]),g:parseIntFromHex(Ye[2]+""+Ye[2]),b:parseIntFromHex(Ye[3]+""+Ye[3]),a:convertHexToDecimal(Ye[4]+""+Ye[4]),format:We?"name":"hex8"}:!!(Ye=Xe.hex3.exec(qe))&&{r:parseIntFromHex(Ye[1]+""+Ye[1]),g:parseIntFromHex(Ye[2]+""+Ye[2]),b:parseIntFromHex(Ye[3]+""+Ye[3]),format:We?"name":"hex"}}function validateWCAG2Parms(ce){var ze,Ve;return"AA"!==(ze=((ce=ce||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==ze&&(ze="AA"),"small"!==(Ve=(ce.size||"small").toLowerCase())&&"large"!==Ve&&(Ve="small"),{level:ze,size:Ve}}return tinycolor}()},function(ce,ze,Ve){"use strict";var qe=Ve(168),Ye=Ve(818),We=Ve(342),Qe=Ve(729),Xe=Ve(816),ot=Ve(815),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Qe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Xe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze){var Ve,qe,Ye=ce.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(ce){if(Ve===setTimeout)return setTimeout(ce,0);if((Ve===defaultSetTimout||!Ve)&&setTimeout)return Ve=setTimeout,setTimeout(ce,0);try{return Ve(ce,0)}catch(ze){try{return Ve.call(null,ce,0)}catch(ze){return Ve.call(this,ce,0)}}}function runClearTimeout(ce){if(qe===clearTimeout)return clearTimeout(ce);if((qe===defaultClearTimeout||!qe)&&clearTimeout)return qe=clearTimeout,clearTimeout(ce);try{return qe(ce)}catch(ze){try{return qe.call(null,ce)}catch(ze){return qe.call(this,ce)}}}!function(){try{Ve="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ce){Ve=defaultSetTimout}try{qe="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ce){qe=defaultClearTimeout}}();var We,Qe=[],Xe=!1,ot=-1;function cleanUpNextTick(){Xe&&We&&(Xe=!1,We.length?Qe=We.concat(Qe):ot=-1,Qe.length&&drainQueue())}function drainQueue(){if(!Xe){var ce=runTimeout(cleanUpNextTick);Xe=!0;for(var ze=Qe.length;ze;){for(We=Qe,Qe=[];++ot1)for(var Ve=1;Ve0?Ye(ze,9007199254740991):0}},function(ce,ze,Ve){"use strict";ze.f=Object.getOwnPropertySymbols},function(ce,ze,Ve){"use strict";var qe=Ve(829),Ye=Ve(738);ce.exports=Object.keys||function keys(ce){return qe(ce,Ye)}},function(ce,ze,Ve){"use strict";var qe=Ve(741),Ye=Ve(106),We=Ve(245),Qe=Ve(122)("toStringTag"),Xe=Object,ot="Arguments"===We(function(){return arguments}()),tryGet=function(ce,ze){try{return ce[ze]}catch(ce){}};ce.exports=qe?We:function(ce){var ze,Ve,qe;return void 0===ce?"Undefined":null===ce?"Null":"string"==typeof(Ve=tryGet(ze=Xe(ce),Qe))?Ve:ot?We(ze):"Object"===(qe=We(ze))&&Ye(ze.callee)?"Arguments":qe}},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(147),We=Ve(832),Qe=Ve(738),Xe=Ve(422),ot=Ve(1157),st=Ve(737),mt=Ve(464),gt="prototype",yt="script",bt=mt("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ce){return"<"+yt+">"+ce+""},NullProtoObjectViaActiveX=function(ce){ce.write(scriptTag("")),ce.close();var ze=ce.parentWindow.Object;return ce=null,ze},NullProtoObject=function(){try{qe=new ActiveXObject("htmlfile")}catch(ce){}var ce,ze,Ve;NullProtoObject="undefined"!=typeof document?document.domain&&qe?NullProtoObjectViaActiveX(qe):(ze=st("iframe"),Ve="java"+yt+":",ze.style.display="none",ot.appendChild(ze),ze.src=String(Ve),(ce=ze.contentWindow.document).open(),ce.write(scriptTag("document.F=Object")),ce.close(),ce.F):NullProtoObjectViaActiveX(qe);for(var Ye=Qe.length;Ye--;)delete NullProtoObject[gt][Qe[Ye]];return NullProtoObject()};Xe[bt]=!0,ce.exports=Object.create||function create(ce,ze){var Ve;return null!==ce?(EmptyConstructor[gt]=Ye(ce),Ve=new EmptyConstructor,EmptyConstructor[gt]=null,Ve[bt]=ce):Ve=NullProtoObject(),void 0===ze?Ve:We.f(Ve,ze)}},function(ce,ze,Ve){"use strict";Ve(148);var qe=Ve(136),Ye=Ve(273),We=Ve(740),Qe=Ve(61),Xe=Ve(122),ot=Ve(346),st=Xe("species"),mt=RegExp.prototype;ce.exports=function(ce,ze,Ve,gt){var yt=Xe(ce),bt=!Qe((function(){var ze={};return ze[yt]=function(){return 7},7!==""[ce](ze)})),vt=bt&&!Qe((function(){var ze=!1,Ve=/a/;return"split"===ce&&((Ve={}).constructor={},Ve.constructor[st]=function(){return Ve},Ve.flags="",Ve[yt]=/./[yt]),Ve.exec=function(){return ze=!0,null},Ve[yt](""),!ze}));if(!bt||!vt||Ve){var wt=/./[yt],Ct=ze(yt,""[ce],(function(ce,ze,Ve,Ye,Qe){var Xe=ze.exec;return Xe===We||Xe===mt.exec?bt&&!Qe?{done:!0,value:qe(wt,ze,Ve,Ye)}:{done:!0,value:qe(ce,Ve,ze,Ye)}:{done:!1}}));Ye(String.prototype,ce,Ct[0]),Ye(mt,yt,Ct[1])}gt&&ot(mt[yt],"sham",!0)}},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(147),We=Ve(106),Qe=Ve(245),Xe=Ve(740),ot=TypeError;ce.exports=function(ce,ze){var Ve=ce.exec;if(We(Ve)){var st=qe(Ve,ce,ze);return null!==st&&Ye(st),st}if("RegExp"===Qe(ce))return qe(Xe,ce,ze);throw new ot("RegExp#exec called on incompatible receiver")}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(748);qe({target:"String",proto:!0,forced:Ve(749)("link")},{link:function link(ce){return Ye(this,"a","href",ce)}})},function(ce,ze,Ve){var qe=Ve(476),Ye=Ve(1173),We=Ve(1174),Qe=Ve(1175),Xe=Ve(1176),ot=Ve(1177);function Stack(ce){var ze=this.__data__=new qe(ce);this.size=ze.size}Stack.prototype.clear=Ye,Stack.prototype.delete=We,Stack.prototype.get=Qe,Stack.prototype.has=Xe,Stack.prototype.set=ot,ce.exports=Stack},function(ce,ze,Ve){var qe=Ve(1168),Ye=Ve(1169),We=Ve(1170),Qe=Ve(1171),Xe=Ve(1172);function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|ce}function byteLength(ce,ze){if(Buffer.isBuffer(ce))return ce.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ce)||ce instanceof ArrayBuffer))return ce.byteLength;"string"!=typeof ce&&(ce=""+ce);var Ve=ce.length;if(0===Ve)return 0;for(var qe=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":case void 0:return utf8ToBytes(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ve;case"hex":return Ve>>>1;case"base64":return base64ToBytes(ce).length;default:if(qe)return utf8ToBytes(ce).length;ze=(""+ze).toLowerCase(),qe=!0}}function slowToString(ce,ze,Ve){var qe=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Ve||Ve>this.length)&&(Ve=this.length),Ve<=0)return"";if((Ve>>>=0)<=(ze>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return hexSlice(this,ze,Ve);case"utf8":case"utf-8":return utf8Slice(this,ze,Ve);case"ascii":return asciiSlice(this,ze,Ve);case"latin1":case"binary":return latin1Slice(this,ze,Ve);case"base64":return base64Slice(this,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Ve);default:if(qe)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),qe=!0}}function swap(ce,ze,Ve){var qe=ce[ze];ce[ze]=ce[Ve],ce[Ve]=qe}function bidirectionalIndexOf(ce,ze,Ve,qe,Ye){if(0===ce.length)return-1;if("string"==typeof Ve?(qe=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,isNaN(Ve)&&(Ve=Ye?0:ce.length-1),Ve<0&&(Ve=ce.length+Ve),Ve>=ce.length){if(Ye)return-1;Ve=ce.length-1}else if(Ve<0){if(!Ye)return-1;Ve=0}if("string"==typeof ze&&(ze=Buffer.from(ze,qe)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(ce,ze,Ve,qe,Ye);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?Ye?Uint8Array.prototype.indexOf.call(ce,ze,Ve):Uint8Array.prototype.lastIndexOf.call(ce,ze,Ve):arrayIndexOf(ce,[ze],Ve,qe,Ye);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(ce,ze,Ve,qe,Ye){var We,Qe=1,Xe=ce.length,ot=ze.length;if(void 0!==qe&&("ucs2"===(qe=String(qe).toLowerCase())||"ucs-2"===qe||"utf16le"===qe||"utf-16le"===qe)){if(ce.length<2||ze.length<2)return-1;Qe=2,Xe/=2,ot/=2,Ve/=2}function read(ce,ze){return 1===Qe?ce[ze]:ce.readUInt16BE(ze*Qe)}if(Ye){var st=-1;for(We=Ve;WeXe&&(Ve=Xe-ot),We=Ve;We>=0;We--){for(var mt=!0,gt=0;gtYe&&(qe=Ye):qe=Ye;var We=ze.length;if(We%2!=0)throw new TypeError("Invalid hex string");qe>We/2&&(qe=We/2);for(var Qe=0;Qe239?4:st>223?3:st>191?2:1;if(Ye+gt<=Ve)switch(gt){case 1:st<128&&(mt=st);break;case 2:128==(192&(We=ce[Ye+1]))&&(ot=(31&st)<<6|63&We)>127&&(mt=ot);break;case 3:We=ce[Ye+1],Qe=ce[Ye+2],128==(192&We)&&128==(192&Qe)&&(ot=(15&st)<<12|(63&We)<<6|63&Qe)>2047&&(ot<55296||ot>57343)&&(mt=ot);break;case 4:We=ce[Ye+1],Qe=ce[Ye+2],Xe=ce[Ye+3],128==(192&We)&&128==(192&Qe)&&128==(192&Xe)&&(ot=(15&st)<<18|(63&We)<<12|(63&Qe)<<6|63&Xe)>65535&&ot<1114112&&(mt=ot)}null===mt?(mt=65533,gt=1):mt>65535&&(mt-=65536,qe.push(mt>>>10&1023|55296),mt=56320|1023&mt),qe.push(mt),Ye+=gt}return decodeCodePointsArray(qe)}ze.Buffer=Buffer,ze.SlowBuffer=function SlowBuffer(ce){+ce!=ce&&(ce=0);return Buffer.alloc(+ce)},ze.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==ce.TYPED_ARRAY_SUPPORT?ce.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var ce=new Uint8Array(1);return ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===ce.foo()&&"function"==typeof ce.subarray&&0===ce.subarray(1,1).byteLength}catch(ce){return!1}}(),ze.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(ce){return ce.__proto__=Buffer.prototype,ce},Buffer.from=function(ce,ze,Ve){return from(null,ce,ze,Ve)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(ce,ze,Ve){return alloc(null,ce,ze,Ve)},Buffer.allocUnsafe=function(ce){return allocUnsafe(null,ce)},Buffer.allocUnsafeSlow=function(ce){return allocUnsafe(null,ce)},Buffer.isBuffer=function isBuffer(ce){return!(null==ce||!ce._isBuffer)},Buffer.compare=function compare(ce,ze){if(!Buffer.isBuffer(ce)||!Buffer.isBuffer(ze))throw new TypeError("Arguments must be Buffers");if(ce===ze)return 0;for(var Ve=ce.length,qe=ze.length,Ye=0,We=Math.min(Ve,qe);Ye0&&(ce=this.toString("hex",0,Ve).match(/.{2}/g).join(" "),this.length>Ve&&(ce+=" ... ")),""},Buffer.prototype.compare=function compare(ce,ze,Ve,qe,Ye){if(!Buffer.isBuffer(ce))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Ve&&(Ve=ce?ce.length:0),void 0===qe&&(qe=0),void 0===Ye&&(Ye=this.length),ze<0||Ve>ce.length||qe<0||Ye>this.length)throw new RangeError("out of range index");if(qe>=Ye&&ze>=Ve)return 0;if(qe>=Ye)return-1;if(ze>=Ve)return 1;if(this===ce)return 0;for(var We=(Ye>>>=0)-(qe>>>=0),Qe=(Ve>>>=0)-(ze>>>=0),Xe=Math.min(We,Qe),ot=this.slice(qe,Ye),st=ce.slice(ze,Ve),mt=0;mtYe)&&(Ve=Ye),ce.length>0&&(Ve<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");qe||(qe="utf8");for(var We=!1;;)switch(qe){case"hex":return hexWrite(this,ce,ze,Ve);case"utf8":case"utf-8":return utf8Write(this,ce,ze,Ve);case"ascii":return asciiWrite(this,ce,ze,Ve);case"latin1":case"binary":return latin1Write(this,ce,ze,Ve);case"base64":return base64Write(this,ce,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,ce,ze,Ve);default:if(We)throw new TypeError("Unknown encoding: "+qe);qe=(""+qe).toLowerCase(),We=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Qe=4096;function decodeCodePointsArray(ce){var ze=ce.length;if(ze<=Qe)return String.fromCharCode.apply(String,ce);for(var Ve="",qe=0;qeqe)&&(Ve=qe);for(var Ye="",We=ze;WeVe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(ce,ze,Ve,qe,Ye,We){if(!Buffer.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>Ye||zece.length)throw new RangeError("Index out of range")}function objectWriteUInt16(ce,ze,Ve,qe){ze<0&&(ze=65535+ze+1);for(var Ye=0,We=Math.min(ce.length-Ve,2);Ye>>8*(qe?Ye:1-Ye)}function objectWriteUInt32(ce,ze,Ve,qe){ze<0&&(ze=4294967295+ze+1);for(var Ye=0,We=Math.min(ce.length-Ve,4);Ye>>8*(qe?Ye:3-Ye)&255}function checkIEEE754(ce,ze,Ve,qe,Ye,We){if(Ve+qe>ce.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function writeFloat(ce,ze,Ve,qe,We){return We||checkIEEE754(ce,0,Ve,4),Ye.write(ce,ze,Ve,qe,23,4),Ve+4}function writeDouble(ce,ze,Ve,qe,We){return We||checkIEEE754(ce,0,Ve,8),Ye.write(ce,ze,Ve,qe,52,8),Ve+8}Buffer.prototype.slice=function slice(ce,ze){var Ve,qe=this.length;if((ce=~~ce)<0?(ce+=qe)<0&&(ce=0):ce>qe&&(ce=qe),(ze=void 0===ze?qe:~~ze)<0?(ze+=qe)<0&&(ze=0):ze>qe&&(ze=qe),ze0&&(Ye*=256);)qe+=this[ce+--ze]*Ye;return qe},Buffer.prototype.readUInt8=function readUInt8(ce,ze){return ze||checkOffset(ce,1,this.length),this[ce]},Buffer.prototype.readUInt16LE=function readUInt16LE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]|this[ce+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]<<8|this[ce+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+16777216*this[ce+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),16777216*this[ce]+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},Buffer.prototype.readIntLE=function readIntLE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var qe=this[ce],Ye=1,We=0;++We=(Ye*=128)&&(qe-=Math.pow(2,8*ze)),qe},Buffer.prototype.readIntBE=function readIntBE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var qe=ze,Ye=1,We=this[ce+--qe];qe>0&&(Ye*=256);)We+=this[ce+--qe]*Ye;return We>=(Ye*=128)&&(We-=Math.pow(2,8*ze)),We},Buffer.prototype.readInt8=function readInt8(ce,ze){return ze||checkOffset(ce,1,this.length),128&this[ce]?-1*(255-this[ce]+1):this[ce]},Buffer.prototype.readInt16LE=function readInt16LE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce]|this[ce+1]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt16BE=function readInt16BE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce+1]|this[ce]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt32LE=function readInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},Buffer.prototype.readFloatLE=function readFloatLE(ce,ze){return ze||checkOffset(ce,4,this.length),Ye.read(this,ce,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(ce,ze){return ze||checkOffset(ce,4,this.length),Ye.read(this,ce,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(ce,ze){return ze||checkOffset(ce,8,this.length),Ye.read(this,ce,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(ce,ze){return ze||checkOffset(ce,8,this.length),Ye.read(this,ce,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(ce,ze,Ve,qe){(ce=+ce,ze|=0,Ve|=0,qe)||checkInt(this,ce,ze,Ve,Math.pow(2,8*Ve)-1,0);var Ye=1,We=0;for(this[ze]=255&ce;++We=0&&(We*=256);)this[ze+Ye]=ce/We&255;return ze+Ve},Buffer.prototype.writeUInt8=function writeUInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),this[ze]=255&ce,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=ce>>>24,this[ze+2]=ce>>>16,this[ze+1]=ce>>>8,this[ze]=255&ce):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(ce,ze,Ve,qe){if(ce=+ce,ze|=0,!qe){var Ye=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,Ye-1,-Ye)}var We=0,Qe=1,Xe=0;for(this[ze]=255&ce;++We=0&&(Qe*=256);)ce<0&&0===Xe&&0!==this[ze+We+1]&&(Xe=1),this[ze+We]=(ce/Qe|0)-Xe&255;return ze+Ve},Buffer.prototype.writeInt8=function writeInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),ce<0&&(ce=255+ce+1),this[ze]=255&ce,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8,this[ze+2]=ce>>>16,this[ze+3]=ce>>>24):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(ce,ze,Ve){return writeFloat(this,ce,ze,!0,Ve)},Buffer.prototype.writeFloatBE=function writeFloatBE(ce,ze,Ve){return writeFloat(this,ce,ze,!1,Ve)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(ce,ze,Ve){return writeDouble(this,ce,ze,!0,Ve)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(ce,ze,Ve){return writeDouble(this,ce,ze,!1,Ve)},Buffer.prototype.copy=function copy(ce,ze,Ve,qe){if(Ve||(Ve=0),qe||0===qe||(qe=this.length),ze>=ce.length&&(ze=ce.length),ze||(ze=0),qe>0&&qe=this.length)throw new RangeError("sourceStart out of bounds");if(qe<0)throw new RangeError("sourceEnd out of bounds");qe>this.length&&(qe=this.length),ce.length-ze=0;--Ye)ce[Ye+ze]=this[Ye+Ve];else if(We<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(Ye=0;Ye>>=0,Ve=void 0===Ve?this.length:Ve>>>0,ce||(ce=0),"number"==typeof ce)for(We=ze;We55295&&Ve<57344){if(!Ye){if(Ve>56319){(ze-=3)>-1&&We.push(239,191,189);continue}if(Qe+1===qe){(ze-=3)>-1&&We.push(239,191,189);continue}Ye=Ve;continue}if(Ve<56320){(ze-=3)>-1&&We.push(239,191,189),Ye=Ve;continue}Ve=65536+(Ye-55296<<10|Ve-56320)}else Ye&&(ze-=3)>-1&&We.push(239,191,189);if(Ye=null,Ve<128){if((ze-=1)<0)break;We.push(Ve)}else if(Ve<2048){if((ze-=2)<0)break;We.push(Ve>>6|192,63&Ve|128)}else if(Ve<65536){if((ze-=3)<0)break;We.push(Ve>>12|224,Ve>>6&63|128,63&Ve|128)}else{if(!(Ve<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;We.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,63&Ve|128)}}return We}function asciiToBytes(ce){for(var ze=[],Ve=0;Ve>8,Ye=Ve%256,We.push(Ye),We.push(qe);return We}function base64ToBytes(ce){return qe.toByteArray(base64clean(ce))}function blitBuffer(ce,ze,Ve,qe){for(var Ye=0;Ye=ze.length||Ye>=ce.length);++Ye)ze[Ye+Ve]=ce[Ye];return Ye}}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";function arrayMoveMutable(ce,ze,Ve){const qe=ze<0?ce.length+ze:ze;if(qe>=0&&qe{ce.code(mt._`"use strict"; ${funcSourceUrl(Ve,Ye)}`),destructureValCxtES5(ce,Ye),ce.code(We)})):ce.func(ze,mt._`${gt.default.data}, ${destructureValCxt(Ye)}`,qe.$async,(()=>ce.code(funcSourceUrl(Ve,Ye)).code(We)))}function destructureValCxt(ce){return mt._`{${gt.default.instancePath}="", ${gt.default.parentData}, ${gt.default.parentDataProperty}, ${gt.default.rootData}=${gt.default.data}${ce.dynamicRef?mt._`, ${gt.default.dynamicAnchors}={}`:mt.nil}}={}`}function destructureValCxtES5(ce,ze){ce.if(gt.default.valCxt,(()=>{ce.var(gt.default.instancePath,mt._`${gt.default.valCxt}.${gt.default.instancePath}`),ce.var(gt.default.parentData,mt._`${gt.default.valCxt}.${gt.default.parentData}`),ce.var(gt.default.parentDataProperty,mt._`${gt.default.valCxt}.${gt.default.parentDataProperty}`),ce.var(gt.default.rootData,mt._`${gt.default.valCxt}.${gt.default.rootData}`),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`${gt.default.valCxt}.${gt.default.dynamicAnchors}`)}),(()=>{ce.var(gt.default.instancePath,mt._`""`),ce.var(gt.default.parentData,mt._`undefined`),ce.var(gt.default.parentDataProperty,mt._`undefined`),ce.var(gt.default.rootData,gt.default.data),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`{}`)}))}function topSchemaObjCode(ce){const{schema:ze,opts:Ve,gen:qe}=ce;validateFunction(ce,(()=>{Ve.$comment&&ze.$comment&&commentKeyword(ce),checkNoDefault(ce),qe.let(gt.default.vErrors,null),qe.let(gt.default.errors,0),Ve.unevaluated&&resetEvaluated(ce),typeAndKeywords(ce),returnResults(ce)}))}function resetEvaluated(ce){const{gen:ze,validateName:Ve}=ce;ce.evaluated=ze.const("evaluated",mt._`${Ve}.evaluated`),ze.if(mt._`${ce.evaluated}.dynamicProps`,(()=>ze.assign(mt._`${ce.evaluated}.props`,mt._`undefined`))),ze.if(mt._`${ce.evaluated}.dynamicItems`,(()=>ze.assign(mt._`${ce.evaluated}.items`,mt._`undefined`)))}function funcSourceUrl(ce,ze){const Ve="object"==typeof ce&&ce[ze.schemaId];return Ve&&(ze.code.source||ze.code.process)?mt._`/*# sourceURL=${Ve} */`:mt.nil}function subschemaCode(ce,ze){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?subSchemaObjCode(ce,ze):(0,qe.boolOrEmptySchema)(ce,ze)}function schemaCxtHasRules({schema:ce,self:ze}){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if(ze.RULES.all[Ve])return!0;return!1}function isSchemaObj(ce){return"boolean"!=typeof ce.schema}function subSchemaObjCode(ce,ze){const{schema:Ve,gen:qe,opts:Ye}=ce;Ye.$comment&&Ve.$comment&&commentKeyword(ce),updateContext(ce),checkAsyncSchema(ce);const We=qe.const("_errs",gt.default.errors);typeAndKeywords(ce,We),qe.var(ze,mt._`${We} === ${gt.default.errors}`)}function checkKeywords(ce){(0,bt.checkUnknownRules)(ce),checkRefsAndKeywords(ce)}function typeAndKeywords(ce,ze){if(ce.opts.jtd)return schemaKeywords(ce,[],!1,ze);const Ve=(0,Ye.getSchemaTypes)(ce.schema);schemaKeywords(ce,Ve,!(0,Ye.coerceAndCheckDataType)(ce,Ve),ze)}function checkRefsAndKeywords(ce){const{schema:ze,errSchemaPath:Ve,opts:qe,self:Ye}=ce;ze.$ref&&qe.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(ze,Ye.RULES)&&Ye.logger.warn(`$ref: keywords ignored in schema at path "${Ve}"`)}function checkNoDefault(ce){const{schema:ze,opts:Ve}=ce;void 0!==ze.default&&Ve.useDefaults&&Ve.strictSchema&&(0,bt.checkStrictMode)(ce,"default is ignored in the schema root")}function updateContext(ce){const ze=ce.schema[ce.opts.schemaId];ze&&(ce.baseId=(0,yt.resolveUrl)(ce.opts.uriResolver,ce.baseId,ze))}function checkAsyncSchema(ce){if(ce.schema.$async&&!ce.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:ce,schemaEnv:ze,schema:Ve,errSchemaPath:qe,opts:Ye}){const We=Ve.$comment;if(!0===Ye.$comment)ce.code(mt._`${gt.default.self}.logger.log(${We})`);else if("function"==typeof Ye.$comment){const Ve=mt.str`${qe}/$comment`,Ye=ce.scopeValue("root",{ref:ze.root});ce.code(mt._`${gt.default.self}.opts.$comment(${We}, ${Ve}, ${Ye}.schema)`)}}function returnResults(ce){const{gen:ze,schemaEnv:Ve,validateName:qe,ValidationError:Ye,opts:We}=ce;Ve.$async?ze.if(mt._`${gt.default.errors} === 0`,(()=>ze.return(gt.default.data)),(()=>ze.throw(mt._`new ${Ye}(${gt.default.vErrors})`))):(ze.assign(mt._`${qe}.errors`,gt.default.vErrors),We.unevaluated&&assignEvaluated(ce),ze.return(mt._`${gt.default.errors} === 0`))}function assignEvaluated({gen:ce,evaluated:ze,props:Ve,items:qe}){Ve instanceof mt.Name&&ce.assign(mt._`${ze}.props`,Ve),qe instanceof mt.Name&&ce.assign(mt._`${ze}.items`,qe)}function schemaKeywords(ce,ze,Ve,qe){const{gen:Ye,schema:Xe,data:ot,allErrors:st,opts:yt,self:vt}=ce,{RULES:wt}=vt;function groupKeywords(bt){(0,We.shouldUseGroup)(Xe,bt)&&(bt.type?(Ye.if((0,Qe.checkDataType)(bt.type,ot,yt.strictNumbers)),iterateKeywords(ce,bt),1===ze.length&&ze[0]===bt.type&&Ve&&(Ye.else(),(0,Qe.reportTypeError)(ce)),Ye.endIf()):iterateKeywords(ce,bt),st||Ye.if(mt._`${gt.default.errors} === ${qe||0}`))}!Xe.$ref||!yt.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(Xe,wt)?(yt.jtd||checkStrictTypes(ce,ze),Ye.block((()=>{for(const ce of wt.rules)groupKeywords(ce);groupKeywords(wt.post)}))):Ye.block((()=>keywordCode(ce,"$ref",wt.all.$ref.definition)))}function iterateKeywords(ce,ze){const{gen:Ve,schema:qe,opts:{useDefaults:Ye}}=ce;Ye&&(0,Xe.assignDefaults)(ce,ze.type),Ve.block((()=>{for(const Ve of ze.rules)(0,We.shouldUseRule)(qe,Ve)&&keywordCode(ce,Ve.keyword,Ve.definition,ze.type)}))}function checkStrictTypes(ce,ze){!ce.schemaEnv.meta&&ce.opts.strictTypes&&(checkContextTypes(ce,ze),ce.opts.allowUnionTypes||checkMultipleTypes(ce,ze),checkKeywordTypes(ce,ce.dataTypes))}function checkContextTypes(ce,ze){ze.length&&(ce.dataTypes.length?(ze.forEach((ze=>{includesType(ce.dataTypes,ze)||strictTypesError(ce,`type "${ze}" not allowed by context "${ce.dataTypes.join(",")}"`)})),narrowSchemaTypes(ce,ze)):ce.dataTypes=ze)}function checkMultipleTypes(ce,ze){ze.length>1&&(2!==ze.length||!ze.includes("null"))&&strictTypesError(ce,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(ce,ze){const Ve=ce.self.RULES.all;for(const qe in Ve){const Ye=Ve[qe];if("object"==typeof Ye&&(0,We.shouldUseRule)(ce.schema,Ye)){const{type:Ve}=Ye.definition;Ve.length&&!Ve.some((ce=>{return qe=ce,(Ve=ze).includes(qe)||"number"===qe&&Ve.includes("integer");var Ve,qe}))&&strictTypesError(ce,`missing type "${Ve.join(",")}" for keyword "${qe}"`)}}}function includesType(ce,ze){return ce.includes(ze)||"integer"===ze&&ce.includes("number")}function narrowSchemaTypes(ce,ze){const Ve=[];for(const qe of ce.dataTypes)includesType(ze,qe)?Ve.push(qe):ze.includes("integer")&&"number"===qe&&Ve.push("integer");ce.dataTypes=Ve}function strictTypesError(ce,ze){ze+=` at "${ce.schemaEnv.baseId+ce.errSchemaPath}" (strictTypes)`,(0,bt.checkStrictMode)(ce,ze,ce.opts.strictTypes)}ze.validateFunctionCode=function validateFunctionCode(ce){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?topSchemaObjCode(ce):validateFunction(ce,(()=>(0,qe.topBoolOrEmptySchema)(ce)))};class wt{constructor(ce,ze,Ve){if((0,ot.validateKeywordUsage)(ce,ze,Ve),this.gen=ce.gen,this.allErrors=ce.allErrors,this.keyword=Ve,this.data=ce.data,this.schema=ce.schema[Ve],this.$data=ze.$data&&ce.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bt.schemaRefOrVal)(ce,this.schema,Ve,this.$data),this.schemaType=ze.schemaType,this.parentSchema=ce.schema,this.params={},this.it=ce,this.def=ze,this.$data)this.schemaCode=ce.gen.const("vSchema",getData(this.$data,ce));else if(this.schemaCode=this.schemaValue,!(0,ot.validSchemaType)(this.schema,ze.schemaType,ze.allowUndefined))throw new Error(`${Ve} value must be ${JSON.stringify(ze.schemaType)}`);("code"in ze?ze.trackErrors:!1!==ze.errors)&&(this.errsCount=ce.gen.const("_errs",gt.default.errors))}result(ce,ze,Ve){this.failResult((0,mt.not)(ce),ze,Ve)}failResult(ce,ze,Ve){this.gen.if(ce),Ve?Ve():this.error(),ze?(this.gen.else(),ze(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ce,ze){this.failResult((0,mt.not)(ce),void 0,ze)}fail(ce){if(void 0===ce)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ce),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ce){if(!this.$data)return this.fail(ce);const{schemaCode:ze}=this;this.fail(mt._`${ze} !== undefined && (${(0,mt.or)(this.invalid$data(),ce)})`)}error(ce,ze,Ve){if(ze)return this.setParams(ze),this._error(ce,Ve),void this.setParams({});this._error(ce,Ve)}_error(ce,ze){(ce?vt.reportExtraError:vt.reportError)(this,this.def.error,ze)}$dataError(){(0,vt.reportError)(this,this.def.$dataError||vt.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,vt.resetErrorsCount)(this.gen,this.errsCount)}ok(ce){this.allErrors||this.gen.if(ce)}setParams(ce,ze){ze?Object.assign(this.params,ce):this.params=ce}block$data(ce,ze,Ve=mt.nil){this.gen.block((()=>{this.check$data(ce,Ve),ze()}))}check$data(ce=mt.nil,ze=mt.nil){if(!this.$data)return;const{gen:Ve,schemaCode:qe,schemaType:Ye,def:We}=this;Ve.if((0,mt.or)(mt._`${qe} === undefined`,ze)),ce!==mt.nil&&Ve.assign(ce,!0),(Ye.length||We.validateSchema)&&(Ve.elseIf(this.invalid$data()),this.$dataError(),ce!==mt.nil&&Ve.assign(ce,!1)),Ve.else()}invalid$data(){const{gen:ce,schemaCode:ze,schemaType:Ve,def:qe,it:Ye}=this;return(0,mt.or)(function wrong$DataType(){if(Ve.length){if(!(ze instanceof mt.Name))throw new Error("ajv implementation error");const ce=Array.isArray(Ve)?Ve:[Ve];return mt._`${(0,Qe.checkDataTypes)(ce,ze,Ye.opts.strictNumbers,Qe.DataType.Wrong)}`}return mt.nil}(),function invalid$DataSchema(){if(qe.validateSchema){const Ve=ce.scopeValue("validate$data",{ref:qe.validateSchema});return mt._`!${Ve}(${ze})`}return mt.nil}())}subschema(ce,ze){const Ve=(0,st.getSubschema)(this.it,ce);(0,st.extendSubschemaData)(Ve,this.it,ce),(0,st.extendSubschemaMode)(Ve,ce);const qe={...this.it,...Ve,items:void 0,props:void 0};return subschemaCode(qe,ze),qe}mergeEvaluated(ce,ze){const{it:Ve,gen:qe}=this;Ve.opts.unevaluated&&(!0!==Ve.props&&void 0!==ce.props&&(Ve.props=bt.mergeEvaluated.props(qe,ce.props,Ve.props,ze)),!0!==Ve.items&&void 0!==ce.items&&(Ve.items=bt.mergeEvaluated.items(qe,ce.items,Ve.items,ze)))}mergeValidEvaluated(ce,ze){const{it:Ve,gen:qe}=this;if(Ve.opts.unevaluated&&(!0!==Ve.props||!0!==Ve.items))return qe.if(ze,(()=>this.mergeEvaluated(ce,mt.Name))),!0}}function keywordCode(ce,ze,Ve,qe){const Ye=new wt(ce,Ve,ze);"code"in Ve?Ve.code(Ye,qe):Ye.$data&&Ve.validate?(0,ot.funcKeywordCode)(Ye,Ve):"macro"in Ve?(0,ot.macroKeywordCode)(Ye,Ve):(Ve.compile||Ve.validate)&&(0,ot.funcKeywordCode)(Ye,Ve)}ze.KeywordCxt=wt;const Ct=/^\/(?:[^~]|~0|~1)*$/,Dt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(ce,{dataLevel:ze,dataNames:Ve,dataPathArr:qe}){let Ye,We;if(""===ce)return gt.default.rootData;if("/"===ce[0]){if(!Ct.test(ce))throw new Error(`Invalid JSON-pointer: ${ce}`);Ye=ce,We=gt.default.rootData}else{const Qe=Dt.exec(ce);if(!Qe)throw new Error(`Invalid JSON-pointer: ${ce}`);const Xe=+Qe[1];if(Ye=Qe[2],"#"===Ye){if(Xe>=ze)throw new Error(errorMsg("property/index",Xe));return qe[ze-Xe]}if(Xe>ze)throw new Error(errorMsg("data",Xe));if(We=Ve[ze-Xe],!Ye)return We}let Qe=We;const Xe=Ye.split("/");for(const ce of Xe)ce&&(We=mt._`${We}${(0,mt.getProperty)((0,bt.unescapeJsonPointer)(ce))}`,Qe=mt._`${Qe} && ${We}`);return Qe;function errorMsg(ce,Ve){return`Cannot access ${ce} ${Ve} levels up, current level is ${ze}`}}ze.getData=getData},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.extendErrors=ze.resetErrorsCount=ze.reportExtraError=ze.reportError=ze.keyword$DataError=ze.keywordError=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(276);function addError(ce,ze){const Ve=ce.const("err",ze);ce.if(qe._`${We.default.vErrors} === null`,(()=>ce.assign(We.default.vErrors,qe._`[${Ve}]`)),qe._`${We.default.vErrors}.push(${Ve})`),ce.code(qe._`${We.default.errors}++`)}function returnErrors(ce,ze){const{gen:Ve,validateName:Ye,schemaEnv:We}=ce;We.$async?Ve.throw(qe._`new ${ce.ValidationError}(${ze})`):(Ve.assign(qe._`${Ye}.errors`,ze),Ve.return(!1))}ze.keywordError={message:({keyword:ce})=>qe.str`must pass "${ce}" keyword validation`},ze.keyword$DataError={message:({keyword:ce,schemaType:ze})=>ze?qe.str`"${ce}" keyword must be ${ze} ($data)`:qe.str`"${ce}" keyword is invalid ($data)`},ze.reportError=function reportError(ce,Ve=ze.keywordError,Ye,We){const{it:Qe}=ce,{gen:Xe,compositeRule:ot,allErrors:st}=Qe,mt=errorObjectCode(ce,Ve,Ye);(null!=We?We:ot||st)?addError(Xe,mt):returnErrors(Qe,qe._`[${mt}]`)},ze.reportExtraError=function reportExtraError(ce,Ve=ze.keywordError,qe){const{it:Ye}=ce,{gen:Qe,compositeRule:Xe,allErrors:ot}=Ye;addError(Qe,errorObjectCode(ce,Ve,qe)),Xe||ot||returnErrors(Ye,We.default.vErrors)},ze.resetErrorsCount=function resetErrorsCount(ce,ze){ce.assign(We.default.errors,ze),ce.if(qe._`${We.default.vErrors} !== null`,(()=>ce.if(ze,(()=>ce.assign(qe._`${We.default.vErrors}.length`,ze)),(()=>ce.assign(We.default.vErrors,null)))))},ze.extendErrors=function extendErrors({gen:ce,keyword:ze,schemaValue:Ve,data:Ye,errsCount:Qe,it:Xe}){if(void 0===Qe)throw new Error("ajv implementation error");const ot=ce.name("err");ce.forRange("i",Qe,We.default.errors,(Qe=>{ce.const(ot,qe._`${We.default.vErrors}[${Qe}]`),ce.if(qe._`${ot}.instancePath === undefined`,(()=>ce.assign(qe._`${ot}.instancePath`,(0,qe.strConcat)(We.default.instancePath,Xe.errorPath)))),ce.assign(qe._`${ot}.schemaPath`,qe.str`${Xe.errSchemaPath}/${ze}`),Xe.opts.verbose&&(ce.assign(qe._`${ot}.schema`,Ve),ce.assign(qe._`${ot}.data`,Ye))}))};const Qe={keyword:new qe.Name("keyword"),schemaPath:new qe.Name("schemaPath"),params:new qe.Name("params"),propertyName:new qe.Name("propertyName"),message:new qe.Name("message"),schema:new qe.Name("schema"),parentSchema:new qe.Name("parentSchema")};function errorObjectCode(ce,ze,Ve){const{createErrors:Ye}=ce.it;return!1===Ye?qe._`{}`:errorObject(ce,ze,Ve)}function errorObject(ce,ze,Ve={}){const{gen:qe,it:Ye}=ce,We=[errorInstancePath(Ye,Ve),errorSchemaPath(ce,Ve)];return extraErrorProps(ce,ze,We),qe.object(...We)}function errorInstancePath({errorPath:ce},{instancePath:ze}){const Ve=ze?qe.str`${ce}${(0,Ye.getErrorPath)(ze,Ye.Type.Str)}`:ce;return[We.default.instancePath,(0,qe.strConcat)(We.default.instancePath,Ve)]}function errorSchemaPath({keyword:ce,it:{errSchemaPath:ze}},{schemaPath:Ve,parentSchema:We}){let Xe=We?ze:qe.str`${ze}/${ce}`;return Ve&&(Xe=qe.str`${Xe}${(0,Ye.getErrorPath)(Ve,Ye.Type.Str)}`),[Qe.schemaPath,Xe]}function extraErrorProps(ce,{params:ze,message:Ve},Ye){const{keyword:Xe,data:ot,schemaValue:st,it:mt}=ce,{opts:gt,propertyName:yt,topSchemaRef:bt,schemaPath:vt}=mt;Ye.push([Qe.keyword,Xe],[Qe.params,"function"==typeof ze?ze(ce):ze||qe._`{}`]),gt.messages&&Ye.push([Qe.message,"function"==typeof Ve?Ve(ce):Ve]),gt.verbose&&Ye.push([Qe.schema,st],[Qe.parentSchema,qe._`${bt}${vt}`],[We.default.data,ot]),yt&&Ye.push([Qe.propertyName,yt])}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.regexpCode=ze.getEsmExportName=ze.getProperty=ze.safeStringify=ze.stringify=ze.strConcat=ze.addCodeArg=ze.str=ze._=ze.nil=ze._Code=ze.Name=ze.IDENTIFIER=ze._CodeOrName=void 0;class qe{}ze._CodeOrName=qe,ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Ye extends qe{constructor(ce){if(super(),!ze.IDENTIFIER.test(ce))throw new Error("CodeGen: name must be a valid identifier");this.str=ce}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}ze.Name=Ye;class We extends qe{constructor(ce){super(),this._items="string"==typeof ce?[ce]:ce}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ce=this._items[0];return""===ce||'""'===ce}get str(){var ce;return null!==(ce=this._str)&&void 0!==ce?ce:this._str=this._items.reduce(((ce,ze)=>`${ce}${ze}`),"")}get names(){var ce;return null!==(ce=this._names)&&void 0!==ce?ce:this._names=this._items.reduce(((ce,ze)=>(ze instanceof Ye&&(ce[ze.str]=(ce[ze.str]||0)+1),ce)),{})}}function _(ce,...ze){const Ve=[ce[0]];let qe=0;for(;qe0&&!(0===Qe.length&&1===ze.length&&(0,Ye.schemaHasRulesForType)(ce,ze[0]));if(Xe){const Ye=checkDataTypes(ze,qe,We.strictNumbers,ot.Wrong);Ve.if(Ye,(()=>{Qe.length?coerceData(ce,ze,Qe):reportTypeError(ce)}))}return Xe};const st=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(ce,ze){return ze?ce.filter((ce=>st.has(ce)||"array"===ze&&"array"===ce)):[]}function coerceData(ce,ze,Ve){const{gen:qe,data:Ye,opts:We}=ce,Xe=qe.let("dataType",Qe._`typeof ${Ye}`),ot=qe.let("coerced",Qe._`undefined`);"array"===We.coerceTypes&&qe.if(Qe._`${Xe} == 'object' && Array.isArray(${Ye}) && ${Ye}.length == 1`,(()=>qe.assign(Ye,Qe._`${Ye}[0]`).assign(Xe,Qe._`typeof ${Ye}`).if(checkDataTypes(ze,Ye,We.strictNumbers),(()=>qe.assign(ot,Ye))))),qe.if(Qe._`${ot} !== undefined`);for(const ce of Ve)(st.has(ce)||"array"===ce&&"array"===We.coerceTypes)&&coerceSpecificType(ce);function coerceSpecificType(ce){switch(ce){case"string":return void qe.elseIf(Qe._`${Xe} == "number" || ${Xe} == "boolean"`).assign(ot,Qe._`"" + ${Ye}`).elseIf(Qe._`${Ye} === null`).assign(ot,Qe._`""`);case"number":return void qe.elseIf(Qe._`${Xe} == "boolean" || ${Ye} === null +/*! For license information please see bundle.8f64cfdd.js.LICENSE.txt */ +!function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,__webpack_require__),qe.l=!0,qe.exports}__webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)__webpack_require__.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1097)}([function(ce,ze,Ve){"use strict";ce.exports=Ve(1154)},function(ce,ze,Ve){"use strict";Ve.r(ze),function(ce,qe){Ve.d(ze,"$mobx",(function(){return ar})),Ve.d(ze,"FlowCancellationError",(function(){return FlowCancellationError})),Ve.d(ze,"IDerivationState",(function(){return Et})),Ve.d(ze,"ObservableMap",(function(){return Ri})),Ve.d(ze,"ObservableSet",(function(){return Ei})),Ve.d(ze,"Reaction",(function(){return wn})),Ve.d(ze,"_allowStateChanges",(function(){return allowStateChanges})),Ve.d(ze,"_allowStateChangesInsideComputed",(function(){return allowStateChangesInsideComputed})),Ve.d(ze,"_allowStateReadsEnd",(function(){return allowStateReadsEnd})),Ve.d(ze,"_allowStateReadsStart",(function(){return allowStateReadsStart})),Ve.d(ze,"_endAction",(function(){return _endAction})),Ve.d(ze,"_getAdministration",(function(){return getAdministration})),Ve.d(ze,"_getGlobalState",(function(){return getGlobalState})),Ve.d(ze,"_interceptReads",(function(){return interceptReads})),Ve.d(ze,"_isComputingDerivation",(function(){return isComputingDerivation})),Ve.d(ze,"_resetGlobalState",(function(){return resetGlobalState})),Ve.d(ze,"_startAction",(function(){return _startAction})),Ve.d(ze,"action",(function(){return Tn})),Ve.d(ze,"autorun",(function(){return autorun})),Ve.d(ze,"comparer",(function(){return mt})),Ve.d(ze,"computed",(function(){return Ft})),Ve.d(ze,"configure",(function(){return configure})),Ve.d(ze,"createAtom",(function(){return createAtom})),Ve.d(ze,"decorate",(function(){return decorate})),Ve.d(ze,"entries",(function(){return entries})),Ve.d(ze,"extendObservable",(function(){return extendObservable})),Ve.d(ze,"extendShallowObservable",(function(){return extendShallowObservable})),Ve.d(ze,"flow",(function(){return flow})),Ve.d(ze,"get",(function(){return get})),Ve.d(ze,"getAtom",(function(){return getAtom})),Ve.d(ze,"getDebugName",(function(){return getDebugName})),Ve.d(ze,"getDependencyTree",(function(){return getDependencyTree})),Ve.d(ze,"getObserverTree",(function(){return getObserverTree})),Ve.d(ze,"has",(function(){return has})),Ve.d(ze,"intercept",(function(){return intercept})),Ve.d(ze,"isAction",(function(){return isAction})),Ve.d(ze,"isArrayLike",(function(){return isArrayLike})),Ve.d(ze,"isBoxedObservable",(function(){return Jt})),Ve.d(ze,"isComputed",(function(){return isComputed})),Ve.d(ze,"isComputedProp",(function(){return isComputedProp})),Ve.d(ze,"isFlowCancellationError",(function(){return isFlowCancellationError})),Ve.d(ze,"isObservable",(function(){return isObservable})),Ve.d(ze,"isObservableArray",(function(){return isObservableArray})),Ve.d(ze,"isObservableMap",(function(){return Ci})),Ve.d(ze,"isObservableObject",(function(){return isObservableObject})),Ve.d(ze,"isObservableProp",(function(){return isObservableProp})),Ve.d(ze,"isObservableSet",(function(){return Oi})),Ve.d(ze,"keys",(function(){return keys})),Ve.d(ze,"observable",(function(){return xt})),Ve.d(ze,"observe",(function(){return observe})),Ve.d(ze,"onBecomeObserved",(function(){return onBecomeObserved})),Ve.d(ze,"onBecomeUnobserved",(function(){return onBecomeUnobserved})),Ve.d(ze,"onReactionError",(function(){return onReactionError})),Ve.d(ze,"reaction",(function(){return reaction})),Ve.d(ze,"remove",(function(){return remove})),Ve.d(ze,"runInAction",(function(){return runInAction})),Ve.d(ze,"set",(function(){return set})),Ve.d(ze,"spy",(function(){return spy})),Ve.d(ze,"toJS",(function(){return toJS})),Ve.d(ze,"trace",(function(){return trace})),Ve.d(ze,"transaction",(function(){return transaction})),Ve.d(ze,"untracked",(function(){return untracked})),Ve.d(ze,"values",(function(){return values})),Ve.d(ze,"when",(function(){return when}));var Ye="An invariant failed, however the error is obfuscated because this is an production build.",We=[];Object.freeze(We);var Qe={};Object.freeze(Qe);var Xe={};function getGlobal(){return"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:Xe}function getNextId(){return++bn.mobxGuid}function fail(ce){throw invariant(!1,ce),"X"}function invariant(ce,ze){if(!ce)throw new Error("[mobx] "+(ze||Ye))}function once(ce){var ze=!1;return function(){if(!ze)return ze=!0,ce.apply(this,arguments)}}var noop=function(){};function unique(ce){var ze=[];return ce.forEach((function(ce){-1===ze.indexOf(ce)&&ze.push(ce)})),ze}function isObject(ce){return null!==ce&&"object"==typeof ce}function isPlainObject(ce){if(null===ce||"object"!=typeof ce)return!1;var ze=Object.getPrototypeOf(ce);return ze===Object.prototype||null===ze}function convertToMap(ce){if(isES6Map(ce)||Ci(ce))return ce;if(Array.isArray(ce))return new Map(ce);if(isPlainObject(ce)){var ze=new Map;for(var Ve in ce)ze.set(Ve,ce[Ve]);return ze}return fail("Cannot convert to map from '"+ce+"'")}function addHiddenProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!0,configurable:!0,value:Ve})}function addHiddenFinalProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!1,configurable:!0,value:Ve})}function createInstanceofPredicate(ce,ze){var Ve="isMobX"+ce;return ze.prototype[Ve]=!0,function(ce){return isObject(ce)&&!0===ce[Ve]}}function areBothNaN(ce,ze){return"number"==typeof ce&&"number"==typeof ze&&isNaN(ce)&&isNaN(ze)}function isArrayLike(ce){return Array.isArray(ce)||isObservableArray(ce)}function isES6Map(ce){return void 0!==getGlobal().Map&&ce instanceof getGlobal().Map}function isES6Set(ce){return ce instanceof Set}function iteratorToArray(ce){for(var ze=[];;){var Ve=ce.next();if(Ve.done)break;ze.push(Ve.value)}return ze}function primitiveSymbol(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function toPrimitive(ce){return null===ce?null:"object"==typeof ce?""+ce:ce}function forOf(ce,ze){for(var Ve=ce.next();!Ve.done;)ze(Ve.value),Ve=ce.next()}function iteratorSymbol(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function declareIterator(ce,ze){addHiddenFinalProp(ce,iteratorSymbol(),ze)}function makeIterable(ce){return ce[iteratorSymbol()]=getSelf,ce}function toStringTagSymbol(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function getSelf(){return this}var ot=function(){function Atom(ce){void 0===ce&&(ce="Atom@"+getNextId()),this.name=ce,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Et.NOT_TRACKING}return Atom.prototype.onBecomeUnobserved=function(){},Atom.prototype.onBecomeObserved=function(){},Atom.prototype.reportObserved=function(){return reportObserved(this)},Atom.prototype.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},Atom.prototype.toString=function(){return this.name},Atom}(),st=createInstanceofPredicate("Atom",ot);function createAtom(ce,ze,Ve){void 0===ze&&(ze=noop),void 0===Ve&&(Ve=noop);var qe=new ot(ce);return onBecomeObserved(qe,ze),onBecomeUnobserved(qe,Ve),qe}function identityComparer(ce,ze){return ce===ze}var mt={identity:identityComparer,structural:function structuralComparer(ce,ze){return deepEqual(ce,ze)},default:function defaultComparer(ce,ze){return areBothNaN(ce,ze)||identityComparer(ce,ze)},shallow:function shallowComparer(ce,ze){return deepEqual(ce,ze,1)}},extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,qe=arguments.length;Ve0)&&!(qe=We.next()).done;)Qe.push(qe.value)}catch(ce){Ye={error:ce}}finally{try{qe&&!qe.done&&(Ve=We.return)&&Ve.call(We)}finally{if(Ye)throw Ye.error}}return Qe}function __spread(){for(var ce=[],ze=0;ze2&&incorrectlyUsedAsDecorator("box");var Ve=asCreateObservableOptions(ze);return new Wt(ce,getEnhancerFromOptions(Ve),Ve.name,!0,Ve.equals)},shallowBox:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),xt.box(ce,{name:ze,deep:!1})},array:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("array");var Ve=asCreateObservableOptions(ze);return new Xn(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowArray:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),xt.array(ce,{name:ze,deep:!1})},map:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("map");var Ve=asCreateObservableOptions(ze);return new Ri(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowMap:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),xt.map(ce,{name:ze,deep:!1})},set:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("set");var Ve=asCreateObservableOptions(ze);return new Ei(ce,getEnhancerFromOptions(Ve),Ve.name)},object:function(ce,ze,Ve){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("object"),extendObservable({},ce,ze,asCreateObservableOptions(Ve))},shallowObject:function(ce,ze){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("shallowObject"),xt.object(ce,{},{name:ze,deep:!1})},ref:Dt,shallow:Ct,deep:wt,struct:kt},xt=function createObservable(ce,ze,Ve){if("string"==typeof arguments[1])return wt.apply(null,arguments);if(isObservable(ce))return ce;var qe=isPlainObject(ce)?xt.object(ce,ze,Ve):Array.isArray(ce)?xt.array(ce,ze):isES6Map(ce)?xt.map(ce,ze):isES6Set(ce)?xt.set(ce,ze):ce;if(qe!==ce)return qe;fail(!1)};function incorrectlyUsedAsDecorator(ce){fail("Expected one or two arguments to observable."+ce+". Did you accidentally try to use observable."+ce+" as decorator?")}Object.keys(St).forEach((function(ce){return xt[ce]=St[ce]}));var Et,Pt,Tt=createPropDecorator(!1,(function(ce,ze,Ve,qe,Ye){var We=Ve.get,Qe=Ve.set,Xe=Ye[0]||{};defineComputedProperty(ce,ze,__assign({get:We,set:Qe},Xe))})),Lt=Tt({equals:mt.structural}),Ft=function computed(ce,ze,Ve){if("string"==typeof ze)return Tt.apply(null,arguments);if(null!==ce&&"object"==typeof ce&&1===arguments.length)return Tt.apply(null,arguments);var qe="object"==typeof ze?ze:{};return qe.get=ce,qe.set="function"==typeof ze?ze:qe.set,qe.name=qe.name||ce.name||"",new Qt(qe)};Ft.struct=Lt,function(ce){ce[ce.NOT_TRACKING=-1]="NOT_TRACKING",ce[ce.UP_TO_DATE=0]="UP_TO_DATE",ce[ce.POSSIBLY_STALE=1]="POSSIBLY_STALE",ce[ce.STALE=2]="STALE"}(Et||(Et={})),function(ce){ce[ce.NONE=0]="NONE",ce[ce.LOG=1]="LOG",ce[ce.BREAK=2]="BREAK"}(Pt||(Pt={}));var Bt=function Bt(ce){this.cause=ce};function isCaughtException(ce){return ce instanceof Bt}function shouldCompute(ce){switch(ce.dependenciesState){case Et.UP_TO_DATE:return!1;case Et.NOT_TRACKING:case Et.STALE:return!0;case Et.POSSIBLY_STALE:for(var ze=allowStateReadsStart(!0),Ve=untrackedStart(),qe=ce.observing,Ye=qe.length,We=0;We0;bn.computationDepth>0&&ze&&fail(!1),bn.allowStateChanges||!ze&&"strict"!==bn.enforceActions||fail(!1)}function trackDerivedFunction(ce,ze,Ve){var qe=allowStateReadsStart(!0);changeDependenciesStateTo0(ce),ce.newObserving=new Array(ce.observing.length+100),ce.unboundDepsCount=0,ce.runId=++bn.runId;var Ye,We=bn.trackingDerivation;if(bn.trackingDerivation=ce,!0===bn.disableErrorBoundaries)Ye=ze.call(Ve);else try{Ye=ze.call(Ve)}catch(ce){Ye=new Bt(ce)}return bn.trackingDerivation=We,bindDependencies(ce),0===ce.observing.length&&warnAboutDerivationWithoutDependencies(ce),allowStateReadsEnd(qe),Ye}function warnAboutDerivationWithoutDependencies(ce){}function bindDependencies(ce){for(var ze=ce.observing,Ve=ce.observing=ce.newObserving,qe=Et.UP_TO_DATE,Ye=0,We=ce.unboundDepsCount,Qe=0;Qeqe&&(qe=Xe.dependenciesState)}for(Ve.length=Ye,ce.newObserving=null,We=ze.length;We--;){0===(Xe=ze[We]).diffValue&&removeObserver(Xe,ce),Xe.diffValue=0}for(;Ye--;){var Xe;1===(Xe=Ve[Ye]).diffValue&&(Xe.diffValue=0,addObserver(Xe,ce))}qe!==Et.UP_TO_DATE&&(ce.dependenciesState=qe,ce.onBecomeStale())}function clearObserving(ce){var ze=ce.observing;ce.observing=[];for(var Ve=ze.length;Ve--;)removeObserver(ze[Ve],ce);ce.dependenciesState=Et.NOT_TRACKING}function untracked(ce){var ze=untrackedStart(),Ve=ce();return untrackedEnd(ze),Ve}function untrackedStart(){var ce=bn.trackingDerivation;return bn.trackingDerivation=null,ce}function untrackedEnd(ce){bn.trackingDerivation=ce}function allowStateReadsStart(ce){var ze=bn.allowStateReads;return bn.allowStateReads=ce,ze}function allowStateReadsEnd(ce){bn.allowStateReads=ce}function changeDependenciesStateTo0(ce){if(ce.dependenciesState!==Et.UP_TO_DATE){ce.dependenciesState=Et.UP_TO_DATE;for(var ze=ce.observing,Ve=ze.length;Ve--;)ze[Ve].lowestObserverState=Et.UP_TO_DATE}}var Vt=0,Ht=1,Ut=Object.getOwnPropertyDescriptor((function(){}),"name");Ut&&Ut.configurable;function createAction(ce,ze){var res=function(){return executeAction(ce,ze,this,arguments)};return res.isMobxAction=!0,res}function executeAction(ce,ze,Ve,qe){var Ye=_startAction(ce,Ve,qe);try{return ze.apply(Ve,qe)}catch(ce){throw Ye.error=ce,ce}finally{_endAction(Ye)}}function _startAction(ce,ze,Ve){var qe=isSpyEnabled()&&!!ce,Ye=0;if(qe){Ye=Date.now();var We=Ve&&Ve.length||0,Qe=new Array(We);if(We>0)for(var Xe=0;Xe0&&!ce.__mobxGlobals&&(mn=!1),ce.__mobxGlobals&&ce.__mobxGlobals.version!==(new ln).version&&(mn=!1),mn?ce.__mobxGlobals?(ce.__mobxInstanceCount+=1,ce.__mobxGlobals.UNCHANGED||(ce.__mobxGlobals.UNCHANGED={}),ce.__mobxGlobals):(ce.__mobxInstanceCount=1,ce.__mobxGlobals=new ln):(setTimeout((function(){gn||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new ln)}();function getGlobalState(){return bn}function resetGlobalState(){var ce=new ln;for(var ze in ce)-1===rn.indexOf(ze)&&(bn[ze]=ce[ze]);bn.allowStateChanges=!bn.enforceActions}function hasObservers(ce){return ce.observers&&ce.observers.length>0}function getObservers(ce){return ce.observers}function addObserver(ce,ze){var Ve=ce.observers.length;Ve&&(ce.observersIndexes[ze.__mapid]=Ve),ce.observers[Ve]=ze,ce.lowestObserverState>ze.dependenciesState&&(ce.lowestObserverState=ze.dependenciesState)}function removeObserver(ce,ze){if(1===ce.observers.length)ce.observers.length=0,queueForUnobservation(ce);else{var Ve=ce.observers,qe=ce.observersIndexes,Ye=Ve.pop();if(Ye!==ze){var We=qe[ze.__mapid]||0;We?qe[Ye.__mapid]=We:delete qe[Ye.__mapid],Ve[We]=Ye}delete qe[ze.__mapid]}}function queueForUnobservation(ce){!1===ce.isPendingUnobservation&&(ce.isPendingUnobservation=!0,bn.pendingUnobservations.push(ce))}function startBatch(){bn.inBatch++}function endBatch(){if(0==--bn.inBatch){runReactions();for(var ce=bn.pendingUnobservations,ze=0;ze0&&queueForUnobservation(ce),!1)}function propagateChanged(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.UP_TO_DATE&&(qe.isTracing!==Pt.NONE&&logTraceInfo(qe,ce),qe.onBecomeStale()),qe.dependenciesState=Et.STALE}}}function propagateChangeConfirmed(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.POSSIBLY_STALE?qe.dependenciesState=Et.STALE:qe.dependenciesState===Et.UP_TO_DATE&&(ce.lowestObserverState=Et.UP_TO_DATE)}}}function propagateMaybeChanged(ce){if(ce.lowestObserverState===Et.UP_TO_DATE){ce.lowestObserverState=Et.POSSIBLY_STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var qe=ze[Ve];qe.dependenciesState===Et.UP_TO_DATE&&(qe.dependenciesState=Et.POSSIBLY_STALE,qe.isTracing!==Pt.NONE&&logTraceInfo(qe,ce),qe.onBecomeStale())}}}function logTraceInfo(ce,ze){if(console.log("[mobx.trace] '"+ce.name+"' is invalidated due to a change in: '"+ze.name+"'"),ce.isTracing===Pt.BREAK){var Ve=[];printDepTree(getDependencyTree(ce),Ve,1),new Function("debugger;\n/*\nTracing '"+ce.name+"'\n\nYou are entering this break point because derivation '"+ce.name+"' is being traced and '"+ze.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(ce instanceof Qt?ce.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+Ve.join("\n")+"\n*/\n ")()}}function printDepTree(ce,ze,Ve){ze.length>=1e3?ze.push("(and many more)"):(ze.push(""+new Array(Ve).join("\t")+ce.name),ce.dependencies&&ce.dependencies.forEach((function(ce){return printDepTree(ce,ze,Ve+1)})))}var wn=function(){function Reaction(ce,ze,Ve,qe){void 0===ce&&(ce="Reaction@"+getNextId()),void 0===qe&&(qe=!1),this.name=ce,this.onInvalidate=ze,this.errorHandler=Ve,this.requiresObservable=qe,this.observing=[],this.newObserving=[],this.dependenciesState=Et.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pt.NONE}return Reaction.prototype.onBecomeStale=function(){this.schedule()},Reaction.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,bn.pendingReactions.push(this),runReactions())},Reaction.prototype.isScheduled=function(){return this._isScheduled},Reaction.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(ce){this.reportExceptionInDerivation(ce)}}endBatch()}},Reaction.prototype.track=function(ce){startBatch();var ze,Ve=isSpyEnabled();Ve&&(ze=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var qe=trackDerivedFunction(this,ce,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(qe)&&this.reportExceptionInDerivation(qe.cause),Ve&&spyReportEnd({time:Date.now()-ze}),endBatch()},Reaction.prototype.reportExceptionInDerivation=function(ce){var ze=this;if(this.errorHandler)this.errorHandler(ce,this);else{if(bn.disableErrorBoundaries)throw ce;var Ve="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";bn.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Ve,ce),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:Ve,error:""+ce}),bn.globalReactionErrorHandlers.forEach((function(Ve){return Ve(ce,ze)}))}},Reaction.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},Reaction.prototype.getDisposer=function(){var ce=this.dispose.bind(this);return ce.$mobx=this,ce},Reaction.prototype.toString=function(){return"Reaction["+this.name+"]"},Reaction.prototype.trace=function(ce){void 0===ce&&(ce=!1),trace(this,ce)},Reaction}();function onReactionError(ce){return bn.globalReactionErrorHandlers.push(ce),function(){var ze=bn.globalReactionErrorHandlers.indexOf(ce);ze>=0&&bn.globalReactionErrorHandlers.splice(ze,1)}}var Cn=100,reactionScheduler=function(ce){return ce()};function runReactions(){bn.inBatch>0||bn.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){bn.isRunningReactions=!0;for(var ce=bn.pendingReactions,ze=0;ce.length>0;){++ze===Cn&&(console.error("Reaction doesn't converge to a stable state after "+Cn+" iterations. Probably there is a cycle in the reactive function: "+ce[0]),ce.splice(0));for(var Ve=ce.splice(0),qe=0,Ye=Ve.length;qe",ce):2===arguments.length&&"function"==typeof ze?createAction(ce,ze):1===arguments.length&&"string"==typeof ce?namedActionDecorator(ce):!0!==qe?namedActionDecorator(ze).apply(null,arguments):void(ce[ze]=createAction(ce.name||ze,Ve.value))};function runInAction(ce,ze){return executeAction("string"==typeof ce?ce:ce.name||"","function"==typeof ce?ce:ze,this,void 0)}function isAction(ce){return"function"==typeof ce&&!0===ce.isMobxAction}function defineBoundAction(ce,ze,Ve){addHiddenProp(ce,ze,createAction(ze,Ve.bind(ce)))}function autorun(ce,ze){void 0===ze&&(ze=Qe);var Ve,qe=ze&&ze.name||ce.name||"Autorun@"+getNextId();if(!ze.scheduler&&!ze.delay)Ve=new wn(qe,(function(){this.track(reactionRunner)}),ze.onError,ze.requiresObservable);else{var Ye=createSchedulerFromOptions(ze),We=!1;Ve=new wn(qe,(function(){We||(We=!0,Ye((function(){We=!1,Ve.isDisposed||Ve.track(reactionRunner)})))}),ze.onError,ze.requiresObservable)}function reactionRunner(){ce(Ve)}return Ve.schedule(),Ve.getDisposer()}Tn.bound=function boundActionDecorator(ce,ze,Ve,qe){return!0===qe?(defineBoundAction(ce,ze,Ve.value),null):Ve?{configurable:!0,enumerable:!1,get:function(){return defineBoundAction(this,ze,Ve.value||Ve.initializer.call(this)),this[ze]},set:dontReassignFields}:{enumerable:!1,configurable:!0,set:function(ce){defineBoundAction(this,ze,ce)},get:function(){}}};var run=function(ce){return ce()};function createSchedulerFromOptions(ce){return ce.scheduler?ce.scheduler:ce.delay?function(ze){return setTimeout(ze,ce.delay)}:run}function reaction(ce,ze,Ve){void 0===Ve&&(Ve=Qe),"boolean"==typeof Ve&&(Ve={fireImmediately:Ve});var qe,Ye,We,Xe=Ve.name||"Reaction@"+getNextId(),ot=Tn(Xe,Ve.onError?(qe=Ve.onError,Ye=ze,function(){try{return Ye.apply(this,arguments)}catch(ce){qe.call(this,ce)}}):ze),st=!Ve.scheduler&&!Ve.delay,gt=createSchedulerFromOptions(Ve),yt=!0,bt=!1,vt=Ve.compareStructural?mt.structural:Ve.equals||mt.default,wt=new wn(Xe,(function(){yt||st?reactionRunner():bt||(bt=!0,gt(reactionRunner))}),Ve.onError,Ve.requiresObservable);function reactionRunner(){if(bt=!1,!wt.isDisposed){var ze=!1;wt.track((function(){var Ve=ce(wt);ze=yt||!vt(We,Ve),We=Ve})),yt&&Ve.fireImmediately&&ot(We,wt),yt||!0!==ze||ot(We,wt),yt&&(yt=!1)}}return wt.schedule(),wt.getDisposer()}function onBecomeObserved(ce,ze,Ve){return interceptHook("onBecomeObserved",ce,ze,Ve)}function onBecomeUnobserved(ce,ze,Ve){return interceptHook("onBecomeUnobserved",ce,ze,Ve)}function interceptHook(ce,ze,Ve,qe){var Ye="function"==typeof qe?getAtom(ze,Ve):getAtom(ze),We="function"==typeof qe?qe:Ve,Qe=Ye[ce];return"function"!=typeof Qe?fail(!1):(Ye[ce]=function(){Qe.call(this),We.call(this)},function(){Ye[ce]=Qe})}function configure(ce){var ze=ce.enforceActions,Ve=ce.computedRequiresReaction,qe=ce.computedConfigurable,Ye=ce.disableErrorBoundaries,We=ce.arrayBuffer,Qe=ce.reactionScheduler,Xe=ce.reactionRequiresObservable,ot=ce.observableRequiresReaction;if(!0===ce.isolateGlobalState&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),gn=!0,mn&&(0==--getGlobal().__mobxInstanceCount&&(getGlobal().__mobxGlobals=void 0),bn=new ln)),void 0!==ze){var st=void 0;switch(ze){case!0:case"observed":st=!0;break;case!1:case"never":st=!1;break;case"strict":case"always":st="strict";break;default:fail("Invalid value for 'enforceActions': '"+ze+"', expected 'never', 'always' or 'observed'")}bn.enforceActions=st,bn.allowStateChanges=!0!==st&&"strict"!==st}void 0!==Ve&&(bn.computedRequiresReaction=!!Ve),void 0!==Xe&&(bn.reactionRequiresObservable=!!Xe),void 0!==ot&&(bn.observableRequiresReaction=!!ot,bn.allowStateReads=!bn.observableRequiresReaction),void 0!==qe&&(bn.computedConfigurable=!!qe),void 0!==Ye&&(!0===Ye&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),bn.disableErrorBoundaries=!!Ye),"number"==typeof We&&reserveArrayBuffer(We),Qe&&setReactionScheduler(Qe)}function decorate(ce,ze){var Ve="function"==typeof ce?ce.prototype:ce,_loop_1=function(ce){var qe=ze[ce];Array.isArray(qe)||(qe=[qe]);var Ye=Object.getOwnPropertyDescriptor(Ve,ce),We=qe.reduce((function(ze,qe){return qe(Ve,ce,ze)}),Ye);We&&Object.defineProperty(Ve,ce,We)};for(var qe in ze)_loop_1(qe);return ce}function extendShallowObservable(ce,ze,Ve){return extendObservable(ce,ze,Ve,vt)}function extendObservable(ce,ze,Ve,qe){var Ye=(qe=asCreateObservableOptions(qe)).defaultDecorator||(!1===qe.deep?Dt:wt);initializeInstance(ce),asObservableObject(ce,qe.name,Ye.enhancer),startBatch();try{for(var We=Object.getOwnPropertyNames(ze),Qe=0,Xe=We.length;Qe0&&(ze.dependencies=unique(ce.observing).map(nodeToDependencyTree)),ze}function getObserverTree(ce,ze){return nodeToObserverTree(getAtom(ce,ze))}function nodeToObserverTree(ce){var ze={name:ce.name};return hasObservers(ce)&&(ze.observers=getObservers(ce).map(nodeToObserverTree)),ze}var Ln=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}function isFlowCancellationError(ce){return ce instanceof FlowCancellationError}function flow(ce){1!==arguments.length&&fail("Flow expects one 1 argument and cannot be used as decorator");var ze=ce.name||"";return function(){var Ve,qe=arguments,Ye=++Ln,We=Tn(ze+" - runid: "+Ye+" - init",ce).apply(this,qe),Qe=void 0,Xe=new Promise((function(ce,qe){var Xe=0;function onFulfilled(ce){var Ve;Qe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Xe++,We.next).call(We,ce)}catch(ce){return qe(ce)}next(Ve)}function onRejected(ce){var Ve;Qe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Xe++,We.throw).call(We,ce)}catch(ce){return qe(ce)}next(Ve)}function next(ze){if(!ze||"function"!=typeof ze.then)return ze.done?ce(ze.value):(Qe=Promise.resolve(ze.value)).then(onFulfilled,onRejected);ze.then(next,qe)}Ve=qe,onFulfilled(void 0)}));return Xe.cancel=Tn(ze+" - runid: "+Ye+" - cancel",(function(){try{Qe&&cancelPromise(Qe);var ce=We.return(void 0),ze=Promise.resolve(ce.value);ze.then(noop,noop),cancelPromise(ze),Ve(new FlowCancellationError)}catch(ce){Ve(ce)}})),Xe}}function cancelPromise(ce){"function"==typeof ce.cancel&&ce.cancel()}function interceptReads(ce,ze,Ve){var qe;if(Ci(ce)||isObservableArray(ce)||Jt(ce))qe=getAdministration(ce);else{if(!isObservableObject(ce))return fail(!1);if("string"!=typeof ze)return fail(!1);qe=getAdministration(ce,ze)}return void 0!==qe.dehancer?fail(!1):(qe.dehancer="function"==typeof ze?ze:Ve,function(){qe.dehancer=void 0})}function intercept(ce,ze,Ve){return"function"==typeof Ve?interceptProperty(ce,ze,Ve):interceptInterceptable(ce,ze)}function interceptInterceptable(ce,ze){return getAdministration(ce).intercept(ze)}function interceptProperty(ce,ze,Ve){return getAdministration(ce,ze).intercept(Ve)}function _isComputed(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(!1===isObservableObject(ce))return!1;if(!ce.$mobx.values[ze])return!1;var Ve=getAtom(ce,ze);return en(Ve)}return en(ce)}function isComputed(ce){return arguments.length>1?fail(!1):_isComputed(ce)}function isComputedProp(ce,ze){return"string"!=typeof ze?fail(!1):_isComputed(ce,ze)}function _isObservable(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(isObservableObject(ce)){var Ve=ce.$mobx;return Ve.values&&!!Ve.values[ze]}return!1}return isObservableObject(ce)||!!ce.$mobx||st(ce)||Sn(ce)||en(ce)}function isObservable(ce){return 1!==arguments.length&&fail(!1),_isObservable(ce)}function isObservableProp(ce,ze){return"string"!=typeof ze?fail(!1):_isObservable(ce,ze)}function keys(ce){return isObservableObject(ce)?ce.$mobx.getKeys():Ci(ce)||Oi(ce)?iteratorToArray(ce.keys()):isObservableArray(ce)?ce.map((function(ce,ze){return ze})):fail(!1)}function values(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return ce[ze]})):Ci(ce)?keys(ce).map((function(ze){return ce.get(ze)})):Oi(ce)?iteratorToArray(ce.values()):isObservableArray(ce)?ce.slice():fail(!1)}function entries(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return[ze,ce[ze]]})):Ci(ce)?keys(ce).map((function(ze){return[ze,ce.get(ze)]})):Oi(ce)?iteratorToArray(ce.entries()):isObservableArray(ce)?ce.map((function(ce,ze){return[ze,ce]})):fail(!1)}function set(ce,ze,Ve){if(2!==arguments.length||Oi(ce))if(isObservableObject(ce)){var qe=ce.$mobx;qe.values[ze]?qe.write(ce,ze,Ve):defineObservableProperty(ce,ze,Ve,qe.defaultEnhancer)}else if(Ci(ce))ce.set(ze,Ve);else if(Oi(ce))ce.add(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),startBatch(),ze>=ce.length&&(ce.length=ze+1),ce[ze]=Ve,endBatch()}else{startBatch();var Ye=ze;try{for(var We in Ye)set(ce,We,Ye[We])}finally{endBatch()}}}function remove(ce,ze){if(isObservableObject(ce))ce.$mobx.remove(ze);else if(Ci(ce))ce.delete(ze);else if(Oi(ce))ce.delete(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),ce.splice(ze,1)}}function has(ce,ze){if(isObservableObject(ce)){var Ve=getAdministration(ce);return Ve.getKeys(),!!Ve.values[ze]}return Ci(ce)||Oi(ce)?ce.has(ze):isObservableArray(ce)?ze>=0&&ze0}function registerInterceptor(ce,ze){var Ve=ce.interceptors||(ce.interceptors=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function interceptChange(ce,ze){var Ve=untrackedStart();try{var qe=ce.interceptors;if(qe)for(var Ye=0,We=qe.length;Ye0}function registerListener(ce,ze){var Ve=ce.changeListeners||(ce.changeListeners=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function notifyListeners(ce,ze){var Ve=untrackedStart(),qe=ce.changeListeners;if(qe){for(var Ye=0,We=(qe=qe.slice()).length;Ye0?ce.map(this.dehancer):ce},ObservableArrayAdministration.prototype.intercept=function(ce){return registerInterceptor(this,ce)},ObservableArrayAdministration.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),ze&&ce({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,ce)},ObservableArrayAdministration.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},ObservableArrayAdministration.prototype.setArrayLength=function(ce){if("number"!=typeof ce||ce<0)throw new Error("[mobx.array] Out of range: "+ce);var ze=this.values.length;if(ce!==ze)if(ce>ze){for(var Ve=new Array(ce-ze),qe=0;qe0&&ce+ze+1>Kn&&reserveArrayBuffer(ce+ze+1)},ObservableArrayAdministration.prototype.spliceWithArray=function(ce,ze,Ve){var qe=this;checkIfStateModificationsAreAllowed(this.atom);var Ye=this.values.length;if(void 0===ce?ce=0:ce>Ye?ce=Ye:ce<0&&(ce=Math.max(0,Ye+ce)),ze=1===arguments.length?Ye-ce:null==ze?0:Math.max(0,Math.min(ze,Ye-ce)),void 0===Ve&&(Ve=We),hasInterceptors(this)){var Qe=interceptChange(this,{object:this.array,type:"splice",index:ce,removedCount:ze,added:Ve});if(!Qe)return We;ze=Qe.removedCount,Ve=Qe.added}Ve=0===Ve.length?Ve:Ve.map((function(ce){return qe.enhancer(ce,void 0)}));var Xe=Ve.length-ze;this.updateArrayLength(Ye,Xe);var ot=this.spliceItemsIntoValues(ce,ze,Ve);return 0===ze&&0===Ve.length||this.notifyArraySplice(ce,Ve,ot),this.dehanceValues(ot)},ObservableArrayAdministration.prototype.spliceItemsIntoValues=function(ce,ze,Ve){var qe;if(Ve.length<1e4)return(qe=this.values).splice.apply(qe,__spread([ce,ze],Ve));var Ye=this.values.slice(ce,ce+ze);return this.values=this.values.slice(0,ce).concat(Ve,this.values.slice(ce+ze)),Ye},ObservableArrayAdministration.prototype.notifyArrayChildUpdate=function(ce,ze,Ve){var qe=!this.owned&&isSpyEnabled(),Ye=hasListeners(this),We=Ye||qe?{object:this.array,type:"update",index:ce,newValue:ze,oldValue:Ve}:null;qe&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),Ye&¬ifyListeners(this,We),qe&&spyReportEnd()},ObservableArrayAdministration.prototype.notifyArraySplice=function(ce,ze,Ve){var qe=!this.owned&&isSpyEnabled(),Ye=hasListeners(this),We=Ye||qe?{object:this.array,type:"splice",index:ce,removed:Ve,added:ze,removedCount:Ve.length,addedCount:ze.length}:null;qe&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),Ye&¬ifyListeners(this,We),qe&&spyReportEnd()},ObservableArrayAdministration}(),Xn=function(ce){function ObservableArray(ze,Ve,qe,Ye){void 0===qe&&(qe="ObservableArray@"+getNextId()),void 0===Ye&&(Ye=!1);var We=ce.call(this)||this,Qe=new Zn(qe,Ve,We,Ye);if(addHiddenFinalProp(We,"$mobx",Qe),ze&&ze.length){var Xe=allowStateChangesStart(!0);We.spliceWithArray(0,0,ze),allowStateChangesEnd(Xe)}return Gn&&Object.defineProperty(Qe.array,"0",ei),We}return __extends(ObservableArray,ce),ObservableArray.prototype.intercept=function(ce){return this.$mobx.intercept(ce)},ObservableArray.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),this.$mobx.observe(ce,ze)},ObservableArray.prototype.clear=function(){return this.splice(0)},ObservableArray.prototype.concat=function(){for(var ce=[],ze=0;ze-1&&(this.splice(ze,1),!0)},ObservableArray.prototype.move=function(ce,ze){function checkIndex(ce){if(ce<0)throw new Error("[mobx.array] Index out of bounds: "+ce+" is negative");var ze=this.$mobx.values.length;if(ce>=ze)throw new Error("[mobx.array] Index out of bounds: "+ce+" is not smaller than "+ze)}if(checkIndex.call(this,ce),checkIndex.call(this,ze),ce!==ze){var Ve,qe=this.$mobx.values;Ve=ce6?ot-6:0),mt=6;mt>",Xe=Xe||Ye,null==Ve[Ye]){if(ze){var qe=null===Ve[Ye]?"null":"undefined";return new Error("The "+Qe+" `"+Xe+"` is marked as required in `"+We+"`, but its value is `"+qe+"`.")}return null}return ce.apply(void 0,[Ve,Ye,We,Qe,Xe].concat(st))}))}var ze=checkType.bind(null,!1);return ze.isRequired=checkType.bind(null,!0),ze}function isSymbol(ce,ze){return"symbol"===ce||("Symbol"===ze["@@toStringTag"]||"function"==typeof Symbol&&ze instanceof Symbol)}function getPropType(ce){var ze=_typeof(ce);return Array.isArray(ce)?"array":ce instanceof RegExp?"object":isSymbol(ze,ce)?"symbol":ze}function getPreciseType(ce){var ze=getPropType(ce);if("object"===ze){if(ce instanceof Date)return"date";if(ce instanceof RegExp)return"regexp"}return ze}function createObservableTypeCheckerCreator(ce,ze){return createChainableTypeChecker((function(Ve,Ye,We,Qe,Xe){return Object(qe.untracked)((function(){if(ce&&getPropType(Ve[Ye])===ze.toLowerCase())return null;var Qe;switch(ze){case"Array":Qe=qe.isObservableArray;break;case"Object":Qe=qe.isObservableObject;break;case"Map":Qe=qe.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(ze))}var ot=Ve[Ye];if(!Qe(ot)){var st=getPreciseType(ot),mt=ce?" or javascript `"+ze.toLowerCase()+"`":"";return new Error("Invalid prop `"+Xe+"` of type `"+st+"` supplied to `"+We+"`, expected `mobx.Observable"+ze+"`"+mt+".")}return null}))}))}function createObservableArrayOfTypeChecker(ce,ze){return createChainableTypeChecker((function(Ve,Ye,We,Qe,Xe){for(var ot=arguments.length,st=new Array(ot>5?ot-5:0),mt=5;mt2?qe-2:0),We=2;We2?qe-2:0),We=2;We",We=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;setHiddenProp(this,rn,!1),setHiddenProp(this,ln,!1);var Qe=ce.bind(this),Xe=!1,ot=new qe.Reaction("".concat(Ve,"#").concat(We,".render()"),(function(){if(!Xe&&(Xe=!0,"function"==typeof ze.componentWillReact&&ze.componentWillReact(),!0!==ze[Ht])){var ce=!0;try{setHiddenProp(ze,ln,!0),ze[rn]||Ye.Component.prototype.forceUpdate.call(ze),ce=!1}finally{setHiddenProp(ze,ln,!1),ce&&ot.dispose()}}}));return ot.reactComponent=this,reactiveRender[Vt]=ot,this.render=reactiveRender,reactiveRender.call(this)}var bn={componentWillUnmount:function componentWillUnmount(){if(!0!==Wt&&(this.render[Vt]&&this.render[Vt].dispose(),this[Ht]=!0,Ut)){var ce=findDOMNode$2(this);ce&&Qt&&Qt.delete(ce),en.emit({event:"destroy",component:this,node:ce})}},componentDidMount:function componentDidMount(){Ut&&reportRendering(this)},componentDidUpdate:function componentDidUpdate(){Ut&&reportRendering(this)},shouldComponentUpdate:function shouldComponentUpdate(ce,ze){return Wt&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==ze||!shallowEqual(this.props,ce)}};function makeObservableProp(ce,ze){var Ve=newSymbol("reactProp_".concat(ze,"_valueHolder")),Ye=newSymbol("reactProp_".concat(ze,"_atomHolder"));function getAtom(){return this[Ye]||setHiddenProp(this,Ye,Object(qe.createAtom)("reactive "+ze)),this[Ye]}Object.defineProperty(ce,ze,{configurable:!0,enumerable:!0,get:function get(){return getAtom.call(this).reportObserved(),this[Ve]},set:function set(ce){this[ln]||shallowEqual(this[Ve],ce)?setHiddenProp(this,Ve,ce):(setHiddenProp(this,Ve,ce),setHiddenProp(this,rn,!0),getAtom.call(this).reportChanged(),setHiddenProp(this,rn,!1))}})}function observer(ce,ze){if("string"==typeof ce)throw new Error("Store names should be provided as array");if(Array.isArray(ce))return Jt||(Jt=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),ze?inject.apply(null,ce)(observer(ze)):function(ze){return observer(ce,ze)};var Ve=ce;if(!0===Ve.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Ve.__proto__===Ye.PureComponent&&console.warn("Mobx observer: You are using 'observer' on React.PureComponent. These two achieve two opposite goals and should not be used together"),mn&&Ve.$$typeof===mn){var qe=Ve.render;if("function"!=typeof qe)throw new Error("render property of ForwardRef was not a function");return Object(Ye.forwardRef)((function ObserverForwardRef(){var ce=arguments;return We.a.createElement(wn,null,(function(){return qe.apply(void 0,ce)}))}))}if(!("function"!=typeof Ve||Ve.prototype&&Ve.prototype.render||Ve.isReactClass||Ye.Component.isPrototypeOf(Ve))){var Qe,Xe,ot=observer((Xe=Qe=function(ce){function _class(){return _classCallCheck(this,_class),_possibleConstructorReturn(this,_getPrototypeOf(_class).apply(this,arguments))}return _inherits(_class,ce),_createClass(_class,[{key:"render",value:function render(){return Ve.call(this,this.props,this.context)}}]),_class}(Ye.Component),Qe.displayName=Ve.displayName||Ve.name,Qe.contextTypes=Ve.contextTypes,Qe.propTypes=Ve.propTypes,Qe.defaultProps=Ve.defaultProps,Xe));return kt(ot,Ve),ot}if(!Ve)throw new Error("Please pass a valid component to 'observer'");var st=Ve.prototype||Ve;mixinLifecycleEvents(st),Ve.isMobXReactObserver=!0,makeObservableProp(st,"props"),makeObservableProp(st,"state");var mt=st.render;return st.render=function(){return makeComponentReactive.call(this,mt)},Ve}function mixinLifecycleEvents(ce){["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(ze){patch$1(ce,ze)})),ce.shouldComponentUpdate?ce.shouldComponentUpdate!==bn.shouldComponentUpdate&&console.warn("Use `shouldComponentUpdate` in an `observer` based component breaks the behavior of `observer` and might lead to unexpected results. Manually implementing `sCU` should not be needed when using mobx-react."):ce.shouldComponentUpdate=bn.shouldComponentUpdate}var wn=observer((function(ce){var ze=ce.children,Ve=ce.inject,qe=ce.render,Ye=ze||qe;if(void 0===Ye)return null;if(!Ve)return Ye();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var Qe=inject(Ve)(Ye);return We.a.createElement(Qe,null)}));wn.displayName="Observer";var Cn=function ObserverPropsCheck(ce,ze,Ve,qe,Ye){var We="children"===ze?"render":"children";return"function"==typeof ce[ze]&&"function"==typeof ce[We]?new Error("Invalid prop,do not use children and render in the same time in`"+Ve):"function"!=typeof ce[ze]&&"function"!=typeof ce[We]?new Error("Invalid prop `"+Ye+"` of type `"+_typeof(ce[ze])+"` supplied to `"+Ve+"`, expected `function`."):void 0};function componentWillMount(){var ce=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=ce&&this.setState(ce)}function componentWillReceiveProps(ce){this.setState(function updater(ze){var Ve=this.constructor.getDerivedStateFromProps(ce,ze);return null!=Ve?Ve:null}.bind(this))}function componentWillUpdate(ce,ze){try{var Ve=this.props,qe=this.state;this.props=ce,this.state=ze,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ve,qe)}finally{this.props=Ve,this.state=qe}}wn.propTypes={render:Cn,children:Cn},componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var Sn={children:!0,key:!0,ref:!0},En=function(ce){function Provider(ce,ze){var Ve;return _classCallCheck(this,Provider),(Ve=_possibleConstructorReturn(this,_getPrototypeOf(Provider).call(this,ce,ze))).state={},copyStores(ce,Ve.state),Ve}return _inherits(Provider,ce),_createClass(Provider,[{key:"render",value:function render(){return Ye.Children.only(this.props.children)}},{key:"getChildContext",value:function getChildContext(){var ce={};return copyStores(this.context.mobxStores,ce),copyStores(this.props,ce),{mobxStores:ce}}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){if(!ce)return null;if(!ze)return ce;if(Object.keys(ce).filter(validStoreName).length!==Object.keys(ze).filter(validStoreName).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!ce.suppressChangedStoreWarning)for(var Ve in ce)validStoreName(Ve)&&ze[Ve]!==ce[Ve]&&console.warn("MobX Provider: Provided store '"+Ve+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return ce}}]),Provider}(Ye.Component);function copyStores(ce,ze){if(ce)for(var Ve in ce)validStoreName(Ve)&&(ze[Ve]=ce[Ve])}function validStoreName(ce){return!Sn[ce]&&"suppressChangedStoreWarning"!==ce}En.contextTypes={mobxStores:xt},En.childContextTypes={mobxStores:xt.isRequired},function polyfill(ce){var ze=ce.prototype;if(!ze||!ze.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof ce.getDerivedStateFromProps&&"function"!=typeof ze.getSnapshotBeforeUpdate)return ce;var Ve=null,qe=null,Ye=null;if("function"==typeof ze.componentWillMount?Ve="componentWillMount":"function"==typeof ze.UNSAFE_componentWillMount&&(Ve="UNSAFE_componentWillMount"),"function"==typeof ze.componentWillReceiveProps?qe="componentWillReceiveProps":"function"==typeof ze.UNSAFE_componentWillReceiveProps&&(qe="UNSAFE_componentWillReceiveProps"),"function"==typeof ze.componentWillUpdate?Ye="componentWillUpdate":"function"==typeof ze.UNSAFE_componentWillUpdate&&(Ye="UNSAFE_componentWillUpdate"),null!==Ve||null!==qe||null!==Ye){var We=ce.displayName||ce.name,Qe="function"==typeof ce.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+We+" uses "+Qe+" but also contains the following legacy lifecycles:"+(null!==Ve?"\n "+Ve:"")+(null!==qe?"\n "+qe:"")+(null!==Ye?"\n "+Ye:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof ce.getDerivedStateFromProps&&(ze.componentWillMount=componentWillMount,ze.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof ze.getSnapshotBeforeUpdate){if("function"!=typeof ze.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");ze.componentWillUpdate=componentWillUpdate;var Xe=ze.componentDidUpdate;ze.componentDidUpdate=function componentDidUpdatePolyfill(ce,ze,Ve){var qe=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Xe.call(this,ce,ze,qe)}}return ce}(En);newSymbol("disposeOnUnmount");if(!Ye.Component)throw new Error("mobx-react requires React to be available");if(!qe.spy)throw new Error("mobx-react requires mobx to be available");"function"==typeof Qe.unstable_batchedUpdates&&Object(qe.configure)({reactionScheduler:Qe.unstable_batchedUpdates});if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":_typeof(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Tn={spy:qe.spy,extras:{getDebugName:qe.getDebugName}},Ln={renderReporter:en,componentByNodeRegistry:Qt,componentByNodeRegistery:Qt,trackComponents:function trackComponents(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");Ut||(Ut=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(Ln,Tn)}},function(ce,ze,Ve){(function(ce,qe){var Ye;!function(){var We=ze,Qe=(ce&&ce.exports,"object"==typeof qe&&qe);Qe.global!==Qe&&Qe.window;var Xe="A range’s `stop` value must be greater than or equal to the `start` value.",ot="Invalid code point value. Code points range from U+000000 to U+10FFFF.",st=55296,mt=56319,gt=56320,yt=57343,bt=/\\x00([^0123456789]|$)/g,vt={},wt=vt.hasOwnProperty,forEach=function(ce,ze){for(var Ve=-1,qe=ce.length;++Ve=Ve&&zeVe)return ce;if(ze<=qe&&Ve>=Ye)ce.splice(We,2);else{if(ze>=qe&&Ve=qe&&ze<=Ye)ce[We+1]=ze;else if(Ve>=qe&&Ve<=Ye)return ce[We]=Ve+1,ce;We+=2}}return ce},dataAdd=function(ce,ze){var Ve,qe,Ye=0,We=null,Qe=ce.length;if(ze<0||ze>1114111)throw RangeError(ot);for(;Ye=Ve&&zeze)return ce.splice(null!=We?We+2:0,0,ze,ze+1),ce;if(ze==qe)return ze+1==ce[Ye+2]?(ce.splice(Ye,4,Ve,ce[Ye+3]),ce):(ce[Ye+1]=ze+1,ce);We=Ye,Ye+=2}return ce.push(ze,ze+1),ce},dataAddData=function(ce,ze){for(var Ve,qe,Ye=0,We=ce.slice(),Qe=ze.length;Ye1114111||Ve<0||Ve>1114111)throw RangeError(ot);for(var qe,Ye,We=0,Qe=!1,st=ce.length;WeVe)return ce;qe>=ze&&qe<=Ve&&(Ye>ze&&Ye-1<=Ve?(ce.splice(We,2),We-=2):(ce.splice(We-1,2),We-=2))}else{if(qe==Ve+1||qe==Ve)return ce[We]=ze,ce;if(qe>Ve)return ce.splice(We,0,ze,Ve+1),ce;if(ze>=qe&&ze=qe&&ze=Ye&&(ce[We]=ze,ce[We+1]=Ve+1,Qe=!0)}We+=2}return Qe||ce.push(ze,Ve+1),ce},dataContains=function(ce,ze){var Ve=0,qe=ce.length,Ye=ce[Ve],We=ce[qe-1];if(qe>=2&&(zeWe))return!1;for(;Ve=Ye&&ze=40&&ce<=43||46==ce||47==ce||63==ce||ce>=91&&ce<=94||ce>=123&&ce<=125?"\\"+St(ce):ce>=32&&ce<=126?St(ce):ce<=255?"\\x"+pad(hex(ce),2):"\\u"+pad(hex(ce),4)},codePointToStringUnicode=function(ce){return ce<=65535?codePointToString(ce):"\\u{"+ce.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(ce){var ze,Ve=ce.length,qe=ce.charCodeAt(0);return qe>=st&&qe<=mt&&Ve>1?(ze=ce.charCodeAt(1),1024*(qe-st)+ze-gt+65536):qe},createBMPCharacterClasses=function(ce){var ze,Ve,qe="",Ye=0,We=ce.length;if(dataIsSingleton(ce))return codePointToString(ce[0]);for(;Ye=st&&Ve<=mt&&(We.push(ze,st),qe.push(st,Ve+1)),Ve>=gt&&Ve<=yt&&(We.push(ze,st),qe.push(st,56320),Ye.push(gt,Ve+1)),Ve>yt&&(We.push(ze,st),qe.push(st,56320),Ye.push(gt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>=st&&ze<=mt?(Ve>=st&&Ve<=mt&&qe.push(ze,Ve+1),Ve>=gt&&Ve<=yt&&(qe.push(ze,56320),Ye.push(gt,Ve+1)),Ve>yt&&(qe.push(ze,56320),Ye.push(gt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>=gt&&ze<=yt?(Ve>=gt&&Ve<=yt&&Ye.push(ze,Ve+1),Ve>yt&&(Ye.push(ze,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Qe.push(65536,Ve+1)))):ze>yt&&ze<=65535?Ve<=65535?We.push(ze,Ve+1):(We.push(ze,65536),Qe.push(65536,Ve+1)):Qe.push(ze,Ve+1),Xe+=2;return{loneHighSurrogates:qe,loneLowSurrogates:Ye,bmp:We,astral:Qe}},optimizeSurrogateMappings=function(ce){for(var ze,Ve,qe,Ye,We,Qe,Xe=[],ot=[],st=!1,mt=-1,gt=ce.length;++mt1&&(ce=Dt.call(arguments)),this instanceof regenerate?(this.data=[],ce?this.add(ce):this):(new regenerate).add(ce)};regenerate.version="1.4.2";var xt=regenerate.prototype;!function(ce,ze){var Ve;for(Ve in ze)wt.call(ze,Ve)&&(ce[Ve]=ze[Ve])}(xt,{add:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataAddData(ze.data,ce.data),ze):(arguments.length>1&&(ce=Dt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.add(ce)})),ze):(ze.data=dataAdd(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},remove:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataRemoveData(ze.data,ce.data),ze):(arguments.length>1&&(ce=Dt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.remove(ce)})),ze):(ze.data=dataRemove(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},addRange:function(ce,ze){var Ve=this;return Ve.data=dataAddRange(Ve.data,isNumber(ce)?ce:symbolToCodePoint(ce),isNumber(ze)?ze:symbolToCodePoint(ze)),Ve},removeRange:function(ce,ze){var Ve=this,qe=isNumber(ce)?ce:symbolToCodePoint(ce),Ye=isNumber(ze)?ze:symbolToCodePoint(ze);return Ve.data=dataRemoveRange(Ve.data,qe,Ye),Ve},intersection:function(ce){var ze=this,Ve=ce instanceof regenerate?dataToArray(ce.data):ce;return ze.data=dataIntersection(ze.data,Ve),ze},contains:function(ce){return dataContains(this.data,isNumber(ce)?ce:symbolToCodePoint(ce))},clone:function(){var ce=new regenerate;return ce.data=this.data.slice(0),ce},toString:function(ce){var ze=createCharacterClassesFromData(this.data,!!ce&&ce.bmpOnly,!!ce&&ce.hasUnicodeFlag);return ze?ze.replace(bt,"\\0$1"):"[]"},toRegExp:function(ce){var ze=this.toString(ce&&-1!=ce.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(ze,ce||"")},valueOf:function(){return dataToArray(this.data)}}),xt.toArray=xt.valueOf,void 0===(Ye=function(){return regenerate}.call(ze,Ve,ze,ce))||(ce.exports=Ye)}()}).call(this,Ve(322)(ce),Ve(146))},function(ce,ze,Ve){var qe;!function(){"use strict";var Ve={}.hasOwnProperty;function classNames(){for(var ce="",ze=0;ze{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Qe=Ve(289),Xe=Ve(11);var ot=new class{constructor(){this.observers={}}updateStorageEventListener(){const ce=Object.values(this.observers).flat().length;ce>0&&!this.storageEventListener?(this.storageEventListener=ce=>{ce.key&&this.observers[ce.key]&&this.notifyObservers(ce.key,this.parseValue(ce.newValue))},window.addEventListener("storage",this.storageEventListener)):0===ce&&this.storageEventListener&&window.removeEventListener("storage",this.storageEventListener)}notifyObservers(ce,ze){const Ve=this.observers[ce]||[];for(const ce of Ve)ce(ze)}set(ce,ze){ze?window.localStorage.setItem(ce,JSON.stringify(ze)):window.localStorage.removeItem(ce),this.notifyObservers(ce,ze)}observe(ce,ze,Ve){if(this.observers[ce]||(this.observers[ce]=[]),this.observers[ce].push(ze),this.updateStorageEventListener(),Ve){const Ve=window.localStorage.getItem(ce);ze(this.parseValue(Ve))}return()=>{var Ve;const qe=null===(Ve=this.observers[ce])||void 0===Ve?void 0:Ve.indexOf(ze);qe>-1&&this.observers[ce].splice(qe,1),this.updateStorageEventListener()}}parseValue(ce){try{return ce?JSON.parse(ce):void 0}catch(ce){return}}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ArrowMenu",(function(){return qe.a})),Ve.d(ze,"Backdrop",(function(){return Ye.a})),Ve.d(ze,"Breadcrumb",(function(){return bt})),Ve.d(ze,"Button",(function(){return vt.a})),Ve.d(ze,"ButtonGroup",(function(){return wt.a})),Ve.d(ze,"Checkbox",(function(){return Ct.b})),Ve.d(ze,"CheckboxGroup",(function(){return Ct.a})),Ve.d(ze,"CircleSelection",(function(){return Di})),Ve.d(ze,"CircularProgressbar",(function(){return Ti})),Ve.d(ze,"CroppedText",(function(){return er.a})),Ve.d(ze,"DatePicker",(function(){return tr.a})),Ve.d(ze,"Dialog",(function(){return nr.a})),Ve.d(ze,"Divider",(function(){return rr.a})),Ve.d(ze,"DropdownButton",(function(){return ar.a})),Ve.d(ze,"Email",(function(){return sr.a})),Ve.d(ze,"FileUploadButton",(function(){return Mr})),Ve.d(ze,"Form",(function(){return Lr.a})),Ve.d(ze,"GhostIndicator",(function(){return jr.a})),Ve.d(ze,"Grid",(function(){return Ir.a})),Ve.d(ze,"Heading",(function(){return zr.a})),Ve.d(ze,"Icon",(function(){return Xe.a})),Ve.d(ze,"ImageRectangleSelection",(function(){return Oo})),Ve.d(ze,"InfiniteScroller",(function(){return Bo})),Ve.d(ze,"Input",(function(){return Vo.a})),Ve.d(ze,"Loader",(function(){return Ao.a})),Ve.d(ze,"Matrix",(function(){return Cs})),Ve.d(ze,"Menu",(function(){return Ds.a})),Ve.d(ze,"Masonry",(function(){return rs})),Ve.d(ze,"MultiItemSelection",(function(){return ks.a})),Ve.d(ze,"MultiSelect",(function(){return Ss.a})),Ve.d(ze,"Navigation",(function(){return Dl})),Ve.d(ze,"Number",(function(){return kl.a})),Ve.d(ze,"Overlay",(function(){return Sl.a})),Ve.d(ze,"Phone",(function(){return xl.a})),Ve.d(ze,"Popover",(function(){return El.a})),Ve.d(ze,"PublishIndicator",(function(){return Ol.a})),Ve.d(ze,"QRCode",(function(){return Pl.a})),Ve.d(ze,"RectangleSelection",(function(){return Co})),Ve.d(ze,"ResourceLocator",(function(){return Tl.a})),Ve.d(ze,"SingleSelect",(function(){return Al.a})),Ve.d(ze,"Table",(function(){return Ml.a})),Ve.d(ze,"Tabs",(function(){return Lc})),Ve.d(ze,"Toggler",(function(){return jc.a})),Ve.d(ze,"Toolbar",(function(){return Ic.a})),Ve.d(ze,"Url",(function(){return Fc.a})),Ve.d(ze,"withContainerSize",(function(){return en}));var qe=Ve(66),Ye=Ve(292),We=Ve(0),Qe=Ve.n(We),Xe=Ve(19),ot="item--JBXEuBcQDf";class st extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return Qe.a.createElement("button",{className:ot,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var mt="breadcrumb--jdrCHACx20",gt="arrow--lv7hi+9eWz";class yt extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Qe.a.Children.count(ce);return Qe.a.Children.map(ce,((ce,Ve)=>{const qe=Ve===ze-1;return Qe.a.createElement("li",null,Qe.a.cloneElement(ce,{value:ce.props.value,onClick:qe?void 0:this.handleItemClick}),!qe&&Qe.a.createElement(Xe.a,{className:gt,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Qe.a.createElement("ul",{className:mt},ze)}}yt.Item=st;var bt=yt,vt=Ve(40),wt=Ve(373),Ct=Ve(89),Dt=Ve(3),kt=Ve(1),St=Ve(231),xt=Ve(263),Et="container--baL4m3Gu4c";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en=function withContainerSize_withContainerSize(ce){var ze,Ve,qe,Ye;let We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,Xe=Object(Dt.b)((Ve=class extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",qe,this),_initializerDefineProperty(this,"containerHeight",Ye,this),this.readContainerDimensions=ce=>{Object(xt.a)(Object(kt.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(xt.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return Qe.a.createElement("div",{className:We,ref:this.readContainerDimensions},Qe.a.createElement(ce,ze))}},qe=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ye=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return Xe.displayName=Object(St.a)("withContainerSize",ce),Xe},rn=Ve(5),ln=Ve.n(rn),mn="circle--NnB-qkoymQ",gn="disabled--gKhvmpaZ6r",bn="filled--eLtabihmGu",wn="label--PlOe0erCxd",Cn="resize-handle--WLzLuwLGF0";function ModifiableCircle_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ModifiableCircle_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Sn=Object(Dt.b)((Qt=class extends Qe.a.Component{constructor(){super(...arguments),ModifiableCircle_initializerDefineProperty(this,"moveMode",Lt,this),ModifiableCircle_initializerDefineProperty(this,"resizeMode",Ft,this),ModifiableCircle_initializerDefineProperty(this,"resizeAngle",Bt,this),ModifiableCircle_initializerDefineProperty(this,"clickAnchor",Vt,this),this.setCircleRef=ce=>{this.circleRef=ce},ModifiableCircle_initializerDefineProperty(this,"handleMoveMouseDown",Ht,this),ModifiableCircle_initializerDefineProperty(this,"handleResizeMouseDown",Ut,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseUp",Wt,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseMove",Jt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:qe,left:Ye,skin:We,top:Xe}=this.props,ot=ze||0!==qe?2*qe:30,st=0===qe?14:5*Math.sqrt(qe),mt=ln()(mn,{[gn]:ce,[bn]:"filled"===We});return Qe.a.createElement("div",{className:mt,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:Ye+"px",top:Xe+"px",width:ot+"px",height:ot+"px"}},!!Ve&&Qe.a.createElement("div",{className:wn,style:{fontSize:`${st}px`}},Ve),!!ze&&!ce&&Qe.a.createElement("div",{className:Cn,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*qe}px) 50%`,transform:`translate(calc(-50% + ${qe}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},Qt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},Lt=ModifiableCircle_applyDecoratedDescriptor((Tt=Qt).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ft=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeAngle",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Tt.prototype,"setClickAnchor"),Tt.prototype),Ht=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Ut=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Wt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Jt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let qe=0,Ye=0,We=0;if(this.moveMode&&(qe=ce.pageX-this.clickAnchor.pageX,Ye=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),qe=ze.left+ze.width/2,Ye=ze.top+ze.height/2,{clientX:Qe,clientY:Xe}=ce,ot=Qe-qe,st=Xe-Ye;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:qe,top:Ye,radius:We})}}}),Pt=Tt))||Pt;var En=Sn;class Tn{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Ln{normalize(ce){const{left:ze,top:Ve,radius:qe=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(qe)}}}class Fn{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(qe,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const qe=Math.sqrt(ze**2+Ve**2);return void 0===ce?qe:Math.min(ce,qe)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Yn,Un,Gn,Kn="container--x72g+zGssO",Jn="selection--1sIfZsGxj7";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Zn=Object(Dt.b)((Gn=class ce extends Qe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:qe,minRadius:Ye,round:We,resizable:Qe}=ce;if(!ze||!Ve)return[];const Xe=[new Tn(ze,Ve)];return Qe&&Xe.push(new Fn(ze,Ve,qe,Ye)),We&&Xe.push(new Ln),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:qe}=this.props,Ye=Ve?Math.min(ce,ze)/2:qe&&qe.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:Ye}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:qe,resizable:Ye,skin:We}=this.props,{left:Xe,top:ot,radius:st}=this.value,mt=Qe.a.createElement(En,{disabled:ze,label:Ve,left:Xe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:qe,radius:st,resizable:Ye,skin:We,top:ot});return ce?Qe.a.createElement("div",{className:Jn},ce,mt):mt}},Gn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((Un=Gn).prototype,"value",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"value"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"normalizers",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"normalizers"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"maximumSelection",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"maximumSelection"),Un.prototype),Yn=Un))||Yn;const Xn=function withPercentageValues(ce){var ze,Ve,qe;let Ye=Object(Dt.b)((qe=class extends Qe.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:qe}=this.props;qe(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return Qe.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return Qe.a.createElement(ce,Ve)}},qe.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMaxRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(St.a)("withPercentageValues",ce),Ye}(Zn);class ei extends Qe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Qe.a.createElement(Xn,this.props):Qe.a.createElement(Zn,this.props)}}const si=en(ei,Kn);class _i extends Qe.a.Component{render(){const{children:ce}=this.props;return ce?Qe.a.createElement(si,this.props):Qe.a.createElement(ei,this.props)}}_i.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1};var Ri,Ci,Di=_i,Ei=Ve(666),Oi={root:"root--yJll1ztQzl",path:"path--swUm4jqYBg",trail:"trail--6CBMlsbgTS",text:"text--90c8fP1XQV",background:"background--nDHRRoQPng"};var Ti=((Ci=class extends Qe.a.PureComponent{get percentageText(){const{hidePercentageText:ce,percentage:ze}=this.props;return ce?null:`${ze}%`}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Qe.a.createElement("div",{style:Ve},Qe.a.createElement(Ei.a,{background:!0,classes:{root:Oi.root,path:Oi.path,tail:Oi.tail,text:Oi.text,background:Oi.background},text:this.percentageText,value:ze}))}}).defaultProps={hidePercentageText:!1,percentage:0,size:100},function CircularProgressbar_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Ri=Ci).prototype,"percentageText",[kt.computed],Object.getOwnPropertyDescriptor(Ri.prototype,"percentageText"),Ri.prototype),Ri),er=Ve(196),tr=Ve(331),nr=Ve(101),rr=Ve(573),ar=Ve(789),sr=Ve(629),lr=Ve(227);class dr extends Qe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe,accept:Ye}=this.props;return Qe.a.createElement(lr.a,{accept:Ye,onDrop:this.handleDrop,style:{}},(Ye=>{let{getInputProps:We,getRootProps:Xe}=Ye;return Qe.a.createElement("div",Xe(),Qe.a.createElement(vt.a,{disabled:ze,icon:Ve,skin:qe},ce),Qe.a.createElement("input",We()))}))}}dr.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0};var ur,pr,vr,_r,Rr,Cr,Dr,Er,Tr,Ar,Mr=dr,Lr=Ve(73),jr=Ve(374),Ir=Ve(164),zr=Ve(574),Br=Ve(9),Nr=Ve.n(Br),Vr=Ve(11),Hr="rectangle--066hwsjKmr",qr="disabled--gHK2SgRPMj",Yr="has-backdrop--GXF0k4lKKe",Ur="backdrop--3-j6ARYoaR",Wr="label--H0eMjOOEFh",$r="resize-handle--JBEXrm+Q04",Gr="min-size-notification--wAux9Bhk8a";function ModifiableRectangle_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ModifiableRectangle_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Kr=Object(Dt.b)((Ar=class extends Qe.a.Component{constructor(){super(...arguments),ModifiableRectangle_initializerDefineProperty(this,"moveMode",vr,this),ModifiableRectangle_initializerDefineProperty(this,"resizeMode",_r,this),ModifiableRectangle_initializerDefineProperty(this,"clickAnchor",Rr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMoveMouseDown",Cr,this),ModifiableRectangle_initializerDefineProperty(this,"handleResizeMouseDown",Dr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseUp",Er,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseMove",Tr,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:qe,left:Ye,minSizeReached:Xe,top:ot,width:st}=this.props,mt=ln()(Hr,{[qr]:ze,[Yr]:!!ce});return Qe.a.createElement(We.Fragment,null,Qe.a.createElement("div",{className:mt,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:Ye+"px",top:ot+"px",width:st+"px",height:Ve+"px"}},!!ce&&Qe.a.createElement("div",{className:Ur,style:{outlineWidth:ce+"px"}}),!!qe&&Qe.a.createElement("div",{className:Wr,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},qe),!ze&&Qe.a.createElement("div",{className:$r,onMouseDown:this.handleResizeMouseDown,role:"slider"})),Xe&&Qe.a.createElement("div",{className:Gr,style:{left:Ye+"px",top:ot+Ve+"px",width:st+"px"}},Object(Vr.b)("sulu_media.min_size_notification")))}},Ar.defaultProps={backdropSize:0,left:0,top:0},vr=ModifiableRectangle_applyDecoratedDescriptor((pr=Ar).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_r=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Rr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(pr.prototype,"setClickAnchor"),pr.prototype),Cr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Dr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Er=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Tr=ModifiableRectangle_applyDecoratedDescriptor(pr.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,qe=0,Ye=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:qe,width:Ye,height:We}))}}}),ur=pr))||ur;var Jr=Kr;class Zr{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class ga{constructor(ce,ze,Ve,qe){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze,Ve=ce.height;const qe=Ve*(this.minWidth/this.minHeight);return qe>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=qe,{...ce,width:ze,height:Ve}}}class ya{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class ba{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}function RectangleSelection_withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var va,_a,wa,ka="container--U70ucJ+wc+",xa="selection--m+Q1xuG3wW";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Aa=Object(Dt.b)((wa=class ce extends Qe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:qe,minHeight:Ye,round:We}=ce;if(!ze||!Ve)return[];const Qe=[new ba(ze,Ve,qe,Ye)];return qe&&Ye&&Qe.push(new ga(ze,Ve,qe,Ye)),Qe.push(new Zr(ze,Ve)),We&&Qe.push(new ya),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:qe}=this.props;ze(ce?{...ce,left:ce.left/qe,top:ce.top/Ve,width:ce.width/qe,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return Qe.a.createElement(ce,ze)}},qe.defaultProps={minHeight:void 0,minWidth:void 0},RectangleSelection_withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(St.a)("withPercentageValues",ce),Ye}(Aa);class Ja extends Qe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Qe.a.createElement(Ba,this.props):Qe.a.createElement(Aa,this.props)}}const io=en(Ja,ka);class po extends Qe.a.Component{render(){const{children:ce}=this.props;return ce?Qe.a.createElement(io,this.props):Qe.a.createElement(Ja,this.props)}}po.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1};var ho,go,_o,Co=po;function ImageRectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ko=Object(Dt.b)((go=class extends Qe.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="imageLoaded",Ye=this,(qe=_o)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(kt.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>Nr.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:qe}=this.props;let Ye=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return Ye&&Ye>Ve&&(Ye=Ve,We=ze&&ce?Ye*ze/ce:void 0),We&&We>qe&&(We=qe,Ye=ce&&ze?We*ce/ze:void 0),{width:We,height:Ye}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return Qe.a.createElement(Co,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},Qe.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},_o=ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"imageLoaded",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledImageHeight",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledImageHeight"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledImageWidth",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledImageWidth"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinDimensions",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinDimensions"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinWidth"),go.prototype),ImageRectangleSelection_applyDecoratedDescriptor(go.prototype,"scaledMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(go.prototype,"scaledMinHeight"),go.prototype),ho=go))||ho;var Oo=en(ko,"container--Vv0ZpcwdCq"),Po=Ve(51),To=Ve.n(Po),Ao=Ve(54),jo="indicator--KaLifLf2++";class Fo extends Qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=To()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:qe}=this.scrollContainer.getBoundingClientRect(),{bottom:Ye}=ce.getBoundingClientRect();if(Ye-qe<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:qe}=this.props;let Ye=null;return Ve?Ye=Qe.a.createElement(Ao.a,null):ze===ce&&(Ye=Object(Vr.b)("sulu_admin.reached_end_of_list")),Qe.a.createElement("section",{ref:this.setRef},Qe.a.createElement("div",null,qe),Qe.a.createElement("div",{className:jo},Ye))}}Fo.defaultProps={loading:!1};var Bo=Fo,Vo=Ve(48),Ho=Ve(667),Uo=Ve.n(Ho),Wo=Ve(668),$o=Ve.n(Wo),es="masonry--AWozSpqC-B";const ts={gutter:30,transitionDuration:250};class ns extends Qe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new $o.a(this.masonryRef,ts),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:ts.gutter};return Qe.a.Children.map(ce,(ce=>Qe.a.createElement("li",{style:ze},Qe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),qe=ze.filter((ze=>!ce.includes(ze)));let Ye=0;const We=Ve.filter((ze=>{const Ve=Ye===ce.indexOf(ze);return Ve&&Ye++,Ve})),Qe=Ve.filter((ce=>!We.includes(ce)));qe.length>0&&this.masonry.remove(qe),Qe.length>0&&this.masonry.appended(Qe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(qe.length>0||Qe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Uo()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Qe.a.createElement("ul",{className:es,ref:this.setMasonryRef},ze)}}var rs=ns,os=Ve(6),ss="item--xqojrTMDhX",ls="selected--dRsgDHpFpR",cs="disabled--sAd25lN6SW";class ds extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:qe,value:Ye}=this.props,We=ln()(ss,{[ls]:Ye,[cs]:ce}),ot=qe||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Qe.a.createElement("button",{className:We,onClick:ce?void 0:this.handleClick,title:ot,type:"button"},Qe.a.createElement(Xe.a,{name:ze}))}}ds.defaultProps={disabled:!1,value:!1};var us,ps,hs,fs="row--aSlrhfNwZ1",ms="name--XxJtvn4FEr",gs="items--pLW+pKD8EA",ys="row-button--MQ+s7gSvc-";let bs=Object(Dt.b)((hs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe,values:Ye}=this.props;if(!qe)return;const We={...Ye};We[ce]=ze,qe(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return Qe.a.Children.map(ce,((ce,qe)=>Qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${qe}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const qe={};Qe.a.Children.map(ce,(ce=>{qe[ce.props.name]=this.allItemsDeactivated})),Ve(ze,qe)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return Qe.a.createElement("button",{className:ys,onClick:this.handleAllButtonClick,type:"button"},Object(os.translate)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:qe}=this.props;return Qe.a.createElement("tr",{className:fs},Qe.a.createElement("td",{className:ms},qe||Ve),Qe.a.createElement("td",{className:gs},this.cloneItems(ze),!ce&&this.renderAllButton()))}},hs.defaultProps={disabled:!1,values:{}},function Row_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((ps=hs).prototype,"allItemsDeactivated",[kt.computed],Object.getOwnPropertyDescriptor(ps.prototype,"allItemsDeactivated"),ps.prototype),us=ps))||us;var vs=bs,_s="matrix--AvkqDmcoBh",ws="disabled--ctmi-wsXx1";class Rs extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:qe}=this.props,Ye={...qe};Ye[ce]=ze,Ve(Ye)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return Qe.a.Children.map(ce,((ce,qe)=>Qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${qe}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,qe=ln()(_s,ze,{[ws]:Ve});return Qe.a.createElement("table",{className:qe},Qe.a.createElement("tbody",null,this.cloneRows(ce)))}}Rs.defaultProps={disabled:!1,values:{}},Rs.Row=vs,Rs.Item=ds;var Cs=Rs,Ds=Ve(330),ks=Ve(305),Ss=Ve(201),xs="item--OZf49536VS",Es="active--7AESPQFbWN",Os="title--pwfeVsTsX8",Ps="icon--VGpoIA5pHd",Ts="text--QSD5XTiAMJ",As="children-indicator--+ALd8XzkJU";class Ms extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:qe}=this.props;let{active:Ye}=this.props;ze&&Qe.a.Children.forEach(ze,(ce=>{ce.props.active&&(Ye=!0)}));const We=ln()(xs,{[Es]:Ye});return Qe.a.createElement("div",{className:We},Qe.a.createElement("button",{className:Os,onClick:this.handleClick,type:"button"},qe&&Qe.a.createElement(Xe.a,{className:Ps,name:qe}),Qe.a.createElement("span",{className:Ts},ce),ze&&Qe.a.createElement(Xe.a,{className:As,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Qe.a.createElement("div",null,ze))}}var Ls,js,Is,zs,Fs,Bs="navigation--8H2kpS4qdT",Ns="header--EP70Fxerc5",Vs="logo--JGrymgcOg0",Hs="pin--H9rumr9SnA",qs="active--uqqICUi6mh",Ys="pin-icon--CQ9DYaBJoV",Us="items--wUmdQ3WTD-",Ws="footer--KYLSJTz8-J",$s="user-section--B6KDHCygo4",Gs="button--1Ce5e4ygu1",Ks="active--BOepQBpCBt",Js="user-image--igQVt-0Nnf",Zs="image--Lt+8aE7b1z",Qs="placeholder--+LSyot+SQF",Xs="username--hvs-izEVXU",pl="menu--XI3C9Cf-03",gl="open--1k+3dWcBsr",yl="menu-button--HpNB4yCgZB";function UserSection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function UserSection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let bl=Object(Dt.b)((js=class extends Qe.a.Component{constructor(){super(...arguments),UserSection_initializerDefineProperty(this,"open",Is,this),UserSection_initializerDefineProperty(this,"handleButtonClick",zs,this),UserSection_initializerDefineProperty(this,"close",Fs,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ln()(pl,this.open&&gl),qe=ln()(Gs,this.open&&Ks);return Qe.a.createElement("div",{className:$s},Qe.a.createElement("button",{className:qe,onClick:this.handleButtonClick,type:"button"},Qe.a.createElement("div",{className:Js},ze&&Qe.a.createElement("img",{alt:ce,className:Zs,src:ze,title:ce}),!ze&&Qe.a.createElement(Xe.a,{className:Qs,name:"su-user"})),Qe.a.createElement("span",{className:Xs},ce),Qe.a.createElement(Xe.a,{name:this.open?"su-angle-down":"su-angle-up"})),Qe.a.createElement("div",{className:Ve,hidden:!this.open},Qe.a.createElement(vt.a,{className:yl,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(os.translate)("sulu_admin.edit_profile")),Qe.a.createElement(vt.a,{className:yl,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(os.translate)("sulu_admin.logout"))))}},Is=UserSection_applyDecoratedDescriptor(js.prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zs=UserSection_applyDecoratedDescriptor(js.prototype,"handleButtonClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Fs=UserSection_applyDecoratedDescriptor(js.prototype,"close",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ls=js))||Ls;var vl,_l,wl,Rl,Cl=bl;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Dl=Object(Dt.b)(((Rl=class extends Qe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="expandedChild",Ye=this,(qe=wl)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;Qe.a.Children.forEach(ce,(ce=>{ce.props.children&&Qe.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return Qe.a.Children.map(this.props.children,(ce=>Qe.a.cloneElement(ce,{children:ce.props.children?Qe.a.Children.map(ce.props.children,(ce=>{if(ce)return Qe.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:qe,onProfileClick:Ye,suluVersion:We,onPinToggle:ot}=this.props,st=ln()(Hs,{[qs]:ce});return Qe.a.createElement("div",{className:Bs},Qe.a.createElement("div",{className:Ns},Qe.a.createElement("span",{className:Vs,title:We},Qe.a.createElement(Xe.a,{name:"su-sulu-logo"})),ot&&Qe.a.createElement("button",{className:st,onClick:this.handlePinToggle,type:"button"},Qe.a.createElement(Xe.a,{className:Ys,name:"su-stick-right"}))),Qe.a.createElement("div",{className:Us},this.cloneChildren()),Qe.a.createElement("div",{className:Ws},Qe.a.createElement(Cl,{onLogoutClick:qe,onProfileClick:Ye,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},Rl.Item=Ms,wl=Navigation_applyDecoratedDescriptor((_l=Rl).prototype,"expandedChild",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(_l.prototype,"setExpandedChild",[kt.action],Object.getOwnPropertyDescriptor(_l.prototype,"setExpandedChild"),_l.prototype),vl=_l))||vl,kl=Ve(380),Sl=Ve(131),xl=Ve(630),El=Ve(118),Ol=Ve(173),Pl=Ve(575),Tl=Ve(576),Al=Ve(32),Ml=Ve(94),Ll={tab:"tab--rWvejpn6nW",selected:"selected--syqy7rGSiD",hidden:"hidden--g+9vlGHUBA",inline:"inline--RUXsRQRjRM",badges:"badges---IFZroBxKO"};class jl extends Qe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:qe,selected:Ye}=this.props,We=ln()(Ll.tab,Ll[qe],{[Ll.hidden]:Ve,[Ll.selected]:Ye});return Qe.a.createElement("li",{className:We,ref:this.setTabRef},Qe.a.createElement("button",{disabled:Ye,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Qe.a.createElement("div",{className:Ll.badges},ce)))}}jl.defaultProps={badges:[],hidden:!1,selected:!1};var Il=jl,zl="collapsed-tab--HFh4Nvw6ES";class Fl extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Qe.a.createElement("li",{className:zl},Qe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var Bl={"collapsed-tab-list":"collapsed-tab-list--YnrB-ina1D",collapsedTabList:"collapsed-tab-list--YnrB-ina1D",root:"root--v1XyosJxtJ",inline:"inline--5hFyCj368E"};class Nl extends Qe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ln()(Bl.collapsedTabList,Bl[ze]);return Qe.a.createElement("ul",{className:Ve},ce)}}var Vl,Hl,Ul,Wl,$l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc={tabs:"tabs--7jNP0Rq1U-",inline:"inline--8YKYizyuDD",nested:"nested--UoGl0eqIyL","tabs-container-wrapper":"tabs-container-wrapper--OyQXhuN19b",tabsContainerWrapper:"tabs-container-wrapper--OyQXhuN19b",button:"button--kvUJ+UhDPg","tabs-container":"tabs-container--+3Mb+dH9Db",tabsContainer:"tabs-container--+3Mb+dH9Db"};function Tabs_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Tabs_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Mc=Object(Dt.b)((Ec=class extends Qe.a.Component{constructor(){super(...arguments),Tabs_initializerDefineProperty(this,"tabsWidth",Ul,this),Tabs_initializerDefineProperty(this,"tabsContainerWrapperWidth",Wl,this),Tabs_initializerDefineProperty(this,"tabsContainerWidth",$l,this),Tabs_initializerDefineProperty(this,"tabWidths",ec,this),Tabs_initializerDefineProperty(this,"tabRefs",nc,this),Tabs_initializerDefineProperty(this,"dropdownOpen",ic,this),Tabs_initializerDefineProperty(this,"lastSelectedIndex",oc,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},Tabs_initializerDefineProperty(this,"setTabsWidth",lc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWrapperWidth",pc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWidth",hc,this),Tabs_initializerDefineProperty(this,"updateTabWidths",fc,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},Tabs_initializerDefineProperty(this,"setTabRef",mc,this),Tabs_initializerDefineProperty(this,"handleDropdownToggle",gc,this),Tabs_initializerDefineProperty(this,"handleDropdownClose",_c,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},Tabs_initializerDefineProperty(this,"handleCollapsedTabClick",kc,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Qe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(Qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(To()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return Qe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const qe=this.childIndices;qe.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of qe){const qe=this.tabWidths.get(ce);if(void 0===qe){if(Ve.length>0)break;return this.childIndices}if(ze+qe>this.tabsContainerWrapperWidth)break;ze+=qe,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:qe}=this.props;return Qe.a.Children.map(ce,((ce,Ye)=>{const We=ze[Ye];if(!ce)return null;const Xe=this.isSelected(We);return Qe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:We,selected:Xe,type:qe,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Qe.a.Children.map(ce,((ce,Ve)=>{const qe=ze[Ve];return ce?Qe.a.createElement(Fl,{index:qe,key:qe,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ln()(Oc.tabs,Oc[ce],ze);return Qe.a.createElement("div",{className:Ve,ref:this.setTabsRef},Qe.a.createElement("div",{className:Oc.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Qe.a.createElement("ul",{className:Oc.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Qe.a.createElement(Qe.a.Fragment,null,Qe.a.createElement("button",{className:Oc.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Qe.a.createElement(Xe.a,{name:"su-more-horizontal"})),Qe.a.createElement(El.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Qe.a.createElement("div",{ref:ze,style:Ve},Qe.a.createElement(Nl,{type:ce},this.createCollapsedTabs()))))))}},Ec.Tab=Il,Ul=Tabs_applyDecoratedDescriptor((Hl=Ec).prototype,"tabsWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Wl=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabsContainerWrapperWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$l=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabsContainerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabWidths",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),nc=Tabs_applyDecoratedDescriptor(Hl.prototype,"tabRefs",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ic=Tabs_applyDecoratedDescriptor(Hl.prototype,"dropdownOpen",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oc=Tabs_applyDecoratedDescriptor(Hl.prototype,"lastSelectedIndex",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),pc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsContainerWrapperWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),hc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabsContainerWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),fc=Tabs_applyDecoratedDescriptor(Hl.prototype,"updateTabWidths",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),mc=Tabs_applyDecoratedDescriptor(Hl.prototype,"setTabRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),gc=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleDropdownToggle",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),_c=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleDropdownClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),kc=Tabs_applyDecoratedDescriptor(Hl.prototype,"handleCollapsedTabClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),Tabs_applyDecoratedDescriptor(Hl.prototype,"visibleTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"visibleTabIndices"),Hl.prototype),Tabs_applyDecoratedDescriptor(Hl.prototype,"collapsedTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"collapsedTabIndices"),Hl.prototype),Tabs_applyDecoratedDescriptor(Hl.prototype,"hasCollapsedTabs",[kt.computed],Object.getOwnPropertyDescriptor(Hl.prototype,"hasCollapsedTabs"),Hl.prototype),Vl=Hl))||Vl;var Lc=Mc,jc=Ve(162),Ic=Ve(145),Fc=Ve(375)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return logWarning}));const qe="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class Ye extends Error{constructor(ce,ze,Ve){super(getErrorMessage(ce,Ve)),this.name="CKEditorError",this.context=ze,this.data=Ve}is(ce){return"CKEditorError"===ce}static rethrowUnexpectedError(ce,ze){if(ce.is&&ce.is("CKEditorError"))throw ce;const Ve=new Ye(ce.message,ze);throw Ve.stack=ce.stack,Ve}}function logWarning(ce,ze){console.warn(...formatConsoleArguments(ce,ze))}function getLinkToDocumentationMessage(ce){return`\nRead more: ${qe}#error-${ce}`}function getErrorMessage(ce,ze){const Ve=new WeakSet;return ce+(ze?` ${JSON.stringify(ze,((ce,ze)=>{if("object"==typeof ze&&null!==ze){if(Ve.has(ze))return`[object ${ze.constructor.name}]`;Ve.add(ze)}return ze}))}`:"")+getLinkToDocumentationMessage(ce)}function formatConsoleArguments(ce,ze){const Ve=getLinkToDocumentationMessage(ce);return ze?[ce,ze,Ve]:[ce,Ve]}},function(ce,ze,Ve){var qe,Ye;!function(){"use strict";qe=function(){var noop=function(){},ce="undefined",ze=typeof window!==ce&&typeof window.navigator!==ce&&/Trident\/|MSIE /.test(window.navigator.userAgent),Ve=["trace","debug","info","warn","error"],qe={},Ye=null;function bindMethod(ce,ze){var Ve=ce[ze];if("function"==typeof Ve.bind)return Ve.bind(ce);try{return Function.prototype.bind.call(Ve,ce)}catch(ze){return function(){return Function.prototype.apply.apply(Ve,[ce,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function realMethod(Ve){return"debug"===Ve&&(Ve="log"),typeof console!==ce&&("trace"===Ve&&ze?traceForIE:void 0!==console[Ve]?bindMethod(console,Ve):void 0!==console.log?bindMethod(console,"log"):noop)}function replaceLoggingMethods(){for(var ze=this.getLevel(),qe=0;qe=0&&ze<=st.levels.SILENT)return ze;throw new TypeError("log.setLevel() called with invalid level: "+ce)}"string"==typeof ze?mt+=":"+ze:"symbol"==typeof ze&&(mt=void 0),st.name=ze,st.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},st.methodFactory=We||defaultMethodFactory,st.getLevel=function(){return null!=ot?ot:null!=Xe?Xe:Qe},st.setLevel=function(ce,ze){return ot=normalizeLevel(ce),!1!==ze&&persistLevelIfPossible(ot),replaceLoggingMethods.call(st)},st.setDefaultLevel=function(ce){Xe=normalizeLevel(ce),getPersistedLevel()||st.setLevel(ce,!1)},st.resetLevel=function(){ot=null,clearPersistedLevel(),replaceLoggingMethods.call(st)},st.enableAll=function(ce){st.setLevel(st.levels.TRACE,ce)},st.disableAll=function(ce){st.setLevel(st.levels.SILENT,ce)},st.rebuild=function(){if(Ye!==st&&(Qe=normalizeLevel(Ye.getLevel())),replaceLoggingMethods.call(st),Ye===st)for(var ce in qe)qe[ce].rebuild()},Qe=normalizeLevel(Ye?Ye.getLevel():"WARN");var gt=getPersistedLevel();null!=gt&&(ot=normalizeLevel(gt)),replaceLoggingMethods.call(st)}(Ye=new Logger).getLogger=function getLogger(ce){if("symbol"!=typeof ce&&"string"!=typeof ce||""===ce)throw new TypeError("You must supply a name when creating a logger.");var ze=qe[ce];return ze||(ze=qe[ce]=new Logger(ce,Ye.methodFactory)),ze};var We=typeof window!==ce?window.log:void 0;return Ye.noConflict=function(){return typeof window!==ce&&window.log===Ye&&(window.log=We),Ye},Ye.getLoggers=function getLoggers(){return qe},Ye.default=Ye,Ye},void 0===(Ye="function"==typeof qe?qe.call(ze,Ve,ze,ce):qe)||(ce.exports=Ye)}()},function(ce,ze,Ve){(function(ce){ce.exports=function(){"use strict";var ze,qe;function hooks(){return ze.apply(null,arguments)}function setHookCallback(ce){ze=ce}function isArray(ce){return ce instanceof Array||"[object Array]"===Object.prototype.toString.call(ce)}function isObject(ce){return null!=ce&&"[object Object]"===Object.prototype.toString.call(ce)}function hasOwnProp(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}function isObjectEmpty(ce){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ce).length;var ze;for(ze in ce)if(hasOwnProp(ce,ze))return!1;return!0}function isUndefined(ce){return void 0===ce}function isNumber(ce){return"number"==typeof ce||"[object Number]"===Object.prototype.toString.call(ce)}function isDate(ce){return ce instanceof Date||"[object Date]"===Object.prototype.toString.call(ce)}function map(ce,ze){var Ve,qe=[],Ye=ce.length;for(Ve=0;Ve>>0;for(ze=0;ze0)for(Ve=0;Ve=0?Ve?"+":"":"-")+Math.pow(10,Math.max(0,Ye)).toString().substr(1)+qe}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},yt={};function addFormatToken(ce,ze,Ve,qe){var Ye=qe;"string"==typeof qe&&(Ye=function(){return this[qe]()}),ce&&(yt[ce]=Ye),ze&&(yt[ze[0]]=function(){return zeroFill(Ye.apply(this,arguments),ze[1],ze[2])}),Ve&&(yt[Ve]=function(){return this.localeData().ordinal(Ye.apply(this,arguments),ce)})}function removeFormattingTokens(ce){return ce.match(/\[[\s\S]/)?ce.replace(/^\[|\]$/g,""):ce.replace(/\\/g,"")}function makeFormatFunction(ce){var ze,Ve,qe=ce.match(st);for(ze=0,Ve=qe.length;ze=0&&mt.test(ce);)ce=ce.replace(mt,replaceLongDateFormatTokens),mt.lastIndex=0,Ve-=1;return ce}var bt={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"};function longDateFormat(ce){var ze=this._longDateFormat[ce],Ve=this._longDateFormat[ce.toUpperCase()];return ze||!Ve?ze:(this._longDateFormat[ce]=Ve.match(st).map((function(ce){return"MMMM"===ce||"MM"===ce||"DD"===ce||"dddd"===ce?ce.slice(1):ce})).join(""),this._longDateFormat[ce])}var vt="Invalid date";function invalidDate(){return this._invalidDate}var wt="%d",Ct=/\d{1,2}/;function ordinal(ce){return this._ordinal.replace("%d",ce)}var Dt={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(ce,ze,Ve,qe){var Ye=this._relativeTime[Ve];return isFunction(Ye)?Ye(ce,ze,Ve,qe):Ye.replace(/%d/i,ce)}function pastFuture(ce,ze){var Ve=this._relativeTime[ce>0?"future":"past"];return isFunction(Ve)?Ve(ze):Ve.replace(/%s/i,ze)}var kt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(ce){return"string"==typeof ce?kt[ce]||kt[ce.toLowerCase()]:void 0}function normalizeObjectUnits(ce){var ze,Ve,qe={};for(Ve in ce)hasOwnProp(ce,Ve)&&(ze=normalizeUnits(Ve))&&(qe[ze]=ce[Ve]);return qe}var St={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(ce){var ze,Ve=[];for(ze in ce)hasOwnProp(ce,ze)&&Ve.push({unit:ze,priority:St[ze]});return Ve.sort((function(ce,ze){return ce.priority-ze.priority})),Ve}var xt,Et=/\d/,Pt=/\d\d/,Tt=/\d{3}/,Lt=/\d{4}/,Ft=/[+-]?\d{6}/,Bt=/\d\d?/,Vt=/\d\d\d\d?/,Ht=/\d\d\d\d\d\d?/,Ut=/\d{1,3}/,Wt=/\d{1,4}/,Jt=/[+-]?\d{1,6}/,Qt=/\d+/,en=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,ln=/Z|[+-]\d\d(?::?\d\d)?/gi,mn=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bn=/^[1-9]\d?/,wn=/^([1-9]\d|\d)/;function addRegexToken(ce,ze,Ve){xt[ce]=isFunction(ze)?ze:function(ce,qe){return ce&&Ve?Ve:ze}}function getParseRegexForToken(ce,ze){return hasOwnProp(xt,ce)?xt[ce](ze._strict,ze._locale):new RegExp(unescapeFormat(ce))}function unescapeFormat(ce){return regexEscape(ce.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(ce,ze,Ve,qe,Ye){return ze||Ve||qe||Ye})))}function regexEscape(ce){return ce.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(ce){return ce<0?Math.ceil(ce)||0:Math.floor(ce)}function toInt(ce){var ze=+ce,Ve=0;return 0!==ze&&isFinite(ze)&&(Ve=absFloor(ze)),Ve}xt={};var Cn={};function addParseToken(ce,ze){var Ve,qe,Ye=ze;for("string"==typeof ce&&(ce=[ce]),isNumber(ze)&&(Ye=function(ce,Ve){Ve[ze]=toInt(ce)}),qe=ce.length,Ve=0;Ve68?1900:2e3)};var Jn,Zn=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(ce,ze){return function(Ve){return null!=Ve?(set$1(this,ce,Ve),hooks.updateOffset(this,ze),this):get(this,ce)}}function get(ce,ze){if(!ce.isValid())return NaN;var Ve=ce._d,qe=ce._isUTC;switch(ze){case"Milliseconds":return qe?Ve.getUTCMilliseconds():Ve.getMilliseconds();case"Seconds":return qe?Ve.getUTCSeconds():Ve.getSeconds();case"Minutes":return qe?Ve.getUTCMinutes():Ve.getMinutes();case"Hours":return qe?Ve.getUTCHours():Ve.getHours();case"Date":return qe?Ve.getUTCDate():Ve.getDate();case"Day":return qe?Ve.getUTCDay():Ve.getDay();case"Month":return qe?Ve.getUTCMonth():Ve.getMonth();case"FullYear":return qe?Ve.getUTCFullYear():Ve.getFullYear();default:return NaN}}function set$1(ce,ze,Ve){var qe,Ye,We,Qe,Xe;if(ce.isValid()&&!isNaN(Ve)){switch(qe=ce._d,Ye=ce._isUTC,ze){case"Milliseconds":return void(Ye?qe.setUTCMilliseconds(Ve):qe.setMilliseconds(Ve));case"Seconds":return void(Ye?qe.setUTCSeconds(Ve):qe.setSeconds(Ve));case"Minutes":return void(Ye?qe.setUTCMinutes(Ve):qe.setMinutes(Ve));case"Hours":return void(Ye?qe.setUTCHours(Ve):qe.setHours(Ve));case"Date":return void(Ye?qe.setUTCDate(Ve):qe.setDate(Ve));case"FullYear":break;default:return}We=Ve,Qe=ce.month(),Xe=29!==(Xe=ce.date())||1!==Qe||isLeapYear(We)?Xe:28,Ye?qe.setUTCFullYear(We,Qe,Xe):qe.setFullYear(We,Qe,Xe)}}function stringGet(ce){return isFunction(this[ce=normalizeUnits(ce)])?this[ce]():this}function stringSet(ce,ze){if("object"==typeof ce){var Ve,qe=getPrioritizedUnits(ce=normalizeObjectUnits(ce)),Ye=qe.length;for(Ve=0;Ve=0?(Xe=new Date(ce+400,ze,Ve,qe,Ye,We,Qe),isFinite(Xe.getFullYear())&&Xe.setFullYear(ce)):Xe=new Date(ce,ze,Ve,qe,Ye,We,Qe),Xe}function createUTCDate(ce){var ze,Ve;return ce<100&&ce>=0?((Ve=Array.prototype.slice.call(arguments))[0]=ce+400,ze=new Date(Date.UTC.apply(null,Ve)),isFinite(ze.getUTCFullYear())&&ze.setUTCFullYear(ce)):ze=new Date(Date.UTC.apply(null,arguments)),ze}function firstWeekOffset(ce,ze,Ve){var qe=7+ze-Ve;return-(7+createUTCDate(ce,0,qe).getUTCDay()-ze)%7+qe-1}function dayOfYearFromWeeks(ce,ze,Ve,qe,Ye){var We,Qe,Xe=1+7*(ze-1)+(7+Ve-qe)%7+firstWeekOffset(ce,qe,Ye);return Xe<=0?Qe=daysInYear(We=ce-1)+Xe:Xe>daysInYear(ce)?(We=ce+1,Qe=Xe-daysInYear(ce)):(We=ce,Qe=Xe),{year:We,dayOfYear:Qe}}function weekOfYear(ce,ze,Ve){var qe,Ye,We=firstWeekOffset(ce.year(),ze,Ve),Qe=Math.floor((ce.dayOfYear()-We-1)/7)+1;return Qe<1?qe=Qe+weeksInYear(Ye=ce.year()-1,ze,Ve):Qe>weeksInYear(ce.year(),ze,Ve)?(qe=Qe-weeksInYear(ce.year(),ze,Ve),Ye=ce.year()+1):(Ye=ce.year(),qe=Qe),{week:qe,year:Ye}}function weeksInYear(ce,ze,Ve){var qe=firstWeekOffset(ce,ze,Ve),Ye=firstWeekOffset(ce+1,ze,Ve);return(daysInYear(ce)-qe+Ye)/7}function localeWeek(ce){return weekOfYear(ce,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addRegexToken("w",Bt,bn),addRegexToken("ww",Bt,Pt),addRegexToken("W",Bt,bn),addRegexToken("WW",Bt,Pt),addWeekParseToken(["w","ww","W","WW"],(function(ce,ze,Ve,qe){ze[qe.substr(0,1)]=toInt(ce)}));var Ci={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(ce){var ze=this.localeData().week(this);return null==ce?ze:this.add(7*(ce-ze),"d")}function getSetISOWeek(ce){var ze=weekOfYear(this,1,4).week;return null==ce?ze:this.add(7*(ce-ze),"d")}function parseWeekday(ce,ze){return"string"!=typeof ce?ce:isNaN(ce)?"number"==typeof(ce=ze.weekdaysParse(ce))?ce:null:parseInt(ce,10)}function parseIsoWeekday(ce,ze){return"string"==typeof ce?ze.weekdaysParse(ce)%7||7:isNaN(ce)?null:ce}function shiftWeekdays(ce,ze){return ce.slice(ze,7).concat(ce.slice(0,ze))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(ce){return this.localeData().weekdaysMin(this,ce)})),addFormatToken("ddd",0,0,(function(ce){return this.localeData().weekdaysShort(this,ce)})),addFormatToken("dddd",0,0,(function(ce){return this.localeData().weekdays(this,ce)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addRegexToken("d",Bt),addRegexToken("e",Bt),addRegexToken("E",Bt),addRegexToken("dd",(function(ce,ze){return ze.weekdaysMinRegex(ce)})),addRegexToken("ddd",(function(ce,ze){return ze.weekdaysShortRegex(ce)})),addRegexToken("dddd",(function(ce,ze){return ze.weekdaysRegex(ce)})),addWeekParseToken(["dd","ddd","dddd"],(function(ce,ze,Ve,qe){var Ye=Ve._locale.weekdaysParse(ce,qe,Ve._strict);null!=Ye?ze.d=Ye:getParsingFlags(Ve).invalidWeekday=ce})),addWeekParseToken(["d","e","E"],(function(ce,ze,Ve,qe){ze[qe]=toInt(ce)}));var Di="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ei="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Oi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ti=gn,er=gn,tr=gn;function localeWeekdays(ce,ze){var Ve=isArray(this._weekdays)?this._weekdays:this._weekdays[ce&&!0!==ce&&this._weekdays.isFormat.test(ze)?"format":"standalone"];return!0===ce?shiftWeekdays(Ve,this._week.dow):ce?Ve[ce.day()]:Ve}function localeWeekdaysShort(ce){return!0===ce?shiftWeekdays(this._weekdaysShort,this._week.dow):ce?this._weekdaysShort[ce.day()]:this._weekdaysShort}function localeWeekdaysMin(ce){return!0===ce?shiftWeekdays(this._weekdaysMin,this._week.dow):ce?this._weekdaysMin[ce.day()]:this._weekdaysMin}function handleStrictParse$1(ce,ze,Ve){var qe,Ye,We,Qe=ce.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],qe=0;qe<7;++qe)We=createUTC([2e3,1]).day(qe),this._minWeekdaysParse[qe]=this.weekdaysMin(We,"").toLocaleLowerCase(),this._shortWeekdaysParse[qe]=this.weekdaysShort(We,"").toLocaleLowerCase(),this._weekdaysParse[qe]=this.weekdays(We,"").toLocaleLowerCase();return Ve?"dddd"===ze?-1!==(Ye=Jn.call(this._weekdaysParse,Qe))?Ye:null:"ddd"===ze?-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))?Ye:null:-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:"dddd"===ze?-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:"ddd"===ze?-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))?Ye:null:-1!==(Ye=Jn.call(this._minWeekdaysParse,Qe))||-1!==(Ye=Jn.call(this._weekdaysParse,Qe))||-1!==(Ye=Jn.call(this._shortWeekdaysParse,Qe))?Ye:null}function localeWeekdaysParse(ce,ze,Ve){var qe,Ye,We;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,ce,ze,Ve);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),qe=0;qe<7;qe++){if(Ye=createUTC([2e3,1]).day(qe),Ve&&!this._fullWeekdaysParse[qe]&&(this._fullWeekdaysParse[qe]=new RegExp("^"+this.weekdays(Ye,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[qe]=new RegExp("^"+this.weekdaysShort(Ye,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[qe]=new RegExp("^"+this.weekdaysMin(Ye,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[qe]||(We="^"+this.weekdays(Ye,"")+"|^"+this.weekdaysShort(Ye,"")+"|^"+this.weekdaysMin(Ye,""),this._weekdaysParse[qe]=new RegExp(We.replace(".",""),"i")),Ve&&"dddd"===ze&&this._fullWeekdaysParse[qe].test(ce))return qe;if(Ve&&"ddd"===ze&&this._shortWeekdaysParse[qe].test(ce))return qe;if(Ve&&"dd"===ze&&this._minWeekdaysParse[qe].test(ce))return qe;if(!Ve&&this._weekdaysParse[qe].test(ce))return qe}}function getSetDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=get(this,"Day");return null!=ce?(ce=parseWeekday(ce,this.localeData()),this.add(ce-ze,"d")):ze}function getSetLocaleDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=(this.day()+7-this.localeData()._week.dow)%7;return null==ce?ze:this.add(ce-ze,"d")}function getSetISODayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;if(null!=ce){var ze=parseIsoWeekday(ce,this.localeData());return this.day(this.day()%7?ze:ze-7)}return this.day()||7}function weekdaysRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=Ti),this._weekdaysStrictRegex&&ce?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=er),this._weekdaysShortStrictRegex&&ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tr),this._weekdaysMinStrictRegex&&ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(ce,ze){return ze.length-ce.length}var ce,ze,Ve,qe,Ye,We=[],Qe=[],Xe=[],ot=[];for(ce=0;ce<7;ce++)ze=createUTC([2e3,1]).day(ce),Ve=regexEscape(this.weekdaysMin(ze,"")),qe=regexEscape(this.weekdaysShort(ze,"")),Ye=regexEscape(this.weekdays(ze,"")),We.push(Ve),Qe.push(qe),Xe.push(Ye),ot.push(Ve),ot.push(qe),ot.push(Ye);We.sort(cmpLenRev),Qe.sort(cmpLenRev),Xe.sort(cmpLenRev),ot.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+ot.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+We.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(ce,ze){addFormatToken(ce,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),ze)}))}function matchMeridiem(ce,ze){return ze._meridiemParse}function localeIsPM(ce){return"p"===(ce+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",Bt,wn),addRegexToken("h",Bt,bn),addRegexToken("k",Bt,bn),addRegexToken("HH",Bt,Pt),addRegexToken("hh",Bt,Pt),addRegexToken("kk",Bt,Pt),addRegexToken("hmm",Vt),addRegexToken("hmmss",Ht),addRegexToken("Hmm",Vt),addRegexToken("Hmmss",Ht),addParseToken(["H","HH"],Ln),addParseToken(["k","kk"],(function(ce,ze,Ve){var qe=toInt(ce);ze[Ln]=24===qe?0:qe})),addParseToken(["a","A"],(function(ce,ze,Ve){Ve._isPm=Ve._locale.isPM(ce),Ve._meridiem=ce})),addParseToken(["h","hh"],(function(ce,ze,Ve){ze[Ln]=toInt(ce),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe)),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe,2)),ze[Yn]=toInt(ce.substr(Ye)),getParsingFlags(Ve).bigHour=!0})),addParseToken("Hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe))})),addParseToken("Hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,qe)),ze[Fn]=toInt(ce.substr(qe,2)),ze[Yn]=toInt(ce.substr(Ye))}));var nr=/[ap]\.?m?\.?/i,rr=makeGetSet("Hours",!0);function localeMeridiem(ce,ze,Ve){return ce>11?Ve?"pm":"PM":Ve?"am":"AM"}var ar,sr={calendar:ot,longDateFormat:bt,invalidDate:vt,ordinal:wt,dayOfMonthOrdinalParse:Ct,relativeTime:Dt,months:Xn,monthsShort:ei,week:Ci,weekdays:Di,weekdaysMin:Oi,weekdaysShort:Ei,meridiemParse:nr},lr={},dr={};function commonPrefix(ce,ze){var Ve,qe=Math.min(ce.length,ze.length);for(Ve=0;Ve0;){if(qe=loadLocale(Ye.slice(0,ze).join("-")))return qe;if(Ve&&Ve.length>=ze&&commonPrefix(Ye,Ve)>=ze-1)break;ze--}We++}return ar}function isLocaleNameSane(ce){return!(!ce||!ce.match("^[^/\\\\]*$"))}function loadLocale(ze){var qe=null;if(void 0===lr[ze]&&void 0!==ce&&ce&&ce.exports&&isLocaleNameSane(ze))try{qe=ar._abbr,Ve(1787)("./"+ze),getSetGlobalLocale(qe)}catch(ce){lr[ze]=null}return lr[ze]}function getSetGlobalLocale(ce,ze){var Ve;return ce&&((Ve=isUndefined(ze)?getLocale(ce):defineLocale(ce,ze))?ar=Ve:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ce+" not found. Did you forget to load it?")),ar._abbr}function defineLocale(ce,ze){if(null!==ze){var Ve,qe=sr;if(ze.abbr=ce,null!=lr[ce])deprecateSimple("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 http://momentjs.com/guides/#/warnings/define-locale/ for more info."),qe=lr[ce]._config;else if(null!=ze.parentLocale)if(null!=lr[ze.parentLocale])qe=lr[ze.parentLocale]._config;else{if(null==(Ve=loadLocale(ze.parentLocale)))return dr[ze.parentLocale]||(dr[ze.parentLocale]=[]),dr[ze.parentLocale].push({name:ce,config:ze}),null;qe=Ve._config}return lr[ce]=new Locale(mergeConfigs(qe,ze)),dr[ce]&&dr[ce].forEach((function(ce){defineLocale(ce.name,ce.config)})),getSetGlobalLocale(ce),lr[ce]}return delete lr[ce],null}function updateLocale(ce,ze){if(null!=ze){var Ve,qe,Ye=sr;null!=lr[ce]&&null!=lr[ce].parentLocale?lr[ce].set(mergeConfigs(lr[ce]._config,ze)):(null!=(qe=loadLocale(ce))&&(Ye=qe._config),ze=mergeConfigs(Ye,ze),null==qe&&(ze.abbr=ce),(Ve=new Locale(ze)).parentLocale=lr[ce],lr[ce]=Ve),getSetGlobalLocale(ce)}else null!=lr[ce]&&(null!=lr[ce].parentLocale?(lr[ce]=lr[ce].parentLocale,ce===getSetGlobalLocale()&&getSetGlobalLocale(ce)):null!=lr[ce]&&delete lr[ce]);return lr[ce]}function getLocale(ce){var ze;if(ce&&ce._locale&&ce._locale._abbr&&(ce=ce._locale._abbr),!ce)return ar;if(!isArray(ce)){if(ze=loadLocale(ce))return ze;ce=[ce]}return chooseLocale(ce)}function listLocales(){return Qe(lr)}function checkOverflow(ce){var ze,Ve=ce._a;return Ve&&-2===getParsingFlags(ce).overflow&&(ze=Ve[En]<0||Ve[En]>11?En:Ve[Tn]<1||Ve[Tn]>daysInMonth(Ve[Sn],Ve[En])?Tn:Ve[Ln]<0||Ve[Ln]>24||24===Ve[Ln]&&(0!==Ve[Fn]||0!==Ve[Yn]||0!==Ve[Un])?Ln:Ve[Fn]<0||Ve[Fn]>59?Fn:Ve[Yn]<0||Ve[Yn]>59?Yn:Ve[Un]<0||Ve[Un]>999?Un:-1,getParsingFlags(ce)._overflowDayOfYear&&(zeTn)&&(ze=Tn),getParsingFlags(ce)._overflowWeeks&&-1===ze&&(ze=Gn),getParsingFlags(ce)._overflowWeekday&&-1===ze&&(ze=Kn),getParsingFlags(ce).overflow=ze),ce}var ur=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vr=/Z|[+-]\d\d(?::?\d\d)?/,_r=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Rr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cr=/^\/?Date\((-?\d+)/i,Dr=/^(?:(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(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Er={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(ce){var ze,Ve,qe,Ye,We,Qe,Xe=ce._i,ot=ur.exec(Xe)||pr.exec(Xe),st=_r.length,mt=Rr.length;if(ot){for(getParsingFlags(ce).iso=!0,ze=0,Ve=st;zedaysInYear(We)||0===ce._dayOfYear)&&(getParsingFlags(ce)._overflowDayOfYear=!0),Ve=createUTCDate(We,0,ce._dayOfYear),ce._a[En]=Ve.getUTCMonth(),ce._a[Tn]=Ve.getUTCDate()),ze=0;ze<3&&null==ce._a[ze];++ze)ce._a[ze]=Qe[ze]=qe[ze];for(;ze<7;ze++)ce._a[ze]=Qe[ze]=null==ce._a[ze]?2===ze?1:0:ce._a[ze];24===ce._a[Ln]&&0===ce._a[Fn]&&0===ce._a[Yn]&&0===ce._a[Un]&&(ce._nextDay=!0,ce._a[Ln]=0),ce._d=(ce._useUTC?createUTCDate:createDate).apply(null,Qe),Ye=ce._useUTC?ce._d.getUTCDay():ce._d.getDay(),null!=ce._tzm&&ce._d.setUTCMinutes(ce._d.getUTCMinutes()-ce._tzm),ce._nextDay&&(ce._a[Ln]=24),ce._w&&void 0!==ce._w.d&&ce._w.d!==Ye&&(getParsingFlags(ce).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(ce){var ze,Ve,qe,Ye,We,Qe,Xe,ot,st;null!=(ze=ce._w).GG||null!=ze.W||null!=ze.E?(We=1,Qe=4,Ve=defaults(ze.GG,ce._a[Sn],weekOfYear(createLocal(),1,4).year),qe=defaults(ze.W,1),((Ye=defaults(ze.E,1))<1||Ye>7)&&(ot=!0)):(We=ce._locale._week.dow,Qe=ce._locale._week.doy,st=weekOfYear(createLocal(),We,Qe),Ve=defaults(ze.gg,ce._a[Sn],st.year),qe=defaults(ze.w,st.week),null!=ze.d?((Ye=ze.d)<0||Ye>6)&&(ot=!0):null!=ze.e?(Ye=ze.e+We,(ze.e<0||ze.e>6)&&(ot=!0)):Ye=We),qe<1||qe>weeksInYear(Ve,We,Qe)?getParsingFlags(ce)._overflowWeeks=!0:null!=ot?getParsingFlags(ce)._overflowWeekday=!0:(Xe=dayOfYearFromWeeks(Ve,qe,Ye,We,Qe),ce._a[Sn]=Xe.year,ce._dayOfYear=Xe.dayOfYear)}function configFromStringAndFormat(ce){if(ce._f!==hooks.ISO_8601)if(ce._f!==hooks.RFC_2822){ce._a=[],getParsingFlags(ce).empty=!0;var ze,Ve,qe,Ye,We,Qe,Xe,ot=""+ce._i,mt=ot.length,gt=0;for(Xe=(qe=expandFormat(ce._f,ce._locale).match(st)||[]).length,ze=0;ze0&&getParsingFlags(ce).unusedInput.push(We),ot=ot.slice(ot.indexOf(Ve)+Ve.length),gt+=Ve.length),yt[Ye]?(Ve?getParsingFlags(ce).empty=!1:getParsingFlags(ce).unusedTokens.push(Ye),addTimeToArrayFromToken(Ye,Ve,ce)):ce._strict&&!Ve&&getParsingFlags(ce).unusedTokens.push(Ye);getParsingFlags(ce).charsLeftOver=mt-gt,ot.length>0&&getParsingFlags(ce).unusedInput.push(ot),ce._a[Ln]<=12&&!0===getParsingFlags(ce).bigHour&&ce._a[Ln]>0&&(getParsingFlags(ce).bigHour=void 0),getParsingFlags(ce).parsedDateParts=ce._a.slice(0),getParsingFlags(ce).meridiem=ce._meridiem,ce._a[Ln]=meridiemFixWrap(ce._locale,ce._a[Ln],ce._meridiem),null!==(Qe=getParsingFlags(ce).era)&&(ce._a[Sn]=ce._locale.erasConvertYear(Qe,ce._a[Sn])),configFromArray(ce),checkOverflow(ce)}else configFromRFC2822(ce);else configFromISO(ce)}function meridiemFixWrap(ce,ze,Ve){var qe;return null==Ve?ze:null!=ce.meridiemHour?ce.meridiemHour(ze,Ve):null!=ce.isPM?((qe=ce.isPM(Ve))&&ze<12&&(ze+=12),qe||12!==ze||(ze=0),ze):ze}function configFromStringAndArray(ce){var ze,Ve,qe,Ye,We,Qe,Xe=!1,ot=ce._f.length;if(0===ot)return getParsingFlags(ce).invalidFormat=!0,void(ce._d=new Date(NaN));for(Ye=0;Yethis?this:ce:createInvalid()}));function pickBy(ce,ze){var Ve,qe;if(1===ze.length&&isArray(ze[0])&&(ze=ze[0]),!ze.length)return createLocal();for(Ve=ze[0],qe=1;qethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var ce,ze={};return copyConfig(ze,this),(ze=prepareConfig(ze))._a?(ce=ze._isUTC?createUTC(ze._a):createLocal(ze._a),this._isDSTShifted=this.isValid()&&compareArrays(ze._a,ce.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var jr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ir=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(ce,ze){var Ve,qe,Ye,We=ce,Qe=null;return isDuration(ce)?We={ms:ce._milliseconds,d:ce._days,M:ce._months}:isNumber(ce)||!isNaN(+ce)?(We={},ze?We[ze]=+ce:We.milliseconds=+ce):(Qe=jr.exec(ce))?(Ve="-"===Qe[1]?-1:1,We={y:0,d:toInt(Qe[Tn])*Ve,h:toInt(Qe[Ln])*Ve,m:toInt(Qe[Fn])*Ve,s:toInt(Qe[Yn])*Ve,ms:toInt(absRound(1e3*Qe[Un]))*Ve}):(Qe=Ir.exec(ce))?(Ve="-"===Qe[1]?-1:1,We={y:parseIso(Qe[2],Ve),M:parseIso(Qe[3],Ve),w:parseIso(Qe[4],Ve),d:parseIso(Qe[5],Ve),h:parseIso(Qe[6],Ve),m:parseIso(Qe[7],Ve),s:parseIso(Qe[8],Ve)}):null==We?We={}:"object"==typeof We&&("from"in We||"to"in We)&&(Ye=momentsDifference(createLocal(We.from),createLocal(We.to)),(We={}).ms=Ye.milliseconds,We.M=Ye.months),qe=new Duration(We),isDuration(ce)&&hasOwnProp(ce,"_locale")&&(qe._locale=ce._locale),isDuration(ce)&&hasOwnProp(ce,"_isValid")&&(qe._isValid=ce._isValid),qe}function parseIso(ce,ze){var Ve=ce&&parseFloat(ce.replace(",","."));return(isNaN(Ve)?0:Ve)*ze}function positiveMomentsDifference(ce,ze){var Ve={};return Ve.months=ze.month()-ce.month()+12*(ze.year()-ce.year()),ce.clone().add(Ve.months,"M").isAfter(ze)&&--Ve.months,Ve.milliseconds=+ze-+ce.clone().add(Ve.months,"M"),Ve}function momentsDifference(ce,ze){var Ve;return ce.isValid()&&ze.isValid()?(ze=cloneWithOffset(ze,ce),ce.isBefore(ze)?Ve=positiveMomentsDifference(ce,ze):((Ve=positiveMomentsDifference(ze,ce)).milliseconds=-Ve.milliseconds,Ve.months=-Ve.months),Ve):{milliseconds:0,months:0}}function createAdder(ce,ze){return function(Ve,qe){var Ye;return null===qe||isNaN(+qe)||(deprecateSimple(ze,"moment()."+ze+"(period, number) is deprecated. Please use moment()."+ze+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ye=Ve,Ve=qe,qe=Ye),addSubtract(this,createDuration(Ve,qe),ce),this}}function addSubtract(ce,ze,Ve,qe){var Ye=ze._milliseconds,We=absRound(ze._days),Qe=absRound(ze._months);ce.isValid()&&(qe=null==qe||qe,Qe&&setMonth(ce,get(ce,"Month")+Qe*Ve),We&&set$1(ce,"Date",get(ce,"Date")+We*Ve),Ye&&ce._d.setTime(ce._d.valueOf()+Ye*Ve),qe&&hooks.updateOffset(ce,We||Qe))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var zr=createAdder(1,"add"),Br=createAdder(-1,"subtract");function isString(ce){return"string"==typeof ce||ce instanceof String}function isMomentInput(ce){return isMoment(ce)||isDate(ce)||isString(ce)||isNumber(ce)||isNumberOrStringArray(ce)||isMomentInputObject(ce)||null==ce}function isMomentInputObject(ce){var ze,Ve,qe=isObject(ce)&&!isObjectEmpty(ce),Ye=!1,We=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Qe=We.length;for(ze=0;zeVe.valueOf():Ve.valueOf()9999?formatMoment(Ve,ze?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?ze?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(Ve,"Z")):formatMoment(Ve,ze?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ce,ze,Ve,qe,Ye="moment",We="";return this.isLocal()||(Ye=0===this.utcOffset()?"moment.utc":"moment.parseZone",We="Z"),ce="["+Ye+'("]',ze=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Ve="-MM-DD[T]HH:mm:ss.SSS",qe=We+'[")]',this.format(ce+ze+Ve+qe)}function format(ce){ce||(ce=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var ze=formatMoment(this,ce);return this.localeData().postformat(ze)}function from(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({to:this,from:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function fromNow(ce){return this.from(createLocal(),ce)}function to(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({from:this,to:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function toNow(ce){return this.to(createLocal(),ce)}function locale(ce){var ze;return void 0===ce?this._locale._abbr:(null!=(ze=getLocale(ce))&&(this._locale=ze),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Nr=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(ce){return void 0===ce?this.localeData():this.locale(ce)}));function localeData(){return this._locale}var Vr=1e3,Hr=60*Vr,qr=60*Hr,Yr=3506328*qr;function mod$1(ce,ze){return(ce%ze+ze)%ze}function localStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?new Date(ce+400,ze,Ve)-Yr:new Date(ce,ze,Ve).valueOf()}function utcStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?Date.UTC(ce+400,ze,Ve)-Yr:Date.UTC(ce,ze,Ve)}function startOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year(),0,1);break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3,1);break;case"month":ze=Ve(this.year(),this.month(),1);break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date());break;case"hour":ze=this._d.valueOf(),ze-=mod$1(ze+(this._isUTC?0:this.utcOffset()*Hr),qr);break;case"minute":ze=this._d.valueOf(),ze-=mod$1(ze,Hr);break;case"second":ze=this._d.valueOf(),ze-=mod$1(ze,Vr)}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function endOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year()+1,0,1)-1;break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ze=Ve(this.year(),this.month()+1,1)-1;break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date()+1)-1;break;case"hour":ze=this._d.valueOf(),ze+=qr-mod$1(ze+(this._isUTC?0:this.utcOffset()*Hr),qr)-1;break;case"minute":ze=this._d.valueOf(),ze+=Hr-mod$1(ze,Hr)-1;break;case"second":ze=this._d.valueOf(),ze+=Vr-mod$1(ze,Vr)-1}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var ce=this;return[ce.year(),ce.month(),ce.date(),ce.hour(),ce.minute(),ce.second(),ce.millisecond()]}function toObject(){var ce=this;return{years:ce.year(),months:ce.month(),date:ce.date(),hours:ce.hours(),minutes:ce.minutes(),seconds:ce.seconds(),milliseconds:ce.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function localeEras(ce,ze){var Ve,qe,Ye,We=this._eras||getLocale("en")._eras;for(Ve=0,qe=We.length;Ve=0)return ot[qe]}function localeErasConvertYear(ce,ze){var Ve=ce.since<=ce.until?1:-1;return void 0===ze?hooks(ce.since).year():hooks(ce.since).year()+(ze-ce.offset)*Ve}function getEraName(){var ce,ze,Ve,qe=this.localeData().eras();for(ce=0,ze=qe.length;ce(We=weeksInYear(ce,qe,Ye))&&(ze=We),setWeekAll.call(this,ce,ze,Ve,qe,Ye))}function setWeekAll(ce,ze,Ve,qe,Ye){var We=dayOfYearFromWeeks(ce,ze,Ve,qe,Ye),Qe=createUTCDate(We.year,0,We.dayOfYear);return this.year(Qe.getUTCFullYear()),this.month(Qe.getUTCMonth()),this.date(Qe.getUTCDate()),this}function getSetQuarter(ce){return null==ce?Math.ceil((this.month()+1)/3):this.month(3*(ce-1)+this.month()%3)}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(ce,ze,Ve,qe){var Ye=Ve._locale.erasParse(ce,qe,Ve._strict);Ye?getParsingFlags(Ve).era=Ye:getParsingFlags(Ve).invalidEra=ce})),addRegexToken("y",Qt),addRegexToken("yy",Qt),addRegexToken("yyy",Qt),addRegexToken("yyyy",Qt),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],Sn),addParseToken(["yo"],(function(ce,ze,Ve,qe){var Ye;Ve._locale._eraYearOrdinalRegex&&(Ye=ce.match(Ve._locale._eraYearOrdinalRegex)),Ve._locale.eraYearOrdinalParse?ze[Sn]=Ve._locale.eraYearOrdinalParse(ce,Ye):ze[Sn]=parseInt(ce,10)})),addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addRegexToken("G",en),addRegexToken("g",en),addRegexToken("GG",Bt,Pt),addRegexToken("gg",Bt,Pt),addRegexToken("GGGG",Wt,Lt),addRegexToken("gggg",Wt,Lt),addRegexToken("GGGGG",Jt,Ft),addRegexToken("ggggg",Jt,Ft),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(ce,ze,Ve,qe){ze[qe.substr(0,2)]=toInt(ce)})),addWeekParseToken(["gg","GG"],(function(ce,ze,Ve,qe){ze[qe]=hooks.parseTwoDigitYear(ce)})),addFormatToken("Q",0,"Qo","quarter"),addRegexToken("Q",Et),addParseToken("Q",(function(ce,ze){ze[En]=3*(toInt(ce)-1)})),addFormatToken("D",["DD",2],"Do","date"),addRegexToken("D",Bt,bn),addRegexToken("DD",Bt,Pt),addRegexToken("Do",(function(ce,ze){return ce?ze._dayOfMonthOrdinalParse||ze._ordinalParse:ze._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],Tn),addParseToken("Do",(function(ce,ze){ze[Tn]=toInt(ce.match(Bt)[0])}));var Ur=makeGetSet("Date",!0);function getSetDayOfYear(ce){var ze=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ce?ze:this.add(ce-ze,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addRegexToken("DDD",Ut),addRegexToken("DDDD",Tt),addParseToken(["DDD","DDDD"],(function(ce,ze,Ve){Ve._dayOfYear=toInt(ce)})),addFormatToken("m",["mm",2],0,"minute"),addRegexToken("m",Bt,wn),addRegexToken("mm",Bt,Pt),addParseToken(["m","mm"],Fn);var Wr=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addRegexToken("s",Bt,wn),addRegexToken("ss",Bt,Pt),addParseToken(["s","ss"],Yn);var $r,Gr,Kr=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addRegexToken("S",Ut,Et),addRegexToken("SS",Ut,Pt),addRegexToken("SSS",Ut,Tt),$r="SSSS";$r.length<=9;$r+="S")addRegexToken($r,Qt);function parseMs(ce,ze){ze[Un]=toInt(1e3*("0."+ce))}for($r="S";$r.length<=9;$r+="S")addParseToken($r,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}Gr=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Jr=Moment.prototype;function createUnix(ce){return createLocal(1e3*ce)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(ce){return ce}Jr.add=zr,Jr.calendar=calendar$1,Jr.clone=clone,Jr.diff=diff,Jr.endOf=endOf,Jr.format=format,Jr.from=from,Jr.fromNow=fromNow,Jr.to=to,Jr.toNow=toNow,Jr.get=stringGet,Jr.invalidAt=invalidAt,Jr.isAfter=isAfter,Jr.isBefore=isBefore,Jr.isBetween=isBetween,Jr.isSame=isSame,Jr.isSameOrAfter=isSameOrAfter,Jr.isSameOrBefore=isSameOrBefore,Jr.isValid=isValid$2,Jr.lang=Nr,Jr.locale=locale,Jr.localeData=localeData,Jr.max=Ar,Jr.min=Tr,Jr.parsingFlags=parsingFlags,Jr.set=stringSet,Jr.startOf=startOf,Jr.subtract=Br,Jr.toArray=toArray,Jr.toObject=toObject,Jr.toDate=toDate,Jr.toISOString=toISOString,Jr.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Jr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Jr.toJSON=toJSON,Jr.toString=toString,Jr.unix=unix,Jr.valueOf=valueOf,Jr.creationData=creationData,Jr.eraName=getEraName,Jr.eraNarrow=getEraNarrow,Jr.eraAbbr=getEraAbbr,Jr.eraYear=getEraYear,Jr.year=Zn,Jr.isLeapYear=getIsLeapYear,Jr.weekYear=getSetWeekYear,Jr.isoWeekYear=getSetISOWeekYear,Jr.quarter=Jr.quarters=getSetQuarter,Jr.month=getSetMonth,Jr.daysInMonth=getDaysInMonth,Jr.week=Jr.weeks=getSetWeek,Jr.isoWeek=Jr.isoWeeks=getSetISOWeek,Jr.weeksInYear=getWeeksInYear,Jr.weeksInWeekYear=getWeeksInWeekYear,Jr.isoWeeksInYear=getISOWeeksInYear,Jr.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,Jr.date=Ur,Jr.day=Jr.days=getSetDayOfWeek,Jr.weekday=getSetLocaleDayOfWeek,Jr.isoWeekday=getSetISODayOfWeek,Jr.dayOfYear=getSetDayOfYear,Jr.hour=Jr.hours=rr,Jr.minute=Jr.minutes=Wr,Jr.second=Jr.seconds=Kr,Jr.millisecond=Jr.milliseconds=Gr,Jr.utcOffset=getSetOffset,Jr.utc=setOffsetToUTC,Jr.local=setOffsetToLocal,Jr.parseZone=setOffsetToParsedOffset,Jr.hasAlignedHourOffset=hasAlignedHourOffset,Jr.isDST=isDaylightSavingTime,Jr.isLocal=isLocal,Jr.isUtcOffset=isUtcOffset,Jr.isUtc=isUtc,Jr.isUTC=isUtc,Jr.zoneAbbr=getZoneAbbr,Jr.zoneName=getZoneName,Jr.dates=deprecate("dates accessor is deprecated. Use date instead.",Ur),Jr.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Jr.years=deprecate("years accessor is deprecated. Use year instead",Zn),Jr.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Jr.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var Zr=Locale.prototype;function get$1(ce,ze,Ve,qe){var Ye=getLocale(),We=createUTC().set(qe,ze);return Ye[Ve](We,ce)}function listMonthsImpl(ce,ze,Ve){if(isNumber(ce)&&(ze=ce,ce=void 0),ce=ce||"",null!=ze)return get$1(ce,ze,Ve,"month");var qe,Ye=[];for(qe=0;qe<12;qe++)Ye[qe]=get$1(ce,qe,Ve,"month");return Ye}function listWeekdaysImpl(ce,ze,Ve,qe){"boolean"==typeof ce?(isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||""):(Ve=ze=ce,ce=!1,isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||"");var Ye,We=getLocale(),Qe=ce?We._week.dow:0,Xe=[];if(null!=Ve)return get$1(ze,(Ve+Qe)%7,qe,"day");for(Ye=0;Ye<7;Ye++)Xe[Ye]=get$1(ze,(Ye+Qe)%7,qe,"day");return Xe}function listMonths(ce,ze){return listMonthsImpl(ce,ze,"months")}function listMonthsShort(ce,ze){return listMonthsImpl(ce,ze,"monthsShort")}function listWeekdays(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdays")}function listWeekdaysShort(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysShort")}function listWeekdaysMin(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysMin")}Zr.calendar=calendar,Zr.longDateFormat=longDateFormat,Zr.invalidDate=invalidDate,Zr.ordinal=ordinal,Zr.preparse=preParsePostFormat,Zr.postformat=preParsePostFormat,Zr.relativeTime=relativeTime,Zr.pastFuture=pastFuture,Zr.set=set,Zr.eras=localeEras,Zr.erasParse=localeErasParse,Zr.erasConvertYear=localeErasConvertYear,Zr.erasAbbrRegex=erasAbbrRegex,Zr.erasNameRegex=erasNameRegex,Zr.erasNarrowRegex=erasNarrowRegex,Zr.months=localeMonths,Zr.monthsShort=localeMonthsShort,Zr.monthsParse=localeMonthsParse,Zr.monthsRegex=monthsRegex,Zr.monthsShortRegex=monthsShortRegex,Zr.week=localeWeek,Zr.firstDayOfYear=localeFirstDayOfYear,Zr.firstDayOfWeek=localeFirstDayOfWeek,Zr.weekdays=localeWeekdays,Zr.weekdaysMin=localeWeekdaysMin,Zr.weekdaysShort=localeWeekdaysShort,Zr.weekdaysParse=localeWeekdaysParse,Zr.weekdaysRegex=weekdaysRegex,Zr.weekdaysShortRegex=weekdaysShortRegex,Zr.weekdaysMinRegex=weekdaysMinRegex,Zr.isPM=localeIsPM,Zr.meridiem=localeMeridiem,getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1===toInt(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var ga=Math.abs;function abs(){var ce=this._data;return this._milliseconds=ga(this._milliseconds),this._days=ga(this._days),this._months=ga(this._months),ce.milliseconds=ga(ce.milliseconds),ce.seconds=ga(ce.seconds),ce.minutes=ga(ce.minutes),ce.hours=ga(ce.hours),ce.months=ga(ce.months),ce.years=ga(ce.years),this}function addSubtract$1(ce,ze,Ve,qe){var Ye=createDuration(ze,Ve);return ce._milliseconds+=qe*Ye._milliseconds,ce._days+=qe*Ye._days,ce._months+=qe*Ye._months,ce._bubble()}function add$1(ce,ze){return addSubtract$1(this,ce,ze,1)}function subtract$1(ce,ze){return addSubtract$1(this,ce,ze,-1)}function absCeil(ce){return ce<0?Math.floor(ce):Math.ceil(ce)}function bubble(){var ce,ze,Ve,qe,Ye,We=this._milliseconds,Qe=this._days,Xe=this._months,ot=this._data;return We>=0&&Qe>=0&&Xe>=0||We<=0&&Qe<=0&&Xe<=0||(We+=864e5*absCeil(monthsToDays(Xe)+Qe),Qe=0,Xe=0),ot.milliseconds=We%1e3,ce=absFloor(We/1e3),ot.seconds=ce%60,ze=absFloor(ce/60),ot.minutes=ze%60,Ve=absFloor(ze/60),ot.hours=Ve%24,Qe+=absFloor(Ve/24),Xe+=Ye=absFloor(daysToMonths(Qe)),Qe-=absCeil(monthsToDays(Ye)),qe=absFloor(Xe/12),Xe%=12,ot.days=Qe,ot.months=Xe,ot.years=qe,this}function daysToMonths(ce){return 4800*ce/146097}function monthsToDays(ce){return 146097*ce/4800}function as(ce){if(!this.isValid())return NaN;var ze,Ve,qe=this._milliseconds;if("month"===(ce=normalizeUnits(ce))||"quarter"===ce||"year"===ce)switch(ze=this._days+qe/864e5,Ve=this._months+daysToMonths(ze),ce){case"month":return Ve;case"quarter":return Ve/3;case"year":return Ve/12}else switch(ze=this._days+Math.round(monthsToDays(this._months)),ce){case"week":return ze/7+qe/6048e5;case"day":return ze+qe/864e5;case"hour":return 24*ze+qe/36e5;case"minute":return 1440*ze+qe/6e4;case"second":return 86400*ze+qe/1e3;case"millisecond":return Math.floor(864e5*ze)+qe;default:throw new Error("Unknown unit "+ce)}}function makeAs(ce){return function(){return this.as(ce)}}var ya=makeAs("ms"),ba=makeAs("s"),va=makeAs("m"),_a=makeAs("h"),wa=makeAs("d"),ka=makeAs("w"),xa=makeAs("M"),Aa=makeAs("Q"),Ba=makeAs("y"),Ja=ya;function clone$1(){return createDuration(this)}function get$2(ce){return ce=normalizeUnits(ce),this.isValid()?this[ce+"s"]():NaN}function makeGetter(ce){return function(){return this.isValid()?this._data[ce]:NaN}}var io=makeGetter("milliseconds"),po=makeGetter("seconds"),ho=makeGetter("minutes"),go=makeGetter("hours"),_o=makeGetter("days"),Co=makeGetter("months"),ko=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Oo=Math.round,Po={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(ce,ze,Ve,qe,Ye){return Ye.relativeTime(ze||1,!!Ve,ce,qe)}function relativeTime$1(ce,ze,Ve,qe){var Ye=createDuration(ce).abs(),We=Oo(Ye.as("s")),Qe=Oo(Ye.as("m")),Xe=Oo(Ye.as("h")),ot=Oo(Ye.as("d")),st=Oo(Ye.as("M")),mt=Oo(Ye.as("w")),gt=Oo(Ye.as("y")),yt=We<=Ve.ss&&["s",We]||We0,yt[4]=qe,substituteTimeAgo.apply(null,yt)}function getSetRelativeTimeRounding(ce){return void 0===ce?Oo:"function"==typeof ce&&(Oo=ce,!0)}function getSetRelativeTimeThreshold(ce,ze){return void 0!==Po[ce]&&(void 0===ze?Po[ce]:(Po[ce]=ze,"s"===ce&&(Po.ss=ze-1),!0))}function humanize(ce,ze){if(!this.isValid())return this.localeData().invalidDate();var Ve,qe,Ye=!1,We=Po;return"object"==typeof ce&&(ze=ce,ce=!1),"boolean"==typeof ce&&(Ye=ce),"object"==typeof ze&&(We=Object.assign({},Po,ze),null!=ze.s&&null==ze.ss&&(We.ss=ze.s-1)),qe=relativeTime$1(this,!Ye,We,Ve=this.localeData()),Ye&&(qe=Ve.pastFuture(+this,qe)),Ve.postformat(qe)}var To=Math.abs;function sign(ce){return(ce>0)-(ce<0)||+ce}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var ce,ze,Ve,qe,Ye,We,Qe,Xe,ot=To(this._milliseconds)/1e3,st=To(this._days),mt=To(this._months),gt=this.asSeconds();return gt?(ce=absFloor(ot/60),ze=absFloor(ce/60),ot%=60,ce%=60,Ve=absFloor(mt/12),mt%=12,qe=ot?ot.toFixed(3).replace(/\.?0+$/,""):"",Ye=gt<0?"-":"",We=sign(this._months)!==sign(gt)?"-":"",Qe=sign(this._days)!==sign(gt)?"-":"",Xe=sign(this._milliseconds)!==sign(gt)?"-":"",Ye+"P"+(Ve?We+Ve+"Y":"")+(mt?We+mt+"M":"")+(st?Qe+st+"D":"")+(ze||ce||ot?"T":"")+(ze?Xe+ze+"H":"")+(ce?Xe+ce+"M":"")+(ot?Xe+qe+"S":"")):"P0D"}var Ao=Duration.prototype;return Ao.isValid=isValid$1,Ao.abs=abs,Ao.add=add$1,Ao.subtract=subtract$1,Ao.as=as,Ao.asMilliseconds=ya,Ao.asSeconds=ba,Ao.asMinutes=va,Ao.asHours=_a,Ao.asDays=wa,Ao.asWeeks=ka,Ao.asMonths=xa,Ao.asQuarters=Aa,Ao.asYears=Ba,Ao.valueOf=Ja,Ao._bubble=bubble,Ao.clone=clone$1,Ao.get=get$2,Ao.milliseconds=io,Ao.seconds=po,Ao.minutes=ho,Ao.hours=go,Ao.days=_o,Ao.weeks=weeks,Ao.months=Co,Ao.years=ko,Ao.humanize=humanize,Ao.toISOString=toISOString$1,Ao.toString=toISOString$1,Ao.toJSON=toISOString$1,Ao.locale=locale,Ao.localeData=localeData,Ao.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Ao.lang=Nr,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",en),addRegexToken("X",mn),addParseToken("X",(function(ce,ze,Ve){Ve._d=new Date(1e3*parseFloat(ce))})),addParseToken("x",(function(ce,ze,Ve){Ve._d=new Date(toInt(ce))})),hooks.version="2.30.1",setHookCallback(createLocal),hooks.fn=Jr,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Jr,hooks.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-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,Ve(322)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var qe=Ve(9),Ye=Ve.n(qe),We=Ve(689);let Qe;function setTranslations(ce,ze){Qe=Object.keys(ce).reduce(((Ve,qe)=>{try{Ve[qe]=new We.a(ce[qe],ze)}catch(ze){Ye.a.error("The translation key "+qe+' could not be translated. It is translated to "'+ce[qe]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Qe&&ce in Qe?Qe[ce].format(ze):(Ye.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return We})),Ve.d(ze,"c",(function(){return Bytes_transformBytesToReadableString})),Ve.d(ze,"d",(function(){return Ye.b}));var qe=Ve(488);Ve(378),Ve(367);var Bytes_transformBytesToReadableString=ce=>{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Ye=(Ve(366),Ve(15));var We=new class{constructor(){this.observers={}}updateStorageEventListener(){const ce=Object.values(this.observers).flat().length;ce>0&&!this.storageEventListener?(this.storageEventListener=ce=>{ce.key&&this.observers[ce.key]&&this.notifyObservers(ce.key,this.parseValue(ce.newValue))},window.addEventListener("storage",this.storageEventListener)):0===ce&&this.storageEventListener&&window.removeEventListener("storage",this.storageEventListener)}notifyObservers(ce,ze){const Ve=this.observers[ce]||[];for(const ce of Ve)ce(ze)}set(ce,ze){ze?window.localStorage.setItem(ce,JSON.stringify(ze)):window.localStorage.removeItem(ce),this.notifyObservers(ce,ze)}observe(ce,ze,Ve){if(this.observers[ce]||(this.observers[ce]=[]),this.observers[ce].push(ze),this.updateStorageEventListener(),Ve){const Ve=window.localStorage.getItem(ce);ze(this.parseValue(Ve))}return()=>{var Ve;const qe=null===(Ve=this.observers[ce])||void 0===Ve?void 0:Ve.indexOf(ze);qe>-1&&this.observers[ce].splice(qe,1),this.updateStorageEventListener()}}parseValue(ce){try{return ce?JSON.parse(ce):void 0}catch(ce){return}}}},function(ce,ze,Ve){"use strict";function requireInRuntime(ce,ze){if(!(ze in ce))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+ze);return ce[ze]}Ve.r(ze),Ve.d(ze,"default",(function(){return requireInRuntime}))},function(ce,ze,Ve){"use strict";function evalInContext(ce,ze,Ve){return new Function("require","state","setState",ce+"\n{"+Ve+"}").bind(null,ze)}Ve.r(ze),Ve.d(ze,"default",(function(){return evalInContext}))},function(ce,ze,Ve){"use strict";var qe=Ve(432);Ve.d(ze,"a",(function(){return qe.setTranslations})),Ve.d(ze,"b",(function(){return qe.translate}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(20),Ye=Ve(156),We=Ve(8),Qe=Ve(92);class Xe{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=qe.a._createAt(ce),this.end=ze?qe.a._createAt(ze):qe.a._createAt(ce),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Ye.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const ce=this.start.getParentPath(),ze=this.end.getParentPath();return"same"==Object(Qe.a)(ce,ze)}get root(){return this.start.root}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),qe=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&qe}containsItem(ce){const ze=qe.a._createBefore(ce);return this.containsPosition(ze)||this.start.isEqual(ze)}is(ce){return"range"===ce||"model:range"===ce}isEqual(ce){return this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new Xe(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new Xe(ce.end,this.end))):ze.push(new Xe(this.start,this.end)),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new Xe(ze,Ve)}return null}getJoined(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ve=this.isIntersecting(ce);if(Ve||(Ve=this.start.isBefore(ce.start)?ze?this.end.isTouching(ce.start):this.end.isEqual(ce.start):ze?ce.end.isTouching(this.start):ce.end.isEqual(this.start)),!Ve)return null;let qe=this.start,Ye=this.end;return ce.start.isBefore(qe)&&(qe=ce.start),ce.end.isAfter(Ye)&&(Ye=ce.end),new Xe(qe,Ye)}getMinimalFlatRanges(){const ce=[],ze=this.start.getCommonPath(this.end).length,Ve=qe.a._createAt(this.start);let Ye=Ve.parent;for(;Ve.path.length>ze+1;){const ze=Ye.maxOffset-Ve.offset;0!==ze&&ce.push(new Xe(Ve,Ve.getShiftedBy(ze))),Ve.path=Ve.path.slice(0,-1),Ve.offset++,Ye=Ye.parent}for(;Ve.path.length<=this.end.path.length;){const ze=this.end.path[Ve.path.length-1],qe=ze-Ve.offset;0!==qe&&ce.push(new Xe(Ve,Ve.getShiftedBy(qe))),Ve.offset=ze,Ve.path.push(0)}return ce}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new Ye.a(ce)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new Ye.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new Ye.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}getTransformedByOperation(ce){switch(ce.type){case"insert":return this._getTransformedByInsertOperation(ce);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(ce);case"split":return[this._getTransformedBySplitOperation(ce)];case"merge":return[this._getTransformedByMergeOperation(ce)]}return[new Xe(this.start,this.end)]}getTransformedByOperations(ce){const ze=[new Xe(this.start,this.end)];for(const Ve of ce)for(let ce=0;ce1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(ce.position,ce.howMany,ze)}_getTransformedByMoveOperation(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.sourcePosition,qe=ce.howMany,Ye=ce.targetPosition;return this._getTransformedByMove(Ve,Ye,qe,ze)}_getTransformedBySplitOperation(ce){const ze=this.start._getTransformedBySplitOperation(ce);let Ve=this.end._getTransformedBySplitOperation(ce);return this.end.isEqual(ce.insertionPosition)&&(Ve=this.end.getShiftedBy(1)),ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),new Xe(ze,Ve)}_getTransformedByMergeOperation(ce){if(this.start.isEqual(ce.targetPosition)&&this.end.isEqual(ce.deletionPosition))return new Xe(this.start);let ze=this.start._getTransformedByMergeOperation(ce),Ve=this.end._getTransformedByMergeOperation(ce);return ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),ze.isAfter(Ve)?(ce.sourcePosition.isBefore(ce.targetPosition)?(ze=qe.a._createAt(Ve),ze.offset=0):(ce.deletionPosition.isEqual(ze)||(Ve=ce.deletionPosition),ze=ce.targetPosition),new Xe(ze,Ve)):new Xe(ze,Ve)}_getTransformedByInsertion(ce,ze){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(ce))return[new Xe(this.start,ce),new Xe(ce.getShiftedBy(ze),this.end._getTransformedByInsertion(ce,ze))];{const Ve=new Xe(this.start,this.end);return Ve.start=Ve.start._getTransformedByInsertion(ce,ze),Ve.end=Ve.end._getTransformedByInsertion(ce,ze),[Ve]}}_getTransformedByMove(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){const qe=this.start._getTransformedByMove(ce,ze,Ve);return[new Xe(qe)]}const Ye=Xe._createFromPositionAndShift(ce,Ve),We=ze._getTransformedByDeletion(ce,Ve);if(this.containsPosition(ze)&&!qe&&(Ye.containsPosition(this.start)||Ye.containsPosition(this.end))){const qe=this.start._getTransformedByMove(ce,ze,Ve),Ye=this.end._getTransformedByMove(ce,ze,Ve);return[new Xe(qe,Ye)]}let Qe;const ot=this.getDifference(Ye);let st=null;const mt=this.getIntersection(Ye);if(1==ot.length?st=new Xe(ot[0].start._getTransformedByDeletion(ce,Ve),ot[0].end._getTransformedByDeletion(ce,Ve)):2==ot.length&&(st=new Xe(this.start,this.end._getTransformedByDeletion(ce,Ve))),Qe=st?st._getTransformedByInsertion(We,Ve,null!==mt||qe):[],mt){const ce=new Xe(mt.start._getCombined(Ye.start,We),mt.end._getCombined(Ye.start,We));2==Qe.length?Qe.splice(1,0,ce):Qe.push(ce)}return Qe}_getTransformedByDeletion(ce,ze){let Ve=this.start._getTransformedByDeletion(ce,ze),qe=this.end._getTransformedByDeletion(ce,ze);return null==Ve&&null==qe?null:(null==Ve&&(Ve=ce),null==qe&&(qe=ce),new Xe(Ve,qe))}static _createFromPositionAndShift(ce,ze){const Ve=ce,qe=ce.getShiftedBy(ze);return ze>0?new this(Ve,qe):new this(qe,Ve)}static _createIn(ce){return new this(qe.a._createAt(ce,0),qe.a._createAt(ce,ce.maxOffset))}static _createOn(ce){return this._createFromPositionAndShift(qe.a._createBefore(ce),ce.offsetSize)}static _createFromRanges(ce){if(0===ce.length)throw new We.a("range-create-from-ranges-empty-array",null);if(1==ce.length)return ce[0].clone();const ze=ce[0];ce.sort(((ce,ze)=>ce.start.isAfter(ze.start)?1:-1));const Ve=ce.indexOf(ze),Ye=new this(ze.start,ze.end);if(Ve>0)for(let ze=Ve-1;ce[ze].end.isEqual(Ye.start);ze++)Ye.start=qe.a._createAt(ce[ze].start);for(let ze=Ve+1;ze3&&void 0!==arguments[3]&&arguments[3];if(Object(We.a)(ze))return void this._setObjectToTarget(ce,ze,qe);const Ye=ze.split(".");ze=Ye.pop();for(const ze of Ye)Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze];if(Object(We.a)(Ve))return Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze],void this._setObjectToTarget(ce,Ve,qe);qe&&void 0!==ce[ze]||(ce[ze]=Ve)}_getFromSource(ce,ze){const Ve=ze.split(".");ze=Ve.pop();for(const ze of Ve){if(!Object(We.a)(ce[ze])){ce=null;break}ce=ce[ze]}return ce?cloneConfig(ce[ze]):void 0}_setObjectToTarget(ce,ze,Ve){Object.keys(ze).forEach((qe=>{this._setToTarget(ce,qe,ze[qe],Ve)}))}}function cloneConfig(ce){return Object(Qe.a)(ce,leaveDOMReferences)}function leaveDOMReferences(ce){return Object(Xe.a)(ce)?ce:void 0}var st=Ve(129),mt=Ve(8),gt=Ve(39),yt=Ve(25);class bt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this._context=ce,this._plugins=new Map,this._availablePlugins=new Map;for(const ce of ze)ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce);this._contextPlugins=new Map;for(const[ce,ze]of Ve)this._contextPlugins.set(ce,ze),this._contextPlugins.set(ze,ce),ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce)}*[Symbol.iterator](){for(const ce of this._plugins)"function"==typeof ce[0]&&(yield ce)}get(ce){const ze=this._plugins.get(ce);if(!ze){let ze=ce;throw"function"==typeof ce&&(ze=ce.pluginName||ce.name),new mt.a("plugincollection-plugin-not-loaded",this._context,{plugin:ze})}return ze}has(ce){return this._plugins.has(ce)}init(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const qe=this,Ye=this._context;!function findAvailablePluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;ce.forEach((ce=>{isPluginConstructor(ce)&&(ze.has(ce)||(ze.add(ce),ce.pluginName&&!qe._availablePlugins.has(ce.pluginName)&&qe._availablePlugins.set(ce.pluginName,ce),ce.requires&&findAvailablePluginConstructors(ce.requires,ze)))}))}(ce),validatePlugins(ce);const We=[...function getPluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return ce.map((ce=>isPluginConstructor(ce)?ce:qe._availablePlugins.get(ce))).reduce(((ce,Ve)=>ze.has(Ve)?ce:(ze.add(Ve),Ve.requires&&(validatePlugins(Ve.requires,Ve),getPluginConstructors(Ve.requires,ze).forEach((ze=>ce.add(ze)))),ce.add(Ve))),new Set)}(ce.filter((ce=>!isPluginRemoved(ce,ze))))];!function substitutePlugins(ce,ze){for(const Ve of ze){if("function"!=typeof Ve)throw new mt.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:Ve});const ze=Ve.pluginName;if(!ze)throw new mt.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:Ve});if(Ve.requires&&Ve.requires.length)throw new mt.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:ze});const Ye=qe._availablePlugins.get(ze);if(!Ye)throw new mt.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:ze});const We=ce.indexOf(Ye);if(-1===We){if(qe._contextPlugins.has(Ye))return;throw new mt.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:ze})}if(Ye.requires&&Ye.requires.length)throw new mt.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:ze});ce.splice(We,1,Ve),qe._availablePlugins.set(ze,Ve)}}(We,Ve);const Qe=function loadPlugins(ce){return ce.map((ce=>{const ze=qe._contextPlugins.get(ce)||new ce(Ye);return qe._add(ce,ze),ze}))}(We);return initPlugins(Qe,"init").then((()=>initPlugins(Qe,"afterInit"))).then((()=>Qe));function isPluginConstructor(ce){return"function"==typeof ce}function isContextPlugin(ce){return isPluginConstructor(ce)&&ce.isContextPlugin}function isPluginRemoved(ce,ze){return ze.some((ze=>ze===ce||(getPluginName(ce)===ze||getPluginName(ze)===ce)))}function getPluginName(ce){return isPluginConstructor(ce)?ce.pluginName||ce.name:ce}function validatePlugins(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ce.map((ce=>isPluginConstructor(ce)?ce:qe._availablePlugins.get(ce)||ce)).forEach((ce=>{checkMissingPlugin(ce,ze),checkContextPlugin(ce,ze),checkRemovedPlugin(ce,ze)}))}function checkMissingPlugin(ce,ze){if(!isPluginConstructor(ce)){if(ze)throw new mt.a("plugincollection-soft-required",Ye,{missingPlugin:ce,requiredBy:getPluginName(ze)});throw new mt.a("plugincollection-plugin-not-found",Ye,{plugin:ce})}}function checkContextPlugin(ce,ze){if(isContextPlugin(ze)&&!isContextPlugin(ce))throw new mt.a("plugincollection-context-required",Ye,{plugin:getPluginName(ce),requiredBy:getPluginName(ze)})}function checkRemovedPlugin(ce,Ve){if(Ve&&isPluginRemoved(ce,ze))throw new mt.a("plugincollection-required",Ye,{plugin:getPluginName(ce),requiredBy:getPluginName(Ve)})}function initPlugins(ce,ze){return ce.reduce(((ce,Ve)=>Ve[ze]?qe._contextPlugins.has(Ve)?ce:ce.then(Ve[ze].bind(Ve)):ce),Promise.resolve())}}destroy(){const ce=[];for(const[,ze]of this)"function"!=typeof ze.destroy||this._contextPlugins.has(ze)||ce.push(ze.destroy());return Promise.all(ce)}_add(ce,ze){this._plugins.set(ce,ze);const Ve=ce.pluginName;if(Ve){if(this._plugins.has(Ve))throw new mt.a("plugincollection-plugin-name-conflict",null,{pluginName:Ve,plugin1:this._plugins.get(Ve).constructor,plugin2:ce});this._plugins.set(Ve,ze)}}}Object(yt.a)(bt,gt.c);var vt=Ve(634);class wt{constructor(ce){this.config=new ot(ce,this.constructor.defaultConfig);const ze=this.constructor.builtinPlugins;this.config.define("plugins",ze),this.plugins=new bt(this,ze);const Ve=this.config.get("language")||{};this.locale=new vt.a({uiLanguage:"string"==typeof Ve?Ve:Ve.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new st.a,this._contextOwner=null}initPlugins(){const ce=this.config.get("plugins")||[],ze=this.config.get("substitutePlugins")||[];for(const Ve of ce.concat(ze)){if("function"!=typeof Ve)throw new mt.a("context-initplugins-constructor-only",null,{Plugin:Ve});if(!0!==Ve.isContextPlugin)throw new mt.a("context-initplugins-invalid-plugin",null,{Plugin:Ve})}return this.plugins.init(ce,[],ze)}destroy(){return Promise.all(Array.from(this.editors,(ce=>ce.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(ce,ze){if(this._contextOwner)throw new mt.a("context-addeditor-private-context");this.editors.add(ce),ze&&(this._contextOwner=ce)}_removeEditor(ce){return this.editors.has(ce)&&this.editors.remove(ce),this._contextOwner===ce?this.destroy():Promise.resolve()}_getEditorConfig(){const ce={};for(const ze of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ze)||(ce[ze]=this.config.get(ze));return ce}static create(ce){return new Promise((ze=>{const Ve=new this(ce);ze(Ve.initPlugins().then((()=>Ve)))}))}}var Ct=Ve(360),Dt=Ve(536);class kt{constructor(){this._commands=new Map}add(ce,ze){this._commands.set(ce,ze)}get(ce){return this._commands.get(ce)}execute(ce){const ze=this.get(ce);if(!ze)throw new mt.a("commandcollection-command-not-found",this,{commandName:ce});for(var Ve=arguments.length,qe=new Array(Ve>1?Ve-1:0),Ye=1;Ye2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof ze){const ce=ze;ze=(ze,Ve)=>{this.editor.execute(ce),Ve()}}super.set(ce,ze,Ve)}}var Lt=Ve(42),Ft=Ve(365);class Bt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=ce.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=ce.context||new wt({language:ze}),this._context._addEditor(this,!ce.context);const Ve=Array.from(this.constructor.builtinPlugins||[]);this.config=new ot(ce,this.constructor.defaultConfig),this.config.define("plugins",Ve),this.config.define(this._context._getEditorConfig()),this.plugins=new bt(this,Ve,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new kt,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Et.a;const qe=new Ft.a;this.data=new St.a(this.model,qe),this.editing=new Dt.a(this.model,qe),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new xt.a([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Tt(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(ce){throw new mt.a("editor-isreadonly-has-no-setter")}enableReadOnlyMode(ce){if("string"!=typeof ce&&"symbol"!=typeof ce)throw new mt.a("editor-read-only-lock-id-invalid",null,{lockId:ce});this._readOnlyLocks.has(ce)||(this._readOnlyLocks.add(ce),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(ce){if("string"!=typeof ce&&"symbol"!=typeof ce)throw new mt.a("editor-read-only-lock-id-invalid",null,{lockId:ce});this._readOnlyLocks.has(ce)&&(this._readOnlyLocks.delete(ce),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const ce=this.config,ze=ce.get("plugins"),Ve=ce.get("removePlugins")||[],qe=ce.get("extraPlugins")||[],Ye=ce.get("substitutePlugins")||[];return this.plugins.init(ze.concat(qe),Ve,Ye)}destroy(){let ce=Promise.resolve();return"initializing"==this.state&&(ce=new Promise((ce=>this.once("ready",ce)))),ce.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(){try{return this.commands.execute(...arguments)}catch(ce){mt.a.rethrowUnexpectedError(ce,this)}}focus(){this.editing.view.focus()}}Object(yt.a)(Bt,Lt.a);class Vt{constructor(ce){this.editor=ce,this._components=new Map}*names(){for(const ce of this._components.values())yield ce.originalName}add(ce,ze){this._components.set(getNormalized(ce),{callback:ze,originalName:ce})}create(ce){if(!this.has(ce))throw new mt.a("componentfactory-item-missing",this,{name:ce});return this._components.get(getNormalized(ce)).callback(this.editor.locale)}has(ce){return this._components.has(getNormalized(ce))}}function getNormalized(ce){return String(ce).toLowerCase()}var Ht=Ve(117);class Ut{constructor(ce){this.editor=ce,this.componentFactory=new Vt(ce),this.focusTracker=new Ht.a,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(ce.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const ce of this._editableElementsMap.values())ce.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(ce,ze){this._editableElementsMap.set(ce,ze),ze.ckeditorInstance||(ze.ckeditorInstance=this.editor)}getEditableElement(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(ce)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const ce=this.editor,ze=ce.config.get("ui.viewportOffset");if(ze)return ze;const Ve=ce.config.get("toolbar.viewportTopOffset");return Ve?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:Ve}):{top:0}}}Object(yt.a)(Ut,Lt.a);var Wt=Ve(388);function attachToForm(ce){if(!Object(Wt.a)(ce.updateSourceElement))throw new mt.a("attachtoform-missing-elementapi-interface",ce);const ze=ce.sourceElement;if(ze&&"textarea"===ze.tagName.toLowerCase()&&ze.form){let Ve;const qe=ze.form,onSubmit=()=>ce.updateSourceElement();Object(Wt.a)(qe.submit)&&(Ve=qe.submit,qe.submit=()=>{onSubmit(),Ve.apply(qe)}),qe.addEventListener("submit",onSubmit),ce.on("destroy",(()=>{qe.removeEventListener("submit",onSubmit),Ve&&(qe.submit=Ve)}))}}var Jt={setData(ce){this.data.set(ce)},getData(ce){return this.data.get(ce)}},Qt=Ve(519);var en={updateSourceElement(){if(!this.sourceElement)throw new mt.a("editor-missing-sourceelement",this);Object(Qt.a)(this.sourceElement,this.data.get())}};Ct.a,Symbol.iterator;var rn=Ve(677),ln=Ve(678);const mn={cancel:'',caption:'',check:'',cog:'',eraser:'',lowVision:'',image:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:rn.a,quote:'',threeVerticalDots:ln.a}},function(ce,ze,Ve){"use strict";var qe=Ve(706);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"d",(function(){return getTextNodeAtPosition})),Ve.d(ze,"b",(function(){return getNodeAfterPosition})),Ve.d(ze,"c",(function(){return getNodeBeforePosition}));var qe=Ve(156),Ye=Ve(92),We=Ve(8);Ve(325);class Qe{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(!ce.is("element")&&!ce.is("documentFragment"))throw new We.a("model-position-root-invalid",ce);if(!(ze instanceof Array)||0===ze.length)throw new We.a("model-position-path-incorrect-format",ce,{path:ze});ce.is("rootElement")?ze=ze.slice():(ze=[...ce.getPath(),...ze],ce=ce.root),this.root=ce,this.path=ze,this.stickiness=Ve}get offset(){return this.path[this.path.length-1]}set offset(ce){this.path[this.path.length-1]=ce}get parent(){let ce=this.root;for(let ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new qe.a(ze);return Ve.skip(ce),Ve.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const ce=this.parent;return ce.is("documentFragment")?[ce]:ce.getAncestors({includeSelf:!0})}findAncestor(ce){const ze=this.parent;return ze.is("element")?ze.findAncestor(ce,{includeSelf:!0}):null}getCommonPath(ce){if(this.root!=ce.root)return[];const ze=Object(Ye.a)(this.path,ce.path),Ve="string"==typeof ze?Math.min(this.path.length,ce.path.length):ze;return this.path.slice(0,Ve)}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let qe=0;for(;ze[qe]==Ve[qe]&&ze[qe];)qe++;return 0===qe?null:ze[qe-1]}getShiftedBy(ce){const ze=this.clone(),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}isAfter(ce){return"after"==this.compareWith(ce)}isBefore(ce){return"before"==this.compareWith(ce)}isEqual(ce){return"same"==this.compareWith(ce)}isTouching(ce){let ze=null,Ve=null;switch(this.compareWith(ce)){case"same":return!0;case"before":ze=Qe._createAt(this),Ve=Qe._createAt(ce);break;case"after":ze=Qe._createAt(ce),Ve=Qe._createAt(this);break;default:return!1}let qe=ze.parent;for(;ze.path.length+Ve.path.length;){if(ze.isEqual(Ve))return!0;if(ze.path.length>Ve.path.length){if(ze.offset!==qe.maxOffset)return!1;ze.path=ze.path.slice(0,-1),qe=qe.parent,ze.offset++}else{if(0!==Ve.offset)return!1;Ve.path=Ve.path.slice(0,-1)}}}is(ce){return"position"===ce||"model:position"===ce}hasSameParentAs(ce){if(this.root!==ce.root)return!1;const ze=this.getParentPath(),Ve=ce.getParentPath();return"same"==Object(Ye.a)(ze,Ve)}getTransformedByOperation(ce){let ze;switch(ce.type){case"insert":ze=this._getTransformedByInsertOperation(ce);break;case"move":case"remove":case"reinsert":ze=this._getTransformedByMoveOperation(ce);break;case"split":ze=this._getTransformedBySplitOperation(ce);break;case"merge":ze=this._getTransformedByMergeOperation(ce);break;default:ze=Qe._createAt(this)}return ze}_getTransformedByInsertOperation(ce){return this._getTransformedByInsertion(ce.position,ce.howMany)}_getTransformedByMoveOperation(ce){return this._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)}_getTransformedBySplitOperation(ce){const ze=ce.movedRange;return ze.containsPosition(this)||ze.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(ce.splitPosition,ce.moveTargetPosition):ce.graveyardPosition?this._getTransformedByMove(ce.graveyardPosition,ce.insertionPosition,1):this._getTransformedByInsertion(ce.insertionPosition,1)}_getTransformedByMergeOperation(ce){const ze=ce.movedRange;let Ve;return ze.containsPosition(this)||ze.start.isEqual(this)?(Ve=this._getCombined(ce.sourcePosition,ce.targetPosition),ce.sourcePosition.isBefore(ce.targetPosition)&&(Ve=Ve._getTransformedByDeletion(ce.deletionPosition,1))):Ve=this.isEqual(ce.deletionPosition)?Qe._createAt(ce.deletionPosition):this._getTransformedByMove(ce.deletionPosition,ce.graveyardPosition,1),Ve}_getTransformedByDeletion(ce,ze){const Ve=Qe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(Ye.a)(ce.getParentPath(),this.getParentPath())){if(ce.offsetthis.offset)return null;Ve.offset-=ze}}else if("prefix"==Object(Ye.a)(ce.getParentPath(),this.getParentPath())){const qe=ce.path.length-1;if(ce.offset<=this.path[qe]){if(ce.offset+ze>this.path[qe])return null;Ve.path[qe]-=ze}}return Ve}_getTransformedByInsertion(ce,ze){const Ve=Qe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(Ye.a)(ce.getParentPath(),this.getParentPath()))(ce.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(ce instanceof Qe)return new Qe(ce.root,ce.path,ce.stickiness);{const qe=ce;if("end"==ze)ze=qe.maxOffset;else{if("before"==ze)return this._createBefore(qe,Ve);if("after"==ze)return this._createAfter(qe,Ve);if(0!==ze&&!ze)throw new We.a("model-createpositionat-offset-required",[this,ce])}if(!qe.is("element")&&!qe.is("documentFragment"))throw new We.a("model-position-parent-incorrect",[this,ce]);const Ye=qe.getPath();return Ye.push(ze),new this(qe.root,Ye,Ve)}}static _createAfter(ce,ze){if(!ce.parent)throw new We.a("model-position-after-root",[this,ce],{root:ce});return this._createAt(ce.parent,ce.endOffset,ze)}static _createBefore(ce,ze){if(!ce.parent)throw new We.a("model-position-before-root",ce,{root:ce});return this._createAt(ce.parent,ce.startOffset,ze)}static fromJSON(ce,ze){if("$graveyard"===ce.root){const Ve=new Qe(ze.graveyard,ce.path);return Ve.stickiness=ce.stickiness,Ve}if(!ze.getRoot(ce.root))throw new We.a("model-position-fromjson-no-root",ze,{rootName:ce.root});return new Qe(ze.getRoot(ce.root),ce.path,ce.stickiness)}}function getTextNodeAtPosition(ce,ze){const Ve=ze.getChild(ze.offsetToIndex(ce.offset));return Ve&&Ve.is("$text")&&Ve.startOffset1?ze-1:0),Qe=1;Qe1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new qe.a(ze);return Ve.skip(ce),Ve.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let qe=0;for(;ze[qe]==Ve[qe]&&ze[qe];)qe++;return 0===qe?null:ze[qe-1]}is(ce){return"position"===ce||"view:position"===ce}isEqual(ce){return this.parent==ce.parent&&this.offset==ce.offset}isBefore(ce){return"before"==this.compareWith(ce)}isAfter(ce){return"after"==this.compareWith(ce)}compareWith(ce){if(this.root!==ce.root)return"different";if(this.isEqual(ce))return"same";const ze=this.parent.is("node")?this.parent.getPath():[],Ve=ce.parent.is("node")?ce.parent.getPath():[];ze.push(this.offset),Ve.push(ce.offset);const qe=Object(Ye.a)(ze,Ve);switch(qe){case"prefix":return"before";case"extension":return"after";default:return ze[qe]0&&void 0!==arguments[0]?arguments[0]:{};return ce.startPosition=this,new qe.a(ce)}clone(){return new Xe(this.parent,this.offset)}static _createAt(ce,ze){if(ce instanceof Xe)return new this(ce.parent,ce.offset);{const Ve=ce;if("end"==ze)ze=Ve.is("$text")?Ve.data.length:Ve.childCount;else{if("before"==ze)return this._createBefore(Ve);if("after"==ze)return this._createAfter(Ve);if(0!==ze&&!ze)throw new We.a("view-createpositionat-offset-required",Ve)}return new Xe(Ve,ze)}}static _createAfter(ce){if(ce.is("$textProxy"))return new Xe(ce.textNode,ce.offsetInText+ce.data.length);if(!ce.parent)throw new We.a("view-position-after-root",ce,{root:ce});return new Xe(ce.parent,ce.index+1)}static _createBefore(ce){if(ce.is("$textProxy"))return new Xe(ce.textNode,ce.offsetInText);if(!ce.parent)throw new We.a("view-position-before-root",ce,{root:ce});return new Xe(ce.parent,ce.index)}}},function(ce,ze,Ve){"use strict";function mix(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{Object.getOwnPropertyNames(ze).concat(Object.getOwnPropertySymbols(ze)).forEach((Ve=>{if(Ve in ce.prototype)return;const qe=Object.getOwnPropertyDescriptor(ze,Ve);qe.enumerable=!1,Object.defineProperty(ce.prototype,Ve,qe)}))}))}Ve.d(ze,"a",(function(){return mix}))},function(ce,ze,Ve){var qe;!function(Ye,We){if(Ye){for(var Qe,Xe={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},ot={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},st={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},mt={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},gt=1;gt<20;++gt)Xe[111+gt]="f"+gt;for(gt=0;gt<=9;++gt)Xe[gt+96]=gt.toString();Mousetrap.prototype.bind=function(ce,ze,Ve){var qe=this;return ce=ce instanceof Array?ce:[ce],qe._bindMultiple.call(qe,ce,ze,Ve),qe},Mousetrap.prototype.unbind=function(ce,ze){return this.bind.call(this,ce,(function(){}),ze)},Mousetrap.prototype.trigger=function(ce,ze){var Ve=this;return Ve._directMap[ce+":"+ze]&&Ve._directMap[ce+":"+ze]({},ce),Ve},Mousetrap.prototype.reset=function(){var ce=this;return ce._callbacks={},ce._directMap={},ce},Mousetrap.prototype.stopCallback=function(ce,ze){if((" "+ze.className+" ").indexOf(" mousetrap ")>-1)return!1;if(_belongsTo(ze,this.target))return!1;if("composedPath"in ce&&"function"==typeof ce.composedPath){var Ve=ce.composedPath()[0];Ve!==ce.target&&(ze=Ve)}return"INPUT"==ze.tagName||"SELECT"==ze.tagName||"TEXTAREA"==ze.tagName||ze.isContentEditable},Mousetrap.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Mousetrap.addKeycodes=function(ce){for(var ze in ce)ce.hasOwnProperty(ze)&&(Xe[ze]=ce[ze]);Qe=null},Mousetrap.init=function(){var ce=Mousetrap(We);for(var ze in ce)"_"!==ze.charAt(0)&&(Mousetrap[ze]=function(ze){return function(){return ce[ze].apply(ce,arguments)}}(ze))},Mousetrap.init(),Ye.Mousetrap=Mousetrap,ce.exports&&(ce.exports=Mousetrap),void 0===(qe=function(){return Mousetrap}.call(ze,Ve,ze,ce))||(ce.exports=qe)}function _addEvent(ce,ze,Ve){ce.addEventListener?ce.addEventListener(ze,Ve,!1):ce.attachEvent("on"+ze,Ve)}function _characterFromEvent(ce){if("keypress"==ce.type){var ze=String.fromCharCode(ce.which);return ce.shiftKey||(ze=ze.toLowerCase()),ze}return Xe[ce.which]?Xe[ce.which]:ot[ce.which]?ot[ce.which]:String.fromCharCode(ce.which).toLowerCase()}function _eventModifiers(ce){var ze=[];return ce.shiftKey&&ze.push("shift"),ce.altKey&&ze.push("alt"),ce.ctrlKey&&ze.push("ctrl"),ce.metaKey&&ze.push("meta"),ze}function _preventDefault(ce){ce.preventDefault?ce.preventDefault():ce.returnValue=!1}function _stopPropagation(ce){ce.stopPropagation?ce.stopPropagation():ce.cancelBubble=!0}function _isModifier(ce){return"shift"==ce||"ctrl"==ce||"alt"==ce||"meta"==ce}function _getReverseMap(){if(!Qe)for(var ce in Qe={},Xe)ce>95&&ce<112||Xe.hasOwnProperty(ce)&&(Qe[Xe[ce]]=ce);return Qe}function _pickBestAction(ce,ze,Ve){return Ve||(Ve=_getReverseMap()[ce]?"keydown":"keypress"),"keypress"==Ve&&ze.length&&(Ve="keydown"),Ve}function _keysFromString(ce){return"+"===ce?["+"]:(ce=ce.replace(/\+{2}/g,"+plus")).split("+")}function _getKeyInfo(ce,ze){var Ve,qe,Ye,We=[];for(Ve=_keysFromString(ce),Ye=0;Ye1?_bindSequence(ce,Xe,Ve,qe):(Qe=_getKeyInfo(ce,qe),ze._callbacks[Qe.key]=ze._callbacks[Qe.key]||[],_getMatches(Qe.key,Qe.modifiers,{type:Qe.action},Ye,ce,We),ze._callbacks[Qe.key][Ye?"unshift":"push"]({callback:Ve,modifiers:Qe.modifiers,action:Qe.action,seq:Ye,level:We,combo:ce}))}ze._handleKey=function(ce,ze,Ve){var qe,Ye=_getMatches(ce,ze,Ve),We={},ot=0,st=!1;for(qe=0;qe{if(this.setTwoFactorMethods([]),!1===ce.completed)return this.setLoading(!1),void(ce.twoFactorMethods&&ce.twoFactorMethods.length&&this.setTwoFactorMethods(ce.twoFactorMethods));if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),Dt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.loginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.twoFactorLogin=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.twoFactorLoginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),this.setTwoFactorError(!0),401!==ce.status)return Promise.reject(ce)}))),this.updatePersistentSettings=wt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});Ct.b.patch(Ct.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1,this.twoFactorMethods=[],this.twoFactorError=!1}get systemLocale(){return this.user?this.user.locale:Ct.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}setTwoFactorMethods(ce){this.twoFactorMethods=ce}setTwoFactorError(ce){this.twoFactorError=ce}get contentLocale(){const ce=this.persistentSettings.get(St);if(ce)return ce;const{localizations:ze}=kt.a,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:Ct.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(St,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return Ct.b.get(Ct.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}validatePassword(ce){const ze=Ct.a.passwordPattern;return!ze||new RegExp(ze).test(ce)}}).prototype,"persistentSettings",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(qe.prototype,"user",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"contact",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loggedIn",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"loading",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"loginError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"forgotPasswordSuccess",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=_applyDecoratedDescriptor(qe.prototype,"twoFactorMethods",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yt=_applyDecoratedDescriptor(qe.prototype,"twoFactorError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"clear",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"systemLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"systemLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoggedIn",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoggedIn"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoginError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoginError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForgotPasswordSuccess",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForgotPasswordSuccess"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorMethods",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorMethods"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"contentLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"contentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUser",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUser"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"updateContentLocale",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateContentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setContact",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setContact"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setFullName",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setFullName"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setPersistentSetting",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setPersistentSetting"),qe.prototype),qe);ze.a=xt},function(ce,ze,Ve){"use strict";var qe=Ve(1788);function api(ce,ze,Ve){if(3===arguments.length)return api.set(ce,ze,Ve);if(2===arguments.length)return api.get(ce,ze);var qe=api.bind(api,ce);for(var Ye in api)api.hasOwnProperty(Ye)&&(qe[Ye]=api[Ye].bind(qe,ce));return qe}ce.exports=api,api.get=function get(ce,ze){for(var Ve=Array.isArray(ze)?ze:api.parse(ze),qe=0;qe{Ve.locale=ce})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=We.a.bind(this,this)}createCollection(ce){const ze=new Ye.a(ce);return this._viewCollections.add(ze),ze}registerChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.add(ze)}deregisterChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.remove(ze)}setTemplate(ce){this.template=new We.a(ce)}extendTemplate(ce){We.a.extend(this.template,ce)}render(){if(this.isRendered)throw new qe.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((ce=>ce.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Object(st.a)(gt,Qe.a),Object(st.a)(gt,Xe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(239);Ve.d(ze,"a",(function(){return qe.a}));Ve(381);var Ye=Ve(45);Ve.d(ze,"d",(function(){return Ye.b})),Ve.d(ze,"c",(function(){return Ye.a}));var We=Ve(103);Ve.d(ze,"b",(function(){return We.a}));Ve(113)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.editor=ce,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(451);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(582);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Oo.b})),Ve.d(ze,"c",(function(){return Oo.a})),Ve.d(ze,"a",(function(){return Nc.b})),Ve.d(ze,"d",(function(){return Xu.a})),Ve.d(ze,"i",(function(){return Nc.c})),Ve.d(ze,"j",(function(){return Nc.d})),Ve.d(ze,"e",(function(){return Qu})),Ve.d(ze,"f",(function(){return ep.a})),Ve.d(ze,"g",(function(){return tp.a})),Ve.d(ze,"k",(function(){return Ad})),Ve.d(ze,"h",(function(){return np.a}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(9),Qe=Ve.n(We),Xe=Ve(693),ot=Ve(698),st=Ve(699),mt=Ve(688),gt=Ve(690),yt=Ve(700),bt=Ve(691),vt=Ve(372),wt=Ve(701),Ct=Ve(702),Dt=Ve(703),kt=Ve(704),St=Ve(694),xt=Ve(687),Et=Ve(713),Pt=Ve(11),Tt=Ve(3),Lt=Ve(1),Ft=Ve(31),Bt=Ve(52),Vt=Ve(138),Ht=Ve(219),Ut=Ve(44),Wt=Ve(6);function addLinkConversion(ce,ze,Ve,qe){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[qe]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(qe)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:Ye}=Ve;return Ye.createAttributeElement(ze,{[qe]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(29);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"link"),Ve.push(qe);const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"unlink"),Ve.push(Ye),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(80);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const qe=ce[this.attributeMap[Ve]];return qe?(ze[Ve]=qe,ze):ze}),{});Ve.provider=ce.provider;const{selection:qe}=ce,Ye=qe?qe.getFirstPosition():void 0,We=Ye?Ye.textNode||Ye.nodeBefore:void 0;if(qe&&!qe.isCollapsed)for(const ce of qe.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const qe=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(qe)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(376);var mn=Ve(101),gn=Ve(73),bn=Ve(48),wn=Ve(32);Ye.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn=Ve(162),Zn=Ve(710),Xn=Ve(375);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ei,si,_i,Ri,Ci,Di,Ei,Oi,Ti,er,tr,nr,rr=Object(Tt.b)((Sn=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:qe,href:Ye}=this;if(!Ye)return void ze(void 0);const We=new URLSearchParams;Ye.startsWith("mailto:")&&(ce&&ce("_self"),qe&&We.set("subject",qe),Ve&&We.set("body",Ve)),ze(Ye+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Gn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Kn,this),this.handleRelNoFollowChange=ce=>{const{onRelChange:ze,rel:Ve}=this.props;if(!ze)return;let qe=(Ve||"").toLowerCase().trim().split(" ").map((ce=>ce.trim())).filter((ce=>!!ce));ce&&!qe.includes("nofollow")?qe=[...qe,"nofollow"]:!ce&&qe.includes("nofollow")&&(qe=qe.filter((ce=>"nofollow"!==ce)));const Ye=qe.join(" ")||void 0;Ve!==Ye&&ze(Ye)},this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),qe=Ve.get("subject"),Ye=Ve.get("body");return this.href=ze[0],this.mailSubject=qe||void 0,void(this.mailBody=Ye||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}get isRelNoFollow(){const{rel:ce}=this.props;return!!ce&&ce.toLowerCase().includes("nofollow")}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,onRelChange:Qe,open:Xe,target:ot,title:st,href:mt}=this.props;return Ye.a.createElement(mn.a,{cancelText:Object(Wt.translate)("sulu_admin.cancel"),confirmDisabled:!mt,confirmText:Object(Wt.translate)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Wt.translate)("sulu_admin.link")},Ye.a.createElement(gn.a,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_url"),required:!0},Ye.a.createElement(Xn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_target"),required:!0},Ye.a.createElement(wn.a,{onChange:Ve,value:ot},Ye.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),Ye.a.createElement(wn.a.Option,{value:"_self"},"_self"),Ye.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),Ye.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.mail_subject")},Ye.a.createElement(bn.a,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.mail_body")},Ye.a.createElement(Zn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.translate)("sulu_admin.link_title")},Ye.a.createElement(bn.a,{onChange:We,value:st})),Qe&&Ye.a.createElement(gn.a.Field,null,Ye.a.createElement(Jn.a,{checked:this.isRelNoFollow,onChange:this.handleRelNoFollowChange},Object(Wt.translate)("sulu_admin.no_follow")))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),_applyDecoratedDescriptor(Sn.prototype,"isRelNoFollow",[Lt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"isRelNoFollow"),Sn.prototype),Cn=Sn))||Cn,ar=Ve(143);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const sr="_self",lr="target",dr="title",ur="url",pr="rel",vr="externalLinkHref",_r="externalLinkTarget",Rr="externalLinkTitle",Cr="externalLinkRel",Dr="a";let Er=(ei=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",si,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",_i,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",Ri,this),ExternalLinkPlugin_initializerDefineProperty(this,"rel",Ci,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",Di,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Ei,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Oi,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Ti,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleRelChange",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",nr,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(_r),this.title=ce.getAttribute(Rr),this.url=ce.getAttribute(vr),this.rel=ce.getAttribute(Cr),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(rr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onRelChange:this.handleRelChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,rel:this.rel,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[vr]:ur,[_r]:lr,[Rr]:dr,[Cr]:"rel"},ur)),this.editor.commands.add("externalUnlink",new ln(this.editor,[vr,_r,Rr,Cr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Wt.translate)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=sr,this.title=void 0,this.url=void 0,this.rel=void 0}))),ze})),addLinkConversion(this.editor,Dr,_r,"target"),addLinkConversion(this.editor,Dr,vr,"href"),addLinkConversion(this.editor,Dr,Rr,"title"),addLinkConversion(this.editor,Dr,Cr,"rel");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Dr);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},si=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return sr}}),Ri=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ci=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"rel",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Di=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[lr]:this.target,[dr]:this.title,[ur]:this.url,[pr]:this.rel}),this.open=!1}}}),Oi=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ti=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),er=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleRelChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.rel=ce}}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),ei);var Tr,Ar,Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr,Yr,Ur,Wr=Er,$r=Ve(295),Gr=Ve(287),Kr=Ve(195);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Jr="_self",Zr="target",ga="href",ya="provider",ba="title",va="defaultText",_a="internalLinkHref",wa="internalLinkTarget",ka="internalLinkProvider",xa="internalLinkTitle",Aa="validationState",Ba="sulu-link";let Ja=(Tr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",Ar,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Mr,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Lr,this),InternalLinkPlugin_initializerDefineProperty(this,"title",jr,this),InternalLinkPlugin_initializerDefineProperty(this,"query",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleQueryChange",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",Ur,this)}get internalLinkTypes(){return ar.default.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,query:ze,anchor:Ve}=this;if(!ce)return null;let qe="";return ze&&(qe+="?"+ze.replace(/^\?+/g,"")),Ve&&(qe+="#"+Ve.replace(/^#+/g,"")),ce+qe}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{var ce;this.selection=this.editor.model.document.selection;const ze=findModelItemInSelection(this.editor);let Ve=ze.getAttribute(_a).split("#",2);const qe=Ve[1]||null;Ve=null===(ce=Ve[0])||void 0===ce?void 0:ce.split("?",2);const Ye=Ve[0]||null,We=Ve[1]||null;this.id=isNaN(Ye)?Ye:parseInt(Ye),this.anchor=qe,this.query=We,this.target=ze.getAttribute(wa),this.title=ze.getAttribute(xa),this.openOverlay=ze.getAttribute(ka),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(qe.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=ar.default.getOverlay(ze);return Ye.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onQueryChange:this.handleQueryChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:ar.default.getOptions(ze),query:this.query,target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[_a]:ga,[wa]:Zr,[xa]:ba,[ka]:ya},va)),this.editor.commands.add("internalUnlink",new ln(this.editor,[wa,xa,_a,Aa,ka])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Kr.c)(ce),Ve=new $r.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Wt.translate)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const qe=new Bt.a(ce);qe.set({class:"ck-link-button",label:ar.default.getTitle(ze),withText:!0});const Ye=new Gr.a(ce);Ye.children.add(qe),qe.delegate("execute").to(Ye),qe.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=Jr,this.title=void 0,this.id=void 0,this.query=void 0,this.anchor=void 0}))),Ve.items.add(Ye)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,Ba,Aa,"sulu-validation-state"),addLinkConversion(this.editor,Ba,ka,"provider"),addLinkConversion(this.editor,Ba,wa,"target"),addLinkConversion(this.editor,Ba,xa,"title"),addLinkConversion(this.editor,Ba,_a,"href");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},Ar=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Jr}}),Lr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),jr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"query",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"internalLinkTypes"),Tr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"href"),Tr.prototype),Br=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[ga]:this.href,[ya]:this.openOverlay,selection:this.selection,[Zr]:this.target,[ba]:this.title,[va]:this.defaultText}),this.openOverlay=void 0}}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleQueryChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Tr);var io=Ja;var po=new class{constructor(){this.clear()}clear(){this.configs=[]}add(ce){this.configs.push(ce)}};var ho=new class{constructor(){this.clear()}clear(){this.plugins=[]}add(ce){this.plugins.push(ce)}};class go extends Ye.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;ze?(this.editorInstance.ui.element.classList.add("disabled"),this.editorInstance.enableReadOnlyMode("disabled")):(this.editorInstance.ui.element.classList.remove("disabled"),this.editorInstance.disableReadOnlyMode("disabled"));const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Xe.a,ot.a,mt.a,Wr,gt.a,io,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ho.plugins],...po.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:qe}=this.props,{model:{document:Ye},editing:{view:{document:We}}}=this.editorInstance;ze&&(this.editorInstance.enableReadOnlyMode("disabled"),this.editorInstance.ui.element.classList.add("disabled")),Ve&&We.on("blur",(()=>{Ve()})),qe&&Ye.on("change",(()=>{Ye.differ.getChanges().length>0&&qe(this.getEditorData())}))})).catch((ce=>{Qe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return Ye.a.createElement("div",{ref:this.setContainerRef})}}go.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""};var _o,Co,ko,Oo=Ve(126);function blockPreviewTransformerRegistry_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function blockPreviewTransformerRegistry_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Po=(_o=class{constructor(){blockPreviewTransformerRegistry_initializerDefineProperty(this,"blockPreviewTransformers",Co,this),blockPreviewTransformerRegistry_initializerDefineProperty(this,"priority",ko,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Co=blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"blockPreviewTransformers",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ko=blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"priority",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),blockPreviewTransformerRegistry_applyDecoratedDescriptor(_o.prototype,"blockPreviewTransformerKeysByPriority",[Lt.computed],Object.getOwnPropertyDescriptor(_o.prototype,"blockPreviewTransformerKeysByPriority"),_o.prototype),_o);var To,Ao,jo,Fo,Bo,Vo,Ho,Uo=new Po,Wo=Ve(22),$o=Ve.n(Wo),es=Ve(28),ts=Ve.n(es),ns=Ve(5),rs=Ve.n(ns),os=Ve(40),ss=Ve(89),ls=Ve(19),cs=Ve(118),ds={tooltipContainer:"tooltipContainer--L5L5YPJvN-",tooltip:"tooltip--7Lh6nw79kl",top:"top--U8Sui0LbxA",bottom:"bottom--CZLd0ErrJ9"};function Tooltip_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Tooltip_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var us=Object(Tt.b)((Ao=class extends Ye.a.Component{constructor(ce){super(ce),Tooltip_initializerDefineProperty(this,"tooltipOpen",jo,this),Tooltip_initializerDefineProperty(this,"tooltipRef",Fo,this),Tooltip_initializerDefineProperty(this,"setTooltipRef",Bo,this),Tooltip_initializerDefineProperty(this,"handleEnter",Vo,this),Tooltip_initializerDefineProperty(this,"handleLeave",Ho,this)}render(){const{children:ce,label:ze}=this.props;return Ye.a.createElement("span",{className:ds.tooltipContainer,onBlur:this.handleLeave,onFocus:this.handleEnter,onMouseEnter:this.handleEnter,onMouseLeave:this.handleLeave,ref:this.setTooltipRef},this.tooltipRef&&Ye.a.createElement(cs.a,{anchorElement:this.tooltipRef,backdrop:!1,horizontalAnchorMode:"center",open:this.tooltipOpen,verticalOffset:10},((ce,Ve,qe)=>Ye.a.createElement("span",{"aria-hidden":!0,className:rs()(ds.tooltip,ds[qe]),ref:ce,style:Ve},ze))),ce)}},jo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"tooltipOpen",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"tooltipRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"setTooltipRef",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.tooltipRef=ce}}}),Vo=Tooltip_applyDecoratedDescriptor(Ao.prototype,"handleEnter",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!0}}}),Ho=Tooltip_applyDecoratedDescriptor(Ao.prototype,"handleLeave",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!1}}}),To=Ao))||To,ps={container:"container--1i0lFz14C0",sticky:"sticky--dtdnyK1-fr",divide:"divide--wM2BxGIRYb",selected:"selected--KM9kXsBs3Y",cancelButton:"cancelButton--5CaUXCYD1v",cancelButtonIcon:"cancelButtonIcon--g-QSxI1bIk",actionList:"actionList--JnSOuCNxTa",actionButton:"actionButton--Md-Bowahqf",actionButtonDisabled:"actionButtonDisabled--46sJS5ixwC",actionButtonIcon:"actionButtonIcon--o4Wfi+PWDo"};class hs extends Ye.a.Component{constructor(ce){super(ce),this.handleChangeSelectAll=()=>{const{onSelectAll:ce,onUnselectAll:ze,allSelected:Ve}=this.props;ce&&!Ve?ce():ze&&Ve&&ze()},this.handleCancel=()=>{const{onCancel:ce}=this.props;ce&&ce()}}render(){const{actions:ce,allSelected:ze,selectedCount:Ve,mode:qe}=this.props;return Ye.a.createElement("section",{className:rs()(ps.container,ps[qe])},Ye.a.createElement("div",{className:ps.divide},Ye.a.createElement("div",{className:ps.selected},Object(Wt.translate)("sulu_admin.%count%_selected",{count:Ve})),Ye.a.createElement("div",null,Ye.a.createElement(ss.b,{checked:ze,onChange:this.handleChangeSelectAll,size:"small"},Object(Wt.translate)("sulu_admin.select_all")))),Ye.a.createElement("div",{className:ps.divide},Ye.a.createElement("div",{className:ps.actionList},ce.map((ce=>Ye.a.createElement(us,{key:ce.label,label:ce.label},Ye.a.createElement("button",{"aria-label":ce.label,className:rs()(ps.actionButton,{[ps.actionButtonDisabled]:0===Ve}),disabled:0===Ve,onClick:ce.handleClick,type:"button"},Ye.a.createElement(ls.a,{className:ps.actionButtonIcon,name:ce.icon})))))),Ye.a.createElement("div",null,Ye.a.createElement("button",{className:ps.cancelButton,onClick:this.handleCancel,type:"button"},Ye.a.createElement(ls.a,{className:ps.cancelButtonIcon,name:"su-cancel"}),Object(Wt.translate)("sulu_admin.cancel")))))}}hs.defaultProps={actions:[],allSelected:!1,mode:"static",selectedCount:0};var fs,ms,gs,ys,bs,vs=hs,_s="sticky--UR9815OVZU",ws="stickySentinel--Fe6RfpzPjq";function Sticky_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Sticky_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Rs,Cs,Ds,ks,Ss,xs,Es,Os,Ps=Object(Tt.b)(((bs=class extends Ye.a.Component{constructor(ce){super(ce),Sticky_initializerDefineProperty(this,"isSticky",gs,this),Sticky_initializerDefineProperty(this,"stickySentinelRef",ys,this),this.setStickySentinelRef=ce=>{this.stickySentinelRef=ce,this.stickySentinelRef&&this.intersectionObserver&&this.intersectionObserver.observe(this.stickySentinelRef)},"undefined"!=typeof IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((ce=>{for(const ze of ce)Object(Lt.action)((()=>{this.isSticky=!ze.isIntersecting}))()}),{}))}componentWillUnmount(){this.intersectionObserver&&this.intersectionObserver.disconnect()}render(){const{children:ce,top:ze}=this.props;return Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement("div",{className:ws,ref:this.setStickySentinelRef,style:{top:0-ze-1}}),Ye.a.createElement("div",{className:_s,style:{top:ze}},ce(this.isSticky)))}}).defaultProps={top:0},gs=Sticky_applyDecoratedDescriptor((ms=bs).prototype,"isSticky",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ys=Sticky_applyDecoratedDescriptor(ms.prototype,"stickySentinelRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fs=ms))||fs,Ts=Ve(62),As="block--r5AwkIkGuy",Ms="expanded--01smYmWYgZ",Ls="children--hbmzvF4fF5",js="header--OspPZgJWkG",Is="icons--rzCLkMTLhR",zs="selected--R4FzxmVUY0",Fs="handle--j8uhPR0+Uz",Bs="content--Up7oqHiSdO",Ns="types--06XY8IuEHj",Vs="type--h9anPode67",Hs="icon-buttons--2H8iA5fPOP",qs=Ve(7),Ys="icon--NCyK7egXC7",Us="action--C6j6sNd6c8";class Ws extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{icon:ce,index:ze,label:Ve}=this.props;return Ye.a.createElement("li",{key:ze},Ye.a.createElement("button",{className:Us,onClick:this.handleClick,type:"button"},Ye.a.createElement(ls.a,{className:Ys,name:ce}),Ve))}}class $s extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleActionClick=ce=>{const{actions:ze,onClose:Ve}=this.props,qe=ze[ce];if("divider"===qe.type)throw new Error("Divider actions cannot be clicked! This should not happen and is likely a bug.");qe.onClick(),Ve()}}render(){const{open:ce,onClose:ze,anchorElement:Ve}=this.props;return Ye.a.createElement(qs.Popover,{anchorElement:Ve,onClose:ze,open:ce,verticalOffset:5},((ce,ze)=>Ye.a.createElement(qs.Menu,{menuRef:ce,style:ze},this.props.actions.map(((ce,ze)=>"divider"===ce.type?Ye.a.createElement(qs.Menu.Divider,{key:ze}):Ye.a.createElement(Ws,{icon:ce.icon,index:ze,key:ze,label:ce.label,onClick:this.handleActionClick}))))))}}function Block_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Block_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Gs=Object(Tt.b)((Os=class extends Ye.a.Component{constructor(){super(...arguments),Block_initializerDefineProperty(this,"actionsButtonRef",Ds,this),Block_initializerDefineProperty(this,"showActionsPopover",ks,this),Block_initializerDefineProperty(this,"setActionsButtonRef",Ss,this),Block_initializerDefineProperty(this,"handleActionsButtonClick",xs,this),Block_initializerDefineProperty(this,"handleActionsPopoverClose",Es,this),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}get actions(){const{onRemove:ce,actions:ze}=this.props;return ce?(Qe.a.warn('The "onRemove" prop of the "Block" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{activeType:ce,children:ze,handle:Ve,icons:We,onCollapse:Qe,onExpand:Xe,onSettingsClick:ot,selected:st,types:mt}=this.props,gt=this.props.expanded||!Qe&&!Xe,yt=rs()(As,{[Ms]:gt,[zs]:st});return Ye.a.createElement("section",{className:yt,onClick:this.handleExpand,role:"switch"},Ve&&Ye.a.createElement("div",{className:Fs},Ve),Ye.a.createElement("div",{className:Bs},Ye.a.createElement("header",{className:js},gt?Ye.a.createElement(qe.Fragment,null,mt&&Object.keys(mt).length>1&&Ye.a.createElement("div",{className:Ns},Ye.a.createElement(wn.a,{onChange:this.handleTypeChange,value:ce},Object.keys(mt).map((ce=>Ye.a.createElement(wn.a.Option,{key:ce,value:ce},mt[ce]))))),We&&Ye.a.createElement("div",{className:Is},We.map((ce=>Ye.a.createElement(ls.a,{key:ce,name:ce})))),Ye.a.createElement("div",{className:Hs},this.actions.length>0&&Ye.a.createElement("button",{onClick:this.handleActionsButtonClick,ref:this.setActionsButtonRef,type:"button"},Ye.a.createElement(ls.a,{name:"su-more-circle"})),ot&&Ye.a.createElement("button",{onClick:ot,type:"button"},Ye.a.createElement(ls.a,{name:"su-cog"})),Qe&&Xe&&Ye.a.createElement("button",{onClick:this.handleCollapse,type:"button"},Ye.a.createElement(ls.a,{name:"su-collapse-vertical"}))),Ye.a.createElement($s,{actions:this.actions,anchorElement:this.actionsButtonRef,onClose:this.handleActionsPopoverClose,open:this.showActionsPopover})):Ye.a.createElement(qe.Fragment,null,We&&Ye.a.createElement("div",{className:Is},We.map((ce=>Ye.a.createElement(ls.a,{key:ce,name:ce})))),mt&&ce&&Ye.a.createElement("div",{className:Vs},mt[ce]),Qe&&Xe&&Ye.a.createElement(ls.a,{name:"su-expand-vertical"}))),Ye.a.createElement("article",{className:Ls},ze)))}},Os.defaultProps={actions:[],expanded:!1,selected:!1},Ds=Block_applyDecoratedDescriptor((Cs=Os).prototype,"actionsButtonRef",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ks=Block_applyDecoratedDescriptor(Cs.prototype,"showActionsPopover",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Block_applyDecoratedDescriptor(Cs.prototype,"actions",[Lt.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"actions"),Cs.prototype),Ss=Block_applyDecoratedDescriptor(Cs.prototype,"setActionsButtonRef",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.actionsButtonRef=ce}}}),xs=Block_applyDecoratedDescriptor(Cs.prototype,"handleActionsButtonClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!0}}}),Es=Block_applyDecoratedDescriptor(Cs.prototype,"handleActionsPopoverClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!1}}}),Rs=Cs))||Rs;var Ks=Gs,Js="sortableHandle--xA6rKMQ7Pq",Zs=Object(Ts.c)((()=>Ye.a.createElement(ls.a,{className:Js,name:"su-more"}))),Qs="container--64sAtrxc6H";class Xs extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=()=>{const{onChange:ce}=this.props;ce&&ce()},this.handleContainerClick=ce=>{ce.stopPropagation(),this.handleChange()}}render(){const{checked:ce}=this.props;return Ye.a.createElement("div",{className:Qs,onClick:this.handleContainerClick},Ye.a.createElement(ss.b,{checked:ce,onChange:this.handleChange,skin:ce?"light":"dark"}))}}var pl,gl,yl,bl=Xs;let vl=Object(Tt.b)(((yl=class extends Ye.a.Component{constructor(ce){super(ce),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelectionChanged=()=>{const{sortIndex:ce,onSelect:ze,onUnselect:Ve,selected:qe}=this.props;qe&&Ve&&Ve(ce),!qe&&ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.renderHandle=()=>{const{mode:ce,movable:ze,selected:Ve}=this.props;return"sortable"===ce&&!1!==ze?Ye.a.createElement(Zs,null):"selectable"===ce?Ye.a.createElement(bl,{checked:Ve,onChange:this.handleSelectionChanged}):null},!1===ce.movable&&Qe.a.warn('The "movable" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get actions(){const{onRemove:ce,actions:ze,sortIndex:Ve}=this.props,qe=ze.map((ce=>"divider"!==ce.type?{...ce,onClick:()=>ce.onClick(Ve)}:ce));return ce?(Qe.a.warn('The "onRemove" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...qe,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:()=>ce(Ve)}]):qe}render(){const{activeType:ce,expanded:ze,icons:Ve,onCollapse:qe,onExpand:We,onSettingsClick:Qe,renderBlockContent:Xe,selected:ot,sortIndex:st,types:mt,value:gt}=this.props;return Ye.a.createElement(Ks,{actions:this.actions,activeType:ce,expanded:ze,handle:this.renderHandle(),icons:Ve,onCollapse:qe?this.handleCollapse:void 0,onExpand:We?this.handleExpand:void 0,onSettingsClick:Qe&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,selected:ot,types:mt},Xe(gt,ce,st,ze))}}).defaultProps={actions:[],mode:"sortable",movable:!0,selected:!1},function SortableBlock_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((gl=yl).prototype,"actions",[Lt.computed],Object.getOwnPropertyDescriptor(gl.prototype,"actions"),gl.prototype),pl=gl))||pl;var _l,wl,Rl,Cl=Object(Ts.b)(vl),Dl="sortableBlockList--QsHZHQJiOS",kl="disabled--G6bSSDFTya";let Sl=Object(Tt.b)(((Rl=class extends Ye.a.Component{constructor(ce){super(ce),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelect=ce=>{const{onSelect:ze}=this.props;ze&&ze(ce)},this.handleUnselect=ce=>{const{onUnselect:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},!1===ce.movable&&Qe.a.warn('The "movable" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get blockActions(){const{onRemove:ce,blockActions:ze}=this.props;return ce?(Qe.a.warn('The "onRemove" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "blockActions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:We,mode:Qe,movable:Xe,onCollapse:ot,onExpand:st,onSelect:mt,onSettingsClick:gt,onUnselect:yt,renderBlockContent:bt,renderDivider:vt,selectedBlocks:wt,types:Ct,value:Dt}=this.props,kt=rs()(Dl,{[kl]:ce});return Ye.a.createElement("div",{className:kt},Dt&&Dt.map(((kt,St)=>Ye.a.createElement(qe.Fragment,{key:St},Ye.a.createElement(Cl,{actions:this.blockActions,activeType:kt.type,expanded:!ce&&ze[St],icons:We&&We[St],index:St,key:Ve[St],mode:"sortable"===Qe&&!1!==Xe?"sortable":Qe,onCollapse:ot?this.handleCollapse:void 0,onExpand:st?this.handleExpand:void 0,onSelect:mt?this.handleSelect:void 0,onSettingsClick:gt?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,onUnselect:yt?this.handleUnselect:void 0,renderBlockContent:bt,selected:wt[St],sortIndex:St,types:Ct,value:kt}),vt&&St{const{collapsable:ze,defaultType:Ve,onChange:qe,minOccurs:Ye,value:We}=this.props,{expandedBlocks:Qe,generatedBlockIds:Xe,selectedBlocks:ot}=this;if(!We)return;Qe.length>We.length&&Qe.splice(We.length),ot.length>We.length&&ot.splice(We.length),Xe.length>We.length&&Xe.splice(We.length);const st=!ze;Qe.push(...new Array(We.length-Qe.length).fill(st)),ot.push(...new Array(We.length-ot.length).fill(!1)),Xe.push(...new Array(We.length-Xe.length).fill(!1).map((()=>++ce.idCounter))),Ye&&We.length++ce.idCounter))),qe([...We,...Array.from({length:Ye-We.length},(()=>({type:Ve})))]))},BlockCollection_initializerDefineProperty(this,"handleAddBlock",Ll,this),BlockCollection_initializerDefineProperty(this,"handlePasteBlocks",jl,this),this.handleRemoveBlock=ce=>{this.removeBlocks([ce])},this.handleRemoveSelectedBlocks=()=>{this.removeBlocks(this.selectedBlockIndexes)},BlockCollection_initializerDefineProperty(this,"removeBlocks",Il,this),this.handleDuplicateSelectedBlocks=()=>{const{value:ce}=this.props;this.duplicateBlocks(this.selectedBlockIndexes,ce.length)},this.handleDuplicateBlock=ce=>{this.duplicateBlocks([ce],ce)},BlockCollection_initializerDefineProperty(this,"duplicateBlocks",zl,this),this.handleCopySelectedBlocks=()=>{this.copyBlocks(this.selectedBlockIndexes)},this.handleCopyBlock=ce=>{this.copyBlocks([ce])},this.copyBlocks=function(ce){let ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onDisplaySnackbar:qe,value:Ye}=Ve.props;if(!Ye)return;const We=[];ce.forEach((ce=>{We.push({...Object(Lt.toJS)(Ye[ce])})})),Wt.clipboard.set(Oc,We),ze&&qe&&qe({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_copied",{count:ce.length}),icon:"su-copy"})},this.handleCutSelectedBlocks=()=>{this.cutBlocks(this.selectedBlockIndexes)},this.handleCutBlock=ce=>{this.cutBlocks([ce])},this.cutBlocks=ce=>{const{onDisplaySnackbar:ze}=this.props;this.copyBlocks(ce,!1),this.removeBlocks(ce,!1),ze&&ze({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_cut",{count:ce.length}),icon:"su-cut"})},BlockCollection_initializerDefineProperty(this,"handleSortEnd",Fl,this),BlockCollection_initializerDefineProperty(this,"handleCollapse",Bl,this),BlockCollection_initializerDefineProperty(this,"handleExpand",Nl,this),BlockCollection_initializerDefineProperty(this,"handleSelect",Vl,this),BlockCollection_initializerDefineProperty(this,"handleUnselect",Hl,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},BlockCollection_initializerDefineProperty(this,"handleTypeChange",Ul,this),this.renderAddButton=ce=>{const{addButtonText:ze,pasteButtonText:Ve,disabled:qe,value:We}=this.props,Qe=ce0&&Ye.a.createElement(os.a,{className:fc,disabled:qe||this.hasMaximumReached,icon:"su-copy",onClick:this.handlePasteBlocks,skin:"secondary",value:ce+1},Ve||Object(Wt.translate)("sulu_admin.paste_blocks",{count:this.pasteableBlocks.length})))},BlockCollection_initializerDefineProperty(this,"handleBlockToolbarCancel",Wl,this),BlockCollection_initializerDefineProperty(this,"handleClickSelectMultiple",$l,this),BlockCollection_initializerDefineProperty(this,"handleBlockToolbarSelectAll",ec,this),BlockCollection_initializerDefineProperty(this,"handleBlockToolbarUnselectAll",nc,this),this.renderBlockToolbar=ce=>{const{value:ze}=this.props,Ve=this.selectedBlocks.filter((ce=>ce)).length;return Ye.a.createElement(vs,{actions:[{label:Object(Wt.translate)("sulu_admin.copy"),icon:"su-copy",handleClick:this.handleCopySelectedBlocks},{label:Object(Wt.translate)("sulu_admin.duplicate"),icon:"su-duplicate",handleClick:this.handleDuplicateSelectedBlocks},{label:Object(Wt.translate)("sulu_admin.cut"),icon:"su-cut",handleClick:this.handleCutSelectedBlocks},{label:Object(Wt.translate)("sulu_admin.delete"),icon:"su-trash-alt",handleClick:this.handleRemoveSelectedBlocks}],allSelected:Ve===ze.length,mode:ce?"sticky":"static",onCancel:this.handleBlockToolbarCancel,onSelectAll:this.handleBlockToolbarSelectAll,onUnselectAll:this.handleBlockToolbarUnselectAll,selectedCount:Ve})},this.renderBlockToolbarButton=()=>Ye.a.createElement("div",{className:gc},Ye.a.createElement("button",{className:_c,onClick:this.handleClickSelectMultiple,type:"button"},Ye.a.createElement(ls.a,{"aria-hidden":!0,className:kc,name:"su-check-circle"}),Ye.a.createElement("span",{className:Ec},Object(Wt.translate)("sulu_admin.select_multiple_blocks")))),this.fillArraysDisposer=Object(Lt.reaction)((()=>this.props.value.length),this.fillArrays,{fireImmediately:!0}),this.setPasteableBlocksDisposer=Wt.clipboard.observe(Oc,Object(Lt.action)((ce=>{this.pasteableBlocks=ce||[]})),!0),!1===ze.movable&&(this.mode="static")}componentWillUnmount(){var ce,ze;null===(ce=this.fillArraysDisposer)||void 0===ce||ce.call(this),null===(ze=this.setPasteableBlocksDisposer)||void 0===ze||ze.call(this)}get selectedBlockIndexes(){const ce=[];return this.selectedBlocks.forEach(((ze,Ve)=>{ze&&ce.push(Ve)})),ce}get hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}get hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}get blockActions(){const ce=[];return ce.push({type:"button",icon:"su-copy",label:Object(Wt.translate)("sulu_admin.copy"),onClick:this.handleCopyBlock}),this.hasMinimumReached||ce.push({type:"button",icon:"su-scissors",label:Object(Wt.translate)("sulu_admin.cut"),onClick:this.handleCutBlock}),this.hasMaximumReached||ce.push({type:"button",icon:"su-duplicate",label:Object(Wt.translate)("sulu_admin.duplicate"),onClick:this.handleDuplicateBlock}),this.hasMinimumReached||(ce.length>0&&ce.push({type:"divider"}),ce.push({type:"button",icon:"su-trash-alt",label:Object(Wt.translate)("sulu_admin.delete"),onClick:this.handleRemoveBlock})),ce}render(){const{collapsable:ce,disabled:ze,icons:Ve,onSettingsClick:qe,renderBlockContent:We,types:Qe,value:Xe}=this.props;return Ye.a.createElement("section",{className:lc},Xe.length>1?"selectable"===this.mode?Ye.a.createElement(Ps,{top:10},this.renderBlockToolbar):this.renderBlockToolbarButton():null,Ye.a.createElement("div",{className:pc}),Ye.a.createElement(oc,{blockActions:this.blockActions,disabled:ze,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ve,lockAxis:"y",mode:this.mode,onCollapse:ce?this.handleCollapse:void 0,onExpand:ce?this.handleExpand:void 0,onSelect:this.handleSelect,onSettingsClick:qe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,onUnselect:this.handleUnselect,renderBlockContent:We,renderDivider:this.renderAddButton,selectedBlocks:this.selectedBlocks,types:Qe,useDragHandle:!0,value:Xe}),this.renderAddButton(Xe.length-1))}},ic.idCounter=0,ic.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},Ol=BlockCollection_applyDecoratedDescriptor((El=ic).prototype,"pasteableBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pl=BlockCollection_applyDecoratedDescriptor(El.prototype,"generatedBlockIds",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Tl=BlockCollection_applyDecoratedDescriptor(El.prototype,"expandedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Al=BlockCollection_applyDecoratedDescriptor(El.prototype,"selectedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ml=BlockCollection_applyDecoratedDescriptor(El.prototype,"mode",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"sortable"}}),BlockCollection_applyDecoratedDescriptor(El.prototype,"selectedBlockIndexes",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"selectedBlockIndexes"),El.prototype),Ll=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleAddBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{defaultType:ze,onChange:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(qe){this.expandedBlocks.splice(ce,0,!0),this.selectedBlocks.splice(ce,0,!1),this.generatedBlockIds.splice(ce,0,++Mc.idCounter);Ve([...qe.slice(0,ce),{type:ze},...qe.slice(ce)])}}}}),jl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handlePasteBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onDisplaySnackbar:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(!qe)return;this.expandedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!0))),this.selectedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!1))),this.generatedBlockIds.splice(ce,0,...this.pasteableBlocks.map((()=>++Mc.idCounter)));const Ye=this.pasteableBlocks.map((ce=>{var ze;return null!==(ze=this.props.types)&&void 0!==ze&&ze[ce.type]?ce:{...ce,type:this.props.defaultType}})),We=qe.slice(0,ce),Qe=qe.slice(ce);ze([...We,...Ye,...Qe]),Wt.clipboard.set(Oc,void 0),Ve&&Ve({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_pasted",{count:Ye.length}),icon:"su-copy"})}}}),Il=BlockCollection_applyDecoratedDescriptor(El.prototype,"removeBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onChange:qe,onDisplaySnackbar:Ye,movable:We,value:Qe}=ce.props;Qe&&(ze.forEach(((ze,Ve)=>{if(ce.hasMinimumReached)throw new Error("The minimum amount of blocks has already been reached!");const qe=ze-Ve;ce.expandedBlocks.splice(qe,1),ce.selectedBlocks.splice(qe,1),ce.generatedBlockIds.splice(qe,1)})),ce.generatedBlockIds.length<2&&"selectable"===ce.mode&&(ce.mode=We?"sortable":"static"),qe(Qe.filter(((ce,Ve)=>-1===ze.indexOf(Ve)))),Ve&&Ye&&Ye({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_removed",{count:ze.length}),icon:"su-trash-alt"}))}}}),zl=BlockCollection_applyDecoratedDescriptor(El.prototype,"duplicateBlocks",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,onDisplaySnackbar:qe,value:Ye}=this.props;if(!Ye)return;let We=[...Ye];ce.forEach(((ce,Ve)=>{if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");const qe=ze+Ve;this.expandedBlocks.splice(qe,0,!0),this.selectedBlocks.splice(qe,0,!1),this.generatedBlockIds.splice(qe,0,++Mc.idCounter);const Ye=We.slice(0,qe),Qe=We.slice(qe);We=[...Ye,{...Object(Lt.toJS)(We[ce])},...Qe]})),Ve(We),qe&&qe({type:"info",text:Object(Wt.translate)("sulu_admin.%count%_blocks_duplicated",{count:ce.length}),icon:"su-duplicate"})}}}),Fl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleSortEnd",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:qe,onSortEnd:Ye,value:We}=this.props;this.expandedBlocks=Object(Wt.arrayMove)(this.expandedBlocks,Ve,ze),this.selectedBlocks=Object(Wt.arrayMove)(this.selectedBlocks,Ve,ze),this.generatedBlockIds=Object(Wt.arrayMove)(this.generatedBlockIds,Ve,ze),qe(Object(Wt.arrayMove)(We,Ve,ze)),Ye&&Ye(Ve,ze)}}}),Bl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleCollapse",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Nl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleExpand",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),Vl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleSelect",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!0}}}),Hl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleUnselect",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!1}}}),Ul=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleTypeChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(Lt.toJS)(qe);Ye[ze].type=ce,Ve(Ye)}}}),BlockCollection_applyDecoratedDescriptor(El.prototype,"hasMaximumReached",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"hasMaximumReached"),El.prototype),BlockCollection_applyDecoratedDescriptor(El.prototype,"hasMinimumReached",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"hasMinimumReached"),El.prototype),BlockCollection_applyDecoratedDescriptor(El.prototype,"blockActions",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"blockActions"),El.prototype),Wl=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarCancel",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{movable:ce}=this.props;this.mode=ce?"sortable":"static",this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),$l=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleClickSelectMultiple",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mode="selectable"}}}),ec=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarSelectAll",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!0}))}}}),nc=BlockCollection_applyDecoratedDescriptor(El.prototype,"handleBlockToolbarUnselectAll",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),xl=El))||xl;var Lc,jc,Ic,Fc=Mc,Nc=Ve(112),Vc=Ve(705);function snackbarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let qc=(Lc=Lt.observable.shallow,jc=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="messages",qe=this,(Ve=Ic)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.timeouts=[]}add(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.messages.push(ce),this.timeouts.push(null),ze&&(this.timeouts[this.messages.length-1]=setTimeout((()=>{this.remove(ce)}),ze))}remove(ce){const ze=this.messages.indexOf(ce);-1!==ze&&(this.timeouts[ze]&&clearTimeout(this.timeouts[ze]),this.timeouts.splice(ze,1),this.messages.splice(ze,1))}clear(){this.messages=[],this.timeouts.forEach((ce=>{clearTimeout(ce)})),this.timeouts=[]}},Ic=snackbarStore_applyDecoratedDescriptor(jc.prototype,"messages",[Lc],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),snackbarStore_applyDecoratedDescriptor(jc.prototype,"add",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"add"),jc.prototype),snackbarStore_applyDecoratedDescriptor(jc.prototype,"remove",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"remove"),jc.prototype),snackbarStore_applyDecoratedDescriptor(jc.prototype,"clear",[Lt.action],Object.getOwnPropertyDescriptor(jc.prototype,"clear"),jc.prototype),jc);var Gc,Kc,Jc,Qc,ed,td,sd,ld,cd=new qc,dd=Ve(113);class ud extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:qe}=this.props;qe(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onFieldFinish:We,onSuccess:Qe,router:Xe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt}=this.props;return Ye.a.createElement(Nc.a,{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onChange:this.handleChange,onFieldFinish:We,onSuccess:Qe,router:Xe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}ud.defaultProps={showAllErrors:!1};const fd='The "block" field type needs at least one type to be configured!',md="sulu.block_preview",yd="settings";Object(Tt.b)((Kc=class extends Ye.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Jc,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Qc,this),FieldBlocks_initializerDefineProperty(this,"value",ed,this),FieldBlocks_initializerDefineProperty(this,"setValue",td,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:qe}=this.props,Ye=this.value;if(!Ye)return;const We=Object(Lt.toJS)(Ye);ts.a.set(We[ce],"/"+ze,Ve),this.setValue(We),qe(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:qe}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!qe)throw new Error(fd);if(qe[ce])return qe[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!qe[ze])throw new Error('The default type should exist in block "'+Ve+'".');return qe[ze]},this.renderBlockContent=(ce,ze,Ve,qe)=>qe?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:qe,dataPath:We,error:Qe,formInspector:Xe,onFinish:ot,onSuccess:st,router:mt,schemaPath:gt,showAllErrors:yt}=this.props,bt=this.getBlockSchemaType(ze),vt=Object(Lt.toJS)(Qe);return Ye.a.createElement(ud,{data:qe,dataPath:We+"/"+Ve,errors:vt&&vt.length>Ve&&vt[Ve]?vt[Ve]:void 0,formInspector:Xe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:ot,onSuccess:st,router:mt,schema:bt.form,schemaPath:gt+"/types/"+ze+"/form",showAllErrors:yt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const We=this.getBlockSchemaType(ze),Qe=this.removeSections(We.form),Xe=Object.keys(Qe).filter((ze=>{const Ve=Qe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===md))})).sort(((ce,ze)=>{const Ve=Qe[ce].tags,qe=Qe[ze].tags;if(!Ve||!qe)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const Ye=Ve.find((ce=>ce.name===md)),We=qe.find((ce=>ce.name===md));if(!Ye||!We)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(We.priority||0)-(Ye.priority||0)}));if(0===Xe.length)for(const ze of Uo.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Qe))if(Qe[Ve].type===ze&&ce[Ve]){Xe.push(Ve);break}if(Xe.length>=3)break}return Ye.a.createElement(qe.Fragment,null,Xe.map((ze=>Uo.has(Qe[ze].type)&&ce[ze]&&Ye.a.createElement(qe.Fragment,{key:ze},Uo.get(Qe[ze].type).transform(ce[ze],Qe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",sd,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},this.handleDisplaySnackbar=ce=>{cd.add(ce,2500)},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",ld,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:qe}=this;if(!Ve||null==qe||!ze)return;const Ye=[...ze.slice(0,qe),{...ze[qe],[yd]:Ve.data},...ze.slice(qe+1)];this.setValue(Ye),ce(Ye)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Nc.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:qe,value:Ye}=this.props,{types:We}=ce;if($o()(Object(Lt.toJS)(ce.value),Object(Lt.toJS)(Ye))||this.setValue(Ye),!qe||!We)throw new Error(fd);let Qe=Object(Lt.toJS)(Ye);if(Qe&&qe!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Qe=Qe.map((ce=>qe[ce.type]?ce:{...ce,type:ze}))}$o()(Object(Lt.toJS)(Ye),Qe)||Ve(Qe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get pasteButtonText(){const{schemaOptions:{paste_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "paste_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,qe)=>{const Ye="/"+ce+qe;if(!ts.a.has(ze,Ye))return Ve;const We=ts.a.get(ze,Ye);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(qe+"/items/"),Ve);const Qe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Qe&&(Ve["/settings/"+qe]=Qe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(ts.a.has(ce,Ve)&&ts.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:qe,types:We}=this.props,Qe=this.value||[],Xe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!We)throw new Error(fd);const ot=Object.keys(We).reduce(((ce,ze)=>(ce[ze]=We[ze].title,ce)),{});return Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement(Fc,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:qe,movable:this.movable,onChange:this.handleBlocksChange,onDisplaySnackbar:this.handleDisplaySnackbar,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,pasteButtonText:this.pasteButtonText,renderBlockContent:this.renderBlockContent,types:ot,value:Qe}),void 0!==this.openedBlockSettingsIndex&&Xe&&Ye.a.createElement(Vc.a,{confirmDisabled:!Xe.dirty,confirmText:Object(Pt.b)("sulu_admin.apply"),formStore:Xe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Xe,size:"small",title:Object(Pt.b)("sulu_admin.block_settings")}))}},Jc=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"openedBlockSettingsIndex",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qc=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"blockSettingsFormStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ed=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"value",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"componentDidMount",[Lt.action],Object.getOwnPropertyDescriptor(Kc.prototype,"componentDidMount"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"settingsFormKey",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"settingsFormKey"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"addButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"addButtonText"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"pasteButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"pasteButtonText"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"collapsable",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"collapsable"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"movable",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"movable"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"iconsMapping",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"iconsMapping"),Kc.prototype),FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"icons",[Lt.computed],Object.getOwnPropertyDescriptor(Kc.prototype,"icons"),Kc.prototype),td=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"setValue",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),sd=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"handleSettingsClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Nc.c.createFromFormKey(Ve,{...this.value[ce][yd]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),ld=FieldBlocks_applyDecoratedDescriptor(Kc.prototype,"closeSettingsOverlay",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),Gc=Kc));Ve(10);Ve(399);var bd=new class{constructor(){this.clear()}clear(){this.views={},this.viewConfigs={}}add(ce,ze,Ve){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze,this.viewConfigs[ce]=Ve||{}}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}getConfig(ce){if(ce in this.viewConfigs)return this.viewConfigs[ce];throw new Error('There is not view config for the key "'+ce+'" registered')}};var vd=Ve(53),_d="view--QugXb0TBe5";class wd extends Ye.a.Component{render(){const{children:ce}=this.props;return Ye.a.createElement("div",{className:_d},ce)}}var Rd,Cd,Dd,kd=wd;Object(Tt.b)((Cd=class extends Ye.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="loginCount",qe=this,(Ve=Dd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:qe,route:Ye}=ce;return Object(dd.a)(ze,Ve)!==Object(dd.a)(Ye,qe)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(Lt.reaction)((()=>vd.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,qe=bd.get(ce.type),We=bd.getConfig(ce.type);let Qe=Object(dd.a)(ce,Ve.attributes)||"";qe.remountViewOnLogin&&(Qe=Qe+"__"+this.loginCount);const Xe=Ye.a.createElement(qe,{isRootView:!ce.parent,key:Qe,route:ce,router:Ve},(ce=>ze?Ye.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Xe):We.disableDefaultSpacing?Xe:Ye.a.createElement(kd,null,Xe)}render(){return this.renderView(this.props.router.route)}},Dd=function ViewRenderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Cd.prototype,"loginCount",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Rd=Cd));var Sd,xd,Ed,Od;function sidebarStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function sidebarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Td=["small","medium","large"];var Ad=new(xd=sidebarStore_applyDecoratedDescriptor((Sd=class{constructor(){sidebarStore_initializerDefineProperty(this,"view",xd,this),sidebarStore_initializerDefineProperty(this,"props",Ed,this),sidebarStore_initializerDefineProperty(this,"size",Od,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||Td,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=Td,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ed=sidebarStore_applyDecoratedDescriptor(Sd.prototype,"props",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Od=sidebarStore_applyDecoratedDescriptor(Sd.prototype,"size",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"setConfig"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"clearConfig"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"enabled",[Lt.computed],Object.getOwnPropertyDescriptor(Sd.prototype,"enabled"),Sd.prototype),sidebarStore_applyDecoratedDescriptor(Sd.prototype,"setSize",[Lt.action],Object.getOwnPropertyDescriptor(Sd.prototype,"setSize"),Sd.prototype),Sd);var Md,Ld=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}},Id="sidebar--pPa79zWXAx";Object(Tt.b)(Md=class extends Ye.a.Component{render(){if(!Ad.view||Ld.isDisabled(Ad.view))return null;const ce=Ld.get(Ad.view),{className:ze}=this.props,Ve=rs()(Id,ze);return Ye.a.createElement("aside",{className:Ve},Ye.a.createElement(ce,Ad.props))}}),Ve(231);var Fd,Bd,Nd=Ve(145),Vd=Ve(338);function ToolbarStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Hd=(Bd=ToolbarStore_applyDecoratedDescriptor((Fd=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="config",qe=this,(Ve=Bd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.showSuccessDisposer=Object(Lt.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(Lt.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Qe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Qe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Qe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Qe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Fd.prototype,"setConfig"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Fd.prototype,"clearConfig"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"disableAll",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"disableAll"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"errors",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"errors"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"warnings",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"warnings"),Fd.prototype),ToolbarStore_applyDecoratedDescriptor(Fd.prototype,"showSuccess",[Lt.computed],Object.getOwnPropertyDescriptor(Fd.prototype,"showSuccess"),Fd.prototype),Fd);const Yd="default";var Ud,Wd,$d,Gd,Kd=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new Hd;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}},Jd="locale--8mu8Ys2oZt";function Toolbar_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:Yd;Kd.hasStore(ce)?ze.toolbarStore=Kd.getStore(ce):ze.toolbarStore=Kd.createStore(ce)},Ve=this,qe="handleErrorSnackbarCloseClick",We=this,(Ye=$d)&&Object.defineProperty(Ve,qe,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:We,warnings:Qe}=this.toolbarStore,Xe=this.toolbarStore.getIconsConfig(),ot=this.toolbarStore.getItemsConfig(),st=this.toolbarStore.getLocaleConfig();return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Vd.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),Ye.a.createElement(Vd.a,{message:Qe[Qe.length-1],type:"warning",visible:Qe.length>0}),Ye.a.createElement(Nd.a,null,Ye.a.createElement(Nd.a.Controls,{grow:!0},!!ce&&Ye.a.createElement(Nd.a.Button,{disabled:!ce,icon:We?Zd:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:We}),!!this.backButtonConfig&&Ye.a.createElement(Nd.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&We?Zd:"su-angle-left",success:!ce&&We})),ot.length>0&&Ye.a.createElement(Nd.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),Ye.a.createElement(Nd.a.Controls,null,Xe.length>0&&Ye.a.createElement(Nd.a.Icons,null,Xe.map((ce=>Object(Lt.toJS)(ce)))),!!st&&Ye.a.createElement(Nd.a.Select,_extends({className:Jd,size:"small"},st)))))}},Gd.defaultProps={navigationOpen:!1},$d=Toolbar_applyDecoratedDescriptor((Wd=Gd).prototype,"handleErrorSnackbarCloseClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),Toolbar_applyDecoratedDescriptor(Wd.prototype,"disableAllButtons",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"disableAllButtons"),Wd.prototype),Toolbar_applyDecoratedDescriptor(Wd.prototype,"backButtonConfig",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"backButtonConfig"),Wd.prototype),Toolbar_applyDecoratedDescriptor(Wd.prototype,"itemsConfig",[Lt.computed],Object.getOwnPropertyDescriptor(Wd.prototype,"itemsConfig"),Wd.prototype),Ud=Wd));Ve(578);var xu,Hu,qu,Yu,Gu,Ku=Ve(201),Ju=Ve(193),Zu=Ve(54);function ResourceMultiSelect_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceMultiSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Qu=Object(Tt.b)(((Gu=class extends Ye.a.Component{constructor(ce){super(ce),ResourceMultiSelect_initializerDefineProperty(this,"resourceListStore",qu,this),ResourceMultiSelect_initializerDefineProperty(this,"createResourceListStore",Yu,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;$o()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:qe,noneSelectedText:We,onClose:Qe,values:Xe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Ye.a.createElement(Zu.a,{size:30}):Ye.a.createElement(Ku.a,{allSelectedText:ce,disabled:ze,noneSelectedText:We,onChange:this.handleChange,onClose:Qe,values:Xe},this.resourceListStore.data.map(((ce,ze)=>Ye.a.createElement(Ku.a.Option,{key:ze,value:ce[qe]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},qu=ResourceMultiSelect_applyDecoratedDescriptor((Hu=Gu).prototype,"resourceListStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yu=ResourceMultiSelect_applyDecoratedDescriptor(Hu.prototype,"createResourceListStore",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,qe={limit:"",...Ve};this.resourceListStore=new Ju.a(ze,qe,ce)}}}),xu=Hu))||xu,Xu=(Ve(552),Ve(290),Ve(382)),ep=(Ve(577),Ve(554)),tp=Ve(254),np=Ve(437)},function(ce,ze,Ve){"use strict";var qe=Ve(327);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return __extends})),Ve.d(ze,"a",(function(){return __assign})),Ve.d(ze,"b",(function(){return __awaiter})),Ve.d(ze,"d",(function(){return __generator})),Ve.d(ze,"e",(function(){return __spread})),Ve.d(ze,"f",(function(){return __spreadArray}));var extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,qe=arguments.length;Ve0&&Ye[Ye.length-1])||6!==Xe[0]&&2!==Xe[0])){We=0;continue}if(3===Xe[0]&&(!Ye||Xe[1]>Ye[0]&&Xe[1]0)&&!(qe=We.next()).done;)Qe.push(qe.value)}catch(ce){Ye={error:ce}}finally{try{qe&&!qe.done&&(Ve=We.return)&&Ve.call(We)}finally{if(Ye)throw Ye.error}}return Qe}function __spread(){for(var ce=[],ze=0;ze{let[ze,Ve]=ce;return[Ve,ze.charAt(0).toUpperCase()+ze.slice(1)]})));function getCode(ce){let ze;if("string"==typeof ce){if(ze=Xe[ce.toLowerCase()],!ze)throw new qe.a("keyboard-unknown-key",null,{key:ce})}else ze=ce.keyCode+(ce.altKey?Xe.alt:0)+(ce.ctrlKey?Xe.ctrl:0)+(ce.shiftKey?Xe.shift:0)+(ce.metaKey?Xe.cmd:0);return ze}function parseKeystroke(ce){return"string"==typeof ce&&(ce=splitKeystrokeText(ce)),ce.map((ce=>"string"==typeof ce?getEnvKeyCode(ce):ce)).reduce(((ce,ze)=>ze+ce),0)}function getEnvKeystrokeText(ce){let ze=parseKeystroke(ce);return Object.entries(Ye.a.isMac?We:Qe).reduce(((ce,Ve)=>{let[qe,Ye]=Ve;return ze&Xe[qe]&&(ze&=~Xe[qe],ce+=Ye),ce}),"")+(ze?ot[ze]:"")}function isArrowKeyCode(ce){return ce==Xe.arrowright||ce==Xe.arrowleft||ce==Xe.arrowup||ce==Xe.arrowdown}function getLocalizedArrowKeyCodeDirection(ce,ze){const Ve="ltr"===ze;switch(ce){case Xe.arrowleft:return Ve?"left":"right";case Xe.arrowright:return Ve?"right":"left";case Xe.arrowup:return"up";case Xe.arrowdown:return"down"}}function getEnvKeyCode(ce){if(ce.endsWith("!"))return getCode(ce.slice(0,-1));const ze=getCode(ce);return Ye.a.isMac&&ze==Xe.ctrl?Xe.cmd:ze}function isForwardArrowKeyCode(ce,ze){const Ve=getLocalizedArrowKeyCodeDirection(ce,ze);return"down"===Ve||"right"===Ve}function splitKeystrokeText(ce){return ce.split("+").map((ce=>ce.trim()))}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(371);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _getEmitterListenedTo})),Ve.d(ze,"b",(function(){return _setEmitterId}));var qe=Ve(166),Ye=Ve(114),We=Ve(198),Qe=Ve(669),Xe=(Ve(325),Ve(8));const ot=Symbol("listeningTo"),st=Symbol("emitterId"),mt={on(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,ce,ze,Ve)},once(ce,ze,Ve){let qe=!1;this.listenTo(this,ce,(function(ce){if(!qe){qe=!0,ce.off();for(var Ve=arguments.length,Ye=new Array(Ve>1?Ve-1:0),We=1;We3&&void 0!==arguments[3]?arguments[3]:{};this[ot]||(this[ot]={});const Qe=this[ot];_getEmitterId(ce)||_setEmitterId(ce);const Xe=_getEmitterId(ce);(qe=Qe[Xe])||(qe=Qe[Xe]={emitter:ce,callbacks:{}}),(Ye=qe.callbacks[ze])||(Ye=qe.callbacks[ze]=[]),Ye.push(Ve),addEventListener(this,ce,ze,Ve,We)},stopListening(ce,ze,Ve){const qe=this[ot];let Ye=ce&&_getEmitterId(ce);const We=qe&&Ye&&qe[Ye],Qe=We&&ze&&We.callbacks[ze];if(!(!qe||ce&&!We||ze&&!Qe))if(Ve){removeEventListener(this,ce,ze,Ve);-1!==Qe.indexOf(Ve)&&(1===Qe.length?delete We.callbacks[ze]:removeEventListener(this,ce,ze,Ve))}else if(Qe){for(;Ve=Qe.pop();)removeEventListener(this,ce,ze,Ve);delete We.callbacks[ze]}else if(We){for(ze in We.callbacks)this.stopListening(ce,ze);delete qe[Ye]}else{for(Ye in qe)this.stopListening(qe[Ye].emitter);delete this[ot]}},fire(ce){try{const We=ce instanceof qe.a?ce:new qe.a(this,ce),Qe=We.name;let Xe=getCallbacksForEvent(this,Qe);We.path.push(this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye{this._delegations||(this._delegations=new Map),ze.forEach((ze=>{const qe=this._delegations.get(ze);qe?qe.set(ce,Ve):this._delegations.set(ze,new Map([[ce,Ve]]))}))}}},stopDelegating(ce,ze){if(this._delegations)if(ce)if(ze){const Ve=this._delegations.get(ce);Ve&&Ve.delete(ze)}else this._delegations.delete(ce);else this._delegations.clear()},_addEventListener(ce,ze,Ve){createEventNamespace(this,ce);const qe=getCallbacksListsForNamespace(this,ce),Ye={callback:ze,priority:We.a.get(Ve.priority)};for(const ce of qe)Object(Qe.a)(ce,Ye)},_removeEventListener(ce,ze){const Ve=getCallbacksListsForNamespace(this,ce);for(const ce of Ve)for(let Ve=0;Ve-1?getCallbacksForEvent(ce,ze.substr(0,ze.lastIndexOf(":"))):null}function fireDelegatedEvents(ce,ze,Ve){for(let[Ye,We]of ce){We?"function"==typeof We&&(We=We(ze.name)):We=ze.name;const ce=new qe.a(ze.source,We);ce.path=[...ze.path],Ye.fire(ce,...Ve)}}function addEventListener(ce,ze,Ve,qe,Ye){ze._addEventListener?ze._addEventListener(Ve,qe,Ye):ce._addEventListener.call(ze,Ve,qe,Ye)}function removeEventListener(ce,ze,Ve,qe){ze._removeEventListener?ze._removeEventListener(Ve,qe):ce._removeEventListener.call(ze,Ve,qe)}ze.c=mt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot=Ve(54),st={button:"button--aQ4kqYFgtY",primary:"primary--rAc1127T49",secondary:"secondary--9YWjfkD8cS","button-icon":"button-icon--gm1eDNsoNU",buttonIcon:"button-icon--gm1eDNsoNU","dropdown-icon":"dropdown-icon--pPL6G+O2hD",dropdownIcon:"dropdown-icon--pPL6G+O2hD",link:"link--MOxtS4wP-j","button-text":"button-text--Z6Pq57AZwW",buttonText:"button-text--Z6Pq57AZwW",text:"text--ZfJcraYIUY",icon:"icon--p9orQM2SSC",active:"active--pjhRqVzIRN","has-text":"has-text--2yXwasXQCa",hasText:"has-text--2yXwasXQCa",loader:"loader--1cbqnuZeeT",loading:"loading--fp6GW1Yjns"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:qe,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Qe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!qe,[ze||""]:ce&&ze},We),St=Qe()(st.buttonIcon,yt);return Ye.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&Ye.a.createElement(Xe.a,{className:St,name:gt}),qe&&Ye.a.createElement("span",{className:st.buttonText},qe),wt&&Ye.a.createElement(Xe.a,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&Ye.a.createElement("div",{className:st.loader},Ye.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(24),Ye=Ve(240);class We{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=ce.clone(),this.end=ze?ze.clone():ce.clone()}*[Symbol.iterator](){yield*new Ye.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"}),ze=this.end.getLastMatchingPosition(enlargeTrimSkip);return ce.parent.is("$text")&&ce.isAtStart&&(ce=qe.a._createBefore(ce.parent)),ze.parent.is("$text")&&ze.isAtEnd&&(ze=qe.a._createAfter(ze.parent)),new We(ce,ze)}getTrimmed(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip);if(ce.isAfter(this.end)||ce.isEqual(this.end))return new We(ce,ce);let ze=this.end.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"});const Ve=ce.nodeAfter,Ye=ze.nodeBefore;return Ve&&Ve.is("$text")&&(ce=new qe.a(Ve,0)),Ye&&Ye.is("$text")&&(ze=new qe.a(Ye,Ye.data.length)),new We(ce,ze)}isEqual(ce){return this==ce||this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),qe=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&qe}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new We(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new We(ce.end,this.end))):ze.push(this.clone()),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new We(ze,Ve)}return null}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new Ye.a(ce)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let ce=this.start.nodeAfter,ze=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(ce=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(ze=this.end.parent.previousSibling),ce&&ce.is("element")&&ce===ze?ce:null}clone(){return new We(this.start,this.end)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new Ye.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new Ye.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}is(ce){return"range"===ce||"view:range"===ce}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}static _createFromParentsAndOffsets(ce,ze,Ve,Ye){return new this(new qe.a(ce,ze),new qe.a(Ve,Ye))}static _createFromPositionAndShift(ce,ze){const Ve=ce,qe=ce.getShiftedBy(ze);return ze>0?new this(Ve,qe):new this(qe,Ve)}static _createIn(ce){return this._createFromParentsAndOffsets(ce,0,ce,ce.childCount)}static _createOn(ce){const ze=ce.is("$textProxy")?ce.offsetSize:1;return this._createFromPositionAndShift(qe.a._createBefore(ce),ze)}}function enlargeTrimSkip(ce){return!(!ce.item.is("attributeElement")&&!ce.item.is("uiElement"))}},function(ce,ze,Ve){"use strict";var qe=Ve(39),Ye=Ve(8),We=Ve(71),Qe=Ve(722);const Xe=Symbol("observableProperties"),ot=Symbol("boundObservables"),st=Symbol("boundProperties"),mt=Symbol("decoratedMethods"),gt=Symbol("decoratedOriginal"),yt={set(ce,ze){if(Object(We.a)(ce))return void Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])}),this);initObservable(this);const Ve=this[Xe];if(ce in this&&!Ve.has(ce))throw new Ye.a("observable-set-cannot-override",this);Object.defineProperty(this,ce,{enumerable:!0,configurable:!0,get:()=>Ve.get(ce),set(ze){const qe=Ve.get(ce);let Ye=this.fire("set:"+ce,ce,ze,qe);void 0===Ye&&(Ye=ze),qe===Ye&&Ve.has(ce)||(Ve.set(ce,Ye),this.fire("change:"+ce,ce,Ye,qe))}}),this[ce]=ze},bind(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if(qe.has(ce))throw new Ye.a("observable-bind-rebind",this)}));const We=new Map;return ze.forEach((ce=>{const ze={property:ce,to:[]};qe.set(ce,ze),We.set(ce,ze)})),{to:bindTo,toMany:bindToMany,_observable:this,_bindProperties:ze,_to:[],_bindings:We}},unbind(){if(!this[Xe])return;const ce=this[st],ze=this[ot];for(var Ve=arguments.length,qe=new Array(Ve),We=0;We{const qe=ce.get(Ve);if(!qe)return;let Ye,We,Qe,Xe;qe.to.forEach((ce=>{Ye=ce[0],We=ce[1],Qe=ze.get(Ye),Xe=Qe[We],Xe.delete(qe),Xe.size||delete Qe[We],Object.keys(Qe).length||(ze.delete(Ye),this.stopListening(Ye,"change"))})),ce.delete(Ve)}))}else ze.forEach(((ce,ze)=>{this.stopListening(ze,"change")})),ze.clear(),ce.clear()},decorate(ce){const ze=this[ce];if(!ze)throw new Ye.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:ce});this.on(ce,((ce,Ve)=>{ce.return=ze.apply(this,Ve)})),this[ce]=function(){for(var ze=arguments.length,Ve=new Array(ze),qe=0;qe1)throw new Ye.a("observable-bind-to-no-callback",this);if(Ve>1&&ce.callback)throw new Ye.a("observable-bind-to-extra-callback",this);var qe;ce.to.forEach((ce=>{if(ce.properties.length&&ce.properties.length!==Ve)throw new Ye.a("observable-bind-to-properties-length",this);ce.properties.length||(ce.properties=this._bindProperties)})),this._to=ce.to,ce.callback&&(this._bindings.get(ze[0]).callback=ce.callback),qe=this._observable,this._to.forEach((ce=>{const ze=qe[ot];let Ve;ze.get(ce.observable)||qe.listenTo(ce.observable,"change",((Ye,We)=>{Ve=ze.get(ce.observable)[We],Ve&&Ve.forEach((ce=>{updateBoundObservableProperty(qe,ce.property)}))}))})),updateBindToBound(this),this._bindProperties.forEach((ce=>{updateBoundObservableProperty(this._observable,ce)}))}function bindToMany(ce,ze,Ve){if(this._bindings.size>1)throw new Ye.a("observable-bind-to-many-not-one-binding",this);this.to(...getBindingTargets(ce,ze),Ve)}function getBindingTargets(ce,ze){const Ve=ce.map((ce=>[ce,ze]));return Array.prototype.concat.apply([],Ve)}function isStringArray(ce){return ce.every((ce=>"string"==typeof ce))}function parseBindToArgs(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if("string"==typeof ce)We.properties.push(ce);else{if("object"!=typeof ce)throw new Ye.a("observable-bind-to-parse-error",null);We={observable:ce,properties:[]},qe.to.push(We)}})),qe}function updateBoundObservables(ce,ze,Ve,qe){const Ye=ce[ot],We=Ye.get(Ve),Qe=We||{};Qe[qe]||(Qe[qe]=new Set),Qe[qe].add(ze),We||Ye.set(Ve,Qe)}function updateBindToBound(ce){let ze;ce._bindings.forEach(((Ve,qe)=>{ce._to.forEach((Ye=>{ze=Ye.properties[Ve.callback?0:ce._bindProperties.indexOf(qe)],Ve.to.push([Ye.observable,ze]),updateBoundObservables(ce._observable,Ve,Ye.observable,ze)}))}))}function updateBoundObservableProperty(ce,ze){const Ve=ce[st].get(ze);let qe;Ve.callback?qe=Ve.callback.apply(ce,Ve.to.map((ce=>ce[0][ce[1]]))):(qe=Ve.to[0],qe=qe[0][qe[1]]),Object.prototype.hasOwnProperty.call(ce,ze)?ce[ze]=qe:ce.set(ze,qe)}Object(Qe.a)(yt,qe.c),yt.stopListening=function(ce,ze,Ve){if(!ce&&this[mt]){for(const ce of this[mt])this[ce]=this[ce][gt];delete this[mt]}qe.c.stopListening.call(this,ce,ze,Ve)},ze.a=yt},function(ce,ze,Ve){"use strict";function _assertThisInitialized(ce){if(void 0===ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}Ve.d(ze,"a",(function(){return _assertThisInitialized}))},function(ce,ze,Ve){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ce){console.error(ce)}}(),ce.exports=Ve(1153)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(103),Ye=Ve(1),We=Ve(133),Qe=Ve.n(We),Xe=Ve(289);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Xe.a)(ce):ce instanceof Object?transformParameters(ce):Object(Ye.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const qe=Object(Ye.toJS)(ce[Ve]);return ze[Ve]=transformParameter(qe),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Qe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return qe.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return qe.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return qe.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return qe.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return qe.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qe.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return qe.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return qe.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Xe.a})),Ve.d(ze,"e",(function(){return yt})),Ve.d(ze,"k",(function(){return bt.c})),Ve.d(ze,"j",(function(){return bt.b})),Ve.d(ze,"i",(function(){return bt.a})),Ve.d(ze,"a",(function(){return Dt})),Ve.d(ze,"c",(function(){return St})),Ve.d(ze,"d",(function(){return Lt})),Ve.d(ze,"f",(function(){return Ht})),Ve.d(ze,"g",(function(){return Ut.a})),Ve.d(ze,"l",(function(){return enableToolbarKeyboardFocus})),Ve.d(ze,"m",(function(){return Wt.a})),Ve.d(ze,"h",(function(){return ot.a}));Ve(363);var qe=Ve(132),Ye=Ve(284),We=Ve(635);class Qe extends Ye.a{constructor(ce){super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),this.locale=ce}attachToDom(){this._bodyCollectionContainer=new qe.a({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let ce=document.querySelector(".ck-body-wrapper");ce||(ce=Object(We.a)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(ce)),ce.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const ce=document.querySelector(".ck-body-wrapper");ce&&0==ce.childElementCount&&ce.remove()}}var Xe=Ve(52);Ve(448);var ot=Ve(29);Xe.a;var st=Ve(117),mt=(Ve(285),Ve(153));ot.a;Ve(445);var gt=Ve(679);class yt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new mt.a,this.focusTracker=new st.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",ze.to("class"),ze.if("isVisible","ck-hidden",(ce=>!ce)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((ce,ze)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),ze())})),this.keystrokes.set("arrowleft",((ce,ze)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),ze())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const ce=new Xe.a;return ce.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),ce.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),ce.delegate("execute").to(this),ce}_createArrowView(){const ce=new Xe.a,ze=ce.bindTemplate;return ce.icon=gt.a,ce.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":ze.to("isOn",(ce=>String(ce)))}}),ce.bind("isEnabled").to(this),ce.bind("label").to(this),ce.bind("tooltip").to(this),ce.delegate("execute").to(this,"open"),ce}}var bt=Ve(195);class vt extends ot.a{constructor(ce){super(ce),this.body=new Qe(ce)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var wt=Ve(114);class Ct extends ot.a{constructor(ce){super(ce),this.set("text"),this.set("for"),this.id=`ck-editor__label_${Object(wt.a)()}`;const ze=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:ze.to("for")},children:[{text:ze.to("text")}]})}}class Dt extends vt{constructor(ce){super(ce),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:ce.uiLanguageDirection,lang:ce.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const ce=this.t,ze=new Ct;return ze.text=ce("Rich Text Editor"),ze.extendTemplate({attributes:{class:"ck-voice-label"}}),ze}}class kt extends ot.a{constructor(ce,ze,Ve){super(ce),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:ce.contentLanguage,dir:ce.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=Ve,this._hasExternalElement=!!this._editableElement,this._editingView=ze}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const ce=this._editingView;function update(ze){ce.change((Ve=>{const qe=ce.document.getRoot(ze.name);Ve.addClass(ze.isFocused?"ck-focused":"ck-blurred",qe),Ve.removeClass(ze.isFocused?"ck-blurred":"ck-focused",qe)}))}ce.isRenderingInProgress?function updateAfterRender(ze){ce.once("change:isRenderingInProgress",((ce,Ve,qe)=>{qe?updateAfterRender(ze):update(ze)}))}(this):update(this)}}class St extends kt{constructor(ce,ze,Ve){super(ce,ze,Ve),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const ce=this._editingView,ze=this.t;ce.change((Ve=>{const qe=ce.document.getRoot(this.name);Ve.setAttribute("aria-label",ze("Rich Text Editor, %0",this.name),qe)}))}}ot.a;Ve(296);ot.a;ot.a;ot.a;Ve(287),Ve(295);var xt=Ve(360);xt.a;var Et=Ve(25),Pt=Ve(42),Tt=Ve(722);class Lt{constructor(ce,ze){ze&&Object(Tt.a)(this,ze),ce&&this.set(ce)}}Object(Et.a)(Lt,Pt.a);Ve(180),Ve(138);var Ft=Ve(77),Bt=Ve(152);const Vt=Object(Bt.a)("px");class Ht extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new qe.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:ze.to("isSticky",(ce=>ce?"block":"none")),height:ze.to("isSticky",(ce=>ce?Vt(this._panelRect.height):null))}}}).render(),this._contentPanel=new qe.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",ze.if("isSticky","ck-sticky-panel__content_sticky"),ze.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:ze.to("isSticky",(ce=>ce?Vt(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ze.to("_hasViewportTopOffset",(ce=>ce?Vt(this.viewportTopOffset):null)),bottom:ze.to("_isStickyToTheLimiter",(ce=>ce?Vt(this.limiterBottomOffset):null)),marginLeft:ze.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Ft.a.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const ce=this._panelRect=this._contentPanel.getBoundingClientRect();let ze;this.limiterElement?(ze=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&ze.top{qe.isFocused&&!Ye.focusTracker.isFocused&&(We&&We(),Ye.focus(),ze())})),Ye.keystrokes.set("Esc",((ce,Ve)=>{Ye.focusTracker.isFocused&&(ze.focus(),Qe&&Qe(),Ve())}))}var Wt=Ve(286),Jt=Ve(31);Ve(55),Ve(695),Ve(282),Ve(229);Object(Bt.a)("px");Jt.a;Ve(677);Object(Bt.a)("px");Xe.a;Ve(406);Object(Bt.a)("px");Jt.a},function(ce,ze,Ve){"use strict";var qe=Ve(222);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(696);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(78),Ye=Ve(1),We=Ve(133),Qe=Ve.n(We),Xe=Ve(366);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Xe.a)(ce):ce instanceof Object?transformParameters(ce):Object(Ye.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const qe=Object(Ye.toJS)(ce[Ve]);return ze[Ve]=transformParameter(qe),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Qe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Qe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return qe.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return qe.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return qe.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return qe.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return qe.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qe.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return qe.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return qe.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.or=ze.and=ze.not=ze.CodeGen=ze.operators=ze.varKinds=ze.ValueScopeName=ze.ValueScope=ze.Scope=ze.Name=ze.regexpCode=ze.stringify=ze.getProperty=ze.nil=ze.strConcat=ze.str=ze._=void 0;const qe=Ve(491),Ye=Ve(889);var We=Ve(491);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return We._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return We.str}}),Object.defineProperty(ze,"strConcat",{enumerable:!0,get:function(){return We.strConcat}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return We.nil}}),Object.defineProperty(ze,"getProperty",{enumerable:!0,get:function(){return We.getProperty}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return We.stringify}}),Object.defineProperty(ze,"regexpCode",{enumerable:!0,get:function(){return We.regexpCode}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return We.Name}});var Qe=Ve(889);Object.defineProperty(ze,"Scope",{enumerable:!0,get:function(){return Qe.Scope}}),Object.defineProperty(ze,"ValueScope",{enumerable:!0,get:function(){return Qe.ValueScope}}),Object.defineProperty(ze,"ValueScopeName",{enumerable:!0,get:function(){return Qe.ValueScopeName}}),Object.defineProperty(ze,"varKinds",{enumerable:!0,get:function(){return Qe.varKinds}}),ze.operators={GT:new qe._Code(">"),GTE:new qe._Code(">="),LT:new qe._Code("<"),LTE:new qe._Code("<="),EQ:new qe._Code("==="),NEQ:new qe._Code("!=="),NOT:new qe._Code("!"),OR:new qe._Code("||"),AND:new qe._Code("&&"),ADD:new qe._Code("+")};class Xe{optimizeNodes(){return this}optimizeNames(ce,ze){return this}}class ot extends Xe{constructor(ce,ze,Ve){super(),this.varKind=ce,this.name=ze,this.rhs=Ve}render({es5:ce,_n:ze}){const Ve=ce?Ye.varKinds.var:this.varKind,qe=void 0===this.rhs?"":` = ${this.rhs}`;return`${Ve} ${this.name}${qe};`+ze}optimizeNames(ce,ze){if(ce[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,ce,ze)),this}get names(){return this.rhs instanceof qe._CodeOrName?this.rhs.names:{}}}class st extends Xe{constructor(ce,ze,Ve){super(),this.lhs=ce,this.rhs=ze,this.sideEffects=Ve}render({_n:ce}){return`${this.lhs} = ${this.rhs};`+ce}optimizeNames(ce,ze){if(!(this.lhs instanceof qe.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,ce,ze),this}get names(){return addExprNames(this.lhs instanceof qe.Name?{}:{...this.lhs.names},this.rhs)}}class mt extends st{constructor(ce,ze,Ve,qe){super(ce,Ve,qe),this.op=ze}render({_n:ce}){return`${this.lhs} ${this.op}= ${this.rhs};`+ce}}class gt extends Xe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`${this.label}:`+ce}}class yt extends Xe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`break${this.label?` ${this.label}`:""};`+ce}}class bt extends Xe{constructor(ce){super(),this.error=ce}render({_n:ce}){return`throw ${this.error};`+ce}get names(){return this.error.names}}class vt extends Xe{constructor(ce){super(),this.code=ce}render({_n:ce}){return`${this.code};`+ce}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ce,ze){return this.code=optimizeExpr(this.code,ce,ze),this}get names(){return this.code instanceof qe._CodeOrName?this.code.names:{}}}class wt extends Xe{constructor(ce=[]){super(),this.nodes=ce}render(ce){return this.nodes.reduce(((ze,Ve)=>ze+Ve.render(ce)),"")}optimizeNodes(){const{nodes:ce}=this;let ze=ce.length;for(;ze--;){const Ve=ce[ze].optimizeNodes();Array.isArray(Ve)?ce.splice(ze,1,...Ve):Ve?ce[ze]=Ve:ce.splice(ze,1)}return ce.length>0?this:void 0}optimizeNames(ce,ze){const{nodes:Ve}=this;let qe=Ve.length;for(;qe--;){const Ye=Ve[qe];Ye.optimizeNames(ce,ze)||(subtractNames(ce,Ye.names),Ve.splice(qe,1))}return Ve.length>0?this:void 0}get names(){return this.nodes.reduce(((ce,ze)=>addNames(ce,ze.names)),{})}}class Ct extends wt{render(ce){return"{"+ce._n+super.render(ce)+"}"+ce._n}}class Dt extends wt{}class kt extends Ct{}kt.kind="else";class St extends Ct{constructor(ce,ze){super(ze),this.condition=ce}render(ce){let ze=`if(${this.condition})`+super.render(ce);return this.else&&(ze+="else "+this.else.render(ce)),ze}optimizeNodes(){super.optimizeNodes();const ce=this.condition;if(!0===ce)return this.nodes;let ze=this.else;if(ze){const ce=ze.optimizeNodes();ze=this.else=Array.isArray(ce)?new kt(ce):ce}return ze?!1===ce?ze instanceof St?ze:ze.nodes:this.nodes.length?this:new St(not(ce),ze instanceof St?[ze]:ze.nodes):!1!==ce&&this.nodes.length?this:void 0}optimizeNames(ce,ze){var Ve;if(this.else=null===(Ve=this.else)||void 0===Ve?void 0:Ve.optimizeNames(ce,ze),super.optimizeNames(ce,ze)||this.else)return this.condition=optimizeExpr(this.condition,ce,ze),this}get names(){const ce=super.names;return addExprNames(ce,this.condition),this.else&&addNames(ce,this.else.names),ce}}St.kind="if";class xt extends Ct{}xt.kind="for";class Et extends xt{constructor(ce){super(),this.iteration=ce}render(ce){return`for(${this.iteration})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iteration=optimizeExpr(this.iteration,ce,ze),this}get names(){return addNames(super.names,this.iteration.names)}}class Pt extends xt{constructor(ce,ze,Ve,qe){super(),this.varKind=ce,this.name=ze,this.from=Ve,this.to=qe}render(ce){const ze=ce.es5?Ye.varKinds.var:this.varKind,{name:Ve,from:qe,to:We}=this;return`for(${ze} ${Ve}=${qe}; ${Ve}<${We}; ${Ve}++)`+super.render(ce)}get names(){const ce=addExprNames(super.names,this.from);return addExprNames(ce,this.to)}}class Tt extends xt{constructor(ce,ze,Ve,qe){super(),this.loop=ce,this.varKind=ze,this.name=Ve,this.iterable=qe}render(ce){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iterable=optimizeExpr(this.iterable,ce,ze),this}get names(){return addNames(super.names,this.iterable.names)}}class Lt extends Ct{constructor(ce,ze,Ve){super(),this.name=ce,this.args=ze,this.async=Ve}render(ce){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ce)}}Lt.kind="func";class Ft extends wt{render(ce){return"return "+super.render(ce)}}Ft.kind="return";class Bt extends Ct{render(ce){let ze="try"+super.render(ce);return this.catch&&(ze+=this.catch.render(ce)),this.finally&&(ze+=this.finally.render(ce)),ze}optimizeNodes(){var ce,ze;return super.optimizeNodes(),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ze=this.finally)||void 0===ze||ze.optimizeNodes(),this}optimizeNames(ce,ze){var Ve,qe;return super.optimizeNames(ce,ze),null===(Ve=this.catch)||void 0===Ve||Ve.optimizeNames(ce,ze),null===(qe=this.finally)||void 0===qe||qe.optimizeNames(ce,ze),this}get names(){const ce=super.names;return this.catch&&addNames(ce,this.catch.names),this.finally&&addNames(ce,this.finally.names),ce}}class Vt extends Ct{constructor(ce){super(),this.error=ce}render(ce){return`catch(${this.error})`+super.render(ce)}}Vt.kind="catch";class Ht extends Ct{render(ce){return"finally"+super.render(ce)}}Ht.kind="finally";function addNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)+(ze[Ve]||0);return ce}function addExprNames(ce,ze){return ze instanceof qe._CodeOrName?addNames(ce,ze.names):ce}function optimizeExpr(ce,ze,Ve){return ce instanceof qe.Name?replaceName(ce):function canOptimize(ce){return ce instanceof qe._Code&&ce._items.some((ce=>ce instanceof qe.Name&&1===ze[ce.str]&&void 0!==Ve[ce.str]))}(ce)?new qe._Code(ce._items.reduce(((ce,ze)=>(ze instanceof qe.Name&&(ze=replaceName(ze)),ze instanceof qe._Code?ce.push(...ze._items):ce.push(ze),ce)),[])):ce;function replaceName(ce){const qe=Ve[ce.str];return void 0===qe||1!==ze[ce.str]?ce:(delete ze[ce.str],qe)}}function subtractNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)-(ze[Ve]||0)}function not(ce){return"boolean"==typeof ce||"number"==typeof ce||null===ce?!ce:qe._`!${par(ce)}`}ze.CodeGen=class{constructor(ce,ze={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ze,_n:ze.lines?"\n":""},this._extScope=ce,this._scope=new Ye.Scope({parent:ce}),this._nodes=[new Dt]}toString(){return this._root.render(this.opts)}name(ce){return this._scope.name(ce)}scopeName(ce){return this._extScope.name(ce)}scopeValue(ce,ze){const Ve=this._extScope.value(ce,ze);return(this._values[Ve.prefix]||(this._values[Ve.prefix]=new Set)).add(Ve),Ve}getScopeValue(ce,ze){return this._extScope.getValue(ce,ze)}scopeRefs(ce){return this._extScope.scopeRefs(ce,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ce,ze,Ve,qe){const Ye=this._scope.toName(ze);return void 0!==Ve&&qe&&(this._constants[Ye.str]=Ve),this._leafNode(new ot(ce,Ye,Ve)),Ye}const(ce,ze,Ve){return this._def(Ye.varKinds.const,ce,ze,Ve)}let(ce,ze,Ve){return this._def(Ye.varKinds.let,ce,ze,Ve)}var(ce,ze,Ve){return this._def(Ye.varKinds.var,ce,ze,Ve)}assign(ce,ze,Ve){return this._leafNode(new st(ce,ze,Ve))}add(ce,Ve){return this._leafNode(new mt(ce,ze.operators.ADD,Ve))}code(ce){return"function"==typeof ce?ce():ce!==qe.nil&&this._leafNode(new vt(ce)),this}object(...ce){const ze=["{"];for(const[Ve,Ye]of ce)ze.length>1&&ze.push(","),ze.push(Ve),(Ve!==Ye||this.opts.es5)&&(ze.push(":"),(0,qe.addCodeArg)(ze,Ye));return ze.push("}"),new qe._Code(ze)}if(ce,ze,Ve){if(this._blockNode(new St(ce)),ze&&Ve)this.code(ze).else().code(Ve).endIf();else if(ze)this.code(ze).endIf();else if(Ve)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ce){return this._elseNode(new St(ce))}else(){return this._elseNode(new kt)}endIf(){return this._endBlockNode(St,kt)}_for(ce,ze){return this._blockNode(ce),ze&&this.code(ze).endFor(),this}for(ce,ze){return this._for(new Et(ce),ze)}forRange(ce,ze,Ve,qe,We=(this.opts.es5?Ye.varKinds.var:Ye.varKinds.let)){const Qe=this._scope.toName(ce);return this._for(new Pt(We,Qe,ze,Ve),(()=>qe(Qe)))}forOf(ce,ze,Ve,We=Ye.varKinds.const){const Qe=this._scope.toName(ce);if(this.opts.es5){const ce=ze instanceof qe.Name?ze:this.var("_arr",ze);return this.forRange("_i",0,qe._`${ce}.length`,(ze=>{this.var(Qe,qe._`${ce}[${ze}]`),Ve(Qe)}))}return this._for(new Tt("of",We,Qe,ze),(()=>Ve(Qe)))}forIn(ce,ze,Ve,We=(this.opts.es5?Ye.varKinds.var:Ye.varKinds.const)){if(this.opts.ownProperties)return this.forOf(ce,qe._`Object.keys(${ze})`,Ve);const Qe=this._scope.toName(ce);return this._for(new Tt("in",We,Qe,ze),(()=>Ve(Qe)))}endFor(){return this._endBlockNode(xt)}label(ce){return this._leafNode(new gt(ce))}break(ce){return this._leafNode(new yt(ce))}return(ce){const ze=new Ft;if(this._blockNode(ze),this.code(ce),1!==ze.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ft)}try(ce,ze,Ve){if(!ze&&!Ve)throw new Error('CodeGen: "try" without "catch" and "finally"');const qe=new Bt;if(this._blockNode(qe),this.code(ce),ze){const ce=this.name("e");this._currNode=qe.catch=new Vt(ce),ze(ce)}return Ve&&(this._currNode=qe.finally=new Ht,this.code(Ve)),this._endBlockNode(Vt,Ht)}throw(ce){return this._leafNode(new bt(ce))}block(ce,ze){return this._blockStarts.push(this._nodes.length),ce&&this.code(ce).endBlock(ze),this}endBlock(ce){const ze=this._blockStarts.pop();if(void 0===ze)throw new Error("CodeGen: not in self-balancing block");const Ve=this._nodes.length-ze;if(Ve<0||void 0!==ce&&Ve!==ce)throw new Error(`CodeGen: wrong number of nodes: ${Ve} vs ${ce} expected`);return this._nodes.length=ze,this}func(ce,ze=qe.nil,Ve,Ye){return this._blockNode(new Lt(ce,ze,Ve)),Ye&&this.code(Ye).endFunc(),this}endFunc(){return this._endBlockNode(Lt)}optimize(ce=1){for(;ce-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ce){return this._currNode.nodes.push(ce),this}_blockNode(ce){this._currNode.nodes.push(ce),this._nodes.push(ce)}_endBlockNode(ce,ze){const Ve=this._currNode;if(Ve instanceof ce||ze&&Ve instanceof ze)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ze?`${ce.kind}/${ze.kind}`:ce.kind}"`)}_elseNode(ce){const ze=this._currNode;if(!(ze instanceof St))throw new Error('CodeGen: "else" without "if"');return this._currNode=ze.else=ce,this}get _root(){return this._nodes[0]}get _currNode(){const ce=this._nodes;return ce[ce.length-1]}set _currNode(ce){const ze=this._nodes;ze[ze.length-1]=ce}},ze.not=not;const Ut=mappend(ze.operators.AND);ze.and=function and(...ce){return ce.reduce(Ut)};const Wt=mappend(ze.operators.OR);function mappend(ce){return(ze,Ve)=>ze===qe.nil?Ve:Ve===qe.nil?ze:qe._`${par(ze)} ${ce} ${par(Ve)}`}function par(ce){return ce instanceof qe.Name?ce:qe._`(${ce})`}ze.or=function or(...ce){return ce.reduce(Wt)}},function(ce,ze){function debounce(ce,ze,Ve){var qe,Ye,We,Qe,Xe;function later(){var ot=Date.now()-Qe;ot=0?qe=setTimeout(later,ze-ot):(qe=null,Ve||(Xe=ce.apply(We,Ye),We=Ye=null))}null==ze&&(ze=100);var debounced=function(){We=this,Ye=arguments,Qe=Date.now();var ot=Ve&&!qe;return qe||(qe=setTimeout(later,ze)),ot&&(Xe=ce.apply(We,Ye),We=Ye=null),Xe};return debounced.clear=function(){qe&&(clearTimeout(qe),qe=null)},debounced.flush=function(){qe&&(Xe=ce.apply(We,Ye),We=Ye=null,clearTimeout(qe),qe=null)},debounced}debounce.debounce=debounce,ce.exports=debounce},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(29),Ye=Ve(296),We=Ve(636),Qe=Ve(114),Xe=Ve(37);class ot extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate,Ve=Object(Qe.a)();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(Ve),this.iconView=new Ye.a,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",ze.to("class"),ze.if("isEnabled","ck-disabled",(ce=>!ce)),ze.if("isVisible","ck-hidden",(ce=>!ce)),ze.to("isOn",(ce=>ce?"ck-on":"ck-off")),ze.if("withText","ck-button_with-text"),ze.if("withKeystroke","ck-button_with-keystroke")],type:ze.to("type",(ce=>ce||"button")),tabindex:ze.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${Ve}`,"aria-disabled":ze.if("isEnabled",!0,(ce=>!ce)),"aria-pressed":ze.to("isOn",(ce=>!!this.isToggleable&&String(ce)))},children:this.children,on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((ce=>{this.isEnabled?this.fire("execute"):ce.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const ce=new We.a;return ce.bind("text").to(this,"_tooltipString"),ce.bind("position").to(this,"tooltipPosition"),ce}_createLabelView(ce){const ze=new qe.a,Ve=this.bindTemplate;return ze.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:Ve.to("labelStyle"),id:`ck-editor__aria-label_${ce}`},children:[{text:this.bindTemplate.to("label")}]}),ze}_createKeystrokeView(){const ce=new qe.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(ce=>Object(Xe.b)(ce)))}]}),ce}_getTooltipString(ce,ze,Ve){return ce?"string"==typeof ce?ce:(Ve&&(Ve=Object(Xe.b)(Ve)),ce instanceof Function?ce(ze,Ve):`${ze}${Ve?` (${Ve})`:""}`):""}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(1),vt=(Ve(113),Ve(51)),wt=Ve.n(vt),Ct=Ve(30),Dt=Ve(381),kt=Ve(631);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const St="sulu_admin.content_locale";var xt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"persistentSettings",Ye,this),this.dirtyPersistentSettings=[],_initializerDefineProperty(this,"user",We,this),_initializerDefineProperty(this,"contact",Qe,this),_initializerDefineProperty(this,"loggedIn",Xe,this),_initializerDefineProperty(this,"loading",ot,this),_initializerDefineProperty(this,"loginError",st,this),_initializerDefineProperty(this,"forgotPasswordSuccess",mt,this),_initializerDefineProperty(this,"twoFactorMethods",gt,this),_initializerDefineProperty(this,"twoFactorError",yt,this),this.handleLogin=ce=>{if(this.setTwoFactorMethods([]),!1===ce.completed)return this.setLoading(!1),void(ce.twoFactorMethods&&ce.twoFactorMethods.length&&this.setTwoFactorMethods(ce.twoFactorMethods));if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),Dt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.loginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.twoFactorLogin=ce=>(this.setLoading(!0),Ct.b.post(Ct.a.endpoints.twoFactorLoginCheck,ce).then((ce=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),this.setTwoFactorError(!0),401!==ce.status)return Promise.reject(ce)}))),this.updatePersistentSettings=wt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});Ct.b.patch(Ct.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1,this.twoFactorMethods=[],this.twoFactorError=!1}get systemLocale(){return this.user?this.user.locale:Ct.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}setTwoFactorMethods(ce){this.twoFactorMethods=ce}setTwoFactorError(ce){this.twoFactorError=ce}get contentLocale(){const ce=this.persistentSettings.get(St);if(ce)return ce;const{localizations:ze}=kt.a,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:Ct.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(St,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),Ct.b.post(Ct.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return Ct.b.get(Ct.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}validatePassword(ce){const ze=Ct.a.passwordPattern;return!ze||new RegExp(ze).test(ce)}}).prototype,"persistentSettings",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(qe.prototype,"user",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"contact",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loggedIn",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"loading",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"loginError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"forgotPasswordSuccess",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=_applyDecoratedDescriptor(qe.prototype,"twoFactorMethods",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yt=_applyDecoratedDescriptor(qe.prototype,"twoFactorError",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"clear",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"systemLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"systemLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoggedIn",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoggedIn"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoginError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoginError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForgotPasswordSuccess",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForgotPasswordSuccess"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorMethods",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorMethods"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setTwoFactorError",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setTwoFactorError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"contentLocale",[bt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"contentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUser",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUser"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"updateContentLocale",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateContentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setContact",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setContact"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setFullName",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setFullName"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setPersistentSetting",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setPersistentSetting"),qe.prototype),qe);ze.a=xt},function(ce,ze,Ve){"use strict";var qe=Ve(405);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(334),Ye=Ve(413),We=Ve(672),Qe=Ve(104),Xe=Ve(1093);const ot=["top","right","bottom","left","width","height"];class st{constructor(ce){const ze=Object(qe.a)(ce);if(Object.defineProperty(this,"_source",{value:ce._source||ce,writable:!0,enumerable:!1}),Object(Xe.a)(ce)||ze)if(ze){const ze=st.getDomRangeRects(ce);copyRectProperties(this,st.getBoundingRect(ze))}else copyRectProperties(this,ce.getBoundingClientRect());else if(Object(Ye.a)(ce)){const{innerWidth:ze,innerHeight:Ve}=ce;copyRectProperties(this,{top:0,right:ze,bottom:Ve,left:0,width:ze,height:Ve})}else copyRectProperties(this,ce)}clone(){return new st(this)}moveTo(ce,ze){return this.top=ze,this.right=ce+this.width,this.bottom=ze+this.height,this.left=ce,this}moveBy(ce,ze){return this.top+=ze,this.right+=ce,this.left+=ce,this.bottom+=ze,this}getIntersection(ce){const ze={top:Math.max(this.top,ce.top),right:Math.min(this.right,ce.right),bottom:Math.min(this.bottom,ce.bottom),left:Math.max(this.left,ce.left)};return ze.width=ze.right-ze.left,ze.height=ze.bottom-ze.top,ze.width<0||ze.height<0?null:new st(ze)}getIntersectionArea(ce){const ze=this.getIntersection(ce);return ze?ze.getArea():0}getArea(){return this.width*this.height}getVisible(){const ce=this._source;let ze=this.clone();if(!isBody(ce)){let Ve=ce.parentNode||ce.commonAncestorContainer;for(;Ve&&!isBody(Ve);){const ce=new st(Ve),qe=ze.getIntersection(ce);if(!qe)return null;qe.getArea()1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"model:element"===ce):"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}offsetToIndex(ce){return this._children.offsetToIndex(ce)}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}findAncestor(ce){let ze=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;for(;ze;){if(ze.name===ce)return ze;ze=ze.parent}return null}toJSON(){const ce=super.toJSON();if(ce.name=this.name,this._children.length>0){ce.children=[];for(const ze of this._children)ce.children.push(ze.toJSON())}return ce}_clone(){const ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((ce=>ce._clone(!0))):null;return new ot(this.name,this.getAttributes(),ce)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}static fromJSON(ce){let ze=null;if(ce.children){ze=[];for(const Ve of ce.children)Ve.name?ze.push(ot.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve))}return new ot(ce.name,ce.attributes,ze)}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Xe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Qe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";const qe=navigator.userAgent.toLowerCase(),Ye={isMac:isMac(qe),isWindows:function isWindows(ce){return ce.indexOf("windows")>-1}(qe),isGecko:function isGecko(ce){return!!ce.match(/gecko\/\d+/)}(qe),isSafari:function isSafari(ce){return ce.indexOf(" applewebkit/")>-1&&-1===ce.indexOf("chrome")}(qe),isiOS:function isiOS(ce){return!!ce.match(/iphone|ipad/i)||isMac(ce)&&navigator.maxTouchPoints>0}(qe),isAndroid:function isAndroid(ce){return ce.indexOf("android")>-1}(qe),isBlink:function isBlink(ce){return ce.indexOf("chrome/")>-1&&ce.indexOf("edge/")<0}(qe),features:{isRegExpUnicodePropertySupported:function isRegExpUnicodePropertySupported(){let ce=!1;try{ce=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(ce){}return ce}()}};function isMac(ce){return ce.indexOf("macintosh")>-1}ze.a=Ye},function(ce,ze,Ve){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.createTextNode(" "),MARKED_NBSP_FILLER=ce=>{const ze=ce.createElement("span");return ze.dataset.ckeFiller=!0,ze.innerText=" ",ze},BR_FILLER=ce=>{const ze=ce.createElement("br");return ze.dataset.ckeFiller=!0,ze},We=7,Qe="⁠".repeat(We);function startsWithFiller(ce){return Object(Ye.a)(ce)&&ce.data.substr(0,We)===Qe}function isInlineFiller(ce){return ce.data.length==We&&startsWithFiller(ce)}function getDataWithoutFiller(ce){return startsWithFiller(ce)?ce.data.slice(We):ce.data}function injectQuirksHandling(ce){ce.document.on("arrowKey",jumpOverInlineFiller,{priority:"low"})}function jumpOverInlineFiller(ce,ze){if(ze.keyCode==qe.f.arrowleft){const ce=ze.domTarget.ownerDocument.defaultView.getSelection();if(1==ce.rangeCount&&ce.getRangeAt(0).collapsed){const ze=ce.getRangeAt(0).startContainer,Ve=ce.getRangeAt(0).startOffset;startsWithFiller(ze)&&Ve<=We&&ce.collapse(ze,0)}}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return sortableContainer})),Ve.d(ze,"b",(function(){return sortableElement})),Ve.d(ze,"c",(function(){return sortableHandle})),Ve.d(ze,"d",(function(){return arrayMove}));var qe=Ve(59);function _arrayWithHoles(ce){if(Array.isArray(ce))return ce}function _iterableToArrayLimit(ce,ze){var Ve=null==ce?null:"undefined"!=typeof Symbol&&ce[Symbol.iterator]||ce["@@iterator"];if(null!=Ve){var qe,Ye,We,Qe,Xe=[],ot=!0,st=!1;try{if(We=(Ve=Ve.call(ce)).next,0===ze){if(Object(Ve)!==Ve)return;ot=!1}else for(;!(ot=(qe=We.call(Ve)).done)&&(Xe.push(qe.value),Xe.length!==ze);ot=!0);}catch(ce){st=!0,Ye=ce}finally{try{if(!ot&&null!=Ve.return&&(Qe=Ve.return(),Object(Qe)!==Qe))return}finally{if(st)throw Ye}}return Xe}}function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,qe=Array(ze);Ve0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[ce].sort(sortByIndex)}}]),Manager}();function sortByIndex(ce,ze){return ce.node.sortableInfo.index-ze.node.sortableInfo.index}function arrayMove(ce,ze,Ve){return(ce=ce.slice()).splice(Ve<0?ce.length+Ve:Ve,0,ce.splice(ze,1)[0]),ce}function omit(ce,ze){return Object.keys(ce).reduce((function(Ve,qe){return-1===ze.indexOf(qe)&&(Ve[qe]=ce[qe]),Ve}),{})}var Ct={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var ce=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ze=(Array.prototype.slice.call(ce).join("").match(/-(moz|webkit|ms)-/)||""===ce.OLink&&["","o"])[1];return"ms"===ze?"ms":ze&&ze.length?ze[0].toUpperCase()+ze.substr(1):""}();function setInlineStyles(ce,ze){Object.keys(ze).forEach((function(Ve){ce.style[Ve]=ze[Ve]}))}function setTranslate3d(ce,ze){ce.style["".concat(Dt,"Transform")]=null==ze?"":"translate3d(".concat(ze.x,"px,").concat(ze.y,"px,0)")}function setTransitionDuration(ce,ze){ce.style["".concat(Dt,"TransitionDuration")]=null==ze?"":"".concat(ze,"ms")}function closest(ce,ze){for(;ce;){if(ze(ce))return ce;ce=ce.parentNode}return null}function limit(ce,ze,Ve){return Math.max(ce,Math.min(Ve,ze))}function getPixelValue(ce){return"px"===ce.substr(-2)?parseFloat(ce):0}function provideDisplayName(ce,ze){var Ve=ze.displayName||ze.name;return Ve?"".concat(ce,"(").concat(Ve,")"):ce}function getScrollAdjustedBoundingClientRect(ce,ze){var Ve=ce.getBoundingClientRect();return{top:Ve.top+ze.top,left:Ve.left+ze.left}}function getPosition(ce){return ce.touches&&ce.touches.length?{x:ce.touches[0].pageX,y:ce.touches[0].pageY}:ce.changedTouches&&ce.changedTouches.length?{x:ce.changedTouches[0].pageX,y:ce.changedTouches[0].pageY}:{x:ce.pageX,y:ce.pageY}}function isTouchEvent(ce){return ce.touches&&ce.touches.length||ce.changedTouches&&ce.changedTouches.length}function getEdgeOffset(ce,ze){var Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(ce){var qe={left:Ve.left+ce.offsetLeft,top:Ve.top+ce.offsetTop};return ce.parentNode===ze?qe:getEdgeOffset(ce.parentNode,ze,qe)}}function getTargetIndex(ce,ze,Ve){return ceze?ce-1:ce>Ve&&ce1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableHandle(){var ce,ze;_classCallCheck(this,WithSortableHandle);for(var Ve=arguments.length,qe=new Array(Ve),Ye=0;Ye=Ye.y-Qe/2&&!Dt?(Xe.y=1,ot.y=mt*Math.abs((Ye.y-Qe/2-Ve.y)/Qe)):Ve.x>=Ye.x-We/2&&!St?(Xe.x=1,ot.x=st*Math.abs((Ye.x-We/2-Ve.x)/We)):Ve.y<=qe.y+Qe/2&&!Ct?(Xe.y=-1,ot.y=mt*Math.abs((Ve.y-Qe/2-qe.y)/Qe)):Ve.x<=qe.x+We/2&&!kt&&(Xe.x=-1,ot.x=st*Math.abs((Ve.x-We/2-qe.x)/We)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===Xe.x&&0===Xe.y||(this.interval=setInterval((function(){ze.isAutoScrolling=!0;var ce={left:ot.x*Xe.x,top:ot.y*Xe.y};ze.container.scrollTop+=ce.top,ze.container.scrollLeft+=ce.left,ze.onScrollCallback(ce)}),5))}}]),AutoScroller}();var Bt={axis:vt.a.oneOf(["x","y","xy"]),contentWindow:vt.a.any,disableAutoscroll:vt.a.bool,distance:vt.a.number,getContainer:vt.a.func,getHelperDimensions:vt.a.func,helperClass:vt.a.string,helperContainer:vt.a.oneOfType([vt.a.func,"undefined"==typeof HTMLElement?vt.a.any:vt.a.instanceOf(HTMLElement)]),hideSortableGhost:vt.a.bool,keyboardSortingTransitionDuration:vt.a.number,lockAxis:vt.a.string,lockOffset:vt.a.oneOfType([vt.a.number,vt.a.string,vt.a.arrayOf(vt.a.oneOfType([vt.a.number,vt.a.string]))]),lockToContainerEdges:vt.a.bool,onSortEnd:vt.a.func,onSortMove:vt.a.func,onSortOver:vt.a.func,onSortStart:vt.a.func,pressDelay:vt.a.number,pressThreshold:vt.a.number,keyCodes:vt.a.shape({lift:vt.a.arrayOf(vt.a.number),drop:vt.a.arrayOf(vt.a.number),cancel:vt.a.arrayOf(vt.a.number),up:vt.a.arrayOf(vt.a.number),down:vt.a.arrayOf(vt.a.number)}),shouldCancelStart:vt.a.func,transitionDuration:vt.a.number,updateBeforeSortStart:vt.a.func,useDragHandle:vt.a.bool,useWindowAsScrollContainer:vt.a.bool},Vt={lift:[St],drop:[St],cancel:[kt],up:[Et,xt],down:[Tt,Pt]},Ht={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function defaultGetHelperDimensions(ce){var ze=ce.node;return{height:ze.offsetHeight,width:ze.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Vt,shouldCancelStart:function defaultShouldCancelStart(ce){return-1!==[Lt.Input,Lt.Textarea,Lt.Select,Lt.Option,Lt.Button].indexOf(ce.target.tagName)||!!closest(ce.target,(function(ce){return"true"===ce.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Ut=Object.keys(Bt);function validateProps(ce){yt()(!(ce.distance&&ce.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function _finallyRethrows(ce,ze){try{var Ve=ce()}catch(ce){return ze(!0,ce)}return Ve&&Ve.then?Ve.then(ze.bind(null,!1),ze.bind(null,!0)):ze(!1,value)}var Wt=Object(st.createContext)({manager:{}});function sortableContainer(ce){var ze,Ve,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableContainer(ce){var ze;_classCallCheck(this,WithSortableContainer),ze=_possibleConstructorReturn(this,_getPrototypeOf(WithSortableContainer).call(this,ce)),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"state",{}),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleStart",(function(ce){var Ve=ze.props,qe=Ve.distance,Ye=Ve.shouldCancelStart;if(2!==ce.button&&!Ye(ce)){ze.touched=!0,ze.position=getPosition(ce);var We=closest(ce.target,(function(ce){return null!=ce.sortableInfo}));if(We&&We.sortableInfo&&ze.nodeIsChild(We)&&!ze.state.sorting){var Qe=ze.props.useDragHandle,Xe=We.sortableInfo,ot=Xe.index,st=Xe.collection;if(Xe.disabled)return;if(Qe&&!closest(ce.target,isSortableHandle))return;ze.manager.active={collection:st,index:ot},isTouchEvent(ce)||ce.target.tagName!==Lt.Anchor||ce.preventDefault(),qe||(0===ze.props.pressDelay?ze.handlePress(ce):ze.pressTimer=setTimeout((function(){return ze.handlePress(ce)}),ze.props.pressDelay))}}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"nodeIsChild",(function(ce){return ce.sortableInfo.manager===ze.manager})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleMove",(function(ce){var Ve=ze.props,qe=Ve.distance,Ye=Ve.pressThreshold;if(!ze.state.sorting&&ze.touched&&!ze._awaitingUpdateBeforeSortStart){var We=getPosition(ce),Qe={x:ze.position.x-We.x,y:ze.position.y-We.y},Xe=Math.abs(Qe.x)+Math.abs(Qe.y);ze.delta=Qe,qe||Ye&&!(Xe>=Ye)?qe&&Xe>=qe&&ze.manager.isActive()&&ze.handlePress(ce):(clearTimeout(ze.cancelTimer),ze.cancelTimer=setTimeout(ze.cancel,0))}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleEnd",(function(){ze.touched=!1,ze.cancel()})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"cancel",(function(){var ce=ze.props.distance;ze.state.sorting||(ce||clearTimeout(ze.pressTimer),ze.manager.active=null)})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handlePress",(function(ce){try{var Ve=ze.manager.getActive(),qe=function(){if(Ve){var qe=function _temp7(){var Ve,qe,Ye,st,wt,Dt,kt,St=yt.sortableInfo.index,xt=(Ve=yt,{bottom:getPixelValue((qe=window.getComputedStyle(Ve)).marginBottom),left:getPixelValue(qe.marginLeft),right:getPixelValue(qe.marginRight),top:getPixelValue(qe.marginTop)}),Et=getContainerGridGap(ze.container),Pt=ze.scrollContainer.getBoundingClientRect(),Tt=Qe({index:St,node:yt,collection:bt});if(ze.node=yt,ze.margin=xt,ze.gridGap=Et,ze.width=Tt.width,ze.height=Tt.height,ze.marginOffset={x:ze.margin.left+ze.margin.right+ze.gridGap.x,y:Math.max(ze.margin.top,ze.margin.bottom,ze.gridGap.y)},ze.boundingClientRect=yt.getBoundingClientRect(),ze.containerBoundingRect=Pt,ze.index=St,ze.newIndex=St,ze.axis={x:We.indexOf("x")>=0,y:We.indexOf("y")>=0},ze.offsetEdge=getEdgeOffset(yt,ze.container),ze.initialOffset=getPosition(vt?_objectSpread({},ce,{pageX:ze.boundingClientRect.left,pageY:ze.boundingClientRect.top}):ce),ze.initialScroll={left:ze.scrollContainer.scrollLeft,top:ze.scrollContainer.scrollTop},ze.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ze.helper=ze.helperContainer.appendChild((wt="input, textarea, select, canvas, [contenteditable]",Dt=(Ye=yt).querySelectorAll(wt),kt=Ye.cloneNode(!0),(_arrayWithoutHoles(st=kt.querySelectorAll(wt))||_iterableToArray(st)||_unsupportedIterableToArray(st)||_nonIterableSpread()).forEach((function(ce,ze){"file"!==ce.type&&(ce.value=Dt[ze].value),"radio"===ce.type&&ce.name&&(ce.name="__sortableClone__".concat(ce.name)),ce.tagName===Lt.Canvas&&Dt[ze].width>0&&Dt[ze].height>0&&ce.getContext("2d").drawImage(Dt[ze],0,0)})),kt)),setInlineStyles(ze.helper,{boxSizing:"border-box",height:"".concat(ze.height,"px"),left:"".concat(ze.boundingClientRect.left-xt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ze.boundingClientRect.top-xt.top,"px"),width:"".concat(ze.width,"px")}),vt&&ze.helper.focus(),ot&&(ze.sortableGhost=yt,setInlineStyles(yt,{opacity:0,visibility:"hidden"})),ze.minTranslate={},ze.maxTranslate={},vt){var Ft=gt?{top:0,left:0,width:ze.contentWindow.innerWidth,height:ze.contentWindow.innerHeight}:ze.containerBoundingRect,Bt=Ft.top,Vt=Ft.left,Ht=Ft.width,Ut=Bt+Ft.height,Wt=Vt+Ht;ze.axis.x&&(ze.minTranslate.x=Vt-ze.boundingClientRect.left,ze.maxTranslate.x=Wt-(ze.boundingClientRect.left+ze.width)),ze.axis.y&&(ze.minTranslate.y=Bt-ze.boundingClientRect.top,ze.maxTranslate.y=Ut-(ze.boundingClientRect.top+ze.height))}else ze.axis.x&&(ze.minTranslate.x=(gt?0:Pt.left)-ze.boundingClientRect.left-ze.width/2,ze.maxTranslate.x=(gt?ze.contentWindow.innerWidth:Pt.left+Pt.width)-ze.boundingClientRect.left-ze.width/2),ze.axis.y&&(ze.minTranslate.y=(gt?0:Pt.top)-ze.boundingClientRect.top-ze.height/2,ze.maxTranslate.y=(gt?ze.contentWindow.innerHeight:Pt.top+Pt.height)-ze.boundingClientRect.top-ze.height/2);Xe&&Xe.split(" ").forEach((function(ce){return ze.helper.classList.add(ce)})),ze.listenerNode=ce.touches?ce.target:ze.contentWindow,vt?(ze.listenerNode.addEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortMove,!1)})),Ct.end.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortEnd,!1)}))),ze.setState({sorting:!0,sortingIndex:St}),mt&&mt({node:yt,index:St,collection:bt,isKeySorting:vt,nodes:ze.manager.getOrderedRefs(),helper:ze.helper},ce),vt&&ze.keyMove(0)},Ye=ze.props,We=Ye.axis,Qe=Ye.getHelperDimensions,Xe=Ye.helperClass,ot=Ye.hideSortableGhost,st=Ye.updateBeforeSortStart,mt=Ye.onSortStart,gt=Ye.useWindowAsScrollContainer,yt=Ve.node,bt=Ve.collection,vt=ze.manager.isKeySorting,wt=function(){if("function"==typeof st){ze._awaitingUpdateBeforeSortStart=!0;var Ve=_finallyRethrows((function(){var ze=yt.sortableInfo.index;return Promise.resolve(st({collection:bt,index:ze,node:yt,isKeySorting:vt},ce)).then((function(){}))}),(function(ce,Ve){if(ze._awaitingUpdateBeforeSortStart=!1,ce)throw Ve;return Ve}));if(Ve&&Ve.then)return Ve.then((function(){}))}}();return wt&&wt.then?wt.then(qe):qe()}}();return Promise.resolve(qe&&qe.then?qe.then((function(){})):void 0)}catch(ce){return Promise.reject(ce)}})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleSortMove",(function(ce){var Ve=ze.props.onSortMove;"function"==typeof ce.preventDefault&&ce.cancelable&&ce.preventDefault(),ze.updateHelperPosition(ce),ze.animateNodes(),ze.autoscroll(),Ve&&Ve(ce)})),_defineProperty(Object(Xe.a)(Object(Xe.a)(ze)),"handleSortEnd",(function(ce){var Ve=ze.props,qe=Ve.hideSortableGhost,Ye=Ve.onSortEnd,We=ze.manager,Qe=We.active.collection,Xe=We.isKeySorting,ot=ze.manager.getOrderedRefs();ze.listenerNode&&(Xe?(ze.listenerNode.removeEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortMove)})),Ct.end.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortEnd)})))),ze.helper.parentNode.removeChild(ze.helper),qe&&ze.sortableGhost&&setInlineStyles(ze.sortableGhost,{opacity:"",visibility:""});for(var st=0,mt=ot.length;stqe)){ze.prevIndex=We,ze.newIndex=Ye;var Qe=getTargetIndex(ze.newIndex,ze.prevIndex,ze.index),Xe=Ve.find((function(ce){return ce.node.sortableInfo.index===Qe})),ot=Xe.node,st=ze.containerScrollDelta,mt=Xe.boundingClientRect||getScrollAdjustedBoundingClientRect(ot,st),gt=Xe.translate||{x:0,y:0},yt=mt.top+gt.y-st.top,bt=mt.left+gt.x-st.left,vt=WeCt?Ct/2:this.height/2,width:this.width>wt?wt/2:this.width/2},kt=st&&vt>this.index&&vt<=mt,St=st&&vt=mt,xt={x:0,y:0},Et=Qe[gt].edgeOffset;Et||(Et=getEdgeOffset(bt,this.container),Qe[gt].edgeOffset=Et,st&&(Qe[gt].boundingClientRect=getScrollAdjustedBoundingClientRect(bt,Ye)));var Pt=gt0&&Qe[gt-1];Pt&&!Pt.edgeOffset&&(Pt.edgeOffset=getEdgeOffset(Pt.node,this.container),st&&(Pt.boundingClientRect=getScrollAdjustedBoundingClientRect(Pt.node,Ye))),vt!==this.index?(ze&&setTransitionDuration(bt,ze),this.axis.x?this.axis.y?St||vtthis.containerBoundingRect.width-Dt.width&&Pt&&(xt.x=Pt.edgeOffset.left-Et.left,xt.y=Pt.edgeOffset.top-Et.top),null===this.newIndex&&(this.newIndex=vt)):(kt||vt>this.index&&(Xe+We.left+Dt.width>=Et.left&&ot+We.top+Dt.height>=Et.top||ot+We.top+Dt.height>=Et.top+Ct))&&(xt.x=-(this.width+this.marginOffset.x),Et.left+xt.xthis.index&&Xe+We.left+Dt.width>=Et.left?(xt.x=-(this.width+this.marginOffset.x),this.newIndex=vt):(St||vtthis.index&&ot+We.top+Dt.height>=Et.top?(xt.y=-(this.height+this.marginOffset.y),this.newIndex=vt):(St||vt1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableElement(){var ce,ze;_classCallCheck(this,WithSortableElement);for(var Ve=arguments.length,qe=new Array(Ve),Ye=0;Ye0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(ce,this.ref)}},{key:"getWrappedInstance",value:function getWrappedInstance(){return yt()(Ye.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function render(){var ze=Ye.withRef?this.wrappedInstance:null;return Object(st.createElement)(ce,Object(qe.a)({ref:ze},omit(this.props,Qt)))}}]),WithSortableElement}(st.Component),_defineProperty(ze,"displayName",provideDisplayName("sortableElement",ce)),_defineProperty(ze,"contextType",Wt),_defineProperty(ze,"propTypes",Jt),_defineProperty(ze,"defaultProps",{collection:0}),Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(177);class Ye extends qe.a{constructor(ce,ze){super(ce),this._textData=ze}is(ce){return"$text"===ce||"view:$text"===ce||"text"===ce||"view:text"===ce||"node"===ce||"view:node"===ce}get data(){return this._textData}get _data(){return this.data}set _data(ce){this._fireChange("text",this),this._textData=ce}isSimilar(ce){return ce instanceof Ye&&(this===ce||this.data===ce.data)}_clone(){return new Ye(this.document,this.data)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(225);class Ye extends qe.a{constructor(ce,ze){super(ze),this._data=ce||""}get offsetSize(){return this.data.length}get data(){return this._data}is(ce){return"$text"===ce||"model:$text"===ce||"text"===ce||"model:text"===ce||"node"===ce||"model:node"===ce}toJSON(){const ce=super.toJSON();return ce.data=this.data,ce}_clone(){return new Ye(this.data,this.getAttributes())}static fromJSON(ce){return new Ye(ce.data,ce.attributes)}}},function(ce,ze,Ve){"use strict";var qe=Ve(540);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(118),mt=Ve(19),gt="item--tapFxsQFTD",yt="active--UYKBvMNFsA",bt="icon--m6UOqx2roB";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:qe}=this.props,We=ot()(gt,{[yt]:ze});return Ye.a.createElement("button",{className:We,disabled:qe,onClick:this.handleButtonClick,type:"button"},Ye.a.createElement("span",{className:bt},Ve&&ze&&Ye.a.createElement(mt.a,{className:bt,name:Ve})),Ye.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--94Rw5LDlw9",Ct="children--FQd5fR817i",Dt="title--Y4y-OBubRf";class kt extends Ye.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return Ye.a.createElement("div",{className:wt},ze&&Ye.a.createElement("div",{className:Dt},ze),Ye.a.createElement("div",{className:Ct},ce))}}class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return Ye.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--v5d0jMUdaF",Et="icon--BWcTDKMUSg";class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return Ye.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&Ye.a.createElement(mt.a,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Vt,Ht="arrowMenuContainer--ylJX47Ke86",Ut="arrowMenu--FQPgEmdYe-",Wt="arrow--6WGRUFpWfv",Jt="right--4SjL5PtS96",Qt="left--obx52S8Owq",en="top--P9Mns0zyYy",rn="bottom--aPR0Ez74kV";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ln=Object(Qe.b)((Vt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>Ye.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return Ye.a.Children.map(ce,(ce=>ce?ce.type===kt?Ye.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?Ye.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return Ye.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return Ye.a.createElement(qe.Fragment,null,We,Ye.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,qe)=>{const Ye="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,Ye,qe)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Qe=this.cloneChildren(We),Xe=ot()(Wt,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===qe,[Jt]:"right"===qe});return Ye.a.createElement("div",{className:Ht,ref:ce,style:ze},Ye.a.createElement("div",{className:Xe}),Ye.a.createElement("div",{className:Ut},Qe))}},Vt.defaultProps={refProp:"ref"},Vt.Section=kt,Vt.SingleItemSection=St,Vt.Item=vt,Vt.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Vt).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;var mn=ln;ze.a=mn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(20),We=Ve(16),Qe=Ve(8),Xe=Ve(92),ot=Ve(135);class st extends qe.a{constructor(ce,ze,Ve,qe){super(qe),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toNext",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const ce=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,ce,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent,Ve=this.sourcePosition.offset,qe=this.targetPosition.offset;if(Ve+this.howMany>ce.maxOffset)throw new Qe.a("move-operation-nodes-do-not-exist",this);if(ce===ze&&Ve=Ve&&this.targetPosition.path[ce]{const st=void 0===Xe?Qe:Xe instanceof qe.Name?(Qe instanceof qe.Name?ce(We,Qe,Xe):ze(We,Qe,Xe),Xe):Qe instanceof qe.Name?(ze(We,Xe,Qe),Qe):Ve(Qe,Xe);return ot!==qe.Name||st instanceof qe.Name?st:Ye(We,st)}}function evaluatedPropsToName(ce,ze){if(!0===ze)return ce.var("props",!0);const Ve=ce.var("props",qe._`{}`);return void 0!==ze&&setEvaluated(ce,Ve,ze),Ve}function setEvaluated(ce,ze,Ve){Object.keys(Ve).forEach((Ve=>ce.assign(qe._`${ze}${(0,qe.getProperty)(Ve)}`,!0)))}ze.toHash=function toHash(ce){const ze={};for(const Ve of ce)ze[Ve]=!0;return ze},ze.alwaysValidSchema=function alwaysValidSchema(ce,ze){return"boolean"==typeof ze?ze:0===Object.keys(ze).length||(checkUnknownRules(ce,ze),!schemaHasRules(ze,ce.self.RULES.all))},ze.checkUnknownRules=checkUnknownRules,ze.schemaHasRules=schemaHasRules,ze.schemaHasRulesButRef=function schemaHasRulesButRef(ce,ze){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if("$ref"!==Ve&&ze.all[Ve])return!0;return!1},ze.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:ce,schemaPath:ze},Ve,Ye,We){if(!We){if("number"==typeof Ve||"boolean"==typeof Ve)return Ve;if("string"==typeof Ve)return qe._`${Ve}`}return qe._`${ce}${ze}${(0,qe.getProperty)(Ye)}`},ze.unescapeFragment=function unescapeFragment(ce){return unescapeJsonPointer(decodeURIComponent(ce))},ze.escapeFragment=function escapeFragment(ce){return encodeURIComponent(escapeJsonPointer(ce))},ze.escapeJsonPointer=escapeJsonPointer,ze.unescapeJsonPointer=unescapeJsonPointer,ze.eachItem=function eachItem(ce,ze){if(Array.isArray(ce))for(const Ve of ce)ze(Ve);else ze(ce)},ze.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true && ${ze} !== undefined`,(()=>{ce.if(qe._`${ze} === true`,(()=>ce.assign(Ve,!0)),(()=>ce.assign(Ve,qe._`${Ve} || {}`).code(qe._`Object.assign(${Ve}, ${ze})`)))})),mergeToName:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true`,(()=>{!0===ze?ce.assign(Ve,!0):(ce.assign(Ve,qe._`${Ve} || {}`),setEvaluated(ce,Ve,ze))})),mergeValues:(ce,ze)=>!0===ce||{...ce,...ze},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true && ${ze} !== undefined`,(()=>ce.assign(Ve,qe._`${ze} === true ? true : ${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeToName:(ce,ze,Ve)=>ce.if(qe._`${Ve} !== true`,(()=>ce.assign(Ve,!0===ze||qe._`${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeValues:(ce,ze)=>!0===ce||Math.max(ce,ze),resultToName:(ce,ze)=>ce.var("items",ze)})},ze.evaluatedPropsToName=evaluatedPropsToName,ze.setEvaluated=setEvaluated;const We={};var Qe;function checkStrictMode(ce,ze,Ve=ce.opts.strictSchema){if(Ve){if(ze=`strict mode: ${ze}`,!0===Ve)throw new Error(ze);ce.self.logger.warn(ze)}}ze.useFunc=function useFunc(ce,ze){return ce.scopeValue("func",{ref:ze,code:We[ze.code]||(We[ze.code]=new Ye._Code(ze.code))})},function(ce){ce[ce.Num=0]="Num",ce[ce.Str=1]="Str"}(Qe||(ze.Type=Qe={})),ze.getErrorPath=function getErrorPath(ce,ze,Ve){if(ce instanceof qe.Name){const Ye=ze===Qe.Num;return Ve?Ye?qe._`"[" + ${ce} + "]"`:qe._`"['" + ${ce} + "']"`:Ye?qe._`"/" + ${ce}`:qe._`"/" + ${ce}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ve?(0,qe.getProperty)(ce).toString():"/"+escapeJsonPointer(ce)},ze.checkStrictMode=checkStrictMode},function(ce,ze,Ve){"use strict";var qe=Ve(417),Ye=Function.prototype,We=Ye.call,Qe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Qe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";ze.a=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(556);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(164),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(66),kt=Ve(19),St=Ve(184),xt="grid--3CNbbqAPqk",Et="grid-section--FhJarv311B",Pt="divider-container--PnX-i2y1et",Tt="grid-item--znrosHPz2S";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Qe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Xe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.a.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.a.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.a,{className:St.a.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:qe,id:Ye,label:We,required:Qe,skin:Xe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Xe]]:!!Xe,[St.a.error]:!!qe});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.a.label,htmlFor:Ye},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Qe&&" *"),ce,Ve&>.a.createElement("div",{className:St.a.descriptionLabel},Ve),gt.a.createElement("div",{className:St.a.errorLabel},qe)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((Ye=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"selectedType"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),qe=Ye))||qe;var Ft=Lt,Bt=Ve(573);class Vt extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,qe=gt.a.Children.toArray(ce);return(ze||12===Ve)&&qe.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:qe.length},gt.a.createElement(Bt.a,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},qe)}}Vt.defaultProps={colSpan:12};class Ht extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Ht.Field=Ft,Ht.Section=Vt;ze.a=Ht},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"c",(function(){return isWidget})),Ve.d(ze,"d",(function(){return toWidget})),Ve.d(ze,"b",(function(){return getLabel})),Ve.d(ze,"e",(function(){return toWidgetEditable}));var qe=Ve(8),Ye=Ve(91),We=(Ve(676),Ve(39)),Qe=Ve(25);class Xe{constructor(){this._stack=[]}add(ce,ze){const Ve=this._stack,qe=Ve[0];this._insertDescriptor(ce);const Ye=Ve[0];qe===Ye||compareDescriptors(qe,Ye)||this.fire("change:top",{oldDescriptor:qe,newDescriptor:Ye,writer:ze})}remove(ce,ze){const Ve=this._stack,qe=Ve[0];this._removeDescriptor(ce);const Ye=Ve[0];qe===Ye||compareDescriptors(qe,Ye)||this.fire("change:top",{oldDescriptor:qe,newDescriptor:Ye,writer:ze})}_insertDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce.id));if(compareDescriptors(ce,ze[Ve]))return;Ve>-1&&ze.splice(Ve,1);let qe=0;for(;ze[qe]&&shouldABeBeforeB(ze[qe],ce);)qe++;ze.splice(qe,0,ce)}_removeDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce));Ve>-1&&ze.splice(Ve,1)}}function compareDescriptors(ce,ze){return ce&&ze&&ce.priority==ze.priority&&classesToString(ce.classes)==classesToString(ze.classes)}function shouldABeBeforeB(ce,ze){return ce.priority>ze.priority||!(ce.priorityclassesToString(ze.classes)}function classesToString(ce){return Array.isArray(ce)?ce.sort().join(","):ce}Object(Qe.a)(Xe,We.c);Ve(83);var ot=Ve(296),st='';const mt="ck-widget",gt="ck-widget_selected";function isWidget(ce){return!!ce.is("element")&&!!ce.getCustomProperty("widget")}function toWidget(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!ce.is("containerElement"))throw new qe.a("widget-to-widget-wrong-element-type",null,{element:ce});return ze.setAttribute("contenteditable","false",ce),ze.addClass(mt,ce),ze.setCustomProperty("widget",!0,ce),ce.getFillerOffset=getFillerOffset,Ve.label&&setLabel(ce,Ve.label,ze),Ve.hasSelectionHandle&&addSelectionHandle(ce,ze),setHighlightHandling(ce,ze),ce}function addHighlight(ce,ze,Ve){if(ze.classes&&Ve.addClass(Object(Ye.a)(ze.classes),ce),ze.attributes)for(const qe in ze.attributes)Ve.setAttribute(qe,ze.attributes[qe],ce)}function removeHighlight(ce,ze,Ve){if(ze.classes&&Ve.removeClass(Object(Ye.a)(ze.classes),ce),ze.attributes)for(const qe in ze.attributes)Ve.removeAttribute(qe,ce)}function setHighlightHandling(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:addHighlight,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:removeHighlight;const Ye=new Xe;Ye.on("change:top",((ze,Ye)=>{Ye.oldDescriptor&&qe(ce,Ye.oldDescriptor,Ye.writer),Ye.newDescriptor&&Ve(ce,Ye.newDescriptor,Ye.writer)})),ze.setCustomProperty("addHighlight",((ce,ze,Ve)=>Ye.add(ze,Ve)),ce),ze.setCustomProperty("removeHighlight",((ce,ze,Ve)=>Ye.remove(ze,Ve)),ce)}function setLabel(ce,ze,Ve){Ve.setCustomProperty("widgetLabel",ze,ce)}function getLabel(ce){const ze=ce.getCustomProperty("widgetLabel");return ze?"function"==typeof ze?ze():ze:""}function toWidgetEditable(ce,ze){return ze.addClass(["ck-editor__editable","ck-editor__nested-editable"],ce),ze.setAttribute("contenteditable",ce.isReadOnly?"false":"true",ce),ce.on("change:isReadOnly",((Ve,qe,Ye)=>{ze.setAttribute("contenteditable",Ye?"false":"true",ce)})),ce.on("change:isFocused",((Ve,qe,Ye)=>{Ye?ze.addClass("ck-editor__nested-editable_focused",ce):ze.removeClass("ck-editor__nested-editable_focused",ce)})),setHighlightHandling(ce,ze),ce}function getFillerOffset(){return null}function addSelectionHandle(ce,ze){const Ve=ze.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(ce){const ze=this.toDomElement(ce),Ve=new ot.a;return Ve.set("content",st),Ve.render(),ze.appendChild(Ve.element),ze}));ze.insert(ze.createPositionAt(ce,0),Ve),ze.addClass(["ck-widget_with-selection-handle"],ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(95),We=Ve(20),Qe=Ve(16),Xe=Ve(135),ot=Ve(8);class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.splitPosition=ce.clone(),this.splitPosition.stickiness="toNext",this.howMany=ze,this.insertionPosition=Ve,this.graveyardPosition=qe?qe.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const ce=this.insertionPosition.path.slice();return ce.push(0),new We.a(this.insertionPosition.root,ce)}get movedRange(){const ce=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qe.a(this.splitPosition,ce)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.splitPosition.root.document.graveyard,ze=new We.a(ce,[0]);return new Ye.a(this.moveTargetPosition,this.howMany,this.splitPosition,ze,this.baseVersion+1)}_validate(){const ce=this.splitPosition.parent,ze=this.splitPosition.offset;if(!ce||ce.maxOffset{const Ye=ce[Ve];return null===Ye?(ze[Ve]=void 0,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformResponseArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformResponseObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null==Ye?(ze[Ve]=null,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformRequestArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformRequestObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(qe.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(qe.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Qe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(qe.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(qe.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,qe;const Qe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Xe=new AbortController;return Qe.setAbortController(Xe),fetch(ce,{...We,...ze,signal:Xe.signal}).then(Ve).catch(qe),Qe}class Qe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Qe.handleResponseHooks=[];ze.a=Qe},,function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.editor=ce,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(ce=>{this.isEnabled||ce.stop()}),{priority:"high"}),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.refresh())}execute(){}destroy(){this.stopListening()}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";var qe=Ve(237),Ye=Ve(390),We=Ve(223);var Qe=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Object(We.a)(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Object(Ye.a)(ce,ze,Ve)},Xe=Ve(717),ot=Ve(656),st=Ve(657),mt=Ve(655),gt=Ve(720),yt=Ve(339),bt=Ve(82),vt=Ve(174),wt=Ve(98);var Ct=function isArrayLikeObject(ce){return Object(wt.a)(ce)&&Object(vt.a)(ce)},Dt=Ve(257),kt=Ve(388),St=Ve(71),xt=Ve(268),Et=Ve(404);var Pt=function safeGet(ce,ze){if(("constructor"!==ze||"function"!=typeof ce[ze])&&"__proto__"!=ze)return ce[ze]},Tt=Ve(175),Lt=Ve(179);var Ft=function toPlainObject(ce){return Object(Tt.a)(ce,Object(Lt.a)(ce))};var Bt=function baseMergeDeep(ce,ze,Ve,qe,Ye,We,Xe){var vt=Pt(ce,Ve),wt=Pt(ze,Ve),Tt=Xe.get(wt);if(Tt)Qe(ce,Ve,Tt);else{var Lt=We?We(vt,wt,Ve+"",ce,ze,Xe):void 0,Bt=void 0===Lt;if(Bt){var Vt=Object(bt.a)(wt),Ht=!Vt&&Object(Dt.a)(wt),Ut=!Vt&&!Ht&&Object(Et.a)(wt);Lt=wt,Vt||Ht||Ut?Object(bt.a)(vt)?Lt=vt:Ct(vt)?Lt=Object(mt.a)(vt):Ht?(Bt=!1,Lt=Object(ot.a)(wt,!0)):Ut?(Bt=!1,Lt=Object(st.a)(wt,!0)):Lt=[]:Object(xt.a)(wt)||Object(yt.a)(wt)?(Lt=vt,Object(yt.a)(vt)?Lt=Ft(vt):Object(St.a)(vt)&&!Object(kt.a)(vt)||(Lt=Object(gt.a)(wt))):Bt=!1}Bt&&(Xe.set(wt,Lt),Ye(Lt,wt,qe,We,Xe),Xe.delete(wt)),Qe(ce,Ve,Lt)}};var Vt=function baseMerge(ce,ze,Ve,Ye,We){ce!==ze&&Object(Xe.a)(ze,(function(Xe,ot){if(We||(We=new qe.a),Object(St.a)(Xe))Bt(ce,ze,ot,Ve,baseMerge,Ye,We);else{var st=Ye?Ye(Pt(ce,ot),Xe,ot+"",ce,ze,We):void 0;void 0===st&&(st=Xe),Qe(ce,ot,st)}}),Lt.a)},Ht=Ve(692),Ut=Object(Ht.a)((function(ce,ze,Ve){Vt(ce,ze,Ve)}));ze.a=Ut},function(ce,ze,Ve){"use strict";var qe=Array.isArray;ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"f",(function(){return isTypeAroundWidget})),Ve.d(ze,"b",(function(){return getClosestTypeAroundDomButton})),Ve.d(ze,"d",(function(){return getTypeAroundButtonPosition})),Ve.d(ze,"c",(function(){return getClosestWidgetViewElement})),Ve.d(ze,"e",(function(){return getTypeAroundFakeCaretPosition}));var qe=Ve(74);const Ye="widget-type-around";function isTypeAroundWidget(ce,ze,Ve){return ce&&Object(qe.c)(ce)&&!Ve.isInline(ze)}function getClosestTypeAroundDomButton(ce){return ce.closest(".ck-widget__type-around__button")}function getTypeAroundButtonPosition(ce){return ce.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function getClosestWidgetViewElement(ce,ze){const Ve=ce.closest(".ck-widget");return ze.mapDomToView(Ve)}function getTypeAroundFakeCaretPosition(ce){return ce.getAttribute(Ye)}},function(ce,ze,Ve){"use strict";function r(ce){var ze,Ve,qe="";if("string"==typeof ce||"number"==typeof ce)qe+=ce;else if("object"==typeof ce)if(Array.isArray(ce))for(ze=0;ze{const{onChange:Ve,values:qe}=this.props;Ve(ce&&ze?[...qe,ze]:qe.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return Ye.a.createElement("div",{className:ce},Ye.a.Children.map(this.props.children,(ce=>Ye.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}mt.defaultProps={disabled:!1};ze.b=st},function(ce,ze,Ve){"use strict";var qe=Ve(323),Ye=qe(Ve(1789)),We=qe(Ve(349)),Qe=qe(Ve(350)),Xe=Ve(1791),ot=Ve(1803).getGrammar,st=function(){function Jexl(){(0,We.default)(this,Jexl),this.expr=this.expr.bind(this),this._grammar=ot()}return(0,Qe.default)(Jexl,[{key:"addBinaryOp",value:function addBinaryOp(ce,ze,Ve,qe){this._addGrammarElement(ce,(0,Ye.default)({type:"binaryOp",precedence:ze},qe?"evalOnDemand":"eval",Ve))}},{key:"addFunction",value:function addFunction(ce,ze){this._grammar.functions[ce]=ze}},{key:"addFunctions",value:function addFunctions(ce){for(var ze in ce)this._grammar.functions[ze]=ce[ze]}},{key:"addUnaryOp",value:function addUnaryOp(ce,ze){this._addGrammarElement(ce,{type:"unaryOp",weight:1/0,eval:ze})}},{key:"addTransform",value:function addTransform(ce,ze){this._grammar.transforms[ce]=ze}},{key:"addTransforms",value:function addTransforms(ce){for(var ze in ce)this._grammar.transforms[ze]=ce[ze]}},{key:"compile",value:function compile(ce){return this.createExpression(ce).compile()}},{key:"createExpression",value:function createExpression(ce){return new Xe(this._grammar,ce)}},{key:"getFunction",value:function getFunction(ce){return this._grammar.functions[ce]}},{key:"getTransform",value:function getTransform(ce){return this._grammar.transforms[ce]}},{key:"eval",value:function _eval(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).eval(ze)}},{key:"evalSync",value:function evalSync(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).evalSync(ze)}},{key:"expr",value:function expr(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:qe}=this.props,Ye=Xe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[qe]]:"auto"!==qe});return We.a.createElement("th",{className:Ye},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[],Ye=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&qe.push(...ce)}return Ve||(this.isMultipleSelect()?qe.push(this.createCheckboxCell()):this.isSingleSelect()&&qe.push(this.createEmptyCell())),Ye.unshift(...qe),Ye},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:qe}=ce;let{children:Ye}=qe;return 0===ze&&(Ye=this.createFirstCell(Ye)),We.a.cloneElement(ce,{...qe,key:Ve,children:Ye})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:qe,skin:Qe}=this.props;return Ve&&this.isMultipleSelect()&&qe?We.a.createElement(Ye.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Qe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.a,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(403),vt={radio:"radio--YPbrI-RgGp",dark:"dark--dcyk4uATtb",light:"light--34NFpmj7Fx",disabled:"disabled--uEVZ24e3mO"};class wt extends We.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Ye}=this.props,Qe=Xe()(vt.radio,vt[this.props.skin],{[vt.disabled]:ce});return We.a.createElement(bt.a,{checked:qe,className:Qe,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},Ye)}}wt.defaultProps={checked:!1,disabled:!1,skin:"dark"};class Ct extends We.a.PureComponent{render(){return We.a.createElement("div",{className:this.props.className},We.a.Children.map(this.props.children,(ce=>We.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}Ct.defaultProps={disabled:!1};var Dt=Ve(706),kt=Ve(405);class St extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:qe,width:Ye}=this.props,Qe=Xe()(Ve,mt.cell,{[mt[Ye]]:"auto"!==Ye}),ot={};return qe&&(ot.paddingLeft=25*qe+"px"),We.a.createElement("td",{className:Qe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}St.defaultProps={width:"auto"};class xt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(St,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.a,{name:ze})))}}xt.defaultProps={disabled:!1};class Et extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&qe.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&qe.push(We.a.createElement(St,{key:"choice",width:"shrink"},ce))}const Ye=this.cloneCells(ce);return Ye.unshift(qe),Ye},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:qe}=ce,Ye=0===ze,{depth:Qe}=this.props;let{children:Xe}=qe;return Ye&&(Xe=this.createFirstCell(Xe)),We.a.cloneElement(ce,{...qe,key:Ve,children:Xe,depth:Ye&&Qe?Qe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:qe}=this.props;return We.a.createElement(Ye.Fragment,null,Ve&&qe&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(kt.a,{size:10}):We.a.createElement(Dt.a,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(wt,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`control-${ze}-${Ve}`,{disabled:Ye,icon:Qe,onClick:Xe}=ce;return We.a.createElement(xt,{disabled:Ye,icon:Qe,key:qe,onClick:Xe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Xe()(mt.row,{[mt.disabled]:ze}),qe=this.createCells(ce);return We.a.createElement("tr",{className:Ve},qe)}}Et.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class Pt extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,qe)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${qe}`,rowIndex:qe,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var Tt,Lt;Pt.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Ft=Object(qe.b)((Lt=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:qe,selectMode:Ye,selectInFirstCell:Qe,skin:Xe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:qe?this.handleAllSelectionChange:void 0,selectMode:Ye,selectInFirstCell:Qe,skin:Xe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.a,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let qe,Ye;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:Ye=ce;break;case Pt:qe=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,Pt.name].join(", "))}}));const Qe=this.cloneBody(qe),ot=Qe&&0===We.a.Children.count(Qe.props.children),st=!(!Qe||ot)&&this.checkAllRowsSelected(Qe),gt=this.cloneHeader(Ye,st),bt=Xe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Qe),ot&&this.createTablePlaceholderArea())}},Lt.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Lt.Header=yt,Lt.Body=Pt,Lt.Row=Et,Lt.Cell=St,Lt.HeaderCell=gt,Tt=Lt))||Tt;var Bt=Ft;ze.a=Bt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(75),We=Ve(20),Qe=Ve(16),Xe=Ve(135),ot=Ve(8);class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=qe.clone()}get type(){return"merge"}get deletionPosition(){return new We.a(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const ce=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qe.a(this.sourcePosition,ce)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.targetPosition._getTransformedByMergeOperation(this),ze=this.sourcePosition.path.slice(0,-1),Ve=new We.a(this.sourcePosition.root,ze)._getTransformedByMergeOperation(this);return new Ye.a(ce,this.howMany,Ve,this.graveyardPosition,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent;if(!ce.parent)throw new ot.a("merge-operation-source-position-invalid",this);if(!ze.parent)throw new ot.a("merge-operation-target-position-invalid",this);if(this.howMany!=ce.maxOffset)throw new ot.a("merge-operation-how-many-invalid",this)}_execute(){const ce=this.sourcePosition.parent,ze=Qe.a._createIn(ce);Object(Xe.b)(ze,this.targetPosition),Object(Xe.b)(Qe.a._createOn(ce),this.graveyardPosition)}toJSON(){const ce=super.toJSON();return ce.sourcePosition=ce.sourcePosition.toJSON(),ce.targetPosition=ce.targetPosition.toJSON(),ce.graveyardPosition=ce.graveyardPosition.toJSON(),ce}static get className(){return"MergeOperation"}static fromJSON(ce,ze){const Ve=We.a.fromJSON(ce.sourcePosition,ze),qe=We.a.fromJSON(ce.targetPosition,ze),Ye=We.a.fromJSON(ce.graveyardPosition,ze);return new this(Ve,ce.howMany,qe,Ye,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var qe,Ye=Ve(1),We=Ve(22),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(232),mt=Ve(409),gt=Ve(366);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let yt=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"availableAttributes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"regexp",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"regexp"),qe.prototype),qe);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Qe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(Ye.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,qe)=>{addValueToSearchParameters(ce,ze,Ve+"["+qe+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const qe in ze){const Ye=Ve+xt+qe;addValueToSearchParameters(ce,ze[qe],Ye)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const qe=Ve.split(xt);ce[qe[0]]||(ce[qe[0]]={}),addAttributesFromSearchParameters(ce[qe[0]],ze,qe.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const qe=Ve.slice(0,Ve.indexOf("["));ce[qe]||(ce[qe]=[]),ce[qe].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const qe=ze.attributesHistory[ce].pop();ze.update(ce,{...qe,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(Ye.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,qe=ce+ze;if(Ve!==qe){const ce=Ve||qe;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],qe=Ve.indexOf(ce);-1!==qe&&Ve.splice(qe,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const qe=St.get(Ve),Ye=qe.regexp.exec(ce);if(!Ye)continue;const{availableAttributes:We}=qe,Qe={};for(let ce=1;ce{addAttributesFromSearchParameters(Qe,ce,ze)})),void this.handleNavigation(Ve,Qe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const qe=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(qe,ze),...ce})),{}),...ze},Qe=qe.attributeDefaults;Object.keys(Qe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Qe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(qe,We,Ve))return;this.route=qe,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(Ye.toJS)(Ve),Object(Ye.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(Ye.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const qe=Ve.get();ce[ze]=qe}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:qe}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(Ye.toJS)(ce[ze]);qe.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(Ye.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Qe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";var qe=Ve(591);ze.a=qe.default},function(ce,ze,Ve){"use strict";ze.a=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";function isIterable(ce){return!(!ce||!ce[Symbol.iterator])}Ve.d(ze,"a",(function(){return isIterable}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe{constructor(ce){this.baseVersion=ce,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const ce=Object.assign({},this);return ce.__className=this.constructor.className,delete ce.batch,delete ce.isDocumentOperation,ce}static get className(){return"Operation"}static fromJSON(ce){return new this(ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2138),Ct=Ve(263),Dt=Ve(292),kt=Ve(40),St=Ve(338),xt={"dialog-container":"dialog-container--SOn7B+vxSC",dialogContainer:"dialog-container--SOn7B+vxSC",dialog:"dialog--G7Wveo+g8n",small:"small--beDxk+PsvI",large:"large--xv8-eBLN-7",open:"open--GPXSLbktfQ",content:"content--GE8uDdrGDR",header:"header--jlptP88em8",headerItem:"headerItem--WMAbs4bs74",footer:"footer--herxZXfY4f",snackbar:"snackbar--k4bcZn-Pqs",article:"article--gq2ruuupr8",left:"left--zgpd33JVI6",center:"center--TpnfJq+BS0"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Qe,this),_initializerDefineProperty(this,"handleTransitionEnd",Xe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:qe,confirmLoading:Ye,confirmText:We,onCancel:Qe,onConfirm:Xe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.a,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We),Qe&&qe&&vt.a.createElement(kt.a,{onClick:Qe,skin:"secondary"},qe)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),qe=Ye))||qe;ze.a=Et},function(ce,ze,Ve){"use strict";var qe=Ve(654),Ye="object"==typeof self&&self&&self.Object===Object&&self,We=qe.a||Ye||Function("return this")();ze.a=We},function(ce,ze,Ve){"use strict";var qe=Ve(1),Ye=Ve(280);const We={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};function transformResponseObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null===Ye?(ze[Ve]=void 0,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformResponseArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformResponseObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const Ye=ce[Ve];return null==Ye?(ze[Ve]=null,ze):Object(qe.isArrayLike)(Ye)?(ze[Ve]=transformRequestArray(Ye),ze):Ye instanceof Object?(ze[Ve]=transformRequestObject(Ye),ze):(ze[Ve]=Ye,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(qe.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(qe.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Qe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(qe.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(qe.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,qe;const Qe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Xe=new AbortController;return Qe.setAbortController(Xe),fetch(ce,{...We,...ze,signal:Xe.signal}).then(Ve).catch(qe),Qe}class Qe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Qe.handleResponseHooks=[];ze.a=Qe},function(ce,ze,Ve){"use strict";function isText(ce){return"[object Text]"==Object.prototype.toString.call(ce)}Ve.d(ze,"a",(function(){return isText}))},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";var qe="object"==typeof document&&document.all;ce.exports=void 0===qe&&void 0!==qe?function(ce){return"function"==typeof ce||ce===qe}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(177),Ye=Ve(63),We=Ve(181),Qe=Ve(165),Xe=Ve(91),ot=Ve(99),st=Ve(252),mt=Ve(365);class gt extends qe.a{constructor(ce,ze,Ve,qe){if(super(ce),this.name=ze,this._attrs=parseAttributes(Ve),this._children=[],qe&&this._insertChild(0,qe),this._classes=new Set,this._attrs.has("class")){const ce=this._attrs.get("class");parseClasses(this._classes,ce),this._attrs.delete("class")}this._styles=new mt.b(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"view:element"===ce):"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(ce){if("class"==ce)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==ce){const ce=this._styles.toString();return""==ce?void 0:ce}return this._attrs.get(ce)}hasAttribute(ce){return"class"==ce?this._classes.size>0:"style"==ce?!this._styles.isEmpty:this._attrs.has(ce)}isSimilar(ce){if(!(ce instanceof gt))return!1;if(this===ce)return!0;if(this.name!=ce.name)return!1;if(this._attrs.size!==ce._attrs.size||this._classes.size!==ce._classes.size||this._styles.size!==ce._styles.size)return!1;for(const[ze,Ve]of this._attrs)if(!ce._attrs.has(ze)||ce._attrs.get(ze)!==Ve)return!1;for(const ze of this._classes)if(!ce._classes.has(ze))return!1;for(const ze of this._styles.getStyleNames())if(!ce._styles.has(ze)||ce._styles.getAsString(ze)!==this._styles.getAsString(ze))return!1;return!0}hasClass(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(ce)}hasStyle(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve`${ce[0]}="${ce[1]}"`)).sort().join(" ");return this.name+(""==ce?"":` class="${ce}"`)+(ze?` style="${ze}"`:"")+(""==Ve?"":` ${Ve}`)}shouldRenderUnsafeAttribute(ce){return this._unsafeAttributesToRender.includes(ce)}_clone(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const ze=[];if(ce)for(const Ve of this.getChildren())ze.push(Ve._clone(ce));const Ve=new this.constructor(this.document,this.name,this._attrs,ze);return Ve._classes=new Set(this._classes),Ve._styles.set(this._styles.getNormalized()),Ve._customProperties=new Map(this._customProperties),Ve.getFillerOffset=this.getFillerOffset,Ve._unsafeAttributesToRender=this._unsafeAttributesToRender,Ve}_appendChild(ce){return this._insertChild(this.childCount,ce)}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const qe=normalize(this.document,ze);for(const ze of qe)null!==ze.parent&&ze._remove(),ze.parent=this,ze.document=this.document,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve0&&(this._classes.clear(),!0):"style"==ce?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(ce)}_addClass(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._classes.add(ze)}_removeClass(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._classes.delete(ze)}_setStyle(ce,ze){this._fireChange("attributes",this),this._styles.set(ce,ze)}_removeStyle(ce){this._fireChange("attributes",this);for(const ze of Object(Xe.a)(ce))this._styles.remove(ze)}_setCustomProperty(ce,ze){this._customProperties.set(ce,ze)}_removeCustomProperty(ce){return this._customProperties.delete(ce)}}function parseAttributes(ce){ce=Object(Qe.a)(ce);for(const[ze,Ve]of ce)null===Ve?ce.delete(ze):"string"!=typeof Ve&&ce.set(ze,String(Ve));return ce}function parseClasses(ce,ze){const Ve=ze.split(/\s+/);ce.clear(),Ve.forEach((ze=>ce.add(ze)))}function normalize(ce,ze){return"string"==typeof ze?[new Ye.a(ce,ze)]:(Object(ot.a)(ze)||(ze=[ze]),Array.from(ze).map((ze=>"string"==typeof ze?new Ye.a(ce,ze):ze instanceof We.a?new Ye.a(ce,ze.data):ze)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"b",(function(){return useStyleGuideContext}));var qe=Ve(0),Ye=Ve.n(qe),We=Ye.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),Qe=We;function useStyleGuideContext(){return Ye.a.useContext(We)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(100),Ye=Ve(20),We=Ve(233),Qe=Ve(67),Xe=Ve(135),ot=Ve(64),st=Ve(57),mt=Ve(8);class gt extends qe.a{constructor(ce,ze,Ve){super(Ve),this.position=ce.clone(),this.position.stickiness="toNone",this.nodes=new We.a(Object(Xe.c)(ze)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const ce=new We.a([...this.nodes].map((ce=>ce._clone(!0)))),ze=new gt(this.position,ce,this.baseVersion);return ze.shouldReceiveAttributes=this.shouldReceiveAttributes,ze}getReversed(){const ce=this.position.root.document.graveyard,ze=new Ye.a(ce,[0]);return new Qe.a(this.position,this.nodes.maxOffset,ze,this.baseVersion+1)}_validate(){const ce=this.position.parent;if(!ce||ce.maxOffsetce._clone(!0)))),Object(Xe.a)(this.position,ce)}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce.nodes=this.nodes.toJSON(),ce}static get className(){return"InsertOperation"}static fromJSON(ce,ze){const Ve=[];for(const ze of ce.nodes)ze.name?Ve.push(st.a.fromJSON(ze)):Ve.push(ot.a.fromJSON(ze));const qe=new gt(Ye.a.fromJSON(ce.position,ze),Ve,ce.baseVersion);return qe.shouldReceiveAttributes=ce.shouldReceiveAttributes,qe}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(100),Ye=Ve(16),We=Ve(8),Qe=Ve(135),Xe=Ve(304);var ot=function isEqual(ce,ze){return Object(Xe.a)(ce,ze)};class st extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.range=ce.clone(),this.key=ze,this.oldValue=void 0===Ve?null:Ve,this.newValue=void 0===qe?null:qe}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new st(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new st(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const ce=super.toJSON();return ce.range=this.range.toJSON(),ce}_validate(){if(!this.range.isFlat)throw new We.a("attribute-operation-range-not-flat",this);for(const ce of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!ot(ce.getAttribute(this.key),this.oldValue))throw new We.a("attribute-operation-wrong-old-value",this,{item:ce,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&ce.hasAttribute(this.key))throw new We.a("attribute-operation-attribute-exists",this,{node:ce,key:this.key})}}_execute(){ot(this.oldValue,this.newValue)||Object(Qe.e)(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(ce,ze){return new st(Ye.a.fromJSON(ce.range,ze),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(209),We=qe({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(Ye(ce),ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return ur})),Ve.d(ze,"d",(function(){return Ir})),Ve.d(ze,"a",(function(){return Sn}));var qe=Ve(1),Ye=Ve(3),We=Ve(0),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(54),mt=Ve(709),gt=(Ve(113),Ve(28)),yt=Ve.n(gt),bt=Ve(73),vt=Ve(90),wt=Ve.n(vt),Ct=Ve(6);var Dt=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}};var kt,St,xt,Et,Pt=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}},Tt="field-container--2nOx5P+TBC",Lt="field--id7xbztJ7m",Ft="field-exception--SPFAlLgZ8Y",Bt=Ve(189);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Vt=(kt=qe.computed.struct,Object(Ye.b)((Et=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe}=this.props;this.disabled||qe(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:qe,schemaPath:Ye}=this.props;ce&&ze&&qe(ce,ze),qe(Ve,Ye)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return Dt.getAll().reduce((function(ce,qe){return{...ce,...qe(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&wt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(qe.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:qe,name:Ye,onSuccess:We,router:Xe,schema:st,schemaPath:mt,showAllErrors:gt,value:yt}=this.props,{defaultType:vt,description:wt,label:Dt,maxOccurs:kt,minOccurs:St,onInvalid:xt,options:Et={},required:Bt,type:Vt}=st;let Ht;try{Ht=Pt.get(Vt)}catch(ce){return"ignore"===xt?null:(ot.a.error(ce),Qe.a.createElement(bt.a.Field,{colSpan:st.colSpan,spaceAfter:st.spaceAfter},Qe.a.createElement("div",{className:Tt},Qe.a.createElement("div",{className:Lt},Qe.a.createElement("div",{className:Ft},Qe.a.createElement("h4",null,"Error while rendering field!"),Qe.a.createElement("p",null,Qe.a.createElement("b",null,"Name:")," ",Ye,Qe.a.createElement("br",null),Qe.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Ut=Pt.getOptions(Vt),Wt=this.findErrorKeyword(Ve);return Qe.a.createElement(bt.a.Field,{colSpan:st.colSpan,description:wt,error:Wt?Object(Ct.translate)("sulu_admin.error_"+Wt.toLowerCase()):void 0,id:ze,label:Dt,required:Bt,spaceAfter:st.spaceAfter},Qe.a.createElement("div",{className:Tt},Qe.a.createElement("div",{className:Lt},Qe.a.createElement(Ht,{data:ce,dataPath:ze,defaultType:vt,disabled:this.disabled,error:Ve,fieldTypeOptions:Ut,formInspector:qe,label:Dt||Ye,maxOccurs:kt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Xe,schemaOptions:Et,schemaPath:mt,showAllErrors:gt,types:this.types,value:yt}))))}},Et.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((xt=Et).prototype,"conditionData",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"conditionData"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"disabled",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"disabled"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"visible",[qe.computed],Object.getOwnPropertyDescriptor(xt.prototype,"visible"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"types",[kt],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),St=xt))||St);var Ht,Ut,Wt=Vt;function Section_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Jt,Qt,en,rn,ln=Object(Ye.b)((Section_applyDecoratedDescriptor((Ut=class extends Qe.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return Dt.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:qe,label:Ye}=Ve;return Qe.a.createElement(bt.a.Section,{colSpan:qe,key:ze,label:Ye},ce)}}).prototype,"conditionData",[qe.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"conditionData"),Ut.prototype),Section_applyDecoratedDescriptor(Ut.prototype,"visible",[qe.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"visible"),Ut.prototype),Ht=Ut))||Ht;let mn=Object(Ye.b)((rn=class extends Qe.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="handleFieldFinish",qe=this,(Ve=en)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}renderSection(ce,ze,Ve){const{data:qe,formInspector:Ye}=this.props,{items:We}=ce;return Qe.a.createElement(ln,{data:qe,formInspector:Ye,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:qe,dataPath:Ye,errors:We,formInspector:Xe,onChange:ot,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=Ye+"/"+ze,wt=(gt||Xe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return Qe.a.createElement(Wt,{data:qe,dataPath:vt,error:wt,formInspector:Xe,key:ze+"_"+ce.type,name:ze,onChange:ot,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return Qe.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},rn.defaultProps={showAllErrors:!1},en=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Qt=rn).prototype,"handleFieldFinish",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Jt=Qt))||Jt;var gn,bn,wn,Cn,Sn=mn,En=Ve(101),Tn=Ve(32),Ln=Ve(11);function GhostDialog_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function GhostDialog_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Fn,Yn,Un,Gn,Kn=Object(Ye.b)((bn=class extends Qe.a.Component{constructor(ce){super(ce),GhostDialog_initializerDefineProperty(this,"selectedLocale",wn,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},GhostDialog_initializerDefineProperty(this,"handleLocaleChange",Cn,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return Qe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.no"),confirmText:Object(Ln.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(Ln.b)("sulu_admin.ghost_dialog_title")},Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.ghost_dialog_description")),Qe.a.createElement(bt.a,null,Qe.a.createElement(bt.a.Field,{colSpan:6,label:Object(Ln.b)("sulu_admin.choose_language")},Qe.a.createElement(Tn.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>Qe.a.createElement(Tn.a.Option,{key:ce,value:ce},ce)))))))}},wn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"selectedLocale",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"handleLocaleChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),gn=bn))||gn;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jn=Object(Ye.b)((Yn=class extends Qe.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Un,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Gn,this)}render(){const{open:ce,types:ze}=this.props;return Qe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(Ln.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(Ln.b)("sulu_admin.missing_type_dialog_title")},Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.missing_type_dialog_description")),Qe.a.createElement(bt.a,null,Qe.a.createElement(bt.a.Field,{colSpan:6},Qe.a.createElement(Tn.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>Qe.a.createElement(Tn.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Un=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"selectedType",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"handleTypeChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Fn=Yn))||Fn;var Zn,Xn,ei,si,_i,Ri,Ci,Di,Ei,Oi=Jn;function Form_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ti=Object(Ye.b)((Xn=class extends Qe.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",ei,this),Form_initializerDefineProperty(this,"displayGhostDialog",si,this),Form_initializerDefineProperty(this,"submit",_i,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",Ri,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",Ci,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",Di,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",Ei,this),this.handleFieldFinish=(ce,ze)=>{ot.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(qe.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(qe.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:qe}=ce;Ve?this.hideGhostDialog():ze&&qe&&!ze.includes(qe.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Bt.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:qe}}=Ve;return Ve.forbidden?Qe.a.createElement(mt.a,null):Ve.loading?Qe.a.createElement(st.a,null):Qe.a.createElement(We.Fragment,null,Ve.id&&qe&&Qe.a.createElement(Kn,{locales:qe,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),Qe.a.createElement(Oi,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&Qe.a.createElement(Sn,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},ei=Form_applyDecoratedDescriptor(Xn.prototype,"showAllErrors",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=Form_applyDecoratedDescriptor(Xn.prototype,"displayGhostDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Xn.prototype,"formInspector",[qe.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"formInspector"),Xn.prototype),_i=Form_applyDecoratedDescriptor(Xn.prototype,"submit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&ot.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:qe}=this.props;if(this.showAllErrors=!0,qe.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(qe.errors)}}}),Form_applyDecoratedDescriptor(Xn.prototype,"showGhostDialog",[qe.action],Object.getOwnPropertyDescriptor(Xn.prototype,"showGhostDialog"),Xn.prototype),Form_applyDecoratedDescriptor(Xn.prototype,"hideGhostDialog",[qe.action],Object.getOwnPropertyDescriptor(Xn.prototype,"hideGhostDialog"),Xn.prototype),Ri=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),Ci=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),Di=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),Ei=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Zn=Xn))||Zn,er=(Ve(381),Ve(53)),tr=Ve(329),nr=Ve(683);var rr,ar,sr,lr,dr,ur=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,qe=arguments.length>3?arguments[3]:void 0,Ye=arguments.length>4?arguments[4]:void 0;return new nr.a(((ce,qe)=>new tr.a(ze,ce,qe,Ve,Ye)),ce,qe,Ye)}createFromSchema(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new tr.a(Ve,ce,ze)}},pr=Ve(259),vr=Ve(368),_r=(Ve(501),Ve(414));function ResourceFormStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceFormStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Rr="template",Cr=Object(vr.a)();function mergeData(ce,ze,Ve,Ye){let We={};if(!ce||!ze)return We;for(const Xe in ze){const{items:ot,defaultType:st,type:mt,types:gt}=ze[Xe],{items:yt,defaultType:bt,type:vt,types:wt}=ce[Xe]||{};if(mt===_r.a&&ot)We=mergeData(ce,ot,Ve,Ye);else if(vt===_r.a&&yt)We=mergeData(yt,ze,Ve,Ye);else if(gt&&wt&&Object.keys(gt).length>0&&Object.keys(wt).length>0&&Ve[Xe]&&Ye[Xe]&&Object(qe.isArrayLike)(Ve[Xe])&&Object(qe.isArrayLike)(Ye[Xe]))for(let ce=0;cece&&Ye[Xe][ce]||{}),ot=Object(qe.toJS)(Ve[Xe].length>ce&&Ve[Xe][ce]||{}),mt=null==ot?void 0:ot.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(Qe=wt[ot.type])||void 0===Qe?void 0:Qe.form)||wt[bt].form,gt[yt].form,ot,ze);We[Xe]||(We[Xe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==ot?void 0:ot.settings)||ze.settings,We[Xe].push(vt))}else Ve[Xe]&&mt===vt?We[Xe]=Ve[Xe]:We[Xe]=Ye[Xe]}return We}let Dr=(rr=class extends _r.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;super(),ResourceFormStore_initializerDefineProperty(this,"types",ar,this),ResourceFormStore_initializerDefineProperty(this,"schemaLoading",sr,this),ResourceFormStore_initializerDefineProperty(this,"typesLoading",lr,this),ResourceFormStore_initializerDefineProperty(this,"handleSchemaTypeResponse",dr,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Cr.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(qe.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const qe=mergeData(ce,ze,this.data,Ve);this.setMultiple(qe)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=Ye,pr.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(qe.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(qe.get)(this.data,Rr):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(qe.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){ot.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Rr,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Rr,ce,ze)}getSchemaEntryByPath(ce){return yt.a.get(this.schema,ce)}},ar=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),sr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),lr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"typesLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),dr=ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"handleSchemaTypeResponse",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(qe.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Rr]||Ve||Object.keys(this.types)[0];Object(qe.set)(this.data,{[Rr]:ce})})),this.schemaDisposer=Object(qe.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([pr.a.getSchema(this.formKey,this.type,this.metadataOptions),pr.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"hasTypes",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"hasTypes"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"hasInvalidType",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"hasInvalidType"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"loading"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"data"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"type"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"save",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"save"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"locale"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"resourceKey"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"id"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"saving",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"saving"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"deleting",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"deleting"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"forbidden",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"forbidden"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"dirty",[qe.computed],Object.getOwnPropertyDescriptor(rr.prototype,"dirty"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"setSchemaLoading",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"setSchemaLoading"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"setType",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"setType"),rr.prototype),ResourceFormStore_applyDecoratedDescriptor(rr.prototype,"changeType",[qe.action],Object.getOwnPropertyDescriptor(rr.prototype,"changeType"),rr.prototype),rr);var Er,Tr,Ar,Mr,Lr,jr,Ir=new class{createFromResourceStore(ce,ze){return new Dr(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)}},zr=Ve(45);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Tr=class extends Qe.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Ar,this),ChangelogLine_initializerDefineProperty(this,"creator",Mr,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Lr,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",jr,this),this.loadChanger=()=>{"number"==typeof this.changerId?zr.a.get("users",{id:this.changerId}).then(Object(qe.action)((ce=>{this.setChanger(ce)}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?zr.a.get("users",{id:this.creatorId}).then(Object(qe.action)((ce=>{this.setCreator(ce)}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(qe.autorun)(this.loadChanger),this.creatorDisposer=Object(qe.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?Qe.a.createElement(We.Fragment,null,Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),Qe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):Qe.a.createElement(st.a,null)}},Ar=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changer",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"setChanger",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setChanger"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"setCreator",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setCreator"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerId",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changerId"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorId",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"creatorId"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changerFullName",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changerFullName"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"changed",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"changed"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"creatorFullName",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"creatorFullName"),Tr.prototype),ChangelogLine_applyDecoratedDescriptor(Tr.prototype,"created",[qe.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"created"),Tr.prototype),Er=Tr));var Br=Ve(40),Nr=Ve(19),Vr="card--VI2KeXPH29",Hr="icons--BxuYzRG+LS";class qr extends Qe.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return Qe.a.createElement("section",{className:Vr},Qe.a.createElement("div",{className:Hr},ze&&Qe.a.createElement(Nr.a,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Qe.a.createElement(Nr.a,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}var Yr=qr,Ur="cards--j5zUs1S7oR",Wr="card--elUHt7xFsM",$r="add-button-container--AywkTv4Tsw";class Gr extends Qe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:qe}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement("section",{className:Ur},ce&&Qe.a.Children.map(ce,((ce,ze)=>Qe.a.createElement("div",{className:Wr,key:ze},Qe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:qe}))))),Qe.a.createElement("div",{className:$r},Qe.a.createElement(Br.a,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(Ln.b)("sulu_admin.add"))))}}Gr.Card=Yr;var Kr,Jr,Zr,ga,ya,ba,va,_a,wa,ka=Gr,xa=Ve(131),Aa="overlay--j5utDwD9Ty";function CardCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Jr=class extends Qe.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Zr,this),CardCollection_initializerDefineProperty(this,"formStore",ga,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",ya,this),CardCollection_initializerDefineProperty(this,"handleEdit",ba,this),CardCollection_initializerDefineProperty(this,"handleRemove",va,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",_a,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",wa,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:qe}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(ka,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!qe&&qe.map(((ce,ze)=>Qe.a.createElement(ka.Card,{key:ze},Ve(ce))))),Qe.a.createElement(xa.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(Ln.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(Ln.b)(ze):Object(Ln.b)(ce)},Qe.a.createElement("div",{className:Aa},!!this.formStore&&Qe.a.createElement(Ap,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Zr=CardCollection_applyDecoratedDescriptor(Jr.prototype,"overlayIndex",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ga=CardCollection_applyDecoratedDescriptor(Jr.prototype,"formStore",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ya=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleAdd",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=ur.createFromSchema(ze,ce)}}}),ba=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleEdit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:Ye}=this.props;if(!Ye)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=ur.createFromSchema(Ve,ze,Object(qe.toJS)(Ye[ce]))}}}),va=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleRemove",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),_a=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleCloseOverlay",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),wa=CardCollection_applyDecoratedDescriptor(Jr.prototype,"handleOverlaySubmit",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:qe}=this;if(!qe)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([qe.data]):void 0===this.overlayIndex?ce([...Ve,qe.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?qe.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(Jr.prototype,"closeFormStore",[qe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"closeFormStore"),Jr.prototype),Kr=Jr));var Ba,Ja,io,po=Ve(22),ho=Ve.n(po),go=Ve(126),_o=Ve(216),Co=Ve(192),ko=Ve(290),Oo=Ve(577),Po="list--61iGCd+dVW";function Selection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Ja=class extends Qe.a.Component{constructor(ce){var ze,Ve,Ye,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(Ye=io)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||ho()(Object(qe.toJS)(this.value),Object(qe.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||ho()(Object(qe.toJS)(this.value)||[],Object(qe.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Qe},formInspector:Xe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Qe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(qe.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(qe.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;if(this.requestOptions=this.buildRequestOptions(mt,gt,Xe),Xe.addFinishFieldHandler((ce=>{if(gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,gt,Xe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new _o.a(Qe,ce||Qe,"selection",{locale:this.locale,page:qe.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(qe.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(qe.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(qe.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Co.a(Qe,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(qe.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!ho()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(qe.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(qe.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(ot.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:qe.observable.box(er.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Qe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Qe))})),Ye}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,list_key:Ye,display_properties:We,icon:Xe,label:ot,overlay_title:st}}},schemaOptions:{types:{value:mt}={},item_disabled_condition:{value:gt}={},allow_deselect_for_disabled_items:{value:yt=!0}={},sortable:{value:bt=!0}={}}}=this.props;if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==gt&&"string"!=typeof gt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!qe)throw new Error('The selection field needs a "adapter" option to work properly');const vt={...this.requestOptions};return mt&&(vt.types=mt),Qe.a.createElement(Oo.a,{adapter:qe,allowDeselectForDisabledItems:!!yt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Xe,itemDisabledCondition:gt,label:Object(Ln.b)(ot,{count:this.value?this.value.length:0}),listKey:Ye||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:vt,overlayTitle:Object(Ln.b)(st),resourceKey:Ve,sortable:bt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:qe,search_properties:Ye}}}}=this.props;if(!qe)throw new Error('The selection field needs a "display_property" option to work properly!');if(!Ye)throw new Error('The selection field needs a "search_properties" option to work properly!');return Qe.a.createElement(ko.a,{allowAdd:Ve,disabled:!!ze,displayProperty:qe,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:Ye,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return Qe.a.createElement("div",{className:Po},Qe.a.createElement(go.b,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},io=Selection_applyDecoratedDescriptor(Ja.prototype,"requestOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Ja.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"locale"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"type"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteIdProperty",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteIdProperty"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteFilterParameter",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteFilterParameter"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ba=Ja));var To,Ao,jo,Fo=Ve(552),Bo=Ve(554),Vo=Ve(376),Ho=Ve(161);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((Ao=class extends Qe.a.Component{constructor(ce){var ze,Ve,Ye,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(Ye=jo)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Qe},formInspector:Xe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Qe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(qe.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(qe.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;this.requestOptions=this.buildRequestOptions(mt,gt,Xe),Xe.addFinishFieldHandler((ce=>{if(gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,gt,Xe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Ho.a(Qe,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(qe.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Qe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Qe))})),Ye}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||ot.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:qe.observable.box(er.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&ot.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,detail_options:We,list_key:Xe,display_properties:ot,empty_text:st,icon:mt,overlay_title:gt}}},schemaOptions:{form_options_to_list_options:{value:yt=[]}={},item_disabled_condition:{value:bt}={},allow_deselect_for_disabled_items:{value:vt=!0}={},types:{value:wt}={}}={}}=this.props;if(void 0!==wt&&"string"!=typeof wt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==bt&&"string"!=typeof bt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==vt&&"boolean"!=typeof vt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(qe.isArrayLike)(yt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const Ct=yt;if(We&&"object"!=typeof We)throw new Error('The "detail_options" option has to be an array if defined!');const Dt=Ct.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),kt=wt?{types:wt}:void 0,St={...this.requestOptions,...Dt,...kt},xt={...this.requestOptions,...We};return Qe.a.createElement(Vo.a,{adapter:Ye,allowDeselectForDisabledItems:!!vt,detailOptions:xt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:ot,emptyText:Object(Ln.b)(st),icon:mt,itemDisabledCondition:bt,listKey:Xe||Ve,listOptions:St,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(Ln.b)(gt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:qe,overlay_title:Ye}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof qe)throw new Error('The "id_property" field-type option must be a string!');return Qe.a.createElement(Fo.a,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:qe,onChange:this.handleChange,overlayTitle:Object(Ln.b)(Ye),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:Ye,schemaOptions:{data_path_to_auto_complete:{value:We=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:Xe,search_properties:st}}}=Ve;if(!Object(qe.isArrayLike)(We))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const mt=We;mt.length>0&&ot.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const gt={...mt.reduce(((ce,ze)=>{const{name:Ve,value:qe}=ze;if("string"!=typeof Ve||"string"!=typeof qe)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[qe]=Ye.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return Qe.a.createElement(Bo.a,{disabled:!!ce,displayProperty:Xe,id:ze,options:gt,searchProperties:st,selectionStore:this.autoCompleteSelectionStore})}},jo=SingleSelection_applyDecoratedDescriptor(Ao.prototype,"requestOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"value"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"type"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"locale"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"viewName"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"resultToView"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat",[qe.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat"),Ao.prototype),To=Ao));var Uo,Wo,$o=Ve(89),es=Ve(162),ts=Ve(574);function Heading_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ns,rs,os=Object(Ye.b)((Heading_applyDecoratedDescriptor((Wo=class extends Qe.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return Qe.a.createElement(ts.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"schemaOptions"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"description",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"description"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"icon",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"icon"),Wo.prototype),Heading_applyDecoratedDescriptor(Wo.prototype,"label",[qe.computed],Object.getOwnPropertyDescriptor(Wo.prototype,"label"),Wo.prototype),Uo=Wo))||Uo;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_value:{value:Ye}={}}=Ve;if(null!=Ye){if("boolean"!=typeof Ye)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===qe&&ze(Ye,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?Qe.a.createElement(es.a,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):Qe.a.createElement($o.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?Qe.a.createElement(os,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"schemaOptions"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"label",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"label"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"skin",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"skin"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(rs.prototype,"type"),rs.prototype),ns=rs));var ss,ls,cs,ds,us,ps,hs,fs,ms,gs,ys=Ve(685),bs=Ve(48),vs=Ve(118),_s="icon--mIqOqpjb2A";function ColorPicker_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColorPicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((gs=class extends Qe.a.Component{constructor(){super(...arguments),ColorPicker_initializerDefineProperty(this,"value",cs,this),ColorPicker_initializerDefineProperty(this,"showError",ds,this),ColorPicker_initializerDefineProperty(this,"popoverOpen",us,this),ColorPicker_initializerDefineProperty(this,"popoverAnchorElement",ps,this),ColorPicker_initializerDefineProperty(this,"handlePopoverOpen",hs,this),ColorPicker_initializerDefineProperty(this,"handlePopoverClose",fs,this),ColorPicker_initializerDefineProperty(this,"setRef",ms,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:qe,valid:Ye}=this.props,Xe={color:this.isValidValue?this.value:"transparent"};return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bs.a,{disabled:ce,icon:"su-square",iconClassName:_s,iconStyle:Xe,id:ze,inputContainerRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:qe,valid:Ye&&!this.showError,value:this.value}),Qe.a.createElement(vs.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>Qe.a.createElement("div",{ref:ce,style:ze},Qe.a.createElement(ys.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},gs.defaultProps={disabled:!1,valid:!0},cs=ColorPicker_applyDecoratedDescriptor((ls=gs).prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ds=ColorPicker_applyDecoratedDescriptor(ls.prototype,"showError",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),us=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ps=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverAnchorElement",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverOpen",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),fs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),ms=ColorPicker_applyDecoratedDescriptor(ls.prototype,"setRef",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(ls.prototype,"setValue"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setShowError",[qe.action],Object.getOwnPropertyDescriptor(ls.prototype,"setShowError"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"isValidValue",[qe.computed],Object.getOwnPropertyDescriptor(ls.prototype,"isValidValue"),ls.prototype),ss=ls));Qe.a.Component;var ws,Rs,Cs=Ve(10),Ds=Ve.n(Cs),ks=Ve(331);function createStringValue(ce,ze){if(ce)return Ds()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ds()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(Ye.b)((Rs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:qe,value:Ye}=this.props,{dateFormat:We,timeFormat:Xe}=qe;if(void 0===We||void 0===Xe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const ot={};return Xe&&(ot.timeFormat=Xe),We||(ot.dateFormat=!1),Qe.a.createElement(ks.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:ot,valid:!Ve,value:getValue(Ye,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Rs.prototype,"format",[qe.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"format"),Rs.prototype),ws=Rs));Ve(629);Qe.a.Component;Qe.a.Component;var Ss,xs,Es=Ve(380);function Number_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Ye.b)((xs=class extends Qe.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:qe,value:Ye}=this.props;return Qe.a.createElement(Es.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:qe,step:this.step,valid:!Ve,value:Ye})}},Number_applyDecoratedDescriptor(xs.prototype,"min",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"min"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"max",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"max"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"step",[qe.computed],Object.getOwnPropertyDescriptor(xs.prototype,"step"),xs.prototype),Ss=xs));var Os,Ps,Ts,As,Ms,Ls,js,Is,zs,Fs=Ve(51),Bs=Ve.n(Fs),Ns=Ve(164),Vs="grid--R3KoUAGpuN",Hs="item--YVYulc3RYK";function PasswordConfirmation_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PasswordConfirmation_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const qs="su-lock",Ys="password";Object(Ye.b)((zs=class extends Qe.a.Component{constructor(){super(...arguments),PasswordConfirmation_initializerDefineProperty(this,"firstValue",Ts,this),PasswordConfirmation_initializerDefineProperty(this,"secondValue",As,this),PasswordConfirmation_initializerDefineProperty(this,"valid",Ms,this),PasswordConfirmation_initializerDefineProperty(this,"setValidFlag",Ls,this),PasswordConfirmation_initializerDefineProperty(this,"handleFirstChange",js,this),PasswordConfirmation_initializerDefineProperty(this,"handleSecondChange",Is,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:qe}}=this;this.handleChangeDebounced(qe&&(!ce||!ze||Ve))},this.handleChangeDebounced=Bs()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(qe.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return Qe.a.createElement(Ns.a,{className:Vs},Qe.a.createElement(Ns.a.Item,{colSpan:6},Qe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleFirstChange,type:Ys,valid:this.valid,value:this.firstValue})),Qe.a.createElement(Ns.a.Item,{className:Hs,colSpan:6},Qe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleSecondChange,type:Ys,valid:this.valid,value:this.secondValue})))}},zs.defaultProps={disabled:!1,valid:!0},Ts=PasswordConfirmation_applyDecoratedDescriptor((Ps=zs).prototype,"firstValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),As=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"secondValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ms=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"valid",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ls=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"setValidFlag",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"passwordsMatch",[qe.computed],Object.getOwnPropertyDescriptor(Ps.prototype,"passwordsMatch"),Ps.prototype),js=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleFirstChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),Is=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleSecondChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Os=Ps));Qe.a.Component;Ve(630);Qe.a.Component;Ve(575);Qe.a.Component;Qe.a.Component;var Us,Ws=Ve(201);(function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We})((Us=class extends Qe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,qe=this.values.map((ce=>ce.name)),Ye=ce.filter((ce=>qe.includes(ce)));ze(Ye.length>0?Ye:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_values:{value:We}={}}=Ve;if(null==We)return;if(!Object(qe.isArrayLike)(We))throw new Error('The "default_values" schema option must be an array!');const Qe=We.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===Ye&&ze(Qe,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(qe.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return Qe.a.createElement(Ws.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return Qe.a.createElement(Ws.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[qe.computed],Object.getOwnPropertyDescriptor(Us.prototype,"values"),Us.prototype);var $s,Gs,Ks,Js,Zs,Qs,Xs,pl,gl=Ve(576),yl=Ve(578),bl=Ve(103),vl="buttons-container--qZF3lXoC9Z",_l="refresh-button--g-0xkZTGjc";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const wl="sulu.rlp.part";Object(Ye.b)((Gs=class extends Qe.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(wl).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Ks,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",Js,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Zs,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Qs,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Xs,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",pl,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:Ye,value:We}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(qe.action)((ce=>this.mode=ce))),"/"!==We&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(qe.reaction)((()=>this.parts),Object(qe.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:qe.comparer.structural}),Ye.addFinishFieldHandler(Object(qe.action)(((ce,ze)=>{const{tags:Ve}=Ye.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===wl))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:Ye,formInspector:Xe,schemaOptions:{entity_class:{value:ot}={}}={},value:st}=this.props;return"/"===st?"/":Qe.a.createElement(We.Fragment,null,Qe.a.createElement(gl.a,{disabled:!!Ye,id:Ve,locale:Xe.locale?Xe.locale:qe.observable.box(er.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:st}),Qe.a.createElement("div",{className:vl},Qe.a.createElement(Br.a,{className:_l,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(Ln.b)("sulu_admin.refresh_url")),Qe.a.createElement(yl.a,{id:Xe.id,options:{locale:Xe.locale?Xe.locale.get():er.a.contentLocale,resourceKey:Xe.resourceKey,webspace:Xe.options.webspace,entityClass:ot,...ze},resourceKey:ce})))}},Ks=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"mode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Js=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"inputChanged",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"inputChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"partsChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"parts",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"parts"),Gs.prototype),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"enableAutoGeneration",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"enableAutoGeneration"),Gs.prototype),ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"enableRefreshButton",[qe.computed],Object.getOwnPropertyDescriptor(Gs.prototype,"enableRefreshButton"),Gs.prototype),Xs=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"refreshResourceLocator",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:Ye,schemaOptions:{entity_class:{value:We}={},route_schema:{value:Qe}={}}={}}=this.props,Xe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,Ye]=ce;const We=Object(qe.toJS)(Ve.getValueByPath("/"+ze));void 0!==We&&(Xe[Ye]=We)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,bl.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():er.a.contentLocale,id:Ve.id,entityClass:We,routeSchema:Qe,...Xe}).then(Object(qe.action)((ce=>{Ye(ce.resourcelocator)})))}}}),pl=ResourceLocator_applyDecoratedDescriptor(Gs.prototype,"handleInputChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),$s=Gs));var Rl=Ve(305);var Cl,Dl,kl,Sl,xl,El,Ol,Pl,Tl,Al,Ml,Ll,jl,Il,zl,Fl,Bl,Nl,Vl=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}},Hl=Ve(239),Ul=Ve(379);function SmartContentStore_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SmartContentStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Wl=(Dl=SmartContentStore_applyDecoratedDescriptor((Cl=class{constructor(ce,ze,Ve,Ye,We,Qe,Xe){SmartContentStore_initializerDefineProperty(this,"items",Dl,this),SmartContentStore_initializerDefineProperty(this,"itemsLoading",kl,this),SmartContentStore_initializerDefineProperty(this,"categoriesLoading",Sl,this),SmartContentStore_initializerDefineProperty(this,"dataSourceLoading",xl,this),SmartContentStore_initializerDefineProperty(this,"dataSource",El,this),SmartContentStore_initializerDefineProperty(this,"includeSubElements",Ol,this),SmartContentStore_initializerDefineProperty(this,"categories",Pl,this),SmartContentStore_initializerDefineProperty(this,"categoryOperator",Tl,this),SmartContentStore_initializerDefineProperty(this,"tags",Al,this),SmartContentStore_initializerDefineProperty(this,"tagOperator",Ml,this),SmartContentStore_initializerDefineProperty(this,"types",Ll,this),SmartContentStore_initializerDefineProperty(this,"audienceTargeting",jl,this),SmartContentStore_initializerDefineProperty(this,"sortBy",Il,this),SmartContentStore_initializerDefineProperty(this,"sortOrder",zl,this),SmartContentStore_initializerDefineProperty(this,"presentation",Fl,this),SmartContentStore_initializerDefineProperty(this,"limit",Bl,this),SmartContentStore_initializerDefineProperty(this,"excludedIds",Nl,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),bl.a.get(Hl.a.endpoints.items+Object(Ul.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(qe.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=Ye,this.id=We,this.params=Qe,this.webspaceKey=Xe,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,zr.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(qe.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,zr.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(qe.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(qe.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(qe.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){ho()(Object(qe.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(qe.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(qe.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),kl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"itemsLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Sl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoriesLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSourceLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),El=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSource",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ol=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"includeSubElements",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categories",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoryOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Al=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tags",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ml=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tagOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ll=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"audienceTargeting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Il=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortBy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortOrder",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"presentation",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"limit",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"excludedIds",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItems",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItems"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItemsLoading",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItemsLoading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setExcludedIds",[qe.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setExcludedIds"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"loading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"filterCriteria",[qe.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"filterCriteria"),Cl.prototype),Cl);var $l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc,Mc,Lc,jc,Ic,Fc,Nc,Vc,qc,Gc,Kc,Jc,Qc,ed,td,sd,ld,cd,dd,ud,fd=Ve(382),md=Ve(254),yd="content--XveO2A9KMf",bd="section---1bog2Bd1-",vd="source--RNclqKZuq3",_d="source-button--XYZK5kBDTN",wd="description--49SddAeobJ",Rd="categories--VmgqC9mUDy",Cd="categories-select--tUKLLwJuIZ",Dd="tags--KLSIqfaz2I",kd="tags-auto-complete--NHC9irWZ3h",Sd="tags-select--xtOCwJbQsN",xd="types--xNckylGPFk",Ed="sorting--ekatkidFeZ",Od="sort-column--hYykQdw1Zy",Td="sort-order--qnROkLKzFi",Ad="presentation--4EddM2-AMW",Md="limit--u3an2zBiqr";function FilterOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FilterOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ld,Id,Fd,Bd,Nd,Vd,Hd=Object(Ye.b)((ec=class extends Qe.a.Component{constructor(ce){super(ce),FilterOverlay_initializerDefineProperty(this,"dataSource",nc,this),FilterOverlay_initializerDefineProperty(this,"includeSubElements",ic,this),FilterOverlay_initializerDefineProperty(this,"categories",oc,this),FilterOverlay_initializerDefineProperty(this,"categoryOperator",lc,this),FilterOverlay_initializerDefineProperty(this,"tags",pc,this),FilterOverlay_initializerDefineProperty(this,"tagOperator",hc,this),FilterOverlay_initializerDefineProperty(this,"types",fc,this),FilterOverlay_initializerDefineProperty(this,"audienceTargeting",mc,this),FilterOverlay_initializerDefineProperty(this,"sortBy",gc,this),FilterOverlay_initializerDefineProperty(this,"sortOrder",_c,this),FilterOverlay_initializerDefineProperty(this,"limit",kc,this),FilterOverlay_initializerDefineProperty(this,"presentation",Ec,this),FilterOverlay_initializerDefineProperty(this,"showDataSourceDialog",Oc,this),FilterOverlay_initializerDefineProperty(this,"showCategoryDialog",Mc,this),FilterOverlay_initializerDefineProperty(this,"updateFilterCriteria",Lc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirm",jc,this),FilterOverlay_initializerDefineProperty(this,"resetFilterCriteria",Ic,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmDataSourceDialog",Fc,this),FilterOverlay_initializerDefineProperty(this,"handleDataSourceButtonClick",Nc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseDataSourceDialog",Vc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryButtonClick",qc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseCategoryDialog",Gc,this),FilterOverlay_initializerDefineProperty(this,"handleIncludeSubElementsChange",Kc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmCategoryDialog",Jc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryOperatorChange",Qc,this),FilterOverlay_initializerDefineProperty(this,"handleTagOperatorChange",ed,this),FilterOverlay_initializerDefineProperty(this,"handleTypesChange",td,this),FilterOverlay_initializerDefineProperty(this,"handleAudienceTargetingChange",sd,this),FilterOverlay_initializerDefineProperty(this,"handleSortByChange",ld,this),FilterOverlay_initializerDefineProperty(this,"handleSortOrderChange",cd,this),FilterOverlay_initializerDefineProperty(this,"handlePresentationChange",dd,this),FilterOverlay_initializerDefineProperty(this,"handleLimitChange",ud,this),this.updateFilterCriteriaDisposer=Object(qe.autorun)((()=>this.updateFilterCriteria(this.props.smartContentStore))),this.tagSelectionStore=new Co.a("tags",this.tags||[],void 0,"names"),this.tagSelectionStoreDisposer=Object(qe.autorun)((()=>{this.tags=this.tagSelectionStore.items.map((ce=>ce.name))}))}componentWillUnmount(){this.updateFilterCriteriaDisposer(),this.tagSelectionStoreDisposer()}render(){const{categoryRootKey:ce,dataSourceAdapter:ze,dataSourceListKey:Ve,dataSourceResourceKey:qe,onClose:Ye,open:Xe,presentations:ot,sections:st,smartContentStore:mt,sortings:gt,title:yt,types:bt}=this.props;return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(xa.a,{actions:[{title:Object(Ln.b)("sulu_admin.reset"),onClick:this.resetFilterCriteria}],confirmText:Object(Ln.b)("sulu_admin.confirm"),onClose:Ye,onConfirm:this.handleConfirm,open:Xe,size:"small",title:yt},Qe.a.createElement("div",{className:yd},st.includes("datasource")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.data_source")),Qe.a.createElement("div",{className:vd},Qe.a.createElement(Br.a,{className:_d,onClick:this.handleDataSourceButtonClick},Object(Ln.b)("sulu_admin.choose_data_source")),Qe.a.createElement(es.a,{checked:this.includeSubElements||!1,onChange:this.handleIncludeSubElementsChange},Object(Ln.b)("sulu_admin.include_sub_elements"))),Qe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_admin.data_source"),": ",this.dataSource&&this.dataSource.title)),st.includes("categories")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_categories")),Qe.a.createElement("div",{className:Rd},Qe.a.createElement(Br.a,{onClick:this.handleCategoryButtonClick},Object(Ln.b)("sulu_admin.choose_categories")),Qe.a.createElement("div",{className:Cd},Qe.a.createElement(Tn.a,{onChange:this.handleCategoryOperatorChange,value:this.categoryOperator},Qe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_category_description")),Qe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_categories_description"))))),Qe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_category.categories"),": ",this.categories&&this.categories.map((ce=>ce.name)).join(", "))),st.includes("tags")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_tags")),Qe.a.createElement("div",{className:Dd},Qe.a.createElement("div",{className:kd},Qe.a.createElement(ko.a,{displayProperty:"name",idProperty:"name",searchProperties:["name"],selectionStore:this.tagSelectionStore})),Qe.a.createElement("div",{className:Sd},Qe.a.createElement(Tn.a,{onChange:this.handleTagOperatorChange,value:this.tagOperator},Qe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_tag_description")),Qe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_tags_description")))))),st.includes("types")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_types")),Qe.a.createElement("div",{className:xd},Qe.a.createElement(Ws.a,{allSelectedText:Object(Ln.b)("sulu_admin.all_types"),noneSelectedText:Object(Ln.b)("sulu_admin.no_types"),onChange:this.handleTypesChange,values:this.types||[]},bt.map((ce=>Qe.a.createElement(Ws.a.Option,{key:ce.value,value:ce.value},ce.name)))))),st.includes("audienceTargeting")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.target_groups")),Qe.a.createElement(es.a,{checked:this.audienceTargeting||!1,onChange:this.handleAudienceTargetingChange},Object(Ln.b)("sulu_admin.use_target_groups"))),st.includes("sorting")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.sort_by")),Qe.a.createElement("div",{className:Ed},Qe.a.createElement("div",{className:Od},Qe.a.createElement(Tn.a,{onChange:this.handleSortByChange,value:this.sortBy},gt.map(((ce,ze)=>Qe.a.createElement(Tn.a.Option,{key:ze,value:ce.name},Object(Ln.b)(ce.value)))))),Qe.a.createElement("div",{className:Td},Qe.a.createElement(Tn.a,{onChange:this.handleSortOrderChange,value:this.sortOrder},Qe.a.createElement(Tn.a.Option,{value:"asc"},Object(Ln.b)("sulu_admin.ascending")),Qe.a.createElement(Tn.a.Option,{value:"desc"},Object(Ln.b)("sulu_admin.descending")))))),st.includes("presentation")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.present_as")),Qe.a.createElement("div",{className:Ad},Qe.a.createElement(Tn.a,{onChange:this.handlePresentationChange,value:this.presentation},Object.keys(ot).map((ce=>Qe.a.createElement(Tn.a.Option,{key:ce,value:ce},ot[ce])))))),st.includes("limit")&&Qe.a.createElement("section",{className:bd},Qe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.limit_result_to")),Qe.a.createElement("div",{className:Md},Qe.a.createElement(Es.a,{onChange:this.handleLimitChange,value:this.limit}))))),!mt.loading&&ze&&qe&&Ve&&Qe.a.createElement(md.a,{adapter:ze,clearSelectionOnClose:!1,listKey:Ve,locale:mt.locale,onClose:this.handleCloseDataSourceDialog,onConfirm:this.handleConfirmDataSourceDialog,open:this.showDataSourceDialog,overlayType:"dialog",preSelectedItem:this.dataSource,resourceKey:qe,title:Object(Ln.b)("sulu_admin.choose_data_source")}),!mt.loading&&Qe.a.createElement(fd.a,{adapter:"tree_table",clearSelectionOnClose:!1,listKey:"categories",locale:mt.locale,onClose:this.handleCloseCategoryDialog,onConfirm:this.handleConfirmCategoryDialog,open:this.showCategoryDialog,options:{rootKey:ce},overlayType:"dialog",preSelectedItems:this.categories||[],resourceKey:"categories",title:Object(Ln.b)("sulu_admin.choose_categories")}))}},nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"dataSource",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"includeSubElements",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categories",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categoryOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tags",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tagOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"audienceTargeting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortBy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_c=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortOrder",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"limit",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ec=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"presentation",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showDataSourceDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showCategoryDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"updateFilterCriteria",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubElements,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortOrder,this.presentation=ce.presentation,this.limit=ce.limit}}}),jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce,smartContentStore:ze}=this.props;ze.audienceTargeting=this.audienceTargeting,ze.categories=this.categories,ze.categoryOperator=this.categoryOperator,ze.dataSource=this.dataSource,ze.includeSubElements=this.includeSubElements,ze.limit=this.limit,ze.sortBy=this.sortBy,ze.sortOrder=this.sortOrder,ze.tagOperator=this.tagOperator,ze.tags=this.tags,ze.types=this.types,ze.presentation=this.presentation,ce()}}}),Ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"resetFilterCriteria",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultValue:ce}=this.props;this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubFolders,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortMethod,this.presentation=ce.presentAs,this.limit=ce.limitResult}}}),Fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmDataSourceDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce,this.showDataSourceDialog=!1}}}),Nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleDataSourceButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!0}}}),Vc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseDataSourceDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!1}}}),qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!0}}}),Gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseCategoryDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!1}}}),Kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleIncludeSubElementsChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.includeSubElements=ce}}}),Jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmCategoryDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.categories=ce,this.showCategoryDialog=!1}}}),Qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryOperatorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.categoryOperator=ce}}}),ed=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTagOperatorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.tagOperator=ce}}}),td=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTypesChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.types=ce}}}),sd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleAudienceTargetingChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.audienceTargeting=ce}}}),ld=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortByChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0!==ce&&"string"!=typeof ce)throw new Error('The field for sorting must be a string or undefined, but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortBy=ce}}}),cd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortOrderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("asc"!==ce&&"desc"!==ce)throw new Error('The sort order is only allowed to be "asc" or "desc", but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortOrder=ce}}}),dd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handlePresentationChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error('The presentation must be represented as a string, but "'+ce+'" was given. This should not happen and is likely a bug.');this.presentation=ce}}}),ud=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleLimitChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.limit=ce}}}),$l=ec))||$l,Yd=Ve(196),Ud=Ve(173),Wd="smart-content-item--HuanrD3+f+",$d="image--tKgo2R7kxz",Gd="publish-indicator--ZxnQaFynVl",Kd="title--1n3AtGES3h",Jd="column--hD8nlzgOLQ";class Zd extends Qe.a.Component{render(){const{id:ce,image:ze,title:Ve,publishedState:qe,published:Ye,...We}=this.props.item;return Qe.a.createElement("div",{className:Wd},ze&&Qe.a.createElement("div",{className:$d},Qe.a.createElement("img",{src:ze})),Qe.a.createElement("div",{className:Kd},(void 0!==qe||void 0!==Ye)&&!(qe&&Ye)&&Qe.a.createElement("div",{className:Gd},Qe.a.createElement(Ud.a,{draft:!qe,published:!!Ye})),Qe.a.createElement(Yd.a,null,Ve)),Object.keys(We).map((ce=>Qe.a.createElement("div",{className:Jd,key:ce},Qe.a.createElement(Yd.a,null,We[ce])))))}}function SmartContent_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Qd,Xd,ku=Object(Ye.b)(((Vd=class extends Qe.a.Component{constructor(ce){super(ce),this.sections=[],SmartContent_initializerDefineProperty(this,"showFilterOverlay",Fd,this),SmartContent_initializerDefineProperty(this,"handleFilterClick",Bd,this),SmartContent_initializerDefineProperty(this,"handleFilterOverlayClose",Nd,this),this.initialize()}initialize(){const{store:ce}=this.props;this.config=Vl.getConfig(ce.provider),this.config.datasourceResourceKey&&this.config.datasourceAdapter&&this.sections.push("datasource"),this.config.categories&&this.sections.push("categories"),this.config.tags&&this.sections.push("tags"),this.config.audienceTargeting&&this.sections.push("audienceTargeting"),this.config.sorting.length>0&&this.sections.push("sorting"),this.config.types&&this.config.types.length>0&&this.sections.push("types"),this.config.presentAs&&this.props.presentations.length>0&&this.sections.push("presentation"),this.config.limit&&this.sections.push("limit")}render(){const{categoryRootKey:ce,defaultValue:ze,disabled:Ve,fieldLabel:qe,onItemClick:Ye,store:Xe}=this.props,ot=this.props.presentations.reduce(((ce,ze)=>(ce[ze.name]=ze.value,ce)),{});return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(Rl.a,{disabled:Ve,label:Object(Ln.b)("sulu_admin.smart_content_label",{count:Xe.items.length}),leftButton:{icon:"su-filter",onClick:this.handleFilterClick},loading:Xe.itemsLoading||Xe.loading,onItemClick:Ye,sortable:!1},Xe.items.map(((ce,ze)=>Qe.a.createElement(Rl.a.Item,{id:ce.id,index:ze+1,key:ze,value:ce},Qe.a.createElement(Zd,{item:ce}))))),Qe.a.createElement(Hd,{categoryRootKey:ce,dataSourceAdapter:this.config.datasourceAdapter,dataSourceListKey:this.config.datasourceListKey,dataSourceResourceKey:this.config.datasourceResourceKey,defaultValue:ze,onClose:this.handleFilterOverlayClose,open:this.showFilterOverlay,presentations:ot,sections:this.sections,smartContentStore:Xe,sortings:this.config.sorting,title:Object(Ln.b)("sulu_admin.filter_overlay_title",{fieldLabel:qe||""}),types:this.config.types}))}}).defaultProps={disabled:!1,presentations:[]},Fd=SmartContent_applyDecoratedDescriptor((Id=Vd).prototype,"showFilterOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SmartContent_applyDecoratedDescriptor(Id.prototype,"initialize",[qe.action],Object.getOwnPropertyDescriptor(Id.prototype,"initialize"),Id.prototype),Bd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!0}}}),Nd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!1}}}),Ld=Id))||Ld;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var xu,Hu=new(Xd=smartContentStorePool_applyDecoratedDescriptor((Qd=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,Ye;ce=this,ze="entries",Ye=this,(Ve=Xd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const Ye=this.findPreviousStores(ze);0!==Ye.length?Object(qe.when)((()=>Ye.every((ce=>!ce.itemsLoading))),(()=>{const Ve=Ye.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"stores",[qe.computed],Object.getOwnPropertyDescriptor(Qd.prototype,"stores"),Qd.prototype),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"add",[qe.action],Object.getOwnPropertyDescriptor(Qd.prototype,"add"),Qd.prototype),smartContentStorePool_applyDecoratedDescriptor(Qd.prototype,"remove",[qe.action],Object.getOwnPropertyDescriptor(Qd.prototype,"remove"),Qd.prototype),Qd);function fields_SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}fields_SmartContent_applyDecoratedDescriptor((xu=class extends Qe.a.Component{get previousSmartContentStores(){return Hu.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(qe.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return Vl.getDefaultValue(this.provider,this.presentations)}get viewName(){return Vl.getConfig(this.provider).view}get resultToView(){return Vl.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props,We=Object(qe.toJS)(Ye),Qe=Object(qe.toJS)(ce);We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),Qe&&(Qe.categories&&Qe.categories.sort(),Qe.tags&&Qe.tags.sort()),this.smartContentStore.loading||ho()(We,Qe)||(ze(ce),Ve(),Hu.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ye&&qe&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:Ye,schemaOptions:We={},value:Qe}=this.props,{exclude_duplicates:{value:Xe=!1}={}}=We;if("boolean"!=typeof Xe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:ot}=Vl.getConfig(this.provider);void 0===Qe&&Ye(this.value,{isDefaultValue:!0}),this.smartContentStore=new Wl(this.provider,this.value,Ve.locale,ot,Ve.resourceKey===this.provider?Ve.id:void 0,We,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),Hu.add(this.smartContentStore,Xe),this.filterCriteriaChangeDisposer=Object(qe.reaction)((()=>Object(qe.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Xe&&0!==this.previousSmartContentStores.length?Object(qe.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{Hu.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){Hu.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return Qe.a.createElement(ku,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"previousSmartContentStores"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"presentations",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"presentations"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"provider",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"provider"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"value",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"value"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"defaultValue",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"defaultValue"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"viewName",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"viewName"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"resultToView",[qe.computed],Object.getOwnPropertyDescriptor(xu.prototype,"resultToView"),xu.prototype),Ve(710);Qe.a.Component;Ve(437);Qe.a.Component;Ve(375);Qe.a.Component;var qu,Yu,Gu,Ku,Ju,Zu,Qu,Xu,ep,tp,np,ip,rp,ap,op,sp,lp,cp,dp,up,pp,hp,fp,mp,gp=Ve(5),yp=Ve.n(gp),bp=Ve(451),vp="link--bEP5RC8cI2",_p="provider--biCKqy2l3m",wp="item-container--MOpFKUzbRZ",Rp="item--Y1-n3AGOmA",Cp="clickable--+XCabd-TvD",Dp="remove-button--BgcOgvH1fz",kp="disabled--7JKOC5nDNO",Sp="column-list--bCklHjgORy",xp="item-column--UxyDlbgTPJ",Ep="loader--P3KXz0B7n6",Op=Ve(30),Pp=Ve(143);function Link_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Link_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Tp="_self";Object(Ye.b)(((mp=class extends We.Component{constructor(ce){super(ce),Link_initializerDefineProperty(this,"openedOverlayProvider",Gu,this),Link_initializerDefineProperty(this,"overlayHref",Ku,this),Link_initializerDefineProperty(this,"overlayTitle",Ju,this),Link_initializerDefineProperty(this,"overlayRel",Zu,this),Link_initializerDefineProperty(this,"overlayTarget",Qu,this),Link_initializerDefineProperty(this,"overlayAnchor",Xu,this),Link_initializerDefineProperty(this,"overlayQuery",ep,this),Link_initializerDefineProperty(this,"titleParts",tp,this),Link_initializerDefineProperty(this,"titleLoading",np,this),Link_initializerDefineProperty(this,"load",ip,this),Link_initializerDefineProperty(this,"handleRemoveClick",rp,this),Link_initializerDefineProperty(this,"handleTitleClick",ap,this),Link_initializerDefineProperty(this,"handleOverlayConfirm",op,this),Link_initializerDefineProperty(this,"handleOverlayClose",sp,this),Link_initializerDefineProperty(this,"handleProviderChange",lp,this),Link_initializerDefineProperty(this,"handleOverlayAnchorChange",cp,this),Link_initializerDefineProperty(this,"handleOverlayQueryChange",dp,this),Link_initializerDefineProperty(this,"handleOverlayTargetChange",up,this),Link_initializerDefineProperty(this,"handleOverlayTitleChange",pp,this),Link_initializerDefineProperty(this,"handleOverlayRelChange",hp,this),Link_initializerDefineProperty(this,"handleOverlayHrefChange",fp,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:qe,href:Ye,target:We=Tp,anchor:Qe,query:Xe,rel:ot}=ze||{};this.overlayHref=Ve===ce?Ye:void 0,this.overlayTarget=We,this.overlayTitle=qe,this.overlayAnchor=Qe,this.overlayQuery=Xe,this.overlayRel=ot,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,Ye,We,Qe,Xe)=>{const{onChange:ot,onFinish:st,enableTarget:mt,enableTitle:gt,enableAnchor:yt,enableQuery:bt,enableRel:vt,locale:wt}=this.props;ot({provider:ce,target:mt?Ye:void 0,anchor:yt?We:void 0,query:bt?Qe:void 0,href:ze,title:gt?Ve:void 0,rel:vt?Xe:void 0,locale:Object(qe.toJS)(wt)}),st()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(qe.toJS)(ce.value),Ve=Object(qe.toJS)(this.props.value);ho()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableQuery:qe,enableTarget:Ye,enableTitle:Xe,enableRel:ot,types:mt,excludedTypes:gt,value:yt}=this.props,{href:bt,provider:vt}=yt||{},wt=yp()(Rp,{[Cp]:!ce||!bt,[kp]:ce});let Ct=Pp.default.getKeys().filter((ce=>!gt.includes(ce)));return void 0!==mt&&mt.length>0&&(Ct=Ct.filter((ce=>mt.length>0&&mt.includes(ce)))),Qe.a.createElement(We.Fragment,null,Qe.a.createElement("div",{className:vp},Qe.a.createElement("div",{className:_p},Qe.a.createElement(bp.a,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:vt},Ct.map((ce=>Qe.a.createElement(bp.a.Option,{key:ce,value:ce},Pp.default.getTitle(ce)))))),Qe.a.createElement("div",{className:wp},Qe.a.createElement("div",{className:wt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&yt&&this.titleParts.length>0&&Qe.a.createElement("div",{className:Sp},this.titleParts.map(((ce,ze)=>Qe.a.createElement("span",{className:xp,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Qe.a.createElement("button",{className:Dp,onClick:this.handleRemoveClick,type:"button"},Qe.a.createElement(Nr.a,{name:"su-trash-alt"})),this.titleLoading&&Qe.a.createElement(st.a,{className:Ep,size:14}))),Pp.default.getKeys().map((ce=>{const We=Pp.default.getOverlay(ce);return Qe.a.createElement(We,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onQueryChange:qe?this.handleOverlayQueryChange:void 0,onRelChange:ot?this.handleOverlayRelChange:void 0,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:Xe?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Pp.default.getOptions(ce),query:this.overlayQuery,rel:this.overlayRel,target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableQuery:!1,enableRel:!1,enableTarget:!1,enableTitle:!1,excludedTypes:[],types:[]},Gu=Link_applyDecoratedDescriptor((Yu=mp).prototype,"openedOverlayProvider",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ku=Link_applyDecoratedDescriptor(Yu.prototype,"overlayHref",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ju=Link_applyDecoratedDescriptor(Yu.prototype,"overlayTitle",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayRel",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Tp}}),Xu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayAnchor",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ep=Link_applyDecoratedDescriptor(Yu.prototype,"overlayQuery",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tp=Link_applyDecoratedDescriptor(Yu.prototype,"titleParts",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),np=Link_applyDecoratedDescriptor(Yu.prototype,"titleLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ip=Link_applyDecoratedDescriptor(Yu.prototype,"load",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;if(!ce)return void(this.titleParts=[]);const{href:Ve,provider:Ye}=ce;if(!Ye)return void(this.titleParts=Ve?[Ve]:[]);const We=Pp.default.getOptions(Ye);null!=We&&null!==(ze=We.displayProperties)&&void 0!==ze&&ze.length?(this.titleParts=[],this.titleLoading=!0,Op.c.get(We.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(qe.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(We.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=Ve?[Ve]:[]}}}),rp=Link_applyDecoratedDescriptor(Yu.prototype,"handleRemoveClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0,void 0,void 0)}}}),ap=Link_applyDecoratedDescriptor(Yu.prototype,"handleTitleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),op=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor,this.overlayQuery,this.overlayRel),this.closeOverlay())}}}),sp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),lp=Link_applyDecoratedDescriptor(Yu.prototype,"handleProviderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),cp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayAnchorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),dp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayQueryChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayQuery=ce}}}),up=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTargetChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),pp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTitleChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),hp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayRelChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayRel=ce}}}),fp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayHrefChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),qu=Yu));Qe.a.Component;var Ap=ze.b=Ti},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var qe,Ye=Ve(1),We=Ve(22),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(232),mt=Ve(409),gt=Ve(289);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let yt=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"availableAttributes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"regexp",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"regexp"),qe.prototype),qe);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Qe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(Ye.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,qe)=>{addValueToSearchParameters(ce,ze,Ve+"["+qe+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const qe in ze){const Ye=Ve+xt+qe;addValueToSearchParameters(ce,ze[qe],Ye)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const qe=Ve.split(xt);ce[qe[0]]||(ce[qe[0]]={}),addAttributesFromSearchParameters(ce[qe[0]],ze,qe.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const qe=Ve.slice(0,Ve.indexOf("["));ce[qe]||(ce[qe]=[]),ce[qe].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const qe=ze.attributesHistory[ce].pop();ze.update(ce,{...qe,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(Ye.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,qe=ce+ze;if(Ve!==qe){const ce=Ve||qe;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],qe=Ve.indexOf(ce);-1!==qe&&Ve.splice(qe,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const qe=St.get(Ve),Ye=qe.regexp.exec(ce);if(!Ye)continue;const{availableAttributes:We}=qe,Qe={};for(let ce=1;ce{addAttributesFromSearchParameters(Qe,ce,ze)})),void this.handleNavigation(Ve,Qe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const qe=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(qe,ze),...ce})),{}),...ze},Qe=qe.attributeDefaults;Object.keys(Qe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Qe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(qe,We,Ve))return;this.route=qe,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(Ye.toJS)(Ve),Object(Ye.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(Ye.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const qe=Ve.get();ce[ze]=qe}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:qe}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(Ye.toJS)(ce[ze]);qe.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(Ye.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Qe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[Ye.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[Ye.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return uid}));const qe=new Array(256).fill().map(((ce,ze)=>("0"+ze.toString(16)).slice(-2)));function uid(){const ce=4294967296*Math.random()>>>0,ze=4294967296*Math.random()>>>0,Ve=4294967296*Math.random()>>>0,Ye=4294967296*Math.random()>>>0;return"e"+qe[255&ce]+qe[ce>>8&255]+qe[ce>>16&255]+qe[ce>>24&255]+qe[255&ze]+qe[ze>>8&255]+qe[ze>>16&255]+qe[ze>>24&255]+qe[255&Ve]+qe[Ve>>8&255]+qe[Ve>>16&255]+qe[Ve>>24&255]+qe[255&Ye]+qe[Ye>>8&255]+qe[Ye>>16&255]+qe[Ye>>24&255]}},function(ce,ze,Ve){"use strict";var qe=Ve(565);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(151),Ye=Ve(25);class We{constructor(ce){this.view=ce,this.document=ce.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(ce){return ce&&3===ce.nodeType&&(ce=ce.parentNode),!(!ce||1!==ce.nodeType)&&ce.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(151),Ye=Ve(42),We=Ve(8),Qe=Ve(25);class Xe{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(ce){if(this._elements.has(ce))throw new We.a("focustracker-add-element-already-exist",this);this.listenTo(ce,"focus",(()=>this._focus(ce)),{useCapture:!0}),this.listenTo(ce,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(ce)}remove(ce){ce===this.focusedElement&&this._blur(ce),this._elements.has(ce)&&(this.stopListening(ce),this._elements.delete(ce))}destroy(){this.stopListening()}_focus(ce){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=ce,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Object(Qe.a)(Xe,qe.a),Object(Qe.a)(Xe,Ye.a)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2138),Qe=Ve(3),Xe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(263),gt=Ve(292);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,qe,Ye,We,Qe,Xe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Xe-ot,left:qe+Qe,height:ze,scrollTop:0};st?vt.top=Ve+Xe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Xe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Xe:Ve+We-ze-Xe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,qe,Ye)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let qe=!1,Ye=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,Ye=!0),{dimensions:Ve,touchesTopBorder:qe,touchesBottomBorder:Ye}}static cropHorizontalDimensions(ce,ze,Ve,qe,Ye){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=qe+Ye-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--vwSq9JfFvj";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="esc";var Tt=Object(Qe.b)(((xt=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:qe,scrollHeight:Ye,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+qe-ze,Ye+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalAnchorMode:Ve,horizontalOffset:qe,centerChildElement:Ye}=this.props,{top:We=0,left:Qe=0,width:Xe=0,height:ot=0}=ce.getBoundingClientRect(),st=Ye?Ye.offsetTop:0,mt=!Ye,gt="center"===Ve?(Xe-this.popoverWidth)/2:0;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,We,Qe,Xe,ot,gt+qe,ze,st,mt)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Qe}=this.props;if(!ce||!Ve)return null;const Xe=this.dimensions,ot={...bt.dimensionsToStyle(Xe),position:"fixed",pointerEvents:"auto"},st=Xe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Xe.left===Ve.getBoundingClientRect().left?"left":"right";return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(We.a,null,Qe&&Ye.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),Ye.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalAnchorMode:"left",horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var qe=Ve(25),Ye=Ve(39),We=Ve(234),Qe=Ve(226),Xe=Ve(64),ot=Ve(134),st=Ve(165),mt=Ve(129),gt=Ve(8),yt=Ve(114);const bt="selection:";class vt{constructor(ce){this._selection=new wt(ce),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(ce){return this._selection.containsEntireContent(ce)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(ce){return this._selection.getAttribute(ce)}hasAttribute(ce){return this._selection.hasAttribute(ce)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(ce){this._selection.observeMarkers(ce)}is(ce){return"selection"===ce||"model:selection"==ce||"documentSelection"==ce||"model:documentSelection"==ce}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setAttribute(ce,ze){this._selection.setAttribute(ce,ze)}_removeAttribute(ce){this._selection.removeAttribute(ce)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(ce){this._selection.restoreGravity(ce)}static _getStoreAttributeKey(ce){return bt+ce}static _isStoreAttributeKey(ce){return ce.startsWith(bt)}}Object(qe.a)(vt,Ye.c);class wt extends We.a{constructor(ce){super(),this.markers=new mt.a({idProperty:"name"}),this._model=ce.model,this._document=ce,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&"marker"!=Ve.type&&"rename"!=Ve.type&&"noop"!=Ve.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const ce of this.getRanges())if(!this._document._validateSelectionRange(ce))throw new gt.a("document-selection-wrong-position",this,{range:ce})})),this.listenTo(this._model.markers,"update",((ce,ze,Ve,qe)=>{this._updateMarker(ze,qe)})),this.listenTo(this._document,"change",((ce,ze)=>{clearAttributesStoredInElement(this._model,ze)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let ce=0;ce{if(this._hasChangedRange=!0,ze.root==this._document.graveyard){this._selectionRestorePosition=qe.deletionPosition;const ce=this._ranges.indexOf(ze);this._ranges.splice(ce,1),ze.detach()}})),ze}_updateMarkers(){if(!this._observedMarkers.size)return;const ce=[];let ze=!1;for(const ze of this._model.markers){const Ve=ze.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))continue;const qe=ze.getRange();for(const Ve of this.getRanges())qe.containsRange(Ve,!Ve.isCollapsed)&&ce.push(ze)}const Ve=Array.from(this.markers);for(const Ve of ce)this.markers.has(Ve)||(this.markers.add(Ve),ze=!0);for(const Ve of Array.from(this.markers))ce.includes(Ve)||(this.markers.remove(Ve),ze=!0);ze&&this.fire("change:marker",{oldMarkers:Ve,directChange:!1})}_updateMarker(ce,ze){const Ve=ce.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))return;let qe=!1;const Ye=Array.from(this.markers),We=this.markers.has(ce);if(ze){let Ve=!1;for(const ce of this.getRanges())if(ze.containsRange(ce,!ce.isCollapsed)){Ve=!0;break}Ve&&!We?(this.markers.add(ce),qe=!0):!Ve&&We&&(this.markers.remove(ce),qe=!0)}else We&&(this.markers.remove(ce),qe=!0);qe&&this.fire("change:marker",{oldMarkers:Ye,directChange:!1})}_updateAttributes(ce){const ze=Object(st.a)(this._getSurroundingAttributes()),Ve=Object(st.a)(this.getAttributes());if(ce)this._attributePriority=new Map,this._attrs=new Map;else for(const[ce,ze]of this._attributePriority)"low"==ze&&(this._attrs.delete(ce),this._attributePriority.delete(ce));this._setAttributesTo(ze);const qe=[];for(const[ce,ze]of this.getAttributes())Ve.has(ce)&&Ve.get(ce)===ze||qe.push(ce);for(const[ce]of Ve)this.hasAttribute(ce)||qe.push(ce);qe.length>0&&this.fire("change:attribute",{attributeKeys:qe,directChange:!1})}_setAttribute(ce,ze){const Ve=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";if("low"==Ve&&"normal"==this._attributePriority.get(ce))return!1;return super.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this._attributePriority.set(ce,Ve),!0)}_removeAttribute(ce){const ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return("low"!=ze||"normal"!=this._attributePriority.get(ce))&&(this._attributePriority.set(ce,ze),!!super.hasAttribute(ce)&&(this._attrs.delete(ce),!0))}_setAttributesTo(ce){const ze=new Set;for(const[ze,Ve]of this.getAttributes())ce.get(ze)!==Ve&&this._removeAttribute(ze,!1);for(const[Ve,qe]of ce){this._setAttribute(Ve,qe,!1)&&ze.add(Ve)}return ze}*_getStoredAttributes(){const ce=this.getFirstPosition().parent;if(this.isCollapsed&&ce.isEmpty)for(const ze of ce.getAttributeKeys())if(ze.startsWith(bt)){const Ve=ze.substr(10);yield[Ve,ce.getAttribute(ze)]}}_getSurroundingAttributes(){const ce=this.getFirstPosition(),ze=this._model.schema;let Ve=null;if(this.isCollapsed){const qe=ce.textNode?ce.textNode:ce.nodeBefore,Ye=ce.textNode?ce.textNode:ce.nodeAfter;if(this.isGravityOverridden||(Ve=getAttrsIfCharacter(qe)),Ve||(Ve=getAttrsIfCharacter(Ye)),!this.isGravityOverridden&&!Ve){let ce=qe;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.previousSibling,Ve=getAttrsIfCharacter(ce)}if(!Ve){let ce=Ye;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.nextSibling,Ve=getAttrsIfCharacter(ce)}Ve||(Ve=this._getStoredAttributes())}else{const ce=this.getFirstRange();for(const qe of ce){if(qe.item.is("element")&&ze.isObject(qe.item))break;if("text"==qe.type){Ve=qe.item.getAttributes();break}}}return Ve}_fixGraveyardSelection(ce){const ze=this._model.schema.getNearestSelectionRange(ce);ze&&this._pushRange(ze)}}function getAttrsIfCharacter(ce){return ce instanceof ot.a||ce instanceof Xe.a?ce.getAttributes():null}function clearAttributesStoredInElement(ce,ze){const Ve=ce.document.differ;for(const qe of Ve.getChanges()){if("insert"!=qe.type)continue;const Ve=qe.position.parent;qe.length===Ve.maxOffset&&ce.enqueueChange(ze,(ce=>{const ze=Array.from(Ve.getAttributeKeys()).filter((ce=>ce.startsWith(bt)));for(const qe of ze)ce.removeAttribute(qe,Ve)}))}}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var qe=Ve(106);ce.exports=function(ce){return"object"==typeof ce?null!==ce:qe(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Ve(345),We=Ve(111),Qe=Ve(420),Xe=Ve(344),ot=Ve(822),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Qe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Xe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(429).map;qe({target:"Array",proto:!0,forced:!Ve(745)("map")},{map:function map(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(20),Ye=Ve(39),We=Ve(25),Qe=Ve(8);class Xe extends qe.a{constructor(ce,ze){if(super(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone"),!this.root.is("rootElement"))throw new Qe.a("model-liveposition-root-not-rootelement",ce);bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"livePosition"===ce||"model:livePosition"===ce||"position"==ce||"model:position"===ce}toPosition(){return new qe.a(this.root,this.path.slice(),this.stickiness)}static fromPosition(ce,ze){return new this(ce.root,ce.path.slice(),ze||ce.stickiness)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce);if(!this.isEqual(ze)){const ce=this.toPosition();this.path=ze.path,this.root=ze.root,this.fire("change",ce)}}Object(We.a)(Xe,Ye.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(100);class Ye extends qe.a{get type(){return"noop"}clone(){return new Ye(this.baseVersion)}getReversed(){return new Ye(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ft.a}));var qe=Ve(3),Ye=Ve(1),We=Ve(0),Qe=Ve.n(We),Xe=Ve(22),ot=Ve.n(Xe),st=Ve(5),mt=Ve.n(st),gt=Ve(90),yt=Ve.n(gt),bt=Ve(66),vt=Ve(40),wt=Ve(101),Ct=Ve(54),Dt=Ve(709),kt=Ve(53),St=Ve(254),xt=Ve(6);class Et extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleCancel=()=>{const{onCancel:ce}=this.props;ce()},this.handleConfirm=()=>{const{allowDeletion:ce,onCancel:ze,onConfirm:Ve}=this.props;ce?Ve():ze()}}render(){const{allowDeletion:ce,confirmLoading:ze,referencingResourcesData:Ve}=this.props;return Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:ze,confirmText:ce?Object(xt.translate)("sulu_admin.delete"):Object(xt.translate)("sulu_admin.ok"),onCancel:ce?this.handleCancel:void 0,onConfirm:this.handleConfirm,open:!0,title:ce?Object(xt.translate)("sulu_admin.delete_linked_warning_title"):Object(xt.translate)("sulu_admin.item_not_deletable")},ce?Object(xt.translate)("sulu_admin.delete_linked_warning_text"):Object(xt.translate)("sulu_admin.delete_linked_abort_text"),Qe.a.createElement("ul",null,Ve.referencingResources.map(((ce,ze)=>{const{title:Ve=null}=ce;return Ve?Qe.a.createElement("li",{key:ze},Ve):null}))))}}Et.defaultProps={allowDeletion:!0};var Pt=Et,Tt=Ve(401),Lt=Ve(335),Ft=Ve(216);class Bt extends Qe.a.Component{}Bt.hasColumnOptions=!1,Bt.searchable=!0,Bt.paginatable=!0;var Vt=new class{constructor(){this.clear()}clear(){this.adapters={},this.options={}}has(ce){return!!this.adapters[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ht=Ve(373);class Ut extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Qe.a.createElement(Ht.a,null,ze.map(((ze,Ve)=>{const qe=Vt.get(ze);return Qe.a.createElement(vt.a,{active:ze===ce,icon:qe.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Wt,Jt,Qt,en,rn=Ve(696),ln=Ve(11);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mn=Object(qe.b)((Jt=class extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Qt,this),_initializerDefineProperty(this,"value",en,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Qe.a.createElement("label",{"aria-label":Object(ln.b)("sulu_admin.list_search_placeholder")},Qe.a.createElement(rn.a,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(ln.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value}))}},Qt=_applyDecoratedDescriptor(Jt.prototype,"collapsed",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),en=_applyDecoratedDescriptor(Jt.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Jt.prototype,"setCollapsed",[Ye.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setCollapsed"),Jt.prototype),_applyDecoratedDescriptor(Jt.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setValue"),Jt.prototype),Wt=Jt))||Wt;var gn=mn,bn="list-container--UxdcNb+-fa",wn="list--hNP+IvjLU1",Cn="disabled--AC9dHzod25",Sn="loader--iITKcOflz9",En="toolbar--4mQPRXRq6i",Tn="toolbar-left--jj9QJVUidY",Ln="toolbar-right--ZowtsYK1HF",Fn=Ve(62),Yn=Ve(131),Un=Ve(19),Gn="overlay--aSm-pEy0jw",Kn="sorting--y+97afZNVG",Jn="column-option--vubkKtbyXR",Zn="drag-handle--NeTdKzcGF4",Xn="label--fdEGwyHa+t",ei="icon--5tQaPuzhAg",si="dragging--ymhmUDirFb",_i="column-option-disabled--gaFd19+z-F";const Ri=Object(Fn.c)((()=>Qe.a.createElement("span",{className:Zn},Qe.a.createElement(Un.a,{name:"su-more"}))));class Ci extends Qe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Jn,{[_i]:"no"===ze});return Qe.a.createElement("div",{className:Ve},Qe.a.createElement(Ri,null),Qe.a.createElement("span",{className:Xn},ce),"always"!==ze&&Qe.a.createElement(Un.a,{className:ei,name:"su-eye",onClick:this.handleIconClick}))}}var Di,Ei,Oi,Ti,er,tr,nr,rr;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ar=Object(Fn.b)(Ci),sr=Object(Fn.a)((ce=>{let{children:ze,className:Ve}=ce;return Qe.a.createElement("div",{className:Ve},ze)}));let lr=Object(qe.b)((Ei=class extends Qe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",Oi,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",Ti,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",er,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",tr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",nr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",rr,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Gn,{[Kn]:this.sorting});return Qe.a.createElement(Yn.a,{confirmText:Object(xt.translate)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.translate)("sulu_admin.column_options")},Qe.a.createElement(sr,{axis:"y",className:Ve,helperClass:si,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Qe.a.createElement(ar,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},Oi=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"columnOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ti=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"sorting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),er=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleColumnOptionChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),tr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"setColumnOptions",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const qe={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:qe})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(Ei.prototype,"componentDidMount"),Ei.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Ei.prototype,"componentDidUpdate"),Ei.prototype),nr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleItemsSortStart",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),rr=ColumnOptionsOverlay_applyDecoratedDescriptor(Ei.prototype,"handleItemsSortEnd",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Fn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),Di=Ei))||Di;var dr,ur,pr=lr,vr=Ve(26),_r=Ve.n(vr),Rr=Ve(711);function AbstractFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cr=(dr=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var Ye,We,Qe,Xe;Ye=this,We="value",Xe=this,(Qe=ur)&&Object.defineProperty(Ye,We,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(Xe):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=qe}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},ur=AbstractFieldFilterType_applyDecoratedDescriptor(dr.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AbstractFieldFilterType_applyDecoratedDescriptor(dr.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(dr.prototype,"setValue"),dr.prototype),dr);var Dr,Er,Tr,Ar,Mr,Lr,jr=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ir="field-filter-item--bySYVuRFqh",zr="button-container--TiZ5ifP-g7";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Br="esc",Nr="enter";var Vr,Hr,qr,Yr,Ur,Wr,$r,Gr,Kr,Jr=Object(qe.b)((Er=class extends Qe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Tr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Ar,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",Mr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",Lr,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:qe,open:We,value:Qe}=this.props;if(this.value=Qe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(jr.get(ze))(this.handleFieldFilterTypeChange,Ve,Qe,jr.getOptions(ze)),this.valueDisposer=Object(Ye.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(Ye.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(Ye.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(_r.a.bind(Br,qe),_r.a.bind(Nr,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:qe}=this.props;!1===ce.open&&!0===Ve&&(this.value=qe),ce.open!==Ve&&(Ve?(_r.a.bind(Br,ze),_r.a.bind(Nr,this.handleButtonClick)):(_r.a.unbind(Br),_r.a.unbind(Nr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(_r.a.unbind(Br),_r.a.unbind(Nr))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:qe,onDelete:Ye,open:We}=this.props;return Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("span",{className:Ir},Qe.a.createElement(Rr.a,{onClick:Ve,onDelete:Ye,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Qe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:qe,open:We},Qe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Qe.a.createElement("div",{className:zr},Qe.a.createElement(vt.a,{onClick:this.handleButtonClick,skin:"link"},Object(ln.b)("sulu_admin.ok")))))}},Tr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ar=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"valueNodeLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"valueNode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"propValue",[Ye.computed],Object.getOwnPropertyDescriptor(Er.prototype,"propValue"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"componentDidUpdate"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"setValueNodeLoading",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"setValueNodeLoading"),Er.prototype),FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"setValueNode",[Ye.action],Object.getOwnPropertyDescriptor(Er.prototype,"setValueNode"),Er.prototype),Lr=FieldFilterItem_applyDecoratedDescriptor(Er.prototype,"handleFieldFilterTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Dr=Er))||Dr,Zr="field-filter--e89ph6qjD7",ga="filter-button--DDFZa7sq+G";function FieldFilter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ya=Object(qe.b)((Hr=class extends Qe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",qr,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",Yr,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",Ur,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Wr,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",$r,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Gr,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Kr,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Qe.a.createElement("div",{className:Zr},Object.keys(ce).length>0&&Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",{className:ga},Qe.a.createElement(vt.a,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Qe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Qe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Qe.a.createElement(Jr,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},qr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filterMenuOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filterChipOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Hr.prototype,"filteredFields",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"filteredFields"),Hr.prototype),Ur=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterMenuButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Wr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),$r=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"openFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Gr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"closeFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Kr=FieldFilter_applyDecoratedDescriptor(Hr.prototype,"handleFilterItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:qe,...Ye}=Ve;ze(Ye)}}}),Vr=Hr))||Vr;var ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Vo,Ho,Uo,Wo,$o,es,ts,ns,rs,os,ss,ls,cs,ds,us,ps,hs,fs=ya;function List_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ms="sulu_admin.list",gs="adapter";let ys=Object(qe.b)(((hs=class ce extends Qe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ms,ce,ze,gs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const qe=[ms,ce,ze,gs].join(".");kt.a.setPersistentSetting(qe,Ve)}get currentAdapter(){return Vt.get(this.currentAdapterKey)}get currentAdapterOptions(){return Vt.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",_a,this),List_initializerDefineProperty(this,"showCopyOverlay",wa,this),List_initializerDefineProperty(this,"showDeleteDialog",ka,this),List_initializerDefineProperty(this,"showMoveOverlay",xa,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",Aa,this),List_initializerDefineProperty(this,"allowConflictDeletion",Ba,this),List_initializerDefineProperty(this,"showOrderDialog",Ja,this),List_initializerDefineProperty(this,"adapterOptionsOpen",io,this),List_initializerDefineProperty(this,"columnOptionsOpen",po,this),List_initializerDefineProperty(this,"referencingResourcesData",ho,this),List_initializerDefineProperty(this,"dependantResourcesData",go,this),List_initializerDefineProperty(this,"movingRestrictedTarget",_o,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Co,this),List_initializerDefineProperty(this,"requestSelectionDelete",ko,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",Oo,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",Po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",To,this),List_initializerDefineProperty(this,"closeAllDialogs",Ao,this),List_initializerDefineProperty(this,"handleDeleteResponseError",jo,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Fo,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",Bo,this),List_initializerDefineProperty(this,"handleRequestItemMove",Vo,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Ho,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",Uo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Wo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$o,this),List_initializerDefineProperty(this,"handleRequestItemCopy",es,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",ts,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",ns,this),List_initializerDefineProperty(this,"handleRequestItemOrder",rs,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",os,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",ss,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,qe=Ve.findById(ce);qe&&(ze?Ve.select(qe):Ve.deselect(qe))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",ls,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",cs,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ds,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",us,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",ps,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(Ye.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:qe}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&qe})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Vt.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Qe.a.createElement(Pt,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Qe.a.createElement(Tt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:qe,disabled:Ye,header:Xe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Ft}=this.props,{filterableFields:Bt,loading:Vt,schemaLoading:Ht,userSchema:Wt}=Lt,Jt=this.currentAdapter,Qt=mt()(wn,{[Cn]:Ye}),en=mt()(En,Ft),rn=this.props.searchable&&Jt.searchable,ln=this.props.filterable&&Bt&&Object.keys(Bt).length>0,mn=rn||ln||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Qe.a.createElement(Dt.a,null):Qe.a.createElement("div",{className:bn},Xe,!Ht&&mn&&Qe.a.createElement("div",{className:en},Qe.a.createElement("div",{className:Tn},rn&&Qe.a.createElement(gn,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),ln&&Qe.a.createElement(fs,{fields:Bt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Qe.a.createElement("div",{className:Ln},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Qe.a.createElement(vt.a,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",null,Qe.a.createElement(vt.a,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Qe.a.createElement(bt.a.Section,null,Qe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.translate)("sulu_admin.column_options")))),Qe.a.createElement(pr,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Wt})),Qe.a.createElement(Ut,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Qe.a.createElement("div",{className:Qt},Vt&&0===Lt.pageCount?Qe.a.createElement(Ct.a,{className:Sn}):Qe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Vt,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:qe?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),qe&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmText:Object(xt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.translate)("sulu_security.move_permission_title")},Object(xt.translate)("sulu_security.move_permission_warning"))),Ve&&Qe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Et&&Qe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.translate)("sulu_admin.order_warning_title")},Object(xt.translate)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},_a=List_applyDecoratedDescriptor((va=hs).prototype,"currentAdapterKey",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wa=List_applyDecoratedDescriptor(va.prototype,"showCopyOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(va.prototype,"showDeleteDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xa=List_applyDecoratedDescriptor(va.prototype,"showMoveOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Aa=List_applyDecoratedDescriptor(va.prototype,"showDeleteSelectionDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ba=List_applyDecoratedDescriptor(va.prototype,"allowConflictDeletion",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ja=List_applyDecoratedDescriptor(va.prototype,"showOrderDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),io=List_applyDecoratedDescriptor(va.prototype,"adapterOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),po=List_applyDecoratedDescriptor(va.prototype,"columnOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ho=List_applyDecoratedDescriptor(va.prototype,"referencingResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),go=List_applyDecoratedDescriptor(va.prototype,"dependantResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_o=List_applyDecoratedDescriptor(va.prototype,"movingRestrictedTarget",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(va.prototype,"currentAdapter",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapter"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"currentAdapterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapterOptions"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"disabledIds",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"disabledIds"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"showColumnOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"showColumnOptions"),va.prototype),Co=List_applyDecoratedDescriptor(va.prototype,"setCurrentAdapterKey",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),ko=List_applyDecoratedDescriptor(va.prototype,"requestSelectionDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),Oo=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(Ye.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),Po=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),To=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(Ye.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(Ye.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),Ao=List_applyDecoratedDescriptor(va.prototype,"closeAllDialogs",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),jo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteResponseError",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(Ye.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||Ve.code!==Lt.b)if(409!==ce.status||Ve.code!==Lt.a)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Fo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),Bo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Vo=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemMove",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(Ye.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(Ye.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Ho=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),Uo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Wo=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),$o=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),es=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemCopy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(Ye.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(Ye.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),ts=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),ns=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),rs=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemOrder",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(Ye.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(Ye.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),os=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),ss=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),ls=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),cs=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ds=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsOpen",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),us=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),ps=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions",[Ye.computed],Object.getOwnPropertyDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions"),va.prototype),ba=va))||ba;var bs=ys;var vs=new class{constructor(){this.clear()}clear(){this.fieldTransformers={}}has(ce){return!!this.fieldTransformers[ce]}add(ce,ze){if(ce in this.fieldTransformers)throw new Error('The key "'+ce+'" has already been used for another field transformer');this.fieldTransformers[ce]=ze}get(ce){if(!(ce in this.fieldTransformers))throw new Error('The list field transformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldTransformers).sort().join(", "));return this.fieldTransformers[ce]}},_s=Ve(48);Ve(9);Ve(162);var ws=Ve(89);Ve(10);Ve(331);var Rs;Rs=class extends Cr{constructor(){super(...arguments),this.handleChange=ce=>{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Qe.a.createElement(ws.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Qe.a.createElement(ws.b,{key:ce,value:ce},Object(ln.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(ln.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function SelectFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Rs.prototype,"parameterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"parameterOptions"),Rs.prototype);var Cs,Ds=Ve(32),ks="number-field-filter-type--NuTkZN5bnh";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ss={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((Cs=class extends Cr{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:ks},Qe.a.createElement(Ds.a,{onChange:this.handleOperatorChange,value:this.operator},Qe.a.createElement(Ds.a.Option,{value:"lt"},Ss.lt),Qe.a.createElement(Ds.a.Option,{value:"eq"},Ss.eq),Qe.a.createElement(Ds.a.Option,{value:"gt"},Ss.gt)),Qe.a.createElement(_s.a,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((Ss[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[Ye.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"operator"),Cs.prototype),NumberFieldFilterType_applyDecoratedDescriptor(Cs.prototype,"number",[Ye.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"number"),Cs.prototype);var xs,Es,Os,Ps,Ts,As=Ve(192),Ms=Ve(290),Ls=Ve(193);function ResourceCheckboxGroup_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceCheckboxGroup_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var js,Is,zs,Fs=Object(qe.b)(((Ts=class extends Qe.a.Component{constructor(ce){super(ce),ResourceCheckboxGroup_initializerDefineProperty(this,"resourceListStore",Os,this),ResourceCheckboxGroup_initializerDefineProperty(this,"createResourceListStore",Ps,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;ot()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Qe.a.createElement(Ct.a,{size:30}):Qe.a.createElement(ws.a,{disabled:ce,onChange:this.handleChange,values:qe},this.resourceListStore.data.map(((ce,qe)=>Qe.a.createElement(ws.b,{key:qe,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Os=ResourceCheckboxGroup_applyDecoratedDescriptor((Es=Ts).prototype,"resourceListStore",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ps=ResourceCheckboxGroup_applyDecoratedDescriptor(Es.prototype,"createResourceListStore",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new Ls.a(ce,ze)}}}),xs=Es))||xs,Bs="selection-field-filter-type--XyHrO18pOZ";function SelectionFieldFilterType_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ns="auto_complete";Is=SelectionFieldFilterType_applyDecoratedDescriptor((js=class extends Cr{get type(){return this.parameters&&(this.parameters.type||Ns)}constructor(ce,ze,Ve){super(ce,ze,Ve),SelectionFieldFilterType_initializerDefineProperty(this,"selectValue",Is,this),SelectionFieldFilterType_initializerDefineProperty(this,"setSelectValue",zs,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new As.a(this.resourceKey,[],Ye.observable.box(kt.a.contentLocale)),this.selectionStoreDisposer=Object(Ye.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(Ye.autorun)((()=>{const ce=Object(Ye.toJS)(this.value||[]);ot()(ce,Object(Ye.untracked)((()=>Object(Ye.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),ot()(ce,Object(Ye.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:Bs},this.type===Ns&&Qe.a.createElement(Ms.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Qe.a.createElement(Fs,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(Ye.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}}).prototype,"selectValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"type"),js.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"resourceKey"),js.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"displayProperty",[Ye.computed],Object.getOwnPropertyDescriptor(js.prototype,"displayProperty"),js.prototype),zs=SelectionFieldFilterType_applyDecoratedDescriptor(js.prototype,"setSelectValue",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(651);var Vs,Hs,qs,Ys,Us,Ws=Ve(196),$s="item--di59UnizG3",Gs="text--pi+uoZQE6K",Ks="active--JZvcCW3w08",Js="disabled--NK1nwxLsja",Zs="order-field-shown--7CoOeL6DlA",Qs="children--uDoW0KRj5I",Xs="button--8HM7dynUtU",pl="visible--yITbOnFavE",gl="buttons--A5cr0sCqUp",yl="selected--tK-QW4ISuL",bl="indicator--rrzI69S1z4",vl="order-input--1bxIc0Un6d";class _l extends Qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=mt()({[Xs]:!0,[pl]:ze});return Qe.a.createElement(Un.a,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},Item_initializerDefineProperty(this,"handleOrderChange",Ys,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(Ye.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`button-${Ve}`;return Qe.a.createElement(_l,_extends({},ce,{id:ze,key:qe}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:qe,indicators:Ye,showOrderField:We,selected:Xe}=this.props,ot=mt()($s,{[Ks]:ce,[Js]:Ve,[yl]:Xe,[Zs]:We});return Qe.a.createElement("div",{className:ot,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&&Qe.a.createElement("span",{className:gl},this.renderButtons()),We&&Qe.a.createElement("div",{className:vl},Qe.a.createElement(_s.a,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),Qe.a.createElement("span",{className:Gs},Qe.a.createElement(Ws.a,null,ze)),Ye&&Ye.map(((ce,ze)=>Qe.a.createElement("span",{className:bl,key:ze},ce))),Qe.a.createElement("span",{className:Qs},qe&&Qe.a.createElement(Un.a,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},qs=Item_applyDecoratedDescriptor((Hs=Us).prototype,"order",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Item_applyDecoratedDescriptor(Hs.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Hs.prototype,"componentDidUpdate"),Hs.prototype),Ys=Item_applyDecoratedDescriptor(Hs.prototype,"handleOrderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),Vs=Hs))||Vs,Rl="column--iDhGy8Hfqp",Cl="scrolling--rjSWf1vXhl",Dl="loader---JiDXbXRso";class kl extends Qe.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return Qe.a.Children.map(ce,(ce=>Qe.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,qe=mt()(Rl,{[Cl]:Ve});return Qe.a.createElement("div",{className:qe,onMouseEnter:this.handleMouseEnter,role:"button"},ze?Qe.a.createElement("div",{className:Dl},Qe.a.createElement(Ct.a,null)):this.cloneItems(ce))}}kl.defaultProps={loading:!1,scrolling:!1};var Sl,xl,El,Ol,Pl,Tl,Al={toolbar:"toolbar--DDtgPZnqyS",item:"item--RD3Dz+G6r6",primary:"primary--Ow8f8zFulj",secondary:"secondary--lCP02nZUtQ"},Ml="button-arrow-icon--uRgclWLG+6";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ll=Object(qe.b)((Tl=class extends Qe.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",El,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",Ol,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Pl,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=mt()(Al.item,Al[ze]);return Qe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Qe.a.createElement(Un.a,{name:ce}),Qe.a.createElement(Un.a,{className:Ml,name:"su-angle-down"}))}render(){return Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bt.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},Qe.a.createElement(bt.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:qe,onClick:Ye}=ce;return Qe.a.createElement(bt.a.Action,{disabled:Ve,key:ze,onClick:Ye},qe)})))))}},Tl.defaultProps={skin:"primary"},El=ToolbarDropdown_applyDecoratedDescriptor((xl=Tl).prototype,"open",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ol=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Pl=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Sl=xl))||Sl;var jl,Il,zl,Fl,Bl,Nl=Ll;class Vl extends Qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=mt()(Al.item,Al[ze]);return Qe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Qe.a.createElement(Un.a,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return Qe.a.createElement(Nl,Toolbar_extends({},ce,{key:ze}));case"button":return Qe.a.createElement(Vl,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return Qe.a.createElement("div",{className:Al.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Bl.defaultProps={toolbarItems:[]},zl=Toolbar_applyDecoratedDescriptor((Il=Bl).prototype,"toolbar",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=Toolbar_applyDecoratedDescriptor(Il.prototype,"setToolbarRef",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),jl=Il))||jl;var Ul,Wl,$l,ec,nc,ic,oc,lc=Hl,pc="300px",hc="column-list-toolbar-container--qP4ci2SdMZ",fc="toolbar-container--M-hmKOXXCe",mc="column-list-container--6AtrUaP7rm",gc="first-visible-column-active--t8DBSYm9OW",_c="last-visible-column-active--s84p32bfOh",kc="column-list--gXQME1EbNd";function ColumnList_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ec=Object(qe.b)((oc=class extends Qe.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",$l,this),ColumnList_initializerDefineProperty(this,"scrollPosition",ec,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",nc,this),ColumnList_initializerDefineProperty(this,"handleActive",ic,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,qe=this.containerScrolling;return Qe.a.Children.map(ce,((ce,Ye)=>Qe.a.cloneElement(ce,{index:Ye,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:qe})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=Qe.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(Qe.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(pc);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),qe=this.props.toolbarItemsProvider(this.activeColumnIndex);return Qe.a.createElement("div",{className:hc},!!qe&&Qe.a.createElement("div",{className:fc,style:{marginLeft:ze}},!!qe.length&&Qe.a.createElement(lc,{toolbarItems:qe,toolbarRef:this.setToolbarRef})),Qe.a.createElement("div",{className:Ve,ref:this.setContainerRef},Qe.a.createElement("div",{className:kc},this.cloneColumns(ce))))}},oc.Column=kl,oc.Item=wl,$l=ColumnList_applyDecoratedDescriptor((Wl=oc).prototype,"activeColumnIndex",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=ColumnList_applyDecoratedDescriptor(Wl.prototype,"scrollPosition",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(Wl.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Wl.prototype,"componentDidUpdate"),Wl.prototype),nc=ColumnList_applyDecoratedDescriptor(Wl.prototype,"handleScroll",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),ic=ColumnList_applyDecoratedDescriptor(Wl.prototype,"handleActive",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),Ul=Wl))||Ul;var Oc,Mc,Lc=Ec,jc=Ve(374),Ic=Ve(173),Fc=Ve(45);Ve(103);class Nc{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class Vc extends Nc{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),Fc.a.getList(ce,{...ze}).then(Object(Ye.action)((ze=>{const qe=ze._embedded[ce];return this.structureStrategy.clear(Ve),qe.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let qc=(Mc=ColumnStructureStrategy_applyDecoratedDescriptor((Oc=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,qe;ce=this,ze="rawData",qe=this,(Ve=Mc)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const qe=this.rawData.get(Ve);if(qe)for(const Ye of qe.keys()){const We=qe[Ye].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),qe.splice(Ye,1),0===qe.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const qe=this.rawData.get(Ve);if(!qe)continue;const Ye=qe.findIndex((ze=>ze.id===ce));if(-1!==Ye)return void this.rawData.set(Ve,Object(xt.arrayMove)(qe,Ye,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const qe=Object.keys(ce._embedded)[0],We=ce._embedded[qe];Object(Ye.isArrayLike)(We)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),We.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"visibleItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"activeItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"data"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"remove",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"remove"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"order"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(Oc.prototype,"clear"),Oc.prototype),Oc);var Gc,Kc,Jc,Qc,ed,td,sd="column-list-adapter--2NA2E1Dy30";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(qe.b)((td=class extends Bt{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",Jc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Qc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",ed,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:qe}=this.props;if(!qe)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const Ye=Ve[this.orderColumn].length;return ze>Ye&&(ze=Ye),qe(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Qe.a.createElement(jc.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Qe.a.createElement(Un.a,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Qe.a.createElement(Un.a,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Qe.a.createElement(Un.a,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Qe.a.createElement(Un.a,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,qe=!!ce.published;!Ve&&qe||ze.push(Qe.a.createElement(Ic.a,{draft:Ve,key:"publish",published:qe}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,qe=!!ce.ghostLocale,Ye=[],{_permissions:{view:We=!0,edit:Qe=!0}={}}=ce;if(ze){const ce=qe?"su-plus-circle":Qe?"su-pen":"su-eye";Ye.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};Ye.push(ce)}return Ye},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:qe,onItemAdd:We,onRequestItemCopy:Qe,onRequestItemDelete:Xe,onRequestItemMove:ot,onRequestItemOrder:st}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(Ye.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=qe[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:vt=!0}={}}=yt||{};We&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{We(ze[ce])}});const wt=void 0!==ze[ce+1],Ct=qe[ce],Dt=Ct?Ct.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:kt=!0,edit:St=!0}={}}=Dt||{},xt=[];return Xe&&xt.push({disabled:!wt||!kt,label:Object(ln.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),ot&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");ot(Ve)}}),Qe&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),st&&xt.push({disabled:!vt,label:Object(ln.b)("sulu_admin.order"),onClick:Object(Ye.action)((()=>{this.orderColumn=ce}))}),xt.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:xt}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:qe}=this.props;return Qe.a.createElement("div",{className:sd},Qe.a.createElement(Lc,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((Ye,We)=>Qe.a.createElement(Lc.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},Ye.map(((Ve,Ye)=>Qe.a.createElement(Lc.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:Ye+1,selected:qe.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},td.LoadingStrategy=Vc,td.StructureStrategy=qc,td.icon="su-columns",td.searchable=!1,td.paginatable=!1,td.defaultProps={data:[]},Jc=ColumnListAdapter_applyDecoratedDescriptor((Kc=td).prototype,"orderColumn",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qc=ColumnListAdapter_applyDecoratedDescriptor(Kc.prototype,"handleItemClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),ed=ColumnListAdapter_applyDecoratedDescriptor(Kc.prototype,"handleItemDoubleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,qe=ze.map((ce=>Object(Ye.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:We=!0}={}}=qe;Ve&&We&&Ve(ce)}}}),Gc=Kc));var ld,cd,dd=Ve(94);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const qe=ce[Ve];if(qe.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(qe.children,ze)&&0===qe.children.length)return qe.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(xt.arrayMove)(Ve,qe,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(ld.prototype,"visibleItems"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(ld.prototype,"order"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(ld.prototype,"clear"),ld.prototype),ld);var fd,md,yd,bd,vd,_d,wd="pagination--l-Gy8ktwh0",Rd="loader--KqH8yIjtOt",Cd="display--ohVYQZNnbn",Dd="inputContainer--AhLKA10d4U";function Pagination_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Pagination_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const kd=[10,20,50,100];let Sd=Object(qe.b)((_d=class extends Qe.a.Component{constructor(){super(...arguments),Pagination_initializerDefineProperty(this,"currentInputValue",yd,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,qe=parseInt(ce);qe!==ze&&Ve(qe)},Pagination_initializerDefineProperty(this,"handleInputChange",bd,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},Pagination_initializerDefineProperty(this,"validateAndSubmitInputValue",vd,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:qe,currentLimit:Ye}=this.props;return Qe.a.createElement("section",null,ze,Qe.a.createElement("nav",{className:wd},Qe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.per_page"),":"),Qe.a.createElement("span",null,Qe.a.createElement(Ds.a,{onChange:this.handleLimitChange,skin:"dark",value:Ye},kd.map((ce=>Qe.a.createElement(Ds.a.Option,{key:ce,value:ce},ce))))),Qe.a.createElement("div",{className:Rd},Ve&&Qe.a.createElement(Ct.a,{size:24})),Qe.a.createElement("span",null,Object(ln.b)("sulu_admin.page"),":"),Qe.a.createElement("span",{className:Dd},Qe.a.createElement(_s.a,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),Qe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.of")," ",qe),Qe.a.createElement(Ht.a,null,Qe.a.createElement(vt.a,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),Qe.a.createElement(vt.a,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},_d.defaultProps={loading:!1},yd=Pagination_applyDecoratedDescriptor((md=_d).prototype,"currentInputValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidMount"),md.prototype),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidUpdate"),md.prototype),bd=Pagination_applyDecoratedDescriptor(md.prototype,"handleInputChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),vd=Pagination_applyDecoratedDescriptor(md.prototype,"validateAndSubmitInputValue",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let qe=this.currentInputValue;!qe||!Ve||qe<1?qe=1:qe>Ve&&(qe=Ve),qe!==ce&&ze(qe),this.currentInputValue=ce}}}),fd=md))||fd;var xd,Ed,Od=Sd,Td="publish-indicator--S6DXjHgv04",Ad="ghost-indicator--Dz6SVejLaz";let Md=((Ed=class extends Bt{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const qe=vs.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),Ye=[];if(0===Ve)if(ce.ghostLocale)Ye.push(Qe.a.createElement(jc.a,{className:Ad,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||Ye.push(Qe.a.createElement(Ic.a,{className:Td,draft:ze,key:"publish",published:Ve}))}return Qe.a.createElement(dd.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},Ye,qe)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((qe=>{const Ye=this.schema[qe],We=Ye.label?Ye.label:qe;return Qe.a.createElement(dd.a.HeaderCell,{key:qe,name:qe,onClick:Ye.sortable?ce:void 0,sortOrder:ze===qe?Ve:void 0,width:this.schema[qe].width},We)}))}}).hasColumnOptions=!0,Ed.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((xd=Ed).prototype,"schema",[Ye.computed],Object.getOwnPropertyDescriptor(xd.prototype,"schema"),xd.prototype),xd);var Ld,Id,Fd,Bd,Nd;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(qe.b)((Nd=class extends Md{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",Fd,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",Bd,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:qe}=this.props,{data:{_permissions:{add:Ye=!0,edit:We=!0,view:Qe=!0}={}}={}}=ce||{},Xe=[];return Ve&&Xe.push({disabled:!Qe,icon:We?"su-pen":"su-eye",onClick:Ve}),qe&&Xe.push({disabled:!Ye,icon:"su-plus-circle",onClick:qe}),ze&&Xe.push(...ze(ce)),Xe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:qe,selections:Ye}=this.props;for(const We of ce){const{data:ce,hasChildren:Xe}=We;Ve.push(Qe.a.createElement(dd.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:qe.includes(ce.id),expanded:We.children.length>0,hasChildren:Xe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:Ye.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:qe,onAllSelectionChange:Ye,onItemSelectionChange:We,onLimitChange:Xe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&qe)return Qe.a.createElement(Ct.a,null);const vt=Qe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Qe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(dd.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Qe.a.createElement(Od,{currentLimit:Ve,currentPage:gt,loading:qe,onLimitChange:Xe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},Nd.LoadingStrategy=Vc,Nd.StructureStrategy=ud,Nd.icon="su-tree-list",Fd=TreeTableAdapter_applyDecoratedDescriptor((Id=Nd).prototype,"handleRowCollapse",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),Bd=TreeTableAdapter_applyDecoratedDescriptor(Id.prototype,"handleRowExpand",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),Ld=Id));var Vd,Hd;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Yd=(Hd=FlatStructureStrategy_applyDecoratedDescriptor((Vd=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,qe;ce=this,ze="data",qe=this,(Ve=Hd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(xt.arrayMove)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(Vd.prototype,"visibleItems"),Vd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(Vd.prototype,"clear"),Vd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Vd.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(Vd.prototype,"order"),Vd.prototype),Vd);var Ud,Wd;Object(qe.b)((Wd=class extends Md{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:qe=!0,view:Ye=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!Ye,icon:qe?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Qe.a.createElement(dd.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:qe,onItemSelectionChange:Ye,onLimitChange:We,onPageChange:Xe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Qe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowSelectionChange:Ye,selectMode:Ye?"multiple":void 0,skin:mt},st?Qe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(dd.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Qe.a.createElement(Od,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Xe,totalPages:yt},bt)}},Wd.LoadingStrategy=Vc,Wd.StructureStrategy=Yd,Wd.icon="su-align-justify",Ud=Wd));var $d="folder--MAPfkm9Cd0",Gd="description--gvVvBx2FXh",Kd="title--FU5Z2YeQes",Jd="info--D9Z5if0aia",Zd="icon-container--NzC3lsSfT-";class Qd extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)},this.handleKeypress=ce=>{const{onClick:ze,id:Ve}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze(Ve)))}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Qe.a.createElement("div",{className:$d,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe.a.createElement("div",{className:Zd},Qe.a.createElement(Un.a,{name:ce?"su-folder-permission":"su-folder"})),Qe.a.createElement("div",{className:Gd},Qe.a.createElement("h5",{className:Kd},Ve),Qe.a.createElement("div",{className:Jd},ze)))}}var Xd="folder-list--kdsLwfTOFY";class ku extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Qe.a.Children.map(ce,(ce=>Qe.a.createElement("li",null,Qe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Qe.a.createElement("ul",{className:Xd},ze)}}ku.Folder=Qd;var xu,Hu,qu=ku;Object(qe.b)(((Hu=class ce extends Bt{static getInfoText(ce){const ze=1===ce.objectCount?Object(ln.b)("sulu_admin.object"):Object(ln.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:qe,onItemClick:Ye,onLimitChange:We,onPageChange:Xe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Qe.a.createElement(qu,{onFolderClick:Ye},ze.map((ze=>Qe.a.createElement(qu.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Qe.a.createElement(Od,{currentLimit:Ve,currentPage:ot,loading:qe,onLimitChange:We,onPageChange:Xe,totalPages:mt},gt)}}).LoadingStrategy=Vc,Hu.StructureStrategy=Yd,Hu.icon="su-folder",Hu.defaultProps={data:[]},xu=Hu));Ve(280);ze.b=bs},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe,Ye,We=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Qe=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var We,Qe,Xe,ot;We=this,Qe="value",ot=this,(Xe=Ye)&&Object.defineProperty(We,Qe,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(ot):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=qe}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},Ye=_applyDecoratedDescriptor(qe.prototype,"value",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setValue",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(555);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(39),Ye=Ve(8),We=Ve(114),Qe=Ve(99),Xe=Ve(25);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=Object(Qe.a)(ce);if(Ve||(ze=ce),this._items=[],this._itemMap=new Map,this._idProperty=ze.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],Ve)for(const ze of ce)this._items.push(ze),this._itemMap.set(this._getItemIdBeforeAdding(ze),ze)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(ce,ze){return this.addMany([ce],ze)}addMany(ce,ze){if(void 0===ze)ze=this._items.length;else if(ze>this._items.length||ze<0)throw new Ye.a("collection-add-item-invalid-index",this);for(let Ve=0;Ve{this._setUpBindToBinding((ze=>new ce(ze)))},using:ce=>{"function"==typeof ce?this._setUpBindToBinding((ze=>ce(ze))):this._setUpBindToBinding((ze=>ze[ce]))}}}_setUpBindToBinding(ce){const ze=this._bindToCollection,addItem=(Ve,qe,Ye)=>{const We=ze._bindToCollection==this,Qe=ze._bindToInternalToExternalMap.get(qe);if(We&&Qe)this._bindToExternalToInternalMap.set(qe,Qe),this._bindToInternalToExternalMap.set(Qe,qe);else{const Ve=ce(qe);if(!Ve)return void this._skippedIndexesFromExternal.push(Ye);let We=Ye;for(const ce of this._skippedIndexesFromExternal)Ye>ce&&We--;for(const ce of ze._skippedIndexesFromExternal)We>=ce&&We++;this._bindToExternalToInternalMap.set(qe,Ve),this._bindToInternalToExternalMap.set(Ve,qe),this.add(Ve,We);for(let ce=0;ce{const qe=this._bindToExternalToInternalMap.get(ze);qe&&this.remove(qe),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((ce,ze)=>(Veze&&ce.push(ze),ce)),[])}))}_getItemIdBeforeAdding(ce){const ze=this._idProperty;let Ve;if(ze in ce){if(Ve=ce[ze],"string"!=typeof Ve)throw new Ye.a("collection-add-invalid-id",this);if(this.get(Ve))throw new Ye.a("collection-add-item-already-exists",this)}else ce[ze]=Ve=Object(We.a)();return Ve}_remove(ce){let ze,Ve,qe,We=!1;const Qe=this._idProperty;if("string"==typeof ce?(Ve=ce,qe=this._itemMap.get(Ve),We=!qe,qe&&(ze=this._items.indexOf(qe))):"number"==typeof ce?(ze=ce,qe=this._items[ze],We=!qe,qe&&(Ve=qe[Qe])):(qe=ce,Ve=qe[Qe],ze=this._items.indexOf(qe),We=-1==ze||!this._itemMap.get(Ve)),We)throw new Ye.a("collection-remove-404",this);this._items.splice(ze,1),this._itemMap.delete(Ve);const Xe=this._bindToInternalToExternalMap.get(qe);return this._bindToInternalToExternalMap.delete(qe),this._bindToExternalToInternalMap.delete(Xe),this.fire("remove",qe,ze),[qe,ze]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(Xe.a)(ot,qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(116),Ye=Ve(281);class We extends qe.a{constructor(ce){super(ce),this.useCapture=!1}observe(ce){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((ze=>{this.listenTo(ce,ze,((ce,ze)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(ze.target)&&this.onDomEvent(ze)}),{useCapture:this.useCapture})}))}fire(ce,ze,Ve){this.isEnabled&&this.document.fire(ce,new Ye.a(this.view,ze,Ve))}}},function(ce,ze,Ve){"use strict";var qe=Ve(5),Ye=Ve.n(qe),We=Ve(26),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2138),yt=Ve(19),bt=Ve(40),vt=Ve(263),wt=Ve(292),Ct=Ve(338),Dt="actions--xNXsRaI5Vm";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.a,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--f4RGGquzEU",overlay:"overlay--n+RWc5k46Z",small:"small--6xbtoXIEUQ",large:"large--sv3QRCZhaC","is-down":"is-down--RQ1vB3CW5n",isDown:"is-down--RQ1vB3CW5n",content:"content--7IBCVm5j3y",header:"header--zFlFo259TN",article:"article--bFYETkm1oe",footer:"footer--zk0jAohpve",icon:"icon--k8wwQYr3oC",snackbar:"snackbar--sZxmSSBfIk"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Bt="esc";var Vt=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Qe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Qe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Qe.a.bind(Bt,this.close):Qe.a.unbind(Bt),Object(vt.a)(Object(Xe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:qe,confirmText:We,onConfirm:Qe,onSnackbarClick:Xe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=Ye()(Ft.container,{[Ft.isDown]:Et}),Lt=Ye()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.a,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.a,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Xe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.a=Vt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var qe=Ve(8),Ye=Ve(25),We=Ve(39),Qe=Ve(29),Xe=Ve(284),ot=Ve(266),st=Ve(71),mt=Ve(2134),gt=Ve(91);class yt{constructor(ce){Object.assign(this,normalize(clone(ce))),this._isRendered=!1,this._revertData=null}render(){const ce=this._renderNode({intoFragment:!0});return this._isRendered=!0,ce}apply(ce){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:ce,isApplying:!0,revertData:this._revertData}),ce}revert(ce){if(!this._revertData)throw new qe.a("ui-template-revert-not-applied",[this,ce]);this._revertTemplateFromNode(ce,this._revertData)}*getViews(){yield*function*search(ce){if(ce.children)for(const ze of ce.children)isView(ze)?yield ze:isTemplate(ze)&&(yield*search(ze))}(this)}static bind(ce,ze){return{to:(Ve,qe)=>new vt({eventNameOrFunction:Ve,attribute:Ve,observable:ce,emitter:ze,callback:qe}),if:(Ve,qe,Ye)=>new wt({observable:ce,emitter:ze,attribute:Ve,valueIfTrue:qe,callback:Ye})}}static extend(ce,ze){if(ce._isRendered)throw new qe.a("template-extend-render",[this,ce]);extendTemplate(ce,normalize(clone(ze)))}_renderNode(ce){let ze;if(ze=ce.node?this.tag&&this.text:this.tag?this.text:!this.text,ze)throw new qe.a("ui-template-wrong-syntax",this);return this.text?this._renderText(ce):this._renderElement(ce)}_renderElement(ce){let ze=ce.node;return ze||(ze=ce.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(ce),this._renderElementChildren(ce),this._setUpListeners(ce),ze}_renderText(ce){let ze=ce.node;return ze?ce.revertData.text=ze.textContent:ze=ce.node=document.createTextNode(""),hasTemplateBinding(this.text)?this._bindToObservable({schema:this.text,updater:getTextUpdater(ze),data:ce}):ze.textContent=this.text.join(""),ze}_renderAttributes(ce){let ze,Ve,qe,Ye;if(!this.attributes)return;const We=ce.node,Qe=ce.revertData;for(ze in this.attributes)if(qe=We.getAttribute(ze),Ve=this.attributes[ze],Qe&&(Qe.attributes[ze]=qe),Ye=Object(st.a)(Ve[0])&&Ve[0].ns?Ve[0].ns:null,hasTemplateBinding(Ve)){const Xe=Ye?Ve[0].value:Ve;Qe&&shouldExtend(ze)&&Xe.unshift(qe),this._bindToObservable({schema:Xe,updater:getAttributeUpdater(We,ze,Ye),data:ce})}else"style"==ze&&"string"!=typeof Ve[0]?this._renderStyleAttribute(Ve[0],ce):(Qe&&qe&&shouldExtend(ze)&&Ve.unshift(qe),Ve=Ve.map((ce=>ce&&ce.value||ce)).reduce(((ce,ze)=>ce.concat(ze)),[]).reduce(arrayValueReducer,""),isFalsy(Ve)||We.setAttributeNS(Ye,ze,Ve))}_renderStyleAttribute(ce,ze){const Ve=ze.node;for(const qe in ce){const Ye=ce[qe];hasTemplateBinding(Ye)?this._bindToObservable({schema:[Ye],updater:getStyleUpdater(Ve,qe),data:ze}):Ve.style[qe]=Ye}}_renderElementChildren(ce){const ze=ce.node,Ve=ce.intoFragment?document.createDocumentFragment():ze,qe=ce.isApplying;let Ye=0;for(const We of this.children)if(isViewCollection(We)){if(!qe){We.setParent(ze);for(const ce of We)Ve.appendChild(ce.element)}}else if(isView(We))qe||(We.isRendered||We.render(),Ve.appendChild(We.element));else if(Object(ot.a)(We))Ve.appendChild(We);else if(qe){const ze={children:[],bindings:[],attributes:{}};ce.revertData.children.push(ze),We._renderNode({node:Ve.childNodes[Ye++],isApplying:!0,revertData:ze})}else Ve.appendChild(We.render());ce.intoFragment&&ze.appendChild(Ve)}_setUpListeners(ce){if(this.eventListeners)for(const ze in this.eventListeners){const Ve=this.eventListeners[ze].map((Ve=>{const[qe,Ye]=ze.split("@");return Ve.activateDomEventListener(qe,Ye,ce)}));ce.revertData&&ce.revertData.bindings.push(Ve)}}_bindToObservable(ce){let{schema:ze,updater:Ve,data:qe}=ce;const Ye=qe.revertData;syncValueSchemaValue(ze,Ve,qe);const We=ze.filter((ce=>!isFalsy(ce))).filter((ce=>ce.observable)).map((ce=>ce.activateAttributeListener(ze,Ve,qe)));Ye&&Ye.bindings.push(We)}_revertTemplateFromNode(ce,ze){for(const ce of ze.bindings)for(const ze of ce)ze();if(ze.text)ce.textContent=ze.text;else{for(const Ve in ze.attributes){const qe=ze.attributes[Ve];null===qe?ce.removeAttribute(Ve):ce.setAttribute(Ve,qe)}for(let Ve=0;VesyncValueSchemaValue(ce,ze,Ve);return this.emitter.listenTo(this.observable,"change:"+this.attribute,callback),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,callback)}}}class vt extends bt{activateDomEventListener(ce,ze,Ve){const callback=(ce,Ve)=>{ze&&!Ve.target.matches(ze)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(Ve):this.observable.fire(this.eventNameOrFunction,Ve))};return this.emitter.listenTo(Ve.node,ce,callback),()=>{this.emitter.stopListening(Ve.node,ce,callback)}}}class wt extends bt{getValue(ce){return!isFalsy(super.getValue(ce))&&(this.valueIfTrue||!0)}}function hasTemplateBinding(ce){return!!ce&&(ce.value&&(ce=ce.value),Array.isArray(ce)?ce.some(hasTemplateBinding):ce instanceof bt)}function getValueSchemaValue(ce,ze){return ce.map((ce=>ce instanceof bt?ce.getValue(ze):ce))}function syncValueSchemaValue(ce,ze,Ve){let{node:qe}=Ve,Ye=getValueSchemaValue(ce,qe);Ye=1==ce.length&&ce[0]instanceof wt?Ye[0]:Ye.reduce(arrayValueReducer,""),isFalsy(Ye)?ze.remove():ze.set(Ye)}function getTextUpdater(ce){return{set(ze){ce.textContent=ze},remove(){ce.textContent=""}}}function getAttributeUpdater(ce,ze,Ve){return{set(qe){ce.setAttributeNS(Ve,ze,qe)},remove(){ce.removeAttributeNS(Ve,ze)}}}function getStyleUpdater(ce,ze){return{set(Ve){ce.style[ze]=Ve},remove(){ce.style[ze]=null}}}function clone(ce){return Object(mt.a)(ce,(ce=>{if(ce&&(ce instanceof bt||isTemplate(ce)||isView(ce)||isViewCollection(ce)))return ce}))}function normalize(ce){if("string"==typeof ce?ce=normalizePlainTextDefinition(ce):ce.text&&normalizeTextDefinition(ce),ce.on&&(ce.eventListeners=normalizeListeners(ce.on),delete ce.on),!ce.text){ce.attributes&&normalizeAttributes(ce.attributes);const ze=[];if(ce.children)if(isViewCollection(ce.children))ze.push(ce.children);else for(const Ve of ce.children)isTemplate(Ve)||isView(Ve)||Object(ot.a)(Ve)?ze.push(Ve):ze.push(new yt(Ve));ce.children=ze}return ce}function normalizeAttributes(ce){for(const ze in ce)ce[ze].value&&(ce[ze].value=Object(gt.a)(ce[ze].value)),arrayify(ce,ze)}function normalizeListeners(ce){for(const ze in ce)arrayify(ce,ze);return ce}function normalizePlainTextDefinition(ce){return{text:[ce]}}function normalizeTextDefinition(ce){ce.text=Object(gt.a)(ce.text)}function arrayify(ce,ze){ce[ze]=Object(gt.a)(ce[ze])}function arrayValueReducer(ce,ze){return isFalsy(ze)?ce:isFalsy(ce)?ze:`${ce} ${ze}`}function extendObjectValueArray(ce,ze){for(const Ve in ze)ce[Ve]?ce[Ve].push(...ze[Ve]):ce[Ve]=ze[Ve]}function extendTemplate(ce,ze){if(ze.attributes&&(ce.attributes||(ce.attributes={}),extendObjectValueArray(ce.attributes,ze.attributes)),ze.eventListeners&&(ce.eventListeners||(ce.eventListeners={}),extendObjectValueArray(ce.eventListeners,ze.eventListeners)),ze.text&&ce.text.push(...ze.text),ze.children&&ze.children.length){if(ce.children.length!=ze.children.length)throw new qe.a("ui-template-extend-children-mismatch",ce);let Ve=0;for(const qe of ze.children)extendTemplate(ce.children[Ve++],qe)}}function isFalsy(ce){return!ce&&0!==ce}function isView(ce){return ce instanceof Qe.a}function isTemplate(ce){return ce instanceof yt}function isViewCollection(ce){return ce instanceof Xe.a}function shouldExtend(ce){return"class"==ce||"style"==ce}},function(ce,ze){ce.exports={}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(8);class Ye{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.offsetSize)throw new qe.a("model-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.offsetSize)throw new qe.a("model-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(ce){return"$textProxy"===ce||"model:$textProxy"===ce||"textProxy"===ce||"model:textProxy"===ce}getPath(){const ce=this.textNode.getPath();return ce.length>0&&(ce[ce.length-1]+=this.offsetInText),ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}hasAttribute(ce){return this.textNode.hasAttribute(ce)}getAttribute(ce){return this.textNode.getAttribute(ce)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _insert})),Ve.d(ze,"d",(function(){return _remove})),Ve.d(ze,"b",(function(){return _move})),Ve.d(ze,"e",(function(){return _setAttribute})),Ve.d(ze,"c",(function(){return _normalizeNodes}));var qe=Ve(225),Ye=Ve(64),We=Ve(134),Qe=Ve(16),Xe=Ve(203),ot=Ve(233),st=Ve(8);function _insert(ce,ze){const Ve=(ze=_normalizeNodes(ze)).reduce(((ce,ze)=>ce+ze.offsetSize),0),qe=ce.parent;_splitNodeAtPosition(ce);const Ye=ce.index;return qe._insertChild(Ye,ze),_mergeNodesAtIndex(qe,Ye+ze.length),_mergeNodesAtIndex(qe,Ye),new Qe.a(ce,ce.getShiftedBy(Ve))}function _remove(ce){if(!ce.isFlat)throw new st.a("operation-utils-remove-range-not-flat",this);const ze=ce.start.parent;_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);const Ve=ze._removeChildren(ce.start.index,ce.end.index-ce.start.index);return _mergeNodesAtIndex(ze,ce.start.index),Ve}function _move(ce,ze){if(!ce.isFlat)throw new st.a("operation-utils-move-range-not-flat",this);const Ve=_remove(ce);return _insert(ze=ze._getTransformedByDeletion(ce.start,ce.end.offset-ce.start.offset),Ve)}function _setAttribute(ce,ze,Ve){_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);for(const qe of ce.getItems({shallow:!0})){const ce=qe.is("$textProxy")?qe.textNode:qe;null!==Ve?ce._setAttribute(ze,Ve):ce._removeAttribute(ze),_mergeNodesAtIndex(ce.parent,ce.index)}_mergeNodesAtIndex(ce.end.parent,ce.end.index)}function _normalizeNodes(ce){const ze=[];ce instanceof Array||(ce=[ce]);for(let Ve=0;Ve{const ce=this.editor.editing.view,ze=ce.document.selection.editableElement;return ze?ce.domConverter.mapViewToDom(ze.root):null},this.set("visibleView",null),this.view=new Ye.a(ce.locale),ce.ui.view.body.add(this.view),ce.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(ce){return Array.from(this._viewToStack.keys()).includes(ce)}add(ce){if(this.hasView(ce.view))throw new Xe.a("contextualballoon-add-view-exist",[this,ce]);const ze=ce.stackId||"main";if(!this._idToStack.has(ze))return this._idToStack.set(ze,new Map([[ce.view,ce]])),this._viewToStack.set(ce.view,this._idToStack.get(ze)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!ce.singleViewMode||this.showStack(ze));const Ve=this._idToStack.get(ze);ce.singleViewMode&&this.showStack(ze),Ve.set(ce.view,ce),this._viewToStack.set(ce.view,Ve),Ve===this._visibleStack&&this._showView(ce)}remove(ce){if(!this.hasView(ce))throw new Xe.a("contextualballoon-remove-view-not-exist",[this,ce]);const ze=this._viewToStack.get(ce);this._singleViewMode&&this.visibleView===ce&&(this._singleViewMode=!1),this.visibleView===ce&&(1===ze.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(ze.values())[ze.size-2])),1===ze.size?(this._idToStack.delete(this._getStackId(ze)),this._numberOfStacks=this._idToStack.size):ze.delete(ce),this._viewToStack.delete(ce)}updatePosition(ce){ce&&(this._visibleStack.get(this.visibleView).position=ce),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(ce){this.visibleStack=ce;const ze=this._idToStack.get(ce);if(!ze)throw new Xe.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==ze&&this._showView(Array.from(ze.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(ce){return Array.from(this._idToStack.entries()).find((ze=>ze[1]===ce))[0]}_showNextStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)+1;ce[ze]||(ze=0),this.showStack(this._getStackId(ce[ze]))}_showPrevStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)-1;ce[ze]||(ze=ce.length-1),this.showStack(this._getStackId(ce[ze]))}_createRotatorView(){const ce=new bt(this.editor.locale),ze=this.editor.locale.t;return this.view.content.add(ce),ce.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>1)),ce.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),ce.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((ce,Ve)=>{if(Ve<2)return"";const qe=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return ze("%0 of %1",[qe,Ve])})),ce.buttonNextView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),ce.buttonPrevView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),ce}_createFakePanelsView(){const ce=new vt(this.editor.locale,this.view);return ce.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>=2?Math.min(ce-1,2):0)),ce.listenTo(this.view,"change:top",(()=>ce.updatePosition())),ce.listenTo(this.view,"change:left",(()=>ce.updatePosition())),this.editor.ui.view.body.add(ce),ce}_showView(ce){let{view:ze,balloonClassName:Ve="",withArrow:qe=!0,singleViewMode:Ye=!1}=ce;this.view.class=Ve,this.view.withArrow=qe,this._rotatorView.showView(ze),this.visibleView=ze,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),Ye&&(this._singleViewMode=!0)}_getBalloonPosition(){let ce=Array.from(this._visibleStack.values()).pop().position;return ce&&(ce.limiter||(ce=Object.assign({},ce,{limiter:this.positionLimiter})),ce=Object.assign({},ce,{viewportOffsetConfig:this.editor.ui.viewportOffset})),ce}}class bt extends We.a{constructor(ce){super(ce);const ze=ce.t,Ve=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ot.a,this.buttonPrevView=this._createButtonView(ze("Previous"),''),this.buttonNextView=this._createButtonView(ze("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",Ve.to("isNavigationVisible",(ce=>ce?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:Ve.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(ce){this.hideView(),this.content.add(ce)}hideView(){this.content.clear()}_createButtonView(ce,ze){const Ve=new Qe.a(this.locale);return Ve.set({label:ce,icon:ze,tooltip:!0}),Ve}}class vt extends We.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=ze,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",Ve.to("numberOfPanels",(ce=>ce?"":"ck-hidden"))],style:{top:Ve.to("top",gt),left:Ve.to("left",gt),width:Ve.to("width",gt),height:Ve.to("height",gt)}},children:this.content}),this.on("change:numberOfPanels",((ce,ze,Ve,qe)=>{Ve>qe?this._addPanels(Ve-qe):this._removePanels(qe-Ve),this.updatePosition()}))}_addPanels(ce){for(;ce--;){const ce=new We.a;ce.setTemplate({tag:"div"}),this.content.add(ce),this.registerChild(ce)}}_removePanels(ce){for(;ce--;){const ce=this.content.last;this.content.remove(ce),this.deregisterChild(ce),ce.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:ce,left:ze}=this._balloonPanelView,{width:Ve,height:qe}=new mt.a(this._balloonPanelView.element);Object.assign(this,{top:ce,left:ze,width:Ve,height:qe})}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var qe=Ve(8),Ye=Ve(41),We=Ve(24),Qe=Ve(25),Xe=Ve(39),ot=Ve(177),st=Ve(452),mt=Ve(99),gt=Ve(670);class yt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(ce,ze,Ve)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.end:ce.start).clone()}get focus(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.start:ce.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const ce of this._ranges)yield ce.clone()}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?ce.clone():null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?ce.clone():null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}isEqual(ce){if(this.isFake!=ce.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=ce.fakeSelectionLabel)return!1;if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const qe of ce._ranges)if(ze.isEqual(qe)){Ve=!0;break}if(!Ve)return!1}return!0}isSimilar(ce){if(this.isBackward!=ce.isBackward)return!1;const ze=Object(st.a)(this.getRanges());if(ze!=Object(st.a)(ce.getRanges()))return!1;if(0==ze)return!0;for(let ze of this.getRanges()){ze=ze.getTrimmed();let Ve=!1;for(let qe of ce.getRanges())if(qe=qe.getTrimmed(),ze.start.isEqual(qe.start)&&ze.end.isEqual(qe.end)){Ve=!0;break}if(!Ve)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]),this._setFakeOptions(ze);else if(ce instanceof yt||ce instanceof gt.a)this._setRanges(ce.getRanges(),ce.isBackward),this._setFakeOptions({fake:ce.isFake,label:ce.fakeSelectionLabel});else if(ce instanceof Ye.a)this._setRanges([ce],ze&&ze.backward),this._setFakeOptions(ze);else if(ce instanceof We.a)this._setRanges([new Ye.a(ce)]),this._setFakeOptions(ze);else if(ce instanceof ot.a){const Qe=!!Ve&&!!Ve.backward;let Xe;if(void 0===ze)throw new qe.a("view-selection-setto-required-second-parameter",this);Xe="in"==ze?Ye.a._createIn(ce):"on"==ze?Ye.a._createOn(ce):new Ye.a(We.a._createAt(ce,ze)),this._setRanges([Xe],Qe),this._setFakeOptions(Ve)}else{if(!Object(mt.a)(ce))throw new qe.a("view-selection-setto-not-selectable",this);this._setRanges(ce,ze&&ze.backward),this._setFakeOptions(ze)}this.fire("change")}setFocus(ce,ze){if(null===this.anchor)throw new qe.a("view-selection-setfocus-no-ranges",this);const Ve=We.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Qe=this.anchor;this._ranges.pop(),"before"==Ve.compareWith(Qe)?this._addRange(new Ye.a(Ve,Qe),!0):this._addRange(new Ye.a(Qe,Ve)),this.fire("change")}is(ce){return"selection"===ce||"view:selection"===ce}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce=Array.from(ce),this._ranges=[];for(const ze of ce)this._addRange(ze);this._lastRangeBackward=!!ze}_setFakeOptions(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!ce.fake,this._fakeSelectionLabel=ce.fake&&ce.label||""}_addRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(ce instanceof Ye.a))throw new qe.a("view-selection-add-range-not-range",this);this._pushRange(ce),this._lastRangeBackward=!!ze}_pushRange(ce){for(const ze of this._ranges)if(ce.isIntersecting(ze))throw new qe.a("view-selection-range-intersects",this,{addedRange:ce,intersectingRange:ze});this._ranges.push(new Ye.a(ce.start,ce.end))}}Object(Qe.a)(yt,Xe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(141),Ye=Object.prototype,We=Ye.hasOwnProperty,Qe=Ye.toString,Xe=qe.a?qe.a.toStringTag:void 0;var ot=function getRawTag(ce){var ze=We.call(ce,Xe),Ve=ce[Xe];try{ce[Xe]=void 0;var qe=!0}catch(ce){}var Ye=Qe.call(ce);return qe&&(ze?ce[Xe]=Ve:delete ce[Xe]),Ye},st=Object.prototype.toString;var mt=function objectToString(ce){return st.call(ce)},gt=qe.a?qe.a.toStringTag:void 0;ze.a=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":gt&> in Object(ce)?ot(ce):mt(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(102).a.Symbol;ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(100),Ye=Ve(16);class We extends qe.a{constructor(ce,ze,Ve,qe,Ye,We){super(We),this.name=ce,this.oldRange=ze?ze.clone():null,this.newRange=Ve?Ve.clone():null,this.affectsData=Ye,this._markers=qe}get type(){return"marker"}clone(){return new We(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new We(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const ce=this.newRange?"_set":"_remove";this._markers[ce](this.name,this.newRange,!0,this.affectsData)}toJSON(){const ce=super.toJSON();return this.oldRange&&(ce.oldRange=this.oldRange.toJSON()),this.newRange&&(ce.newRange=this.newRange.toJSON()),delete ce._markers,ce}static get className(){return"MarkerOperation"}static fromJSON(ce,ze){return new We(ce.name,ce.oldRange?Ye.a.fromJSON(ce.oldRange,ze):null,ce.newRange?Ye.a.fromJSON(ce.newRange,ze):null,ze.model.markers,ce.affectsData,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,qe){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=qe}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(531);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot=Ve(54),st={light:"light--sIP-5Qwa5q",active:"active--sXemXw2Qwc",dark:"dark--xYyuCCDK+V",button:"button--khYx3QkOpe",small:"small--FUEay96ywu","dropdown-icon":"dropdown-icon--MHPrKPeco7",dropdownIcon:"dropdown-icon--MHPrKPeco7",primary:"primary--zM+CgXsiFl",success:"success--PQcKXlXHns",icon:"icon--VcgD+pEhPf",label:"label--fUixqmarb0",loader:"loader--n2-DH-Na9-"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:qe,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Qe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return Ye.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},qe&&Ye.a.createElement(ot.a,{className:st.loader,size:20}),mt&&Ye.a.createElement(Xe.a,{className:st.icon,name:mt}),Dt&&bt&&Ye.a.createElement("span",{className:st.label},Dt),We&&Ye.a.createElement(Xe.a,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--vxiw6RdICb",grow:"grow--Meqa2l-5aJ"};class yt extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>{if(ce)return Ye.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,qe=Qe()(gt.controls,gt[Ve],{[gt.grow]:ze});return Ye.a.createElement("div",{className:qe},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(118),Lt={popover:"popover--WRQklfYLLA","content-container":"content-container--wS9enW+rLG",contentContainer:"content-container--wS9enW+rLG",light:"light--GRmhCwDE4G",dark:"dark--jlzKPnRYJ-"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ft=Object(Et.b)((xt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:qe,skin:We,label:Xe,disabled:ot,loading:st,showText:gt}=this.props,yt=Qe()(ze,Lt.popover,{[Lt[qe]]:qe});return Ye.a.createElement("div",{className:yt},Ye.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Xe:void 0,loading:st,onClick:this.handleButtonClick,size:qe,skin:We}),Ye.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>Ye.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},Ye.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Vt={light:"light--AnfEC9D-F9",dark:"dark--UjppsdydBV",option:"option--fwvOtf7JVC","is-selected":"is-selected--RrPbiNNb6J",isSelected:"is-selected--RrPbiNNb6J",small:"small--verMqRjrCG","selected-icon":"selected-icon--N6yQgYAAvO",selectedIcon:"selected-icon--N6yQgYAAvO"};class Ht extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:qe,disabled:We}=this.props,ot=Qe()(Vt.option,Vt[ce],{[Vt[ze]]:ze,[Vt.isSelected]:qe});return Ye.a.createElement("li",{className:ot},Ye.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},qe&&Ye.a.createElement(Xe.a,{className:Vt.selectedIcon,name:"su-check"}),Ve))}}var Ut,Wt,Jt={light:"light--n-NqhyBRhp",dark:"dark--G6tXOkw8SX","option-list":"option-list--Z70859x8dX",optionList:"option-list--Z70859x8dX","is-open":"is-open--M7yGocMOQP",isOpen:"is-open--M7yGocMOQP",small:"small--oVodjqoXri"};class Qt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:qe}=this.props,We=Qe()(Jt.optionList,Jt[qe],{[Jt[ce]]:ce});return Ye.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Qe=!!Ve.value&&Ve.value===ze;return Ye.a.createElement(Ht,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Qe,size:ce,skin:qe,value:Ve})})))}}let en=Object(Et.b)((Wt=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:qe,options:We,disabled:Qe,loading:Xe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return Ye.a.createElement(Bt,{disabled:Qe||st,icon:ce,label:ot?qe:void 0,loading:Xe,size:ze,skin:Ve},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Wt.defaultProps={showText:!0},Ut=Wt))||Ut;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(51),En=Ve.n(Sn),Tn={light:"light--SpEaKbwYt0",dark:"dark--1xo8QwQMYF","items-container":"items-container--RYTngep9Z5",itemsContainer:"items-container--RYTngep9Z5",items:"items--AVi3ArRNHt"};function Items_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ln=Object(Et.b)((wn=class extends Ye.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Tn.items,Tn[ce]);return Ye.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},Ye.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&Ye.a.Children.map(ze,((ze,Ve)=>ze&&Ye.a.createElement("li",{key:Ve},Ye.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--S0ashf9NJL",light:"light--Bvi6l6hQO1",dark:"dark--TOdA+DUs1z",controls:"controls--NctgvZTU2f",icons:"icons--DuTBbkeFt6",icon:"icon--oWUnqRUEMW"};class Un extends Ye.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Yn.icons,Yn[ce]);return Ye.a.createElement("div",{className:Ve},Ye.a.Children.map(ze,(ce=>Ye.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Gn,Kn,Jn,Zn=Ve(162);class Xn extends Ye.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:qe,skin:We,value:Qe}=this.props;return Ye.a.createElement(mt,{disabled:ce,loading:Ve,onClick:qe,skin:We},Ye.a.createElement(Zn.a,{checked:Qe,onChange:qe},ze))}}let ei=Object(Et.b)((Jn=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:qe,loading:We,options:Qe,showText:Xe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:qe;return Ye.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Xe?gt:void 0,loading:We,size:ot,skin:st},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Qe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Kn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Kn.prototype,"selectedOption"),Kn.prototype),Gn=Kn))||Gn;var si=ei,_i={toolbar:"toolbar--NUq57tQPDc",light:"light--tsWyh-QhSE",dark:"dark--6AbVStcDf5",controls:"controls--c4co3UZUf1"};class Ri extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Qe()(_i.toolbar,_i[ze]);return Ye.a.createElement("nav",{className:Ve},Ri.createChildren(ce,ze))}}Ri.defaultProps={skin:"light"},Ri.Button=mt,Ri.Controls=yt,Ri.Dropdown=Cn,Ri.Icons=Un,Ri.Items=Fn,Ri.Popover=Bt,Ri.Select=si,Ri.Toggler=Xn;ze.a=Ri},function(ce,ze){var Ve;Ve=function(){return this}();try{Ve=Ve||new Function("return this")()}catch(ce){"object"==typeof window&&(Ve=window)}ce.exports=Ve},function(ce,ze,Ve){"use strict";var qe=Ve(121),Ye=String,We=TypeError;ce.exports=function(ce){if(qe(ce))return ce;throw new We(Ye(ce)+" is not an object")}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(740);qe({target:"RegExp",proto:!0,forced:/./.exec!==Ye},{exec:Ye})},function(ce,ze,Ve){"use strict";var qe=Ve(470),Ye=String;ce.exports=function(ce){if("Symbol"===qe(ce))throw new TypeError("Cannot convert a Symbol value to a string");return Ye(ce)}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(598);ze.default=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(39),Ye=Ve(114),We=Ve(266),Qe=Ve(413),Xe=Ve(722);const ot=Object(Xe.a)({},qe.c,{listenTo(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Object(We.a)(ce)||Object(Qe.a)(ce)){const qe={capture:!!Ye.useCapture,passive:!!Ye.usePassive},We=this._getProxyEmitter(ce,qe)||new st(ce,qe);this.listenTo(We,ze,Ve,Ye)}else qe.c.listenTo.call(this,ce,ze,Ve,Ye)},stopListening(ce,ze,Ve){if(Object(We.a)(ce)||Object(Qe.a)(ce)){const qe=this._getAllProxyEmitters(ce);for(const ce of qe)this.stopListening(ce,ze,Ve)}else qe.c.stopListening.call(this,ce,ze,Ve)},_getProxyEmitter(ce,ze){return Object(qe.a)(this,getProxyEmitterId(ce,ze))},_getAllProxyEmitters(ce){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((ze=>this._getProxyEmitter(ce,ze))).filter((ce=>!!ce))}});ze.a=ot;class st{constructor(ce,ze){Object(qe.b)(this,getProxyEmitterId(ce,ze)),this._domNode=ce,this._options=ze}}function getNodeUID(ce){return ce["data-ck-expando"]||(ce["data-ck-expando"]=Object(Ye.a)())}function getProxyEmitterId(ce,ze){let Ve=getNodeUID(ce);for(const ce of Object.keys(ze).sort())ze[ce]&&(Ve+="-"+ce);return Ve}Object(Xe.a)(st.prototype,qe.c,{attach(ce){if(this._domListeners&&this._domListeners[ce])return;const ze=this._createDomListener(ce);this._domNode.addEventListener(ce,ze,this._options),this._domListeners||(this._domListeners={}),this._domListeners[ce]=ze},detach(ce){let ze;!this._domListeners[ce]||(ze=this._events[ce])&&ze.callbacks.length||this._domListeners[ce].removeListener()},_addEventListener(ce,ze,Ve){this.attach(ce),qe.c._addEventListener.call(this,ce,ze,Ve)},_removeEventListener(ce,ze){qe.c._removeEventListener.call(this,ce,ze),this.detach(ce)},_createDomListener(ce){const domListener=ze=>{this.fire(ce,ze)};return domListener.removeListener=()=>{this._domNode.removeEventListener(ce,domListener,this._options),delete this._domListeners[ce]},domListener}})},function(ce,ze,Ve){"use strict";function toUnit(ce){return ze=>ze+ce}Ve.d(ze,"a",(function(){return toUnit}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(151),Ye=Ve(37);class We{constructor(){this._listener=Object.create(qe.a)}listenTo(ce){this._listener.listenTo(ce,"keydown",((ce,ze)=>{this._listener.fire("_keydown:"+Object(Ye.a)(ze),ze)}))}set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=Object(Ye.g)(ce),We=Ve.priority;this._listener.listenTo(this._listener,"_keydown:"+qe,((ce,Ve)=>{ze(Ve,(()=>{Ve.preventDefault(),Ve.stopPropagation(),ce.stop()})),ce.return=!0}),{priority:We})}press(ce){return!!this._listener.fire("_keydown:"+Object(Ye.a)(ce),ce)}destroy(){this._listener.stopListening()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(18);class Ye extends qe.a{constructor(ce,ze){super(ce),this.attributeKey=ze}refresh(){const ce=this.editor.model,ze=ce.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=ce.schema.checkAttributeInSelection(ze.selection,this.attributeKey)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document.selection,qe=void 0===ce.forceValue?!this.value:ce.forceValue;ze.change((ce=>{if(Ve.isCollapsed)qe?ce.setSelectionAttribute(this.attributeKey,!0):ce.removeSelectionAttribute(this.attributeKey);else{const Ye=ze.schema.getValidRanges(Ve.getRanges(),this.attributeKey);for(const ze of Ye)qe?ce.setAttribute(this.attributeKey,qe,ze):ce.removeAttribute(this.attributeKey,ze)}}))}_getValueFromFirstAllowedNode(){const ce=this.editor.model,ze=ce.schema,Ve=ce.document.selection;if(Ve.isCollapsed)return Ve.hasAttribute(this.attributeKey);for(const ce of Ve.getRanges())for(const Ve of ce.getItems())if(ze.checkAttribute(Ve,this.attributeKey))return Ve.hasAttribute(this.attributeKey);return!1}}},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(388),We=Ve(102).a["__core-js_shared__"],Qe=(qe=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"";var Xe=function isMasked(ce){return!!Qe&&Qe in ce},ot=Ve(71),st=Ve(267),mt=/^\[object .+?Constructor\]$/,gt=Function.prototype,yt=Object.prototype,bt=gt.toString,vt=yt.hasOwnProperty,wt=RegExp("^"+bt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=function baseIsNative(ce){return!(!Object(ot.a)(ce)||Xe(ce))&&(Object(Ye.a)(ce)?wt:mt).test(Object(st.a)(ce))};var Dt=function getValue(ce,ze){return null==ce?void 0:ce[ze]};ze.a=function getNative(ce,ze){var Ve=Dt(ce,ze);return Ct(Ve)?Ve:void 0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(64),Ye=Ve(134),We=Ve(57),Qe=Ve(20),Xe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Xe.a("model-tree-walker-no-start-position",null);const ze=ce.direction||"forward";if("forward"!=ze&&"backward"!=ze)throw new Xe.a("model-tree-walker-unknown-direction",ce,{direction:ze});this.direction=ze,this.boundaries=ce.boundaries||null,ce.startPosition?this.position=ce.startPosition.clone():this.position=Qe.a._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(ce){let ze,Ve,qe,Ye;do{qe=this.position,Ye=this._visitedParent,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=qe,this._visitedParent=Ye)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const ce=this.position,ze=this.position.clone(),Ve=this._visitedParent;if(null===Ve.parent&&ze.offset===Ve.maxOffset)return{done:!0};if(Ve===this._boundaryEndParent&&ze.offset==this.boundaries.end.offset)return{done:!0};const Xe=Object(Qe.d)(ze,Ve),ot=Xe||Object(Qe.b)(ze,Ve,Xe);if(ot instanceof We.a)return this.shallow?ze.offset++:(ze.path.push(0),this._visitedParent=ot),this.position=ze,formatReturnValue("elementStart",ot,ce,ze,1);if(ot instanceof qe.a){let qe;if(this.singleCharacters)qe=1;else{let ce=ot.endOffset;this._boundaryEndParent==Ve&&this.boundaries.end.offsetce&&(ce=this.boundaries.start.offset),qe=ze.offset-ce}const We=ze.offset-st.startOffset,Qe=new Ye.a(st,We-qe,qe);return ze.offset-=qe,this.position=ze,formatReturnValue("text",Qe,ce,ze,qe)}return ze.path.pop(),this.position=ze,this._visitedParent=Ve.parent,formatReturnValue("elementStart",Ve,ce,ze,1)}}function formatReturnValue(ce,ze,Ve,qe,Ye){return{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:qe,length:Ye}}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,qe){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=qe}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(741),Ye=Ve(273),We=Ve(1163);qe||Ye(Object.prototype,"toString",We,{unsafe:!0})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(748);qe({target:"String",proto:!0,forced:Ve(749)("small")},{small:function small(){return Ye(this,"small","","")}})},function(ce,ze){var Ve=Array.isArray;ce.exports=Ve},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=qe,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Xe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Qe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},Ye=_applyDecoratedDescriptor(qe.prototype,"item",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"loadItem"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(403),Qe="toggler--LUfal72QUV";class Xe extends Ye.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Xe,onChange:ot}=this.props;return Ye.a.createElement(We.a,{checked:qe,className:Qe,disabled:ce,name:ze,onChange:ot,value:Ve},Xe)}}Xe.defaultProps={checked:!1,disabled:!1};ze.a=Xe},function(ce,ze,Ve){"use strict";var qe=Ve(544);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe={colSpan:"colSpan--b4FhkUFdKS","colSpan-1":"colSpan-1--QjnSf17bQX",colSpan1:"colSpan-1--QjnSf17bQX","colSpan-2":"colSpan-2--V8TA-HmaiL",colSpan2:"colSpan-2--V8TA-HmaiL","colSpan-3":"colSpan-3--1PTmRyYpJx",colSpan3:"colSpan-3--1PTmRyYpJx","colSpan-4":"colSpan-4--3an4amaXHo",colSpan4:"colSpan-4--3an4amaXHo","colSpan-5":"colSpan-5--PDYQuG-9MI",colSpan5:"colSpan-5--PDYQuG-9MI","colSpan-6":"colSpan-6--Rv5phpjWGz",colSpan6:"colSpan-6--Rv5phpjWGz","colSpan-7":"colSpan-7--Bulg91xlr7",colSpan7:"colSpan-7--Bulg91xlr7","colSpan-8":"colSpan-8--5U1X+zkOYr",colSpan8:"colSpan-8--5U1X+zkOYr","colSpan-9":"colSpan-9--9z0i8EJAUz",colSpan9:"colSpan-9--9z0i8EJAUz","colSpan-10":"colSpan-10--MY6g21iWYD",colSpan10:"colSpan-10--MY6g21iWYD","colSpan-11":"colSpan-11--9i9wveDBUm",colSpan11:"colSpan-11--9i9wveDBUm","colSpan-12":"colSpan-12--gBqZ8Ux+5o",colSpan12:"colSpan-12--gBqZ8Ux+5o","space-before-1":"space-before-1--2MiMMSEbJT",spaceBefore1:"space-before-1--2MiMMSEbJT","space-before-2":"space-before-2--O6k5Tr4FRn",spaceBefore2:"space-before-2--O6k5Tr4FRn","space-before-3":"space-before-3--oYdQNFcPP5",spaceBefore3:"space-before-3--oYdQNFcPP5","space-before-4":"space-before-4--DH4uldKbBJ",spaceBefore4:"space-before-4--DH4uldKbBJ","space-before-5":"space-before-5--yUg5tJyn1v",spaceBefore5:"space-before-5--yUg5tJyn1v","space-before-6":"space-before-6--jluPdxPrMu",spaceBefore6:"space-before-6--jluPdxPrMu","space-before-7":"space-before-7--98GSfGN+vr",spaceBefore7:"space-before-7--98GSfGN+vr","space-before-8":"space-before-8--zmEnby3AKl",spaceBefore8:"space-before-8--zmEnby3AKl","space-before-9":"space-before-9--mqJfvWH6s7",spaceBefore9:"space-before-9--mqJfvWH6s7","space-before-10":"space-before-10--0+DNj5NBp5",spaceBefore10:"space-before-10--0+DNj5NBp5","space-before-11":"space-before-11--vhhqGQirZq",spaceBefore11:"space-before-11--vhhqGQirZq","space-before-12":"space-before-12--jkC+Q-nWI4",spaceBefore12:"space-before-12--jkC+Q-nWI4","space-after-1":"space-after-1--4uKvcUoEt7",spaceAfter1:"space-after-1--4uKvcUoEt7","space-after-2":"space-after-2--ycuSmTHB2e",spaceAfter2:"space-after-2--ycuSmTHB2e","space-after-3":"space-after-3--vCTchL8yx1",spaceAfter3:"space-after-3--vCTchL8yx1","space-after-4":"space-after-4--g+LmJaswtl",spaceAfter4:"space-after-4--g+LmJaswtl","space-after-5":"space-after-5--Bul94E+g-e",spaceAfter5:"space-after-5--Bul94E+g-e","space-after-6":"space-after-6--ZAUFaYD9ds",spaceAfter6:"space-after-6--ZAUFaYD9ds","space-after-7":"space-after-7--hsrsx80Ekk",spaceAfter7:"space-after-7--hsrsx80Ekk","space-after-8":"space-after-8--sA4+8OYXsd",spaceAfter8:"space-after-8--sA4+8OYXsd","space-after-9":"space-after-9--PYnYabCTju",spaceAfter9:"space-after-9--PYnYabCTju","space-after-10":"space-after-10--FnaWHrGmeA",spaceAfter10:"space-after-10--FnaWHrGmeA","space-after-11":"space-after-11--0yoj6Kr6OO",spaceAfter11:"space-after-11--0yoj6Kr6OO","space-after-12":"space-after-12--AkIyf5Rxr1",spaceAfter12:"space-after-12--AkIyf5Rxr1"};class ot extends Ye.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:qe,spaceBefore:We}=this.props,ot=Qe()(Ve,Xe.colSpan,Xe["colSpan-"+ce],Xe["space-before-"+We],Xe["space-after-"+qe]);return Ye.a.createElement("div",{className:ot},ze)}}var st="item--I4aHBBhFja";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze=51||!Ye((function(){var ce=[];return ce[wt]=!1,ce.concat()[0]!==ce})),isConcatSpreadable=function(ce){if(!Qe(ce))return!1;var ze=ce[wt];return void 0!==ze?!!ze:We(ce)};qe({target:"Array",proto:!0,arity:1,forced:!Ct||!yt("concat")},{concat:function concat(ce){var ze,Ve,qe,Ye,We,Qe=Xe(this),yt=gt(Qe,0),bt=0;for(ze=-1,qe=arguments.length;ze0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),qe=ce.getAncestors(ze);let Ye=0;for(;Ve[Ye]==qe[Ye]&&Ve[Ye];)Ye++;return 0===Ye?null:Ve[Ye-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),qe=Object(Qe.a)(ze,Ve);switch(qe){case"prefix":return!0;case"extension":return!1;default:return ze[qe]1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve"string"==typeof ze?new qe.a(ce,ze):ze instanceof Ye.a?new qe.a(ce,ze.data):ze)))}Object(We.a)(ot,Xe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(718),Ye=Ve(71),We=Ve(395);var Qe=function nativeKeysIn(ce){var ze=[];if(null!=ce)for(var Ve in Object(ce))ze.push(Ve);return ze},Xe=Object.prototype.hasOwnProperty;var ot=function baseKeysIn(ce){if(!Object(Ye.a)(ce))return Qe(ce);var ze=Object(We.a)(ce),Ve=[];for(var qe in ce)("constructor"!=qe||!ze&&Xe.call(ce,qe))&&Ve.push(qe);return Ve},st=Ve(174);ze.a=function keysIn(ce){return Object(st.a)(ce)?Object(qe.a)(ce,!0):ot(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return generatePositions}));var qe=Ve(29),Ye=Ve(406),We=Ve(334),Qe=Ve(152),Xe=Ve(77),ot=Ve(1093);const st=Object(Qe.a)("px"),mt=Xe.a.document.body;class gt extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",ze.to("position",(ce=>`ck-balloon-panel_${ce}`)),ze.if("isVisible","ck-balloon-panel_visible"),ze.if("withArrow","ck-balloon-panel_with-arrow"),ze.to("class")],style:{top:ze.to("top",st),left:ze.to("left",st)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(ce){this.show();const ze=gt.defaultPositions,Ve=Object.assign({},{element:this.element,positions:[ze.southArrowNorth,ze.southArrowNorthMiddleWest,ze.southArrowNorthMiddleEast,ze.southArrowNorthWest,ze.southArrowNorthEast,ze.northArrowSouth,ze.northArrowSouthMiddleWest,ze.northArrowSouthMiddleEast,ze.northArrowSouthWest,ze.northArrowSouthEast,ze.viewportStickyNorth],limiter:mt,fitInViewport:!0},ce),qe=gt._getOptimalPosition(Ve),Ye=parseInt(qe.left),We=parseInt(qe.top),{name:Qe,config:Xe={}}=qe,{withArrow:ot=!0}=Xe;Object.assign(this,{top:We,left:Ye,position:Qe,withArrow:ot})}pin(ce){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(ce):this._stopPinning()},this._startPinning(ce),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(ce){this.attachTo(ce);const ze=getDomElement(ce.target),Ve=ce.limiter?getDomElement(ce.limiter):mt;this.listenTo(Xe.a.document,"scroll",((qe,Ye)=>{const We=Ye.target,Qe=ze&&We.contains(ze),Xe=Ve&&We.contains(Ve);!Qe&&!Xe&&ze&&Ve||this.attachTo(ce)}),{useCapture:!0}),this.listenTo(Xe.a.window,"resize",(()=>{this.attachTo(ce)}))}_stopPinning(){this.stopListening(Xe.a.document,"scroll"),this.stopListening(Xe.a.window,"resize")}}function getDomElement(ce){return Object(ot.a)(ce)?ce:Object(We.a)(ce)?ce.commonAncestorContainer:"function"==typeof ce?getDomElement(ce()):null}function generatePositions(){let{horizontalOffset:ce=gt.arrowHorizontalOffset,verticalOffset:ze=gt.arrowVerticalOffset,stickyVerticalOffset:Ve=gt.stickyVerticalOffset,config:qe}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{northWestArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-ce,name:"arrow_sw",...qe&&{config:qe}}),northWestArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northWestArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northWestArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northWestArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),northArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-ce,name:"arrow_sw",...qe&&{config:qe}}),northArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left+ce.width/2-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),northEastArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-ce,name:"arrow_sw",...qe&&{config:qe}}),northEastArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.25*Ve.width-ce,name:"arrow_smw",...qe&&{config:qe}}),northEastArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.right-ze.width/2,name:"arrow_s",...qe&&{config:qe}}),northEastArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.75*Ve.width+ce,name:"arrow_sme",...qe&&{config:qe}}),northEastArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-Ve.width+ce,name:"arrow_se",...qe&&{config:qe}}),southWestArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-ce,name:"arrow_nw",...qe&&{config:qe}}),southWestArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southWestArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southWestArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southWestArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),southArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-ce,name:"arrow_nw",...qe&&{config:qe}}),southArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left+ce.width/2-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),southEastArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-ce,name:"arrow_nw",...qe&&{config:qe}}),southEastArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.25*Ve.width-ce,name:"arrow_nmw",...qe&&{config:qe}}),southEastArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.right-ze.width/2,name:"arrow_n",...qe&&{config:qe}}),southEastArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.75*Ve.width+ce,name:"arrow_nme",...qe&&{config:qe}}),southEastArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-Ve.width+ce,name:"arrow_ne",...qe&&{config:qe}}),viewportStickyNorth:(ce,ze,Ye)=>ce.getIntersection(Ye)?{top:Ye.top+Ve,left:ce.left+ce.width/2-ze.width/2,name:"arrowless",config:{withArrow:!1,...qe}}:null};function getNorthTop(ce,Ve){return ce.top-Ve.height-ze}function getSouthTop(ce){return ce.bottom+ze}}gt.arrowHorizontalOffset=25,gt.arrowVerticalOffset=10,gt.stickyVerticalOffset=20,gt._getOptimalPosition=Ye.a,gt.defaultPositions=generatePositions()},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(8);class Ye{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.data.length)throw new qe.a("view-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.data.length)throw new qe.a("view-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(ce){return"$textProxy"===ce||"view:$textProxy"===ce||"textProxy"===ce||"view:textProxy"===ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this.textNode:this.parent;for(;null!==Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return bt})),Ve.d(ze,"f",(function(){return insertText})),Ve.d(ze,"e",(function(){return insertAttributesAndChildren})),Ve.d(ze,"g",(function(){return remove})),Ve.d(ze,"c",(function(){return convertRangeSelection})),Ve.d(ze,"b",(function(){return convertCollapsedSelection})),Ve.d(ze,"a",(function(){return clearAttributes}));var qe=Ve(16),Ye=Ve(234),We=Ve(57),Qe=Ve(20),Xe=Ve(258),ot=Ve(119),st=Ve(674),mt=Ve(207),gt=Ve(8),yt=Ve(91);class bt extends st.a{elementToElement(ce){return this.add(downcastElementToElement(ce))}elementToStructure(ce){return this.add(downcastElementToStructure(ce))}attributeToElement(ce){return this.add(downcastAttributeToElement(ce))}attributeToAttribute(ce){return this.add(downcastAttributeToAttribute(ce))}markerToElement(ce){return this.add(downcastMarkerToElement(ce))}markerToHighlight(ce){return this.add(downcastMarkerToHighlight(ce))}markerToData(ce){return this.add(downcastMarkerToData(ce))}}function insertText(){return(ce,ze,Ve)=>{if(!Ve.consumable.consume(ze.item,ce.name))return;const qe=Ve.writer,Ye=Ve.mapper.toViewPosition(ze.range.start),We=qe.createText(ze.item.data);qe.insert(Ye,We)}}function insertAttributesAndChildren(){return(ce,ze,Ve)=>{Ve.convertAttributes(ze.item),ze.reconversion||!ze.item.is("element")||ze.item.isEmpty||Ve.convertChildren(ze.item)}}function remove(){return(ce,ze,Ve)=>{const qe=Ve.mapper.toViewPosition(ze.position),Ye=ze.position.getShiftedBy(ze.length),We=Ve.mapper.toViewPosition(Ye,{isPhantom:!0}),Qe=Ve.writer.createRange(qe,We),Xe=Ve.writer.remove(Qe.getTrimmed());for(const ce of Ve.writer.createRangeIn(Xe).getItems())Ve.mapper.unbindViewElement(ce,{defer:!0})}}function createViewElementFromHighlightDescriptor(ce,ze){const Ve=ce.createAttributeElement("span",ze.attributes);return ze.classes&&Ve._addClass(ze.classes),"number"==typeof ze.priority&&(Ve._priority=ze.priority),Ve._id=ze.id,Ve}function convertRangeSelection(){return(ce,ze,Ve)=>{const qe=ze.selection;if(qe.isCollapsed)return;if(!Ve.consumable.consume(qe,"selection"))return;const Ye=[];for(const ce of qe.getRanges()){const ze=Ve.mapper.toViewRange(ce);Ye.push(ze)}Ve.writer.setSelection(Ye,{backward:qe.isBackward})}}function convertCollapsedSelection(){return(ce,ze,Ve)=>{const qe=ze.selection;if(!qe.isCollapsed)return;if(!Ve.consumable.consume(qe,"selection"))return;const Ye=Ve.writer,We=qe.getFirstPosition(),Qe=Ve.mapper.toViewPosition(We),Xe=Ye.breakAttributes(Qe);Ye.setSelection(Xe)}}function clearAttributes(){return(ce,ze,Ve)=>{const qe=Ve.writer,Ye=qe.document.selection;for(const ce of Ye.getRanges())ce.isCollapsed&&ce.end.parent.isAttached()&&Ve.writer.mergeAttributes(ce.start);qe.setSelection(null)}}function wrap(ce){return(ze,Ve,qe)=>{if(!qe.consumable.test(Ve.item,ze.name))return;const We=ce(Ve.attributeOldValue,qe,Ve),Qe=ce(Ve.attributeNewValue,qe,Ve);if(!We&&!Qe)return;qe.consumable.consume(Ve.item,ze.name);const Xe=qe.writer,st=Xe.document.selection;if(Ve.item instanceof Ye.a||Ve.item instanceof ot.a)Xe.wrap(st.getFirstRange(),Qe);else{let ce=qe.mapper.toViewRange(Ve.range);null!==Ve.attributeOldValue&&We&&(ce=Xe.unwrap(ce,We)),null!==Ve.attributeNewValue&&Qe&&Xe.wrap(ce,Qe)}}}function insertElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultConsumer;return(Ve,qe,Ye)=>{if(!ze(qe.item,Ye.consumable,{preflight:!0}))return;const We=ce(qe.item,Ye,qe);if(!We)return;ze(qe.item,Ye.consumable);const Qe=Ye.mapper.toViewPosition(qe.range.start);Ye.mapper.bindElements(qe.item,We),Ye.writer.insert(Qe,We),Ye.convertAttributes(qe.item),reinsertOrConvertNodes(We,qe.item.getChildren(),Ye,{reconversion:qe.reconversion})}}function handleMarkerBoundary(ce,ze,Ve,qe,Ye){const We=ze?ce.start:ce.end,Qe=We.nodeAfter&&We.nodeAfter.is("element")?We.nodeAfter:null,Xe=We.nodeBefore&&We.nodeBefore.is("element")?We.nodeBefore:null;if(Qe||Xe){let ce,We;ze&&Qe||!ze&&!Xe?(ce=Qe,We=!0):(ce=Xe,We=!1);const ot=Ve.mapper.toViewElement(ce);if(ot)return void insertMarkerAsAttribute(ot,ze,We,Ve,qe,Ye)}insertMarkerAsElement(Ve.mapper.toViewPosition(We),ze,Ve,qe,Ye)}function insertMarkerAsAttribute(ce,ze,Ve,qe,Ye,We){const Qe=`data-${We.group}-${ze?"start":"end"}-${Ve?"before":"after"}`,Xe=ce.hasAttribute(Qe)?ce.getAttribute(Qe).split(","):[];Xe.unshift(We.name),qe.writer.setAttribute(Qe,Xe.join(","),ce),qe.mapper.bindElementToMarker(ce,Ye.markerName)}function insertMarkerAsElement(ce,ze,Ve,qe,Ye){const We=`${Ye.group}-${ze?"start":"end"}`,Qe=Ye.name?{name:Ye.name}:null,Xe=Ve.writer.createUIElement(We,Qe);Ve.writer.insert(ce,Xe),Ve.mapper.bindElementToMarker(Xe,qe.markerName)}function removeMarkerData(ce){return(ze,Ve,qe)=>{const Ye=ce(Ve.markerName,qe);if(!Ye)return;const We=qe.mapper.markerNameToElements(Ve.markerName);if(We){for(const ce of We)qe.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("containerElement")?(removeMarkerFromAttribute(`data-${Ye.group}-start-before`,ce),removeMarkerFromAttribute(`data-${Ye.group}-start-after`,ce),removeMarkerFromAttribute(`data-${Ye.group}-end-before`,ce),removeMarkerFromAttribute(`data-${Ye.group}-end-after`,ce)):qe.writer.clear(qe.writer.createRangeOn(ce),ce);qe.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}function removeMarkerFromAttribute(ce,ze){if(ze.hasAttribute(ce)){const Ve=new Set(ze.getAttribute(ce).split(","));Ve.delete(Ye.name),0==Ve.size?qe.writer.removeAttribute(ce,ze):qe.writer.setAttribute(ce,Array.from(Ve).join(","),ze)}}}}function highlightElement(ce){return(ze,Ve,Ye)=>{if(!Ve.item)return;if(!(Ve.item instanceof We.a))return;const Qe=prepareDescriptor(ce,Ve,Ye);if(!Qe)return;if(!Ye.consumable.test(Ve.item,ze.name))return;const Xe=Ye.mapper.toViewElement(Ve.item);if(Xe&&Xe.getCustomProperty("addHighlight")){Ye.consumable.consume(Ve.item,ze.name);for(const ce of qe.a._createIn(Ve.item))Ye.consumable.consume(ce.item,ze.name);Xe.getCustomProperty("addHighlight")(Xe,Qe,Ye.writer),Ye.mapper.bindElementToMarker(Xe,Ve.markerName)}}}function removeHighlight(ce){return(ze,Ve,qe)=>{if(Ve.markerRange.isCollapsed)return;const Ye=prepareDescriptor(ce,Ve,qe);if(!Ye)return;const We=createViewElementFromHighlightDescriptor(qe.writer,Ye),Qe=qe.mapper.markerNameToElements(Ve.markerName);if(Qe){for(const ce of Qe)qe.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("attributeElement")?qe.writer.unwrap(qe.writer.createRangeOn(ce),We):ce.getCustomProperty("removeHighlight")(ce,Ye.id,qe.writer);qe.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}}}function downcastElementToElement(ce){return(ce=Object(mt.a)(ce)).model=normalizeModelElementConfig(ce.model),ce.view=normalizeToElementConfig(ce.view,"container"),ce.model.attributes.length&&(ce.model.children=!0),ze=>{ze.on("insert:"+ce.model.name,insertElement(ce.view,createConsumer(ce.model)),{priority:ce.converterPriority||"normal"}),(ce.model.children||ce.model.attributes.length)&&ze.on("reduceChanges",createChangeReducer(ce.model),{priority:"low"})}}function downcastElementToStructure(ce){return(ce=Object(mt.a)(ce)).model=normalizeModelElementConfig(ce.model),ce.view=normalizeToElementConfig(ce.view,"container"),ce.model.children=!0,ze=>{if(ze._conversionApi.schema.checkChild(ce.model.name,"$text"))throw new gt.a("conversion-element-to-structure-disallowed-text",ze,{elementName:ce.model.name});var Ve,qe;ze.on("insert:"+ce.model.name,(Ve=ce.view,qe=createConsumer(ce.model),(ce,ze,Ye)=>{if(!qe(ze.item,Ye.consumable,{preflight:!0}))return;const We=new Map;Ye.writer._registerSlotFactory(createSlotFactory(ze.item,We,Ye));const Qe=Ve(ze.item,Ye,ze);if(Ye.writer._clearSlotFactory(),!Qe)return;validateSlotsChildren(ze.item,We,Ye),qe(ze.item,Ye.consumable);const Xe=Ye.mapper.toViewPosition(ze.range.start);Ye.mapper.bindElements(ze.item,Qe),Ye.writer.insert(Xe,Qe),Ye.convertAttributes(ze.item),fillSlots(Qe,We,Ye,{reconversion:ze.reconversion})}),{priority:ce.converterPriority||"normal"}),ze.on("reduceChanges",createChangeReducer(ce.model),{priority:"low"})}}function downcastAttributeToElement(ce){let ze="attribute:"+((ce=Object(mt.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToElementConfig(ce.view[ze],"attribute");else ce.view=normalizeToElementConfig(ce.view,"attribute");const Ve=getFromAttributeCreator(ce);return qe=>{qe.on(ze,wrap(Ve),{priority:ce.converterPriority||"normal"})}}function downcastAttributeToAttribute(ce){let ze="attribute:"+((ce=Object(mt.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToAttributeConfig(ce.view[ze]);else ce.view=normalizeToAttributeConfig(ce.view);const Ve=getFromAttributeCreator(ce);return qe=>{var Ye;qe.on(ze,(Ye=Ve,(ce,ze,Ve)=>{if(!Ve.consumable.test(ze.item,ce.name))return;const qe=Ye(ze.attributeOldValue,Ve,ze),We=Ye(ze.attributeNewValue,Ve,ze);if(!qe&&!We)return;Ve.consumable.consume(ze.item,ce.name);const Qe=Ve.mapper.toViewElement(ze.item),Xe=Ve.writer;if(!Qe)throw new gt.a("conversion-attribute-to-attribute-on-text",Ve.dispatcher,ze);if(null!==ze.attributeOldValue&&qe)if("class"==qe.key){const ce=Object(yt.a)(qe.value);for(const ze of ce)Xe.removeClass(ze,Qe)}else if("style"==qe.key){const ce=Object.keys(qe.value);for(const ze of ce)Xe.removeStyle(ze,Qe)}else Xe.removeAttribute(qe.key,Qe);if(null!==ze.attributeNewValue&&We)if("class"==We.key){const ce=Object(yt.a)(We.value);for(const ze of ce)Xe.addClass(ze,Qe)}else if("style"==We.key){const ce=Object.keys(We.value);for(const ze of ce)Xe.setStyle(ze,We.value[ze],Qe)}else Xe.setAttribute(We.key,We.value,Qe)}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToElement(ce){return(ce=Object(mt.a)(ce)).view=normalizeToElementConfig(ce.view,"ui"),ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,qe)=>{ze.isOpening=!0;const Ye=Ve(ze,qe);ze.isOpening=!1;const We=Ve(ze,qe);if(!Ye||!We)return;const Qe=ze.markerRange;if(Qe.isCollapsed&&!qe.consumable.consume(Qe,ce.name))return;for(const ze of Qe)if(!qe.consumable.consume(ze.item,ce.name))return;const Xe=qe.mapper,ot=qe.writer;ot.insert(Xe.toViewPosition(Qe.start),Ye),qe.mapper.bindElementToMarker(Ye,ze.markerName),Qe.isCollapsed||(ot.insert(Xe.toViewPosition(Qe.end),We),qe.mapper.bindElementToMarker(We,ze.markerName)),ce.stop()}),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,(ce.view,(ce,ze,Ve)=>{const qe=Ve.mapper.markerNameToElements(ze.markerName);if(qe){for(const ce of qe)Ve.mapper.unbindElementFromMarkerName(ce,ze.markerName),Ve.writer.clear(Ve.writer.createRangeOn(ce),ce);Ve.writer.clearClonedElementsGroup(ze.markerName),ce.stop()}}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToData(ce){const ze=(ce=Object(mt.a)(ce)).model;return ce.view||(ce.view=Ve=>({group:ze,name:Ve.substr(ce.model.length+1)})),Ve=>{var qe;Ve.on("addMarker:"+ze,(qe=ce.view,(ce,ze,Ve)=>{const Ye=qe(ze.markerName,Ve);if(!Ye)return;const We=ze.markerRange;Ve.consumable.consume(We,ce.name)&&(handleMarkerBoundary(We,!1,Ve,ze,Ye),handleMarkerBoundary(We,!0,Ve,ze,Ye),ce.stop())}),{priority:ce.converterPriority||"normal"}),Ve.on("removeMarker:"+ze,removeMarkerData(ce.view),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToHighlight(ce){return ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,qe)=>{if(!ze.item)return;if(!(ze.item instanceof Ye.a||ze.item instanceof ot.a||ze.item.is("$textProxy")))return;const We=prepareDescriptor(Ve,ze,qe);if(!We)return;if(!qe.consumable.consume(ze.item,ce.name))return;const Qe=qe.writer,Xe=createViewElementFromHighlightDescriptor(Qe,We),st=Qe.document.selection;if(ze.item instanceof Ye.a||ze.item instanceof ot.a)Qe.wrap(st.getFirstRange(),Xe,st);else{const ce=qe.mapper.toViewRange(ze.range),Ve=Qe.wrap(ce,Xe);for(const ce of Ve.getItems())if(ce.is("attributeElement")&&ce.isSimilar(Xe)){qe.mapper.bindElementToMarker(ce,ze.markerName);break}}}),{priority:ce.converterPriority||"normal"}),ze.on("addMarker:"+ce.model,highlightElement(ce.view),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,removeHighlight(ce.view),{priority:ce.converterPriority||"normal"})}}function normalizeModelElementConfig(ce){return"string"==typeof ce&&(ce={name:ce}),ce.attributes?Array.isArray(ce.attributes)||(ce.attributes=[ce.attributes]):ce.attributes=[],ce.children=!!ce.children,ce}function normalizeToElementConfig(ce,ze){return"function"==typeof ce?ce:(Ve,qe)=>createViewElementFromDefinition(ce,qe,ze)}function createViewElementFromDefinition(ce,ze,Ve){let qe;"string"==typeof ce&&(ce={name:ce});const Ye=ze.writer,We=Object.assign({},ce.attributes);if("container"==Ve)qe=Ye.createContainerElement(ce.name,We);else if("attribute"==Ve){const ze={priority:ce.priority||Xe.a.DEFAULT_PRIORITY};qe=Ye.createAttributeElement(ce.name,We,ze)}else qe=Ye.createUIElement(ce.name,We);if(ce.styles){const ze=Object.keys(ce.styles);for(const Ve of ze)Ye.setStyle(Ve,ce.styles[Ve],qe)}if(ce.classes){const ze=ce.classes;if("string"==typeof ze)Ye.addClass(ze,qe);else for(const ce of ze)Ye.addClass(ce,qe)}return qe}function getFromAttributeCreator(ce){return ce.model.values?(ze,Ve)=>{const qe=ce.view[ze];return qe?qe(ze,Ve):null}:ce.view}function normalizeToAttributeConfig(ce){return"string"==typeof ce?ze=>({key:ce,value:ze}):"object"==typeof ce?ce.value?()=>ce:ze=>({key:ce.key,value:ze}):ce}function prepareDescriptor(ce,ze,Ve){const qe="function"==typeof ce?ce(ze,Ve):ce;return qe?(qe.priority||(qe.priority=10),qe.id||(qe.id=ze.markerName),qe):null}function createChangeReducerCallback(ce){return(ze,Ve)=>{if(!ze.is("element",ce.name))return!1;if("attribute"==Ve.type){if(ce.attributes.includes(Ve.attributeKey))return!0}else if(ce.children)return!0;return!1}}function createChangeReducer(ce){const ze=createChangeReducerCallback(ce);return(ce,Ve)=>{const qe=[];Ve.reconvertedElements||(Ve.reconvertedElements=new Set);for(const ce of Ve.changes){const Ye=ce.position?ce.position.parent:ce.range.start.nodeAfter;if(Ye&&ze(Ye,ce)){if(!Ve.reconvertedElements.has(Ye)){Ve.reconvertedElements.add(Ye);const ce=Qe.a._createBefore(Ye);qe.push({type:"remove",name:Ye.name,position:ce,length:1},{type:"reinsert",name:Ye.name,position:ce,length:1})}}else qe.push(ce)}Ve.changes=qe}}function createConsumer(ce){return function(ze,Ve){let qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=["insert"];for(const Ve of ce.attributes)ze.hasAttribute(Ve)&&Ye.push(`attribute:${Ve}`);return!!Ye.every((ce=>Ve.test(ze,ce)))&&(qe.preflight||Ye.forEach((ce=>Ve.consume(ze,ce))),!0)}}function createSlotFactory(ce,ze,Ve){return function(qe){let Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";const We=qe.createContainerElement("$slot");let Qe=null;if("children"===Ye)Qe=Array.from(ce.getChildren());else{if("function"!=typeof Ye)throw new gt.a("conversion-slot-mode-unknown",Ve.dispatcher,{modeOrFilter:Ye});Qe=Array.from(ce.getChildren()).filter((ce=>Ye(ce)))}return ze.set(We,Qe),We}}function validateSlotsChildren(ce,ze,Ve){const qe=Array.from(ze.values()).flat(),Ye=new Set(qe);if(Ye.size!=qe.length)throw new gt.a("conversion-slot-filter-overlap",Ve.dispatcher,{element:ce});if(Ye.size!=ce.childCount)throw new gt.a("conversion-slot-filter-incomplete",Ve.dispatcher,{element:ce})}function fillSlots(ce,ze,Ve,qe){Ve.mapper.on("modelToViewPosition",toViewPositionMapping,{priority:"highest"});let Ye=null,We=null;for([Ye,We]of ze)reinsertOrConvertNodes(ce,We,Ve,qe),Ve.writer.move(Ve.writer.createRangeIn(Ye),Ve.writer.createPositionBefore(Ye)),Ve.writer.remove(Ye);function toViewPositionMapping(ce,ze){const Ve=ze.modelPosition.nodeAfter,qe=We.indexOf(Ve);qe<0||(ze.viewPosition=ze.mapper.findPositionIn(Ye,qe))}Ve.mapper.off("modelToViewPosition",toViewPositionMapping)}function reinsertOrConvertNodes(ce,ze,Ve,qe){for(const Ye of ze)reinsertNode(ce.root,Ye,Ve,qe)||Ve.convertItem(Ye)}function reinsertNode(ce,ze,Ve,qe){const{writer:Ye,mapper:We}=Ve;if(!qe.reconversion)return!1;const Xe=We.toViewElement(ze);return!(!Xe||Xe.root==ce)&&(!!Ve.canReuseView(Xe)&&(Ye.move(Ye.createRangeOn(Xe),We.toViewPosition(Qe.a._createBefore(ze))),!0))}function defaultConsumer(ce,ze){let{preflight:Ve}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ve?ze.test(ce,"insert"):ze.consume(ce,"insert")}},function(ce,ze,Ve){"use strict";ze.a={field:"field--ZHoL2cXm49",type:"type---7b3ekD4nb","type-delimiter":"type-delimiter--v4XsiRSuvf",typeDelimiter:"type-delimiter--v4XsiRSuvf","type-icon":"type-icon--ht5ZNoW42v",typeIcon:"type-icon--ht5ZNoW42v",error:"error--koFPGdIq5X",label:"label--myoAkk-P+2",dark:"dark--QcaI3Ro6Jj","description-label":"description-label--Ahr89W7FMP",descriptionLabel:"description-label--Ahr89W7FMP","error-label":"error-label--L1ehxNwAsv",errorLabel:"error-label--L1ehxNwAsv"}},function(ce,ze,Ve){"use strict";ze.a={field:"field--yFWiElI8Wm",type:"type--rDGSTPoxom","type-delimiter":"type-delimiter--JaCllSgbC3",typeDelimiter:"type-delimiter--JaCllSgbC3","type-icon":"type-icon--8MrZvlGTml",typeIcon:"type-icon--8MrZvlGTml",error:"error--PF689OvIiW",label:"label--0BeOjJItfI",dark:"dark--tuSeiXgcfw","description-label":"description-label--eKxf-rDYmi",descriptionLabel:"description-label--eKxf-rDYmi","error-label":"error-label--dxc88amr+e",errorLabel:"error-label--dxc88amr+e"}},function(ce,ze,Ve){"use strict";var qe=Ve(120),Ye=Ve(824),We=Ve(825),Qe=Ve(147),Xe=Ve(733),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=qe?We?function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var qe=mt(ce,ze);qe&&qe[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:qe[yt],enumerable:gt in Ve?Ve[gt]:qe[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),Ye)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze){ce.exports=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(860),We=Ve(830).indexOf,Qe=Ve(484),Xe=Ye([].indexOf),ot=!!Xe&&1/Xe([1],1,-0)<0;qe({target:"Array",proto:!0,forced:ot||!Qe("indexOf")},{indexOf:function indexOf(ce){var ze=arguments.length>1?arguments[1]:void 0;return ot?Xe(this,ce,ze)||0:We(this,ce,ze)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateUnion=ze.validateArray=ze.usePattern=ze.callValidateCode=ze.schemaProperties=ze.allSchemaProperties=ze.noPropertyInData=ze.propertyInData=ze.isOwnProperty=ze.hasPropFunc=ze.reportMissingProp=ze.checkMissingProp=ze.checkReportMissingProp=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(276),Qe=Ve(69);function hasPropFunc(ce){return ce.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:qe._`Object.prototype.hasOwnProperty`})}function isOwnProperty(ce,ze,Ve){return qe._`${hasPropFunc(ce)}.call(${ze}, ${Ve})`}function noPropertyInData(ce,ze,Ve,Ye){const We=qe._`${ze}${(0,qe.getProperty)(Ve)} === undefined`;return Ye?(0,qe.or)(We,(0,qe.not)(isOwnProperty(ce,ze,Ve))):We}function allSchemaProperties(ce){return ce?Object.keys(ce).filter((ce=>"__proto__"!==ce)):[]}ze.checkReportMissingProp=function checkReportMissingProp(ce,ze){const{gen:Ve,data:Ye,it:We}=ce;Ve.if(noPropertyInData(Ve,Ye,ze,We.opts.ownProperties),(()=>{ce.setParams({missingProperty:qe._`${ze}`},!0),ce.error()}))},ze.checkMissingProp=function checkMissingProp({gen:ce,data:ze,it:{opts:Ve}},Ye,We){return(0,qe.or)(...Ye.map((Ye=>(0,qe.and)(noPropertyInData(ce,ze,Ye,Ve.ownProperties),qe._`${We} = ${Ye}`))))},ze.reportMissingProp=function reportMissingProp(ce,ze){ce.setParams({missingProperty:ze},!0),ce.error()},ze.hasPropFunc=hasPropFunc,ze.isOwnProperty=isOwnProperty,ze.propertyInData=function propertyInData(ce,ze,Ve,Ye){const We=qe._`${ze}${(0,qe.getProperty)(Ve)} !== undefined`;return Ye?qe._`${We} && ${isOwnProperty(ce,ze,Ve)}`:We},ze.noPropertyInData=noPropertyInData,ze.allSchemaProperties=allSchemaProperties,ze.schemaProperties=function schemaProperties(ce,ze){return allSchemaProperties(ze).filter((Ve=>!(0,Ye.alwaysValidSchema)(ce,ze[Ve])))},ze.callValidateCode=function callValidateCode({schemaCode:ce,data:ze,it:{gen:Ve,topSchemaRef:Ye,schemaPath:Qe,errorPath:Xe},it:ot},st,mt,gt){const yt=gt?qe._`${ce}, ${ze}, ${Ye}${Qe}`:ze,bt=[[We.default.instancePath,(0,qe.strConcat)(We.default.instancePath,Xe)],[We.default.parentData,ot.parentData],[We.default.parentDataProperty,ot.parentDataProperty],[We.default.rootData,We.default.rootData]];ot.opts.dynamicRef&&bt.push([We.default.dynamicAnchors,We.default.dynamicAnchors]);const vt=qe._`${yt}, ${Ve.object(...bt)}`;return mt!==qe.nil?qe._`${st}.call(${mt}, ${vt})`:qe._`${st}(${vt})`};const Xe=qe._`new RegExp`;ze.usePattern=function usePattern({gen:ce,it:{opts:ze}},Ve){const Ye=ze.unicodeRegExp?"u":"",{regExp:We}=ze.code,ot=We(Ve,Ye);return ce.scopeValue("pattern",{key:ot.toString(),ref:ot,code:qe._`${"new RegExp"===We.code?Xe:(0,Qe.useFunc)(ce,We)}(${Ve}, ${Ye})`})},ze.validateArray=function validateArray(ce){const{gen:ze,data:Ve,keyword:We,it:Qe}=ce,Xe=ze.name("valid");if(Qe.allErrors){const ce=ze.let("valid",!0);return validateItems((()=>ze.assign(ce,!1))),ce}return ze.var(Xe,!0),validateItems((()=>ze.break())),Xe;function validateItems(Qe){const ot=ze.const("len",qe._`${Ve}.length`);ze.forRange("i",0,ot,(Ve=>{ce.subschema({keyword:We,dataProp:Ve,dataPropType:Ye.Type.Num},Xe),ze.if((0,qe.not)(Xe),Qe)}))}},ze.validateUnion=function validateUnion(ce){const{gen:ze,schema:Ve,keyword:We,it:Qe}=ce;if(!Array.isArray(Ve))throw new Error("ajv implementation error");if(Ve.some((ce=>(0,Ye.alwaysValidSchema)(Qe,ce)))&&!Qe.opts.unevaluated)return;const Xe=ze.let("valid",!1),ot=ze.name("_valid");ze.block((()=>Ve.forEach(((Ve,Ye)=>{const Qe=ce.subschema({keyword:We,schemaProp:Ye,compositeRule:!0},ot);ze.assign(Xe,qe._`${Xe} || ${ot}`);ce.mergeValidEvaluated(Qe,ot)||ze.if((0,qe.not)(Xe))})))),ce.result(Xe,(()=>ce.reset()),(()=>ce.error(!0)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe,Ye=Ve(1),We=Ve(9),Qe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Qe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"options",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"options"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"metadataOptions",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"metadataOptions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(12),ot=Ve(85);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Qe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=qe,this.requestParameters=Qe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Xe.a)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Qe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},Ye=_applyDecoratedDescriptor(qe.prototype,"items",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(49);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",Ye,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Qe,this),_initializerDefineProperty(this,"data",Xe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},Ye=_applyDecoratedDescriptor(qe.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"deleteList"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"patchList"),qe.prototype),qe);ze.a=mt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(6),ot=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Qe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=qe,this.requestParameters=Qe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Xe.arrayMove)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Qe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},Ye=_applyDecoratedDescriptor(qe.prototype,"items",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",Ye,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Qe,this),_initializerDefineProperty(this,"data",Xe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},Ye=_applyDecoratedDescriptor(qe.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"deleteList"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"patchList"),qe.prototype),qe);ze.a=mt},function(ce,ze,Ve){"use strict";var qe=Ve(592);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return createDropdown})),Ve.d(ze,"b",(function(){return addToolbarToDropdown})),Ve.d(ze,"a",(function(){return addListToDropdown}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",ze.to("position",(ce=>`ck-dropdown__panel_${ce}`)),ze.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:ze.to((ce=>ce.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const ce=this.children.last;"function"==typeof ce.focusLast?ce.focusLast():ce.focus()}}}var We=Ve(153),Qe=Ve(406);class Xe extends qe.a{constructor(ce,ze,Ve){super(ce);const qe=this.bindTemplate;this.buttonView=ze,this.panelView=Ve,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new We.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",qe.to("class"),qe.if("isEnabled","ck-disabled",(ce=>!ce))],id:qe.to("id"),"aria-describedby":qe.to("ariaDescribedById")},children:[ze,Ve]}),ze.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=Xe._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const closeDropdown=(ce,ze)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,ze())};this.keystrokes.set("arrowdown",((ce,ze)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,ze())})),this.keystrokes.set("arrowright",((ce,ze)=>{this.isOpen&&ze()})),this.keystrokes.set("arrowleft",closeDropdown),this.keystrokes.set("esc",closeDropdown)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:ce,north:ze,southEast:Ve,southWest:qe,northEast:Ye,northWest:We,southMiddleEast:Qe,southMiddleWest:ot,northMiddleEast:st,northMiddleWest:mt}=Xe.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[Ve,qe,Qe,ot,ce,Ye,We,st,mt,ze]:[qe,Ve,ot,Qe,ce,We,Ye,mt,st,ze]}}Xe.defaultPanelPositions={south:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/2,name:"s"}),southEast:ce=>({top:ce.bottom,left:ce.left,name:"se"}),southWest:(ce,ze)=>({top:ce.bottom,left:ce.left-ze.width+ce.width,name:"sw"}),southMiddleEast:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/4,name:"sme"}),southMiddleWest:(ce,ze)=>({top:ce.bottom,left:ce.left-3*(ze.width-ce.width)/4,name:"smw"}),north:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/2,name:"n"}),northEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left,name:"ne"}),northWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-ze.width+ce.width,name:"nw"}),northMiddleEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/4,name:"nme"}),northMiddleWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-3*(ze.width-ce.width)/4,name:"nmw"})},Xe._getOptimalPosition=Qe.a;var ot=Ve(445),st=Ve(221),mt=Ve(295),gt=Ve(287);class yt extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bt=Ve(52),vt=Ve(448),wt=Ve(363);function createDropdown(ce){const ze=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.a)(ce),Ve=new Ye(ce),qe=new Xe(ce,ze,Ve);return ze.bind("isEnabled").to(qe),ze instanceof ot.a?ze.bind("isOn").to(qe,"isOpen"):ze.arrowView.bind("isOn").to(qe,"isOpen"),addDefaultBehavior(qe),qe}function addToolbarToDropdown(ce,ze){const Ve=ce.locale,qe=Ve.t,Ye=ce.toolbarView=new st.a(Ve);Ye.set("ariaLabel",qe("Dropdown toolbar")),ce.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),ze.map((ce=>Ye.items.add(ce))),ce.panelView.children.add(Ye),Ye.items.delegate("execute").to(ce)}function addListToDropdown(ce,ze){const Ve=ce.locale,qe=ce.listView=new mt.a(Ve);qe.items.bindTo(ze).using((ce=>{let{type:ze,model:qe}=ce;if("separator"===ze)return new yt(Ve);if("button"===ze||"switchbutton"===ze){const ce=new gt.a(Ve);let Ye;return Ye="button"===ze?new bt.a(Ve):new vt.a(Ve),Ye.bind(...Object.keys(qe)).to(qe),Ye.delegate("execute").to(ce),ce.children.add(Ye),ce}})),ce.panelView.children.add(qe),qe.items.delegate("execute").to(ce)}function addDefaultBehavior(ce){closeDropdownOnBlur(ce),closeDropdownOnExecute(ce),focusDropdownContentsOnArrows(ce)}function closeDropdownOnBlur(ce){ce.on("render",(()=>{Object(wt.a)({emitter:ce,activator:()=>ce.isOpen,callback:()=>{ce.isOpen=!1},contextElements:[ce.element]})}))}function closeDropdownOnExecute(ce){ce.on("execute",(ze=>{ze.source instanceof vt.a||(ce.isOpen=!1)}))}function focusDropdownContentsOnArrows(ce){ce.keystrokes.set("arrowdown",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focus(),Ve())})),ce.keystrokes.set("arrowup",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focusLast(),Ve())}))}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We="cropped-text--3G10vjiJhq",Qe="whole--EkCERIo1YX",Xe="front--63ne3dyitK",ot="back--ENF0U6uJ3v";class st extends Ye.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),qe=ce.substr(ze);return Ye.a.createElement("div",{"aria-label":ce,className:We,title:ce},Ye.a.createElement("div",{"aria-hidden":!0,className:Xe},Ve),Ye.a.createElement("div",{"aria-hidden":!0,className:ot},Ye.a.createElement("span",null,qe)),Ye.a.createElement("div",{className:Qe},ce))}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(515);ze.a=qe.default},function(ce,ze,Ve){"use strict";const qe={get(ce){return"number"!=typeof ce?this[ce]||this.normal:ce},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return diff}));var qe=Ve(671);function diff(ce,ze,Ve){Ve=Ve||function(ce,ze){return ce===ze};const qe=ce.length,Ye=ze.length;if(qe>200||Ye>200||qe+Ye>300)return diff.fastDiff(ce,ze,Ve,!0);let We,Qe;if(Yest?-1:1;mt[qe+yt]&&(mt[qe]=mt[qe+yt].slice(0)),mt[qe]||(mt[qe]=[]),mt[qe].push(Ye>st?We:Qe);let bt=Math.max(Ye,st),vt=bt-qe;for(;vtst;yt--)gt[yt]=snake(yt);gt[st]=snake(st),bt++}while(gt[st]!==ot);return mt[st].slice(1)}diff.fastDiff=qe.a},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(27),yt=Ve(238),bt=Ve(15),vt=Ve(78),wt=Ve(49);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"config",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"bundles"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitialized"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitializedTranslationsLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=Ct},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(242),Qe=Ve(11);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(Ye.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Xe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:qe,skin:Qe}=this.props;return Ye.a.createElement(We.a,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:qe,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default",values:[]},Xe.Action=We.a.Action,Xe.Option=We.a.Option,Xe.Divider=We.a.Divider;ze.a=Xe},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe=Ve(1);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ot=["small","medium","large"];let st=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"view",Ye,this),_initializerDefineProperty(this,"props",We,this),_initializerDefineProperty(this,"size",Qe,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||ot,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=ot,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"props",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"size",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setConfig",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clearConfig",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clearConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"enabled",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"enabled"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setSize",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setSize"),qe.prototype),qe);ze.a=new st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(233),Ye=Ve(57),We=Ve(64),Qe=Ve(134),Xe=Ve(99);class ot{constructor(ce){this.markers=new Map,this._children=new qe.a,ce&&this._insertChild(0,ce)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"model:documentFragment"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}getPath(){return[]}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}offsetToIndex(ce){return this._children.offsetToIndex(ce)}toJSON(){const ce=[];for(const ze of this._children)ce.push(ze.toJSON());return ce}static fromJSON(ce){const ze=[];for(const Ve of ce)Ve.name?ze.push(Ye.a.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve));return new ot(ze)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Xe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Qe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(545);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(187),Ve(86),Ve(249),Ve(159);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(84),ot=Ve(23);function _extends(){return _extends=Object.assign||function(ce){for(var ze=1;ze=0||(Ye[Ve]=ce[Ve]);return Ye}var st=function TextRenderer(ce){var ze,Ve=ce.classes,qe=ce.semantic,We=ce.size,Qe=ce.color,ot=ce.underlined,st=ce.children,mt=_objectWithoutPropertiesLoose(ce,["classes","semantic","size","color","underlined","children"]),gt=qe||"span",yt=Object(Xe.a)(Ve.text,Ve[We+"Size"],Ve[Qe+"Color"],((ze={})[Ve[gt]]=!!qe,ze[Ve.isUnderlined]=ot,ze));return Ye.a.createElement(gt,_extends({},mt,{className:yt}),st)};st.propTypes={classes:Qe.a.objectOf(Qe.a.string.isRequired).isRequired,semantic:Qe.a.oneOf(["em","strong"]),size:Qe.a.oneOf(["inherit","small","base","text"]),color:Qe.a.oneOf(["base","light"]),underlined:Qe.a.bool,children:Qe.a.node.isRequired},st.defaultProps={size:"inherit",color:"base",underlined:!1};var mt=Object(ot.a)((function styles(ce){var ze=ce.fontFamily,Ve=ce.fontSize,qe=ce.color;return{text:{fontFamily:ze.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:Ve.small},baseSize:{fontSize:Ve.base},textSize:{fontSize:Ve.text},baseColor:{color:qe.base},lightColor:{color:qe.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",qe.lightest]]}}}))(st)},function(ce,ze,Ve){"use strict";var qe=this&&this.__createBinding||(Object.create?function(ce,ze,Ve,qe){void 0===qe&&(qe=Ve);var Ye=Object.getOwnPropertyDescriptor(ze,Ve);Ye&&!("get"in Ye?!ze.__esModule:Ye.writable||Ye.configurable)||(Ye={enumerable:!0,get:function(){return ze[Ve]}}),Object.defineProperty(ce,qe,Ye)}:function(ce,ze,Ve,qe){void 0===qe&&(qe=Ve),ce[qe]=ze[Ve]}),Ye=this&&this.__setModuleDefault||(Object.create?function(ce,ze){Object.defineProperty(ce,"default",{enumerable:!0,value:ze})}:function(ce,ze){ce.default=ze}),We=this&&this.__importStar||function(ce){if(ce&&ce.__esModule)return ce;var ze={};if(null!=ce)for(var Ve in ce)"default"!==Ve&&Object.prototype.hasOwnProperty.call(ce,Ve)&&qe(ze,ce,Ve);return Ye(ze,ce),ze},Qe=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.decodeXML=ze.decodeHTMLStrict=ze.decodeHTMLAttribute=ze.decodeHTML=ze.determineBranch=ze.EntityDecoder=ze.DecodingMode=ze.BinTrieFlags=ze.fromCodePoint=ze.replaceCodePoint=ze.decodeCodePoint=ze.xmlDecodeTree=ze.htmlDecodeTree=void 0;var Xe=Qe(Ve(1809));ze.htmlDecodeTree=Xe.default;var ot=Qe(Ve(1810));ze.xmlDecodeTree=ot.default;var st=We(Ve(1039));ze.decodeCodePoint=st.default;var mt,gt=Ve(1039);Object.defineProperty(ze,"replaceCodePoint",{enumerable:!0,get:function(){return gt.replaceCodePoint}}),Object.defineProperty(ze,"fromCodePoint",{enumerable:!0,get:function(){return gt.fromCodePoint}}),function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"}(mt||(mt={}));var yt,bt,vt;function isNumber(ce){return ce>=mt.ZERO&&ce<=mt.NINE}function isAsciiAlphaNumeric(ce){return ce>=mt.UPPER_A&&ce<=mt.UPPER_Z||ce>=mt.LOWER_A&&ce<=mt.LOWER_Z||isNumber(ce)}!function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"}(yt=ze.BinTrieFlags||(ze.BinTrieFlags={})),function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"}(bt||(bt={})),function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"}(vt=ze.DecodingMode||(ze.DecodingMode={}));var wt=function(){function EntityDecoder(ce,ze,Ve){this.decodeTree=ce,this.emitCodePoint=ze,this.errors=Ve,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}return EntityDecoder.prototype.startEntity=function(ce){this.decodeMode=ce,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},EntityDecoder.prototype.write=function(ce,ze){switch(this.state){case bt.EntityStart:return ce.charCodeAt(ze)===mt.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(ce,ze+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(ce,ze));case bt.NumericStart:return this.stateNumericStart(ce,ze);case bt.NumericDecimal:return this.stateNumericDecimal(ce,ze);case bt.NumericHex:return this.stateNumericHex(ce,ze);case bt.NamedEntity:return this.stateNamedEntity(ce,ze)}},EntityDecoder.prototype.stateNumericStart=function(ce,ze){return ze>=ce.length?-1:(32|ce.charCodeAt(ze))===mt.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(ce,ze+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(ce,ze))},EntityDecoder.prototype.addToNumericResult=function(ce,ze,Ve,qe){if(ze!==Ve){var Ye=Ve-ze;this.result=this.result*Math.pow(qe,Ye)+parseInt(ce.substr(ze,Ye),qe),this.consumed+=Ye}},EntityDecoder.prototype.stateNumericHex=function(ce,ze){for(var Ve,qe=ze;ze=mt.UPPER_A&&Ve<=mt.UPPER_F||Ve>=mt.LOWER_A&&Ve<=mt.LOWER_F)))return this.addToNumericResult(ce,qe,ze,16),this.emitNumericEntity(Ye,3);ze+=1}return this.addToNumericResult(ce,qe,ze,16),-1},EntityDecoder.prototype.stateNumericDecimal=function(ce,ze){for(var Ve=ze;ze>14;ze>14)){if(Qe===mt.SEMI)return this.emitNamedEntityData(this.treeIndex,We,this.consumed+this.excess);this.decodeMode!==vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},EntityDecoder.prototype.emitNotTerminatedNamedEntity=function(){var ce,ze=this.result,Ve=(this.decodeTree[ze]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ze,Ve,this.consumed),null===(ce=this.errors)||void 0===ce||ce.missingSemicolonAfterCharacterReference(),this.consumed},EntityDecoder.prototype.emitNamedEntityData=function(ce,ze,Ve){var qe=this.decodeTree;return this.emitCodePoint(1===ze?qe[ce]&~yt.VALUE_LENGTH:qe[ce+1],Ve),3===ze&&this.emitCodePoint(qe[ce+2],Ve),Ve},EntityDecoder.prototype.end=function(){var ce;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===vt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(ce=this.errors)||void 0===ce||ce.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}},EntityDecoder}();function getDecoder(ce){var ze="",Ve=new wt(ce,(function(ce){return ze+=(0,st.fromCodePoint)(ce)}));return function decodeWithTrie(ce,qe){for(var Ye=0,We=0;(We=ce.indexOf("&",We))>=0;){ze+=ce.slice(Ye,We),Ve.startEntity(qe);var Qe=Ve.write(ce,We+1);if(Qe<0){Ye=We+Ve.end();break}Ye=We+Qe,We=0===Qe?Ye+1:Ye}var Xe=ze+ce.slice(Ye);return ze="",Xe}}function determineBranch(ce,ze,Ve,qe){var Ye=(ze&yt.BRANCH_LENGTH)>>7,We=ze&yt.JUMP_TABLE;if(0===Ye)return 0!==We&&qe===We?Ve:-1;if(We){var Qe=qe-We;return Qe<0||Qe>=Ye?-1:ce[Ve+Qe]-1}for(var Xe=Ve,ot=Xe+Ye-1;Xe<=ot;){var st=Xe+ot>>>1,mt=ce[st];if(mtqe))return ce[st+Ye];ot=st-1}}return-1}ze.EntityDecoder=wt,ze.determineBranch=determineBranch;var Ct=getDecoder(Xe.default),Dt=getDecoder(ot.default);ze.decodeHTML=function decodeHTML(ce,ze){return void 0===ze&&(ze=vt.Legacy),Ct(ce,ze)},ze.decodeHTMLAttribute=function decodeHTMLAttribute(ce){return Ct(ce,vt.Attribute)},ze.decodeHTMLStrict=function decodeHTMLStrict(ce){return Ct(ce,vt.Strict)},ze.decodeXML=function decodeXML(ce){return Dt(ce,vt.Strict)}},function(ce,ze,Ve){"use strict";var qe=Ve(400);ze.a=function cloneDeep(ce){return Object(qe.a)(ce,5)}},function(ce,ze,Ve){"use strict";var qe=Ve(319),Ye=TypeError;ce.exports=function(ce){if(qe(ce))throw new Ye("Can't call method on "+ce);return ce}},function(ce,ze,Ve){"use strict";var qe=Ve(208),Ye=Object;ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(61),We=Ve(209),Qe=Ve(838),Xe=Ve(839);qe({target:"Object",stat:!0,forced:Ye((function(){Qe(1)})),sham:!Xe},{getPrototypeOf:function getPrototypeOf(ce){return Qe(We(ce))}})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(246),We=Ve(746),Qe=Ve(1164),Xe=Ve(840),ot=Ve(147),st=Ve(121),mt=Ve(471),gt=Ve(61),yt=Ye("Reflect","construct"),bt=Object.prototype,vt=[].push,wt=gt((function(){function F(){}return!(yt((function(){}),[],F)instanceof F)})),Ct=!gt((function(){yt((function(){}))})),Dt=wt||Ct;qe({target:"Reflect",stat:!0,forced:Dt,sham:Dt},{construct:function construct(ce,ze){Xe(ce),ot(ze);var Ve=arguments.length<3?ce:Xe(arguments[2]);if(Ct&&!wt)return yt(ce,ze,Ve);if(ce===Ve){switch(ze.length){case 0:return new ce;case 1:return new ce(ze[0]);case 2:return new ce(ze[0],ze[1]);case 3:return new ce(ze[0],ze[1],ze[2]);case 4:return new ce(ze[0],ze[1],ze[2],ze[3])}var qe=[null];return We(vt,qe,ze),new(We(Qe,ce,qe))}var Ye=Ve.prototype,gt=mt(st(Ye)?Ye:bt),Dt=We(ce,gt,ze);return st(Dt)?Dt:gt}})},function(ce,ze){ce.exports=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe,Ye=Ve(1),We=Ve(9),Qe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(_applyDecoratedDescriptor((qe=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Qe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"options",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"options"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"metadataOptions",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"metadataOptions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(0),Ye=Ve.n(qe);class We extends Ye.a.Component{}We.hasColumnOptions=!1,We.searchable=!0,We.paginatable=!0},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var qe=Ve(1),Ye=Ve(22),We=Ve.n(Ye),Qe=Ve(9),Xe=Ve.n(Qe),ot=Ve(49),st=Ve(27),mt=Ve(415);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=qe.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const qe=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(qe,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const qe=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const qe=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const qe=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(qe,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const qe=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const qe=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(qe,Ve)}constructor(ze,Ve,Ye,Qe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Vt,this),_initializerDefineProperty(this,"forbidden",Ht,this),this.active=qe.observable.box(),this.filterOptions=qe.observable.box({}),this.sortColumn=qe.observable.box(),this.sortOrder=qe.observable.box(),this.searchTerm=qe.observable.box(),this.limit=qe.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const qe=ze[ce];Ve.push({schemaKey:ce,visibility:qe.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Ut,this),_initializerDefineProperty(this,"updateStructureStrategy",Wt,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(qe.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(qe.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(qe.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const Ye={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(Ye.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...Ye,id:ce}).then(Object(qe.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),Ye={...ze,...this.options};this.initialSelectionIds&&(Ye.selectedIds=this.initialSelectionIds.join(",")),Ye.selectedIds||(Ve&&Object(qe.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),Ye.expandedIds=Ve),!Ye.expandedIds&&Ve&&(Ye.parentId=Ve)),Ye.sortBy=this.sortColumn.get(),Ye.sortOrder=this.sortOrder.get(),Ye.limit=this.limit.get(),Ye.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(Ye.filter=this.filterQueryOption),this.searchTerm.get()&&(Ye.search=this.searchTerm.get()),Xe.a.info('List loads "'+this.resourceKey+'" data with the following options:',Ye),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,Ye,Ye.selectedIds||Ye.expandedIds?void 0:Ve).then(Object(qe.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=Ye,this.observableOptions=Qe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(qe.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(qe.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(qe.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(qe.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),qe=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},Ye=ze.newValue,Qe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Qe)||callResetForChangedObservable(ze),We()(Ve,Ye)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(qe.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(qe.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(qe.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(qe.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(qe.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:qe}=this.observableOptions;return qe&&(Ve.locale=qe.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(qe.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Xe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Xe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"forbidden",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Ut=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Wt=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(qe.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(qe.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(qe.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var qe=Ve(1),Ye=Ve(22),We=Ve.n(Ye),Qe=Ve(9),Xe=Ve.n(Qe),ot=Ve(45),st=Ve(53),mt=Ve(416);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=qe.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const qe=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(qe,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const qe=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const qe=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const qe=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(qe,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const qe=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(qe,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const qe=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(qe,Ve)}constructor(ze,Ve,Ye,Qe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Vt,this),_initializerDefineProperty(this,"forbidden",Ht,this),this.active=qe.observable.box(),this.filterOptions=qe.observable.box({}),this.sortColumn=qe.observable.box(),this.sortOrder=qe.observable.box(),this.searchTerm=qe.observable.box(),this.limit=qe.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const qe=ze[ce];Ve.push({schemaKey:ce,visibility:qe.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Ut,this),_initializerDefineProperty(this,"updateStructureStrategy",Wt,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(qe.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(qe.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(qe.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const Ye={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(Ye.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...Ye,id:ce}).then(Object(qe.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),Ye={...ze,...this.options};this.initialSelectionIds&&(Ye.selectedIds=this.initialSelectionIds.join(",")),Ye.selectedIds||(Ve&&Object(qe.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),Ye.expandedIds=Ve),!Ye.expandedIds&&Ve&&(Ye.parentId=Ve)),Ye.sortBy=this.sortColumn.get(),Ye.sortOrder=this.sortOrder.get(),Ye.limit=this.limit.get(),Ye.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(Ye.filter=this.filterQueryOption),this.searchTerm.get()&&(Ye.search=this.searchTerm.get()),Xe.a.info('List loads "'+this.resourceKey+'" data with the following options:',Ye),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,Ye,Ye.selectedIds||Ye.expandedIds?void 0:Ve).then(Object(qe.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=Ye,this.observableOptions=Qe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(qe.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(qe.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(qe.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(qe.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),qe=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},Ye=ze.newValue,Qe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Qe)||callResetForChangedObservable(ze),We()(Ve,Ye)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(qe.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(qe.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(qe.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(qe.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(qe.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:qe}=this.observableOptions;return qe&&(Ve.locale=qe.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(qe.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Xe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Xe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"forbidden",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Ut=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Wt=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(qe.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(qe.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(qe.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[qe.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[qe.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";var qe=Ve(583);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return getFillerOffset}));var qe=Ve(107);class Ye extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}}function getFillerOffset(){const ce=[...this.getChildren()],ze=ce[this.childCount-1];if(ze&&ze.is("element","br"))return this.childCount;for(const ze of ce)if(!ze.is("uiElement"))return null;return this.childCount}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(130);class Ye extends qe.a{constructor(ce){super(ce),this.domEventType="click"}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){!function(ce){"use strict";var ze="1.9.4";function extend(ce){var ze,Ve,qe,Ye;for(Ve=1,qe=arguments.length;Ve0?Math.floor(ce):Math.ceil(ce)};function toPoint(ce,ze,Ve){return ce instanceof Point?ce:We(ce)?new Point(ce[0],ce[1]):null==ce?ce:"object"==typeof ce&&"x"in ce&&"y"in ce?new Point(ce.x,ce.y):new Point(ce,ze,Ve)}function Bounds(ce,ze){if(ce)for(var Ve=ze?[ce,ze]:ce,qe=0,Ye=Ve.length;qe=this.min.x&&Ve.x<=this.max.x&&ze.y>=this.min.y&&Ve.y<=this.max.y},intersects:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,qe=ce.min,Ye=ce.max,We=Ye.x>=ze.x&&qe.x<=Ve.x,Qe=Ye.y>=ze.y&&qe.y<=Ve.y;return We&&Qe},overlaps:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,qe=ce.min,Ye=ce.max,We=Ye.x>ze.x&&qe.xze.y&&qe.y=qe.lat&&Ve.lat<=Ye.lat&&ze.lng>=qe.lng&&Ve.lng<=Ye.lng},intersects:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,qe=ce.getSouthWest(),Ye=ce.getNorthEast(),We=Ye.lat>=ze.lat&&qe.lat<=Ve.lat,Qe=Ye.lng>=ze.lng&&qe.lng<=Ve.lng;return We&&Qe},overlaps:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,qe=ce.getSouthWest(),Ye=ce.getNorthEast(),We=Ye.lat>ze.lat&&qe.latze.lng&&qe.lng1,Xn=function(){var ce=!1;try{var ze=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("testPassiveEventSupport",falseFn,ze),window.removeEventListener("testPassiveEventSupport",falseFn,ze)}catch(ce){}return ce}(),ei=!!document.createElement("canvas").getContext,si=!(!document.createElementNS||!svgCreate("svg").createSVGRect),_i=!!si&&((Et=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI)),Ri=!si&&function(){try{var ce=document.createElement("div");ce.innerHTML='';var ze=ce.firstChild;return ze.style.behavior="url(#default#VML)",ze&&"object"==typeof ze.adj}catch(ce){return!1}}(),Ci=0===navigator.platform.indexOf("Mac"),Di=0===navigator.platform.indexOf("Linux");function userAgentContains(ce){return navigator.userAgent.toLowerCase().indexOf(ce)>=0}var Ei={ie:Tt,ielt9:Lt,edge:Ft,webkit:Bt,android:Vt,android23:Ht,androidStock:Wt,opera:Jt,chrome:Qt,gecko:en,safari:rn,phantom:ln,opera12:mn,win:gn,ie3d:bn,webkit3d:wn,gecko3d:Cn,any3d:Sn,mobile:En,mobileWebkit:Tn,mobileWebkit3d:Ln,msPointer:Fn,pointer:Yn,touch:Gn,touchNative:Un,mobileOpera:Kn,mobileGecko:Jn,retina:Zn,passiveEvents:Xn,canvas:ei,svg:si,vml:Ri,inlineSvg:_i,mac:Ci,linux:Di},Oi=Ei.msPointer?"MSPointerDown":"pointerdown",Ti=Ei.msPointer?"MSPointerMove":"pointermove",er=Ei.msPointer?"MSPointerUp":"pointerup",tr=Ei.msPointer?"MSPointerCancel":"pointercancel",nr={touchstart:Oi,touchmove:Ti,touchend:er,touchcancel:tr},rr={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},ar={},sr=!1;function addPointerListener(ce,ze,Ve){return"touchstart"===ze&&_addPointerDocListener(),rr[ze]?(Ve=rr[ze].bind(this,Ve),ce.addEventListener(nr[ze],Ve,!1),Ve):(console.warn("wrong event specified:",ze),falseFn)}function removePointerListener(ce,ze,Ve){nr[ze]?ce.removeEventListener(nr[ze],Ve,!1):console.warn("wrong event specified:",ze)}function _globalPointerDown(ce){ar[ce.pointerId]=ce}function _globalPointerMove(ce){ar[ce.pointerId]&&(ar[ce.pointerId]=ce)}function _globalPointerUp(ce){delete ar[ce.pointerId]}function _addPointerDocListener(){sr||(document.addEventListener(Oi,_globalPointerDown,!0),document.addEventListener(Ti,_globalPointerMove,!0),document.addEventListener(er,_globalPointerUp,!0),document.addEventListener(tr,_globalPointerUp,!0),sr=!0)}function _handlePointer(ce,ze){if(ze.pointerType!==(ze.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Ve in ze.touches=[],ar)ze.touches.push(ar[Ve]);ze.changedTouches=[ze],ce(ze)}}function _onPointerStart(ce,ze){ze.MSPOINTER_TYPE_TOUCH&&ze.pointerType===ze.MSPOINTER_TYPE_TOUCH&&preventDefault(ze),_handlePointer(ce,ze)}function makeDblclick(ce){var ze,Ve,qe={};for(Ve in ce)ze=ce[Ve],qe[Ve]=ze&&ze.bind?ze.bind(ce):ze;return ce=qe,qe.type="dblclick",qe.detail=2,qe.isTrusted=!1,qe._simulated=!0,qe}var lr=200;function addDoubleTapListener(ce,ze){ce.addEventListener("dblclick",ze);var Ve,qe=0;function simDblclick(ce){if(1===ce.detail){if("mouse"!==ce.pointerType&&(!ce.sourceCapabilities||ce.sourceCapabilities.firesTouchEvents)){var Ye=getPropagationPath(ce);if(!Ye.some((function(ce){return ce instanceof HTMLLabelElement&&ce.attributes.for}))||Ye.some((function(ce){return ce instanceof HTMLInputElement||ce instanceof HTMLSelectElement}))){var We=Date.now();We-qe<=lr?2==++Ve&&ze(makeDblclick(ce)):Ve=1,qe=We}}}else Ve=ce.detail}return ce.addEventListener("click",simDblclick),{dblclick:ze,simDblclick:simDblclick}}function removeDoubleTapListener(ce,ze){ce.removeEventListener("dblclick",ze.dblclick),ce.removeEventListener("click",ze.simDblclick)}var dr,ur,pr,vr,_r,Rr=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Cr=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Dr="webkitTransition"===Cr||"OTransition"===Cr?Cr+"End":"transitionend";function get(ce){return"string"==typeof ce?document.getElementById(ce):ce}function getStyle(ce,ze){var Ve=ce.style[ze]||ce.currentStyle&&ce.currentStyle[ze];if((!Ve||"auto"===Ve)&&document.defaultView){var qe=document.defaultView.getComputedStyle(ce,null);Ve=qe?qe[ze]:null}return"auto"===Ve?null:Ve}function create$1(ce,ze,Ve){var qe=document.createElement(ce);return qe.className=ze||"",Ve&&Ve.appendChild(qe),qe}function remove(ce){var ze=ce.parentNode;ze&&ze.removeChild(ce)}function empty(ce){for(;ce.firstChild;)ce.removeChild(ce.firstChild)}function toFront(ce){var ze=ce.parentNode;ze&&ze.lastChild!==ce&&ze.appendChild(ce)}function toBack(ce){var ze=ce.parentNode;ze&&ze.firstChild!==ce&&ze.insertBefore(ce,ze.firstChild)}function hasClass(ce,ze){if(void 0!==ce.classList)return ce.classList.contains(ze);var Ve=getClass(ce);return Ve.length>0&&new RegExp("(^|\\s)"+ze+"(\\s|$)").test(Ve)}function addClass(ce,ze){if(void 0!==ce.classList)for(var Ve=splitWords(ze),qe=0,Ye=Ve.length;qe0?2*window.devicePixelRatio:1;function getWheelDelta(ce){return Ei.edge?ce.wheelDeltaY/2:ce.deltaY&&0===ce.deltaMode?-ce.deltaY/Lr:ce.deltaY&&1===ce.deltaMode?20*-ce.deltaY:ce.deltaY&&2===ce.deltaMode?60*-ce.deltaY:ce.deltaX||ce.deltaZ?0:ce.wheelDelta?(ce.wheelDeltaY||ce.wheelDelta)/2:ce.detail&&Math.abs(ce.detail)<32765?20*-ce.detail:ce.detail?ce.detail/-32765*60:0}function isExternalTarget(ce,ze){var Ve=ze.relatedTarget;if(!Ve)return!0;try{for(;Ve&&Ve!==ce;)Ve=Ve.parentNode}catch(ce){return!1}return Ve!==ce}var jr={__proto__:null,on:on,off:off,stopPropagation:stopPropagation,disableScrollPropagation:disableScrollPropagation,disableClickPropagation:disableClickPropagation,preventDefault:preventDefault,stop:stop,getPropagationPath:getPropagationPath,getMousePosition:getMousePosition,getWheelDelta:getWheelDelta,isExternalTarget:isExternalTarget,addListener:on,removeListener:off},Ir=yt.extend({run:function(ce,ze,Ve,qe){this.stop(),this._el=ce,this._inProgress=!0,this._duration=Ve||.25,this._easeOutPower=1/Math.max(qe||.5,.2),this._startPos=getPosition(ce),this._offset=ze.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=requestAnimFrame(this._animate,this),this._step()},_step:function(ce){var ze=+new Date-this._startTime,Ve=1e3*this._duration;zethis.options.maxZoom)?this.setZoom(ce):this},panInsideBounds:function(ce,ze){this._enforcingBounds=!0;var Ve=this.getCenter(),qe=this._limitCenter(Ve,this._zoom,toLatLngBounds(ce));return Ve.equals(qe)||this.panTo(qe,ze),this._enforcingBounds=!1,this},panInside:function(ce,ze){var Ve=toPoint((ze=ze||{}).paddingTopLeft||ze.padding||[0,0]),qe=toPoint(ze.paddingBottomRight||ze.padding||[0,0]),Ye=this.project(this.getCenter()),We=this.project(ce),Qe=this.getPixelBounds(),Xe=toBounds([Qe.min.add(Ve),Qe.max.subtract(qe)]),ot=Xe.getSize();if(!Xe.contains(We)){this._enforcingBounds=!0;var st=We.subtract(Xe.getCenter()),mt=Xe.extend(We).getSize().subtract(ot);Ye.x+=st.x<0?-mt.x:mt.x,Ye.y+=st.y<0?-mt.y:mt.y,this.panTo(this.unproject(Ye),ze),this._enforcingBounds=!1}return this},invalidateSize:function(ce){if(!this._loaded)return this;ce=extend({animate:!1,pan:!0},!0===ce?{animate:!0}:ce);var ze=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var Ve=this.getSize(),qe=ze.divideBy(2).round(),Ye=Ve.divideBy(2).round(),We=qe.subtract(Ye);return We.x||We.y?(ce.animate&&ce.pan?this.panBy(We):(ce.pan&&this._rawPanBy(We),this.fire("move"),ce.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:ze,newSize:Ve})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ce){if(ce=this._locateOptions=extend({timeout:1e4,watch:!1},ce),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var ze=bind(this._handleGeolocationResponse,this),Ve=bind(this._handleGeolocationError,this);return ce.watch?this._locationWatchId=navigator.geolocation.watchPosition(ze,Ve,ce):navigator.geolocation.getCurrentPosition(ze,Ve,ce),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ce){if(this._container._leaflet_id){var ze=ce.code,Ve=ce.message||(1===ze?"permission denied":2===ze?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:ze,message:"Geolocation error: "+Ve+"."})}},_handleGeolocationResponse:function(ce){if(this._container._leaflet_id){var ze=new LatLng(ce.coords.latitude,ce.coords.longitude),Ve=ze.toBounds(2*ce.coords.accuracy),qe=this._locateOptions;if(qe.setView){var Ye=this.getBoundsZoom(Ve);this.setView(ze,qe.maxZoom?Math.min(Ye,qe.maxZoom):Ye)}var We={latlng:ze,bounds:Ve,timestamp:ce.timestamp};for(var Qe in ce.coords)"number"==typeof ce.coords[Qe]&&(We[Qe]=ce.coords[Qe]);this.fire("locationfound",We)}},addHandler:function(ce,ze){if(!ze)return this;var Ve=this[ce]=new ze(this);return this._handlers.push(Ve),this.options[ce]&&Ve.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(ce){this._container._leaflet_id=void 0,this._containerId=void 0}var ce;for(ce in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),remove(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[ce].remove();for(ce in this._panes)remove(this._panes[ce]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ce,ze){var Ve=create$1("div","leaflet-pane"+(ce?" leaflet-"+ce.replace("Pane","")+"-pane":""),ze||this._mapPane);return ce&&(this._panes[ce]=Ve),Ve},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ce=this.getPixelBounds();return new LatLngBounds(this.unproject(ce.getBottomLeft()),this.unproject(ce.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ce,ze,Ve){ce=toLatLngBounds(ce),Ve=toPoint(Ve||[0,0]);var qe=this.getZoom()||0,Ye=this.getMinZoom(),We=this.getMaxZoom(),Qe=ce.getNorthWest(),Xe=ce.getSouthEast(),ot=this.getSize().subtract(Ve),st=toBounds(this.project(Xe,qe),this.project(Qe,qe)).getSize(),mt=Ei.any3d?this.options.zoomSnap:1,gt=ot.x/st.x,yt=ot.y/st.y,bt=ze?Math.max(gt,yt):Math.min(gt,yt);return qe=this.getScaleZoom(bt,qe),mt&&(qe=Math.round(qe/(mt/100))*(mt/100),qe=ze?Math.ceil(qe/mt)*mt:Math.floor(qe/mt)*mt),Math.max(Ye,Math.min(We,qe))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Point(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ce,ze){var Ve=this._getTopLeftPoint(ce,ze);return new Bounds(Ve,Ve.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ce){return this.options.crs.getProjectedBounds(void 0===ce?this.getZoom():ce)},getPane:function(ce){return"string"==typeof ce?this._panes[ce]:ce},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ce,ze){var Ve=this.options.crs;return ze=void 0===ze?this._zoom:ze,Ve.scale(ce)/Ve.scale(ze)},getScaleZoom:function(ce,ze){var Ve=this.options.crs;ze=void 0===ze?this._zoom:ze;var qe=Ve.zoom(ce*Ve.scale(ze));return isNaN(qe)?1/0:qe},project:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.latLngToPoint(toLatLng(ce),ze)},unproject:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.pointToLatLng(toPoint(ce),ze)},layerPointToLatLng:function(ce){var ze=toPoint(ce).add(this.getPixelOrigin());return this.unproject(ze)},latLngToLayerPoint:function(ce){return this.project(toLatLng(ce))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(ce){return this.options.crs.wrapLatLng(toLatLng(ce))},wrapLatLngBounds:function(ce){return this.options.crs.wrapLatLngBounds(toLatLngBounds(ce))},distance:function(ce,ze){return this.options.crs.distance(toLatLng(ce),toLatLng(ze))},containerPointToLayerPoint:function(ce){return toPoint(ce).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ce){return toPoint(ce).add(this._getMapPanePos())},containerPointToLatLng:function(ce){var ze=this.containerPointToLayerPoint(toPoint(ce));return this.layerPointToLatLng(ze)},latLngToContainerPoint:function(ce){return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(ce)))},mouseEventToContainerPoint:function(ce){return getMousePosition(ce,this._container)},mouseEventToLayerPoint:function(ce){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ce))},mouseEventToLatLng:function(ce){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ce))},_initContainer:function(ce){var ze=this._container=get(ce);if(!ze)throw new Error("Map container not found.");if(ze._leaflet_id)throw new Error("Map container is already initialized.");on(ze,"scroll",this._onScroll,this),this._containerId=stamp(ze)},_initLayout:function(){var ce=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ei.any3d,addClass(ce,"leaflet-container"+(Ei.touch?" leaflet-touch":"")+(Ei.retina?" leaflet-retina":"")+(Ei.ielt9?" leaflet-oldie":"")+(Ei.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var ze=getStyle(ce,"position");"absolute"!==ze&&"relative"!==ze&&"fixed"!==ze&&"sticky"!==ze&&(ce.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ce=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),setPosition(this._mapPane,new Point(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(addClass(ce.markerPane,"leaflet-zoom-hide"),addClass(ce.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ce,ze,Ve){setPosition(this._mapPane,new Point(0,0));var qe=!this._loaded;this._loaded=!0,ze=this._limitZoom(ze),this.fire("viewprereset");var Ye=this._zoom!==ze;this._moveStart(Ye,Ve)._move(ce,ze)._moveEnd(Ye),this.fire("viewreset"),qe&&this.fire("load")},_moveStart:function(ce,ze){return ce&&this.fire("zoomstart"),ze||this.fire("movestart"),this},_move:function(ce,ze,Ve,qe){void 0===ze&&(ze=this._zoom);var Ye=this._zoom!==ze;return this._zoom=ze,this._lastCenter=ce,this._pixelOrigin=this._getNewPixelOrigin(ce),qe?Ve&&Ve.pinch&&this.fire("zoom",Ve):((Ye||Ve&&Ve.pinch)&&this.fire("zoom",Ve),this.fire("move",Ve)),this},_moveEnd:function(ce){return ce&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ce){setPosition(this._mapPane,this._getMapPanePos().subtract(ce))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ce){this._targets={},this._targets[stamp(this._container)]=this;var ze=ce?off:on;ze(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&ze(window,"resize",this._onResize,this),Ei.any3d&&this.options.transform3DLimit&&(ce?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){cancelAnimFrame(this._resizeRequest),this._resizeRequest=requestAnimFrame((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ce=this._getMapPanePos();Math.max(Math.abs(ce.x),Math.abs(ce.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ce,ze){for(var Ve,qe=[],Ye="mouseout"===ze||"mouseover"===ze,We=ce.target||ce.srcElement,Qe=!1;We;){if((Ve=this._targets[stamp(We)])&&("click"===ze||"preclick"===ze)&&this._draggableMoved(Ve)){Qe=!0;break}if(Ve&&Ve.listens(ze,!0)){if(Ye&&!isExternalTarget(We,ce))break;if(qe.push(Ve),Ye)break}if(We===this._container)break;We=We.parentNode}return qe.length||Qe||Ye||!this.listens(ze,!0)||(qe=[this]),qe},_isClickDisabled:function(ce){for(;ce&&ce!==this._container;){if(ce._leaflet_disable_click)return!0;ce=ce.parentNode}},_handleDOMEvent:function(ce){var ze=ce.target||ce.srcElement;if(!(!this._loaded||ze._leaflet_disable_events||"click"===ce.type&&this._isClickDisabled(ze))){var Ve=ce.type;"mousedown"===Ve&&preventOutline(ze),this._fireDOMEvent(ce,Ve)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ce,ze,Ve){if("click"===ce.type){var qe=extend({},ce);qe.type="preclick",this._fireDOMEvent(qe,qe.type,Ve)}var Ye=this._findEventTargets(ce,ze);if(Ve){for(var We=[],Qe=0;Qe0?Math.round(ce-ze)/2:Math.max(0,Math.ceil(ce))-Math.max(0,Math.floor(ze))},_limitZoom:function(ce){var ze=this.getMinZoom(),Ve=this.getMaxZoom(),qe=Ei.any3d?this.options.zoomSnap:1;return qe&&(ce=Math.round(ce/qe)*qe),Math.max(ze,Math.min(Ve,ce))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ce,ze){var Ve=this._getCenterOffset(ce)._trunc();return!(!0!==(ze&&ze.animate)&&!this.getSize().contains(Ve)||(this.panBy(Ve,ze),0))},_createAnimProxy:function(){var ce=this._proxy=create$1("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ce),this.on("zoomanim",(function(ce){var ze=Rr,Ve=this._proxy.style[ze];setTransform(this._proxy,this.project(ce.center,ce.zoom),this.getZoomScale(ce.zoom,1)),Ve===this._proxy.style[ze]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){remove(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ce=this.getCenter(),ze=this.getZoom();setTransform(this._proxy,this.project(ce,ze),this.getZoomScale(ze,1))},_catchTransitionEnd:function(ce){this._animatingZoom&&ce.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ce,ze,Ve){if(this._animatingZoom)return!0;if(Ve=Ve||{},!this._zoomAnimated||!1===Ve.animate||this._nothingToAnimate()||Math.abs(ze-this._zoom)>this.options.zoomAnimationThreshold)return!1;var qe=this.getZoomScale(ze),Ye=this._getCenterOffset(ce)._divideBy(1-1/qe);return!(!0!==Ve.animate&&!this.getSize().contains(Ye)||(requestAnimFrame((function(){this._moveStart(!0,Ve.noMoveStart||!1)._animateZoom(ce,ze,!0)}),this),0))},_animateZoom:function(ce,ze,Ve,qe){this._mapPane&&(Ve&&(this._animatingZoom=!0,this._animateToCenter=ce,this._animateToZoom=ze,addClass(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ce,zoom:ze,noUpdate:qe}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(bind(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function createMap(ce,ze){return new zr(ce,ze)}var Br=Class.extend({options:{position:"topright"},initialize:function(ce){setOptions(this,ce)},getPosition:function(){return this.options.position},setPosition:function(ce){var ze=this._map;return ze&&ze.removeControl(this),this.options.position=ce,ze&&ze.addControl(this),this},getContainer:function(){return this._container},addTo:function(ce){this.remove(),this._map=ce;var ze=this._container=this.onAdd(ce),Ve=this.getPosition(),qe=ce._controlCorners[Ve];return addClass(ze,"leaflet-control"),-1!==Ve.indexOf("bottom")?qe.insertBefore(ze,qe.firstChild):qe.appendChild(ze),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(remove(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ce){this._map&&ce&&ce.screenX>0&&ce.screenY>0&&this._map.getContainer().focus()}}),control=function(ce){return new Br(ce)};zr.include({addControl:function(ce){return ce.addTo(this),this},removeControl:function(ce){return ce.remove(),this},_initControlPos:function(){var ce=this._controlCorners={},ze="leaflet-",Ve=this._controlContainer=create$1("div",ze+"control-container",this._container);function createCorner(qe,Ye){var We=ze+qe+" "+ze+Ye;ce[qe+Ye]=create$1("div",We,Ve)}createCorner("top","left"),createCorner("top","right"),createCorner("bottom","left"),createCorner("bottom","right")},_clearControlPos:function(){for(var ce in this._controlCorners)remove(this._controlCorners[ce]);remove(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Nr=Br.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ce,ze,Ve,qe){return Ve1,this._baseLayersList.style.display=ce?"":"none"),this._separator.style.display=ze&&ce?"":"none",this},_onLayerChange:function(ce){this._handlingClick||this._update();var ze=this._getLayer(stamp(ce.target)),Ve=ze.overlay?"add"===ce.type?"overlayadd":"overlayremove":"add"===ce.type?"baselayerchange":null;Ve&&this._map.fire(Ve,ze)},_createRadioElement:function(ce,ze){var Ve='",qe=document.createElement("div");return qe.innerHTML=Ve,qe.firstChild},_addItem:function(ce){var ze,Ve=document.createElement("label"),qe=this._map.hasLayer(ce.layer);ce.overlay?((ze=document.createElement("input")).type="checkbox",ze.className="leaflet-control-layers-selector",ze.defaultChecked=qe):ze=this._createRadioElement("leaflet-base-layers_"+stamp(this),qe),this._layerControlInputs.push(ze),ze.layerId=stamp(ce.layer),on(ze,"click",this._onInputClick,this);var Ye=document.createElement("span");Ye.innerHTML=" "+ce.name;var We=document.createElement("span");return Ve.appendChild(We),We.appendChild(ze),We.appendChild(Ye),(ce.overlay?this._overlaysList:this._baseLayersList).appendChild(Ve),this._checkDisabledLayers(),Ve},_onInputClick:function(){if(!this._preventClick){var ce,ze,Ve=this._layerControlInputs,qe=[],Ye=[];this._handlingClick=!0;for(var We=Ve.length-1;We>=0;We--)ce=Ve[We],ze=this._getLayer(ce.layerId).layer,ce.checked?qe.push(ze):ce.checked||Ye.push(ze);for(We=0;We=0;Ye--)ce=Ve[Ye],ze=this._getLayer(ce.layerId).layer,ce.disabled=void 0!==ze.options.minZoom&&qeze.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ce=this._section;this._preventClick=!0,on(ce,"click",preventDefault),this.expand();var ze=this;setTimeout((function(){off(ce,"click",preventDefault),ze._preventClick=!1}))}}),layers=function(ce,ze,Ve){return new Nr(ce,ze,Ve)},Vr=Br.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(ce){var ze="leaflet-control-zoom",Ve=create$1("div",ze+" leaflet-bar"),qe=this.options;return this._zoomInButton=this._createButton(qe.zoomInText,qe.zoomInTitle,ze+"-in",Ve,this._zoomIn),this._zoomOutButton=this._createButton(qe.zoomOutText,qe.zoomOutTitle,ze+"-out",Ve,this._zoomOut),this._updateDisabled(),ce.on("zoomend zoomlevelschange",this._updateDisabled,this),Ve},onRemove:function(ce){ce.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ce){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ce.shiftKey?3:1))},_createButton:function(ce,ze,Ve,qe,Ye){var We=create$1("a",Ve,qe);return We.innerHTML=ce,We.href="#",We.title=ze,We.setAttribute("role","button"),We.setAttribute("aria-label",ze),disableClickPropagation(We),on(We,"click",stop),on(We,"click",Ye,this),on(We,"click",this._refocusOnMap,this),We},_updateDisabled:function(){var ce=this._map,ze="leaflet-disabled";removeClass(this._zoomInButton,ze),removeClass(this._zoomOutButton,ze),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ce._zoom===ce.getMinZoom())&&(addClass(this._zoomOutButton,ze),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ce._zoom===ce.getMaxZoom())&&(addClass(this._zoomInButton,ze),this._zoomInButton.setAttribute("aria-disabled","true"))}});zr.mergeOptions({zoomControl:!0}),zr.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Vr,this.addControl(this.zoomControl))}));var zoom=function(ce){return new Vr(ce)},Hr=Br.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ce){var ze="leaflet-control-scale",Ve=create$1("div",ze),qe=this.options;return this._addScales(qe,ze+"-line",Ve),ce.on(qe.updateWhenIdle?"moveend":"move",this._update,this),ce.whenReady(this._update,this),Ve},onRemove:function(ce){ce.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ce,ze,Ve){ce.metric&&(this._mScale=create$1("div",ze,Ve)),ce.imperial&&(this._iScale=create$1("div",ze,Ve))},_update:function(){var ce=this._map,ze=ce.getSize().y/2,Ve=ce.distance(ce.containerPointToLatLng([0,ze]),ce.containerPointToLatLng([this.options.maxWidth,ze]));this._updateScales(Ve)},_updateScales:function(ce){this.options.metric&&ce&&this._updateMetric(ce),this.options.imperial&&ce&&this._updateImperial(ce)},_updateMetric:function(ce){var ze=this._getRoundNum(ce),Ve=ze<1e3?ze+" m":ze/1e3+" km";this._updateScale(this._mScale,Ve,ze/ce)},_updateImperial:function(ce){var ze,Ve,qe,Ye=3.2808399*ce;Ye>5280?(ze=Ye/5280,Ve=this._getRoundNum(ze),this._updateScale(this._iScale,Ve+" mi",Ve/ze)):(qe=this._getRoundNum(Ye),this._updateScale(this._iScale,qe+" ft",qe/Ye))},_updateScale:function(ce,ze,Ve){ce.style.width=Math.round(this.options.maxWidth*Ve)+"px",ce.innerHTML=ze},_getRoundNum:function(ce){var ze=Math.pow(10,(Math.floor(ce)+"").length-1),Ve=ce/ze;return ze*(Ve=Ve>=10?10:Ve>=5?5:Ve>=3?3:Ve>=2?2:1)}}),scale=function(ce){return new Hr(ce)},qr='',Yr=Br.extend({options:{position:"bottomright",prefix:'
'+(Ei.inlineSvg?qr+" ":"")+"Leaflet"},initialize:function(ce){setOptions(this,ce),this._attributions={}},onAdd:function(ce){for(var ze in ce.attributionControl=this,this._container=create$1("div","leaflet-control-attribution"),disableClickPropagation(this._container),ce._layers)ce._layers[ze].getAttribution&&this.addAttribution(ce._layers[ze].getAttribution());return this._update(),ce.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ce){ce.off("layeradd",this._addAttribution,this)},_addAttribution:function(ce){ce.layer.getAttribution&&(this.addAttribution(ce.layer.getAttribution()),ce.layer.once("remove",(function(){this.removeAttribution(ce.layer.getAttribution())}),this))},setPrefix:function(ce){return this.options.prefix=ce,this._update(),this},addAttribution:function(ce){return ce?(this._attributions[ce]||(this._attributions[ce]=0),this._attributions[ce]++,this._update(),this):this},removeAttribution:function(ce){return ce?(this._attributions[ce]&&(this._attributions[ce]--,this._update()),this):this},_update:function(){if(this._map){var ce=[];for(var ze in this._attributions)this._attributions[ze]&&ce.push(ze);var Ve=[];this.options.prefix&&Ve.push(this.options.prefix),ce.length&&Ve.push(ce.join(", ")),this._container.innerHTML=Ve.join(' ')}}});zr.mergeOptions({attributionControl:!0}),zr.addInitHook((function(){this.options.attributionControl&&(new Yr).addTo(this)}));var attribution=function(ce){return new Yr(ce)};Br.Layers=Nr,Br.Zoom=Vr,Br.Scale=Hr,Br.Attribution=Yr,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution;var Ur=Class.extend({initialize:function(ce){this._map=ce},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ur.addTo=function(ce,ze){return ce.addHandler(ze,this),this};var Wr={Events:gt},$r=Ei.touch?"touchstart mousedown":"mousedown",Gr=yt.extend({options:{clickTolerance:3},initialize:function(ce,ze,Ve,qe){setOptions(this,qe),this._element=ce,this._dragStartTarget=ze||ce,this._preventOutline=Ve},enable:function(){this._enabled||(on(this._dragStartTarget,$r,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Gr._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,$r,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ce){if(this._enabled&&(this._moved=!1,!hasClass(this._element,"leaflet-zoom-anim")))if(ce.touches&&1!==ce.touches.length)Gr._dragging===this&&this.finishDrag();else if(!(Gr._dragging||ce.shiftKey||1!==ce.which&&1!==ce.button&&!ce.touches||(Gr._dragging=this,this._preventOutline&&preventOutline(this._element),disableImageDrag(),dr(),this._moving))){this.fire("down");var ze=ce.touches?ce.touches[0]:ce,Ve=getSizedParentNode(this._element);this._startPoint=new Point(ze.clientX,ze.clientY),this._startPos=getPosition(this._element),this._parentScale=getScale(Ve);var qe="mousedown"===ce.type;on(document,qe?"mousemove":"touchmove",this._onMove,this),on(document,qe?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(ce){if(this._enabled)if(ce.touches&&ce.touches.length>1)this._moved=!0;else{var ze=ce.touches&&1===ce.touches.length?ce.touches[0]:ce,Ve=new Point(ze.clientX,ze.clientY)._subtract(this._startPoint);(Ve.x||Ve.y)&&(Math.abs(Ve.x)+Math.abs(Ve.y)ot&&(We=Qe,ot=Xe);ot>Ve&&(ze[We]=1,_simplifyDPStep(ce,ze,Ve,qe,We),_simplifyDPStep(ce,ze,Ve,We,Ye))}function _reducePoints(ce,ze){for(var Ve=[ce[0]],qe=1,Ye=0,We=ce.length;qeze&&(Ve.push(ce[qe]),Ye=qe);return Yeze.max.x&&(Ve|=2),ce.yze.max.y&&(Ve|=8),Ve}function _sqDist(ce,ze){var Ve=ze.x-ce.x,qe=ze.y-ce.y;return Ve*Ve+qe*qe}function _sqClosestPointOnSegment(ce,ze,Ve,qe){var Ye,We=ze.x,Qe=ze.y,Xe=Ve.x-We,ot=Ve.y-Qe,st=Xe*Xe+ot*ot;return st>0&&((Ye=((ce.x-We)*Xe+(ce.y-Qe)*ot)/st)>1?(We=Ve.x,Qe=Ve.y):Ye>0&&(We+=Xe*Ye,Qe+=ot*Ye)),Xe=ce.x-We,ot=ce.y-Qe,qe?Xe*Xe+ot*ot:new Point(We,Qe)}function isFlat(ce){return!We(ce[0])||"object"!=typeof ce[0][0]&&void 0!==ce[0][0]}function _flat(ce){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),isFlat(ce)}function polylineCenter(ce,ze){var Ve,qe,Ye,We,Qe,Xe,ot,st;if(!ce||0===ce.length)throw new Error("latlngs not passed");isFlat(ce)||(console.warn("latlngs are not flat! Only the first ring will be used"),ce=ce[0]);var mt=toLatLng([0,0]),gt=toLatLngBounds(ce);gt.getNorthWest().distanceTo(gt.getSouthWest())*gt.getNorthEast().distanceTo(gt.getNorthWest())<1700&&(mt=centroid(ce));var yt=ce.length,bt=[];for(Ve=0;Veqe){ot=(We-qe)/Ye,st=[Xe.x-ot*(Xe.x-Qe.x),Xe.y-ot*(Xe.y-Qe.y)];break}var wt=ze.unproject(toPoint(st));return toLatLng([wt.lat+mt.lat,wt.lng+mt.lng])}var Zr={__proto__:null,simplify:simplify,pointToSegmentDistance:pointToSegmentDistance,closestPointOnSegment:closestPointOnSegment,clipSegment:clipSegment,_getEdgeIntersection:_getEdgeIntersection,_getBitCode:_getBitCode,_sqClosestPointOnSegment:_sqClosestPointOnSegment,isFlat:isFlat,_flat:_flat,polylineCenter:polylineCenter},ga={project:function(ce){return new Point(ce.lng,ce.lat)},unproject:function(ce){return new LatLng(ce.y,ce.x)},bounds:new Bounds([-180,-90],[180,90])},ya={R:6378137,R_MINOR:6356752.314245179,bounds:new Bounds([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(ce){var ze=Math.PI/180,Ve=this.R,qe=ce.lat*ze,Ye=this.R_MINOR/Ve,We=Math.sqrt(1-Ye*Ye),Qe=We*Math.sin(qe),Xe=Math.tan(Math.PI/4-qe/2)/Math.pow((1-Qe)/(1+Qe),We/2);return qe=-Ve*Math.log(Math.max(Xe,1e-10)),new Point(ce.lng*ze*Ve,qe)},unproject:function(ce){for(var ze,Ve=180/Math.PI,qe=this.R,Ye=this.R_MINOR/qe,We=Math.sqrt(1-Ye*Ye),Qe=Math.exp(-ce.y/qe),Xe=Math.PI/2-2*Math.atan(Qe),ot=0,st=.1;ot<15&&Math.abs(st)>1e-7;ot++)ze=We*Math.sin(Xe),ze=Math.pow((1-ze)/(1+ze),We/2),Xe+=st=Math.PI/2-2*Math.atan(Qe*ze)-Xe;return new LatLng(Xe*Ve,ce.x*Ve/qe)}},ba={__proto__:null,LonLat:ga,Mercator:ya,SphericalMercator:kt},va=extend({},Ct,{code:"EPSG:3395",projection:ya,transformation:function(){var ce=.5/(Math.PI*ya.R);return toTransformation(ce,.5,-ce,.5)}()}),_a=extend({},Ct,{code:"EPSG:4326",projection:ga,transformation:toTransformation(1/180,1,-1/180,.5)}),wa=extend({},wt,{projection:ga,transformation:toTransformation(1,0,-1,0),scale:function(ce){return Math.pow(2,ce)},zoom:function(ce){return Math.log(ce)/Math.LN2},distance:function(ce,ze){var Ve=ze.lng-ce.lng,qe=ze.lat-ce.lat;return Math.sqrt(Ve*Ve+qe*qe)},infinite:!0});wt.Earth=Ct,wt.EPSG3395=va,wt.EPSG3857=St,wt.EPSG900913=xt,wt.EPSG4326=_a,wt.Simple=wa;var ka=yt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ce){return ce.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ce){return ce&&ce.removeLayer(this),this},getPane:function(ce){return this._map.getPane(ce?this.options[ce]||ce:this.options.pane)},addInteractiveTarget:function(ce){return this._map._targets[stamp(ce)]=this,this},removeInteractiveTarget:function(ce){return delete this._map._targets[stamp(ce)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ce){var ze=ce.target;if(ze.hasLayer(this)){if(this._map=ze,this._zoomAnimated=ze._zoomAnimated,this.getEvents){var Ve=this.getEvents();ze.on(Ve,this),this.once("remove",(function(){ze.off(Ve,this)}),this)}this.onAdd(ze),this.fire("add"),ze.fire("layeradd",{layer:this})}}});zr.include({addLayer:function(ce){if(!ce._layerAdd)throw new Error("The provided object is not a Layer.");var ze=stamp(ce);return this._layers[ze]||(this._layers[ze]=ce,ce._mapToAdd=this,ce.beforeAdd&&ce.beforeAdd(this),this.whenReady(ce._layerAdd,ce)),this},removeLayer:function(ce){var ze=stamp(ce);return this._layers[ze]?(this._loaded&&ce.onRemove(this),delete this._layers[ze],this._loaded&&(this.fire("layerremove",{layer:ce}),ce.fire("remove")),ce._map=ce._mapToAdd=null,this):this},hasLayer:function(ce){return stamp(ce)in this._layers},eachLayer:function(ce,ze){for(var Ve in this._layers)ce.call(ze,this._layers[Ve]);return this},_addLayers:function(ce){for(var ze=0,Ve=(ce=ce?We(ce)?ce:[ce]:[]).length;zethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&ze[0]instanceof LatLng&&ze[0].equals(ze[Ve-1])&&ze.pop(),ze},_setLatLngs:function(ce){Co.prototype._setLatLngs.call(this,ce),isFlat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return isFlat(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ce=this._renderer._bounds,ze=this.options.weight,Ve=new Point(ze,ze);if(ce=new Bounds(ce.min.subtract(Ve),ce.max.add(Ve)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(ce))if(this.options.noClip)this._parts=this._rings;else for(var qe,Ye=0,We=this._rings.length;Yece.y!=qe.y>ce.y&&ce.x<(qe.x-Ve.x)*(ce.y-Ve.y)/(qe.y-Ve.y)+Ve.x&&(st=!st);return st||Co.prototype._containsPoint.call(this,ce,!0)}});function polygon(ce,ze){return new ko(ce,ze)}var Oo=Aa.extend({initialize:function(ce,ze){setOptions(this,ze),this._layers={},ce&&this.addData(ce)},addData:function(ce){var ze,Ve,qe,Ye=We(ce)?ce:ce.features;if(Ye){for(ze=0,Ve=Ye.length;ze0&&Ye.push(Ye[0].slice()),Ye}function getFeature(ce,ze){return ce.feature?extend({},ce.feature,{geometry:ze}):asFeature(ze)}function asFeature(ce){return"Feature"===ce.type||"FeatureCollection"===ce.type?ce:{type:"Feature",properties:{},geometry:ce}}var Po={toGeoJSON:function(ce){return getFeature(this,{type:"Point",coordinates:latLngToCoords(this.getLatLng(),ce)})}};function geoJSON(ce,ze){return new Oo(ce,ze)}po.include(Po),_o.include(Po),go.include(Po),Co.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs);return getFeature(this,{type:(ze?"Multi":"")+"LineString",coordinates:latLngsToCoords(this._latlngs,ze?1:0,!1,ce)})}}),ko.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs),Ve=ze&&!isFlat(this._latlngs[0]),qe=latLngsToCoords(this._latlngs,Ve?2:ze?1:0,!0,ce);return ze||(qe=[qe]),getFeature(this,{type:(Ve?"Multi":"")+"Polygon",coordinates:qe})}}),xa.include({toMultiPoint:function(ce){var ze=[];return this.eachLayer((function(Ve){ze.push(Ve.toGeoJSON(ce).geometry.coordinates)})),getFeature(this,{type:"MultiPoint",coordinates:ze})},toGeoJSON:function(ce){var ze=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===ze)return this.toMultiPoint(ce);var Ve="GeometryCollection"===ze,qe=[];return this.eachLayer((function(ze){if(ze.toGeoJSON){var Ye=ze.toGeoJSON(ce);if(Ve)qe.push(Ye.geometry);else{var We=asFeature(Ye);"FeatureCollection"===We.type?qe.push.apply(qe,We.features):qe.push(We)}}})),Ve?getFeature(this,{geometries:qe,type:"GeometryCollection"}):{type:"FeatureCollection",features:qe}}});var To=geoJSON,Ao=ka.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ce,ze,Ve){this._url=ce,this._bounds=toLatLngBounds(ze),setOptions(this,Ve)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){remove(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ce){return this.options.opacity=ce,this._image&&this._updateOpacity(),this},setStyle:function(ce){return ce.opacity&&this.setOpacity(ce.opacity),this},bringToFront:function(){return this._map&&toFront(this._image),this},bringToBack:function(){return this._map&&toBack(this._image),this},setUrl:function(ce){return this._url=ce,this._image&&(this._image.src=ce),this},setBounds:function(ce){return this._bounds=toLatLngBounds(ce),this._map&&this._reset(),this},getEvents:function(){var ce={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ce.zoomanim=this._animateZoom),ce},setZIndex:function(ce){return this.options.zIndex=ce,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ce="IMG"===this._url.tagName,ze=this._image=ce?this._url:create$1("img");addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onload=bind(this.fire,this,"load"),ze.onerror=bind(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(ze.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ce?this._url=ze.src:(ze.src=this._url,ze.alt=this.options.alt)},_animateZoom:function(ce){var ze=this._map.getZoomScale(ce.zoom),Ve=this._map._latLngBoundsToNewLayerBounds(this._bounds,ce.zoom,ce.center).min;setTransform(this._image,Ve,ze)},_reset:function(){var ce=this._image,ze=new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),Ve=ze.getSize();setPosition(ce,ze.min),ce.style.width=Ve.x+"px",ce.style.height=Ve.y+"px"},_updateOpacity:function(){setOpacity(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ce=this.options.errorOverlayUrl;ce&&this._url!==ce&&(this._url=ce,this._image.src=ce)},getCenter:function(){return this._bounds.getCenter()}}),imageOverlay=function(ce,ze,Ve){return new Ao(ce,ze,Ve)},jo=Ao.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ce="VIDEO"===this._url.tagName,ze=this._image=ce?this._url:create$1("video");if(addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onloadeddata=bind(this.fire,this,"load"),ce){for(var Ve=ze.getElementsByTagName("source"),qe=[],Ye=0;Ye0?qe:[ze.src]}else{We(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(ze.style,"objectFit")&&(ze.style.objectFit="fill"),ze.autoplay=!!this.options.autoplay,ze.loop=!!this.options.loop,ze.muted=!!this.options.muted,ze.playsInline=!!this.options.playsInline;for(var Qe=0;QeYe?(ze.height=Ye+"px",addClass(ce,We)):removeClass(ce,We),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ce){var ze=this._map._latLngToNewLayerPoint(this._latlng,ce.zoom,ce.center),Ve=this._getAnchor();setPosition(this._container,ze.add(Ve))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var ce=this._map,ze=parseInt(getStyle(this._container,"marginBottom"),10)||0,Ve=this._container.offsetHeight+ze,qe=this._containerWidth,Ye=new Point(this._containerLeft,-Ve-this._containerBottom);Ye._add(getPosition(this._container));var We=ce.layerPointToContainerPoint(Ye),Qe=toPoint(this.options.autoPanPadding),Xe=toPoint(this.options.autoPanPaddingTopLeft||Qe),ot=toPoint(this.options.autoPanPaddingBottomRight||Qe),st=ce.getSize(),mt=0,gt=0;We.x+qe+ot.x>st.x&&(mt=We.x+qe-st.x+ot.x),We.x-mt-Xe.x<0&&(mt=We.x-Xe.x),We.y+Ve+ot.y>st.y&&(gt=We.y+Ve-st.y+ot.y),We.y-gt-Xe.y<0&&(gt=We.y-Xe.y),(mt||gt)&&(this.options.keepInView&&(this._autopanning=!0),ce.fire("autopanstart").panBy([mt,gt]))}},_getAnchor:function(){return toPoint(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),popup=function(ce,ze){return new Vo(ce,ze)};zr.mergeOptions({closePopupOnClick:!0}),zr.include({openPopup:function(ce,ze,Ve){return this._initOverlay(Vo,ce,ze,Ve).openOn(this),this},closePopup:function(ce){return(ce=arguments.length?ce:this._popup)&&ce.close(),this}}),ka.include({bindPopup:function(ce,ze){return this._popup=this._initOverlay(Vo,this._popup,ce,ze),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ce){return this._popup&&(this instanceof Aa||(this._popup._source=this),this._popup._prepareOpen(ce||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(ce){return this._popup&&this._popup.setContent(ce),this},getPopup:function(){return this._popup},_openPopup:function(ce){if(this._popup&&this._map){stop(ce);var ze=ce.layer||ce.target;this._popup._source!==ze||ze instanceof ho?(this._popup._source=ze,this.openPopup(ce.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ce.latlng)}},_movePopup:function(ce){this._popup.setLatLng(ce.latlng)},_onKeyPress:function(ce){13===ce.originalEvent.keyCode&&this._openPopup(ce)}});var Ho=Bo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ce){Bo.prototype.onAdd.call(this,ce),this.setOpacity(this.options.opacity),ce.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ce){Bo.prototype.onRemove.call(this,ce),ce.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ce=Bo.prototype.getEvents.call(this);return this.options.permanent||(ce.preclick=this.close),ce},_initLayout:function(){var ce="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=create$1("div",ce),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+stamp(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ce){var ze,Ve,qe=this._map,Ye=this._container,We=qe.latLngToContainerPoint(qe.getCenter()),Qe=qe.layerPointToContainerPoint(ce),Xe=this.options.direction,ot=Ye.offsetWidth,st=Ye.offsetHeight,mt=toPoint(this.options.offset),gt=this._getAnchor();"top"===Xe?(ze=ot/2,Ve=st):"bottom"===Xe?(ze=ot/2,Ve=0):"center"===Xe?(ze=ot/2,Ve=st/2):"right"===Xe?(ze=0,Ve=st/2):"left"===Xe?(ze=ot,Ve=st/2):Qe.xthis.options.maxZoom||Veqe&&this._retainParent(Ye,We,Qe,qe))},_retainChildren:function(ce,ze,Ve,qe){for(var Ye=2*ce;Ye<2*ce+2;Ye++)for(var We=2*ze;We<2*ze+2;We++){var Qe=new Point(Ye,We);Qe.z=Ve+1;var Xe=this._tileCoordsToKey(Qe),ot=this._tiles[Xe];ot&&ot.active?ot.retain=!0:(ot&&ot.loaded&&(ot.retain=!0),Ve+1this.options.maxZoom||void 0!==this.options.minZoom&&Ye1)this._setView(ce,Ve);else{for(var gt=Ye.min.y;gt<=Ye.max.y;gt++)for(var yt=Ye.min.x;yt<=Ye.max.x;yt++){var bt=new Point(yt,gt);if(bt.z=this._tileZoom,this._isValidTile(bt)){var vt=this._tiles[this._tileCoordsToKey(bt)];vt?vt.current=!0:Qe.push(bt)}}if(Qe.sort((function(ce,ze){return ce.distanceTo(We)-ze.distanceTo(We)})),0!==Qe.length){this._loading||(this._loading=!0,this.fire("loading"));var wt=document.createDocumentFragment();for(yt=0;ytVe.max.x)||!ze.wrapLat&&(ce.yVe.max.y))return!1}if(!this.options.bounds)return!0;var qe=this._tileCoordsToBounds(ce);return toLatLngBounds(this.options.bounds).overlaps(qe)},_keyToBounds:function(ce){return this._tileCoordsToBounds(this._keyToTileCoords(ce))},_tileCoordsToNwSe:function(ce){var ze=this._map,Ve=this.getTileSize(),qe=ce.scaleBy(Ve),Ye=qe.add(Ve);return[ze.unproject(qe,ce.z),ze.unproject(Ye,ce.z)]},_tileCoordsToBounds:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=new LatLngBounds(ze[0],ze[1]);return this.options.noWrap||(Ve=this._map.wrapLatLngBounds(Ve)),Ve},_tileCoordsToKey:function(ce){return ce.x+":"+ce.y+":"+ce.z},_keyToTileCoords:function(ce){var ze=ce.split(":"),Ve=new Point(+ze[0],+ze[1]);return Ve.z=+ze[2],Ve},_removeTile:function(ce){var ze=this._tiles[ce];ze&&(remove(ze.el),delete this._tiles[ce],this.fire("tileunload",{tile:ze.el,coords:this._keyToTileCoords(ce)}))},_initTile:function(ce){addClass(ce,"leaflet-tile");var ze=this.getTileSize();ce.style.width=ze.x+"px",ce.style.height=ze.y+"px",ce.onselectstart=falseFn,ce.onmousemove=falseFn,Ei.ielt9&&this.options.opacity<1&&setOpacity(ce,this.options.opacity)},_addTile:function(ce,ze){var Ve=this._getTilePos(ce),qe=this._tileCoordsToKey(ce),Ye=this.createTile(this._wrapCoords(ce),bind(this._tileReady,this,ce));this._initTile(Ye),this.createTile.length<2&&requestAnimFrame(bind(this._tileReady,this,ce,null,Ye)),setPosition(Ye,Ve),this._tiles[qe]={el:Ye,coords:ce,current:!0},ze.appendChild(Ye),this.fire("tileloadstart",{tile:Ye,coords:ce})},_tileReady:function(ce,ze,Ve){ze&&this.fire("tileerror",{error:ze,tile:Ve,coords:ce});var qe=this._tileCoordsToKey(ce);(Ve=this._tiles[qe])&&(Ve.loaded=+new Date,this._map._fadeAnimated?(setOpacity(Ve.el,0),cancelAnimFrame(this._fadeFrame),this._fadeFrame=requestAnimFrame(this._updateOpacity,this)):(Ve.active=!0,this._pruneTiles()),ze||(addClass(Ve.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:Ve.el,coords:ce})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ei.ielt9||!this._map._fadeAnimated?requestAnimFrame(this._pruneTiles,this):setTimeout(bind(this._pruneTiles,this),250)))},_getTilePos:function(ce){return ce.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ce){var ze=new Point(this._wrapX?wrapNum(ce.x,this._wrapX):ce.x,this._wrapY?wrapNum(ce.y,this._wrapY):ce.y);return ze.z=ce.z,ze},_pxBoundsToTileRange:function(ce){var ze=this.getTileSize();return new Bounds(ce.min.unscaleBy(ze).floor(),ce.max.unscaleBy(ze).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ce in this._tiles)if(!this._tiles[ce].loaded)return!1;return!0}});function gridLayer(ce){return new Wo(ce)}var $o=Wo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ce,ze){this._url=ce,(ze=setOptions(this,ze)).detectRetina&&Ei.retina&&ze.maxZoom>0?(ze.tileSize=Math.floor(ze.tileSize/2),ze.zoomReverse?(ze.zoomOffset--,ze.minZoom=Math.min(ze.maxZoom,ze.minZoom+1)):(ze.zoomOffset++,ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom-1)),ze.minZoom=Math.max(0,ze.minZoom)):ze.zoomReverse?ze.minZoom=Math.min(ze.maxZoom,ze.minZoom):ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom),"string"==typeof ze.subdomains&&(ze.subdomains=ze.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ce,ze){return this._url===ce&&void 0===ze&&(ze=!0),this._url=ce,ze||this.redraw(),this},createTile:function(ce,ze){var Ve=document.createElement("img");return on(Ve,"load",bind(this._tileOnLoad,this,ze,Ve)),on(Ve,"error",bind(this._tileOnError,this,ze,Ve)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(Ve.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(Ve.referrerPolicy=this.options.referrerPolicy),Ve.alt="",Ve.src=this.getTileUrl(ce),Ve},getTileUrl:function(ce){var ze={r:Ei.retina?"@2x":"",s:this._getSubdomain(ce),x:ce.x,y:ce.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var Ve=this._globalTileRange.max.y-ce.y;this.options.tms&&(ze.y=Ve),ze["-y"]=Ve}return template(this._url,extend(ze,this.options))},_tileOnLoad:function(ce,ze){Ei.ielt9?setTimeout(bind(ce,this,null,ze),0):ce(null,ze)},_tileOnError:function(ce,ze,Ve){var qe=this.options.errorTileUrl;qe&&ze.getAttribute("src")!==qe&&(ze.src=qe),ce(Ve,ze)},_onTileRemove:function(ce){ce.tile.onload=null},_getZoomForUrl:function(){var ce=this._tileZoom,ze=this.options.maxZoom;return this.options.zoomReverse&&(ce=ze-ce),ce+this.options.zoomOffset},_getSubdomain:function(ce){var ze=Math.abs(ce.x+ce.y)%this.options.subdomains.length;return this.options.subdomains[ze]},_abortLoading:function(){var ce,ze;for(ce in this._tiles)if(this._tiles[ce].coords.z!==this._tileZoom&&((ze=this._tiles[ce].el).onload=falseFn,ze.onerror=falseFn,!ze.complete)){ze.src=Qe;var Ve=this._tiles[ce].coords;remove(ze),delete this._tiles[ce],this.fire("tileabort",{tile:ze,coords:Ve})}},_removeTile:function(ce){var ze=this._tiles[ce];if(ze)return ze.el.setAttribute("src",Qe),Wo.prototype._removeTile.call(this,ce)},_tileReady:function(ce,ze,Ve){if(this._map&&(!Ve||Ve.getAttribute("src")!==Qe))return Wo.prototype._tileReady.call(this,ce,ze,Ve)}});function tileLayer(ce,ze){return new $o(ce,ze)}var es=$o.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ce,ze){this._url=ce;var Ve=extend({},this.defaultWmsParams);for(var qe in ze)qe in this.options||(Ve[qe]=ze[qe]);var Ye=(ze=setOptions(this,ze)).detectRetina&&Ei.retina?2:1,We=this.getTileSize();Ve.width=We.x*Ye,Ve.height=We.y*Ye,this.wmsParams=Ve},onAdd:function(ce){this._crs=this.options.crs||ce.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var ze=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[ze]=this._crs.code,$o.prototype.onAdd.call(this,ce)},getTileUrl:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=this._crs,qe=toBounds(Ve.project(ze[0]),Ve.project(ze[1])),Ye=qe.min,We=qe.max,Qe=(this._wmsVersion>=1.3&&this._crs===_a?[Ye.y,Ye.x,We.y,We.x]:[Ye.x,Ye.y,We.x,We.y]).join(","),Xe=$o.prototype.getTileUrl.call(this,ce);return Xe+getParamString(this.wmsParams,Xe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Qe},setParams:function(ce,ze){return extend(this.wmsParams,ce),ze||this.redraw(),this}});function tileLayerWMS(ce,ze){return new es(ce,ze)}$o.WMS=es,tileLayer.wms=tileLayerWMS;var ts=ka.extend({options:{padding:.1},initialize:function(ce){setOptions(this,ce),stamp(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),addClass(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ce={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ce.zoomanim=this._onAnimZoom),ce},_onAnimZoom:function(ce){this._updateTransform(ce.center,ce.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ce,ze){var Ve=this._map.getZoomScale(ze,this._zoom),qe=this._map.getSize().multiplyBy(.5+this.options.padding),Ye=this._map.project(this._center,ze),We=qe.multiplyBy(-Ve).add(Ye).subtract(this._map._getNewPixelOrigin(ce,ze));Ei.any3d?setTransform(this._container,We,Ve):setPosition(this._container,We)},_reset:function(){for(var ce in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[ce]._reset()},_onZoomEnd:function(){for(var ce in this._layers)this._layers[ce]._project()},_updatePaths:function(){for(var ce in this._layers)this._layers[ce]._update()},_update:function(){var ce=this.options.padding,ze=this._map.getSize(),Ve=this._map.containerPointToLayerPoint(ze.multiplyBy(-ce)).round();this._bounds=new Bounds(Ve,Ve.add(ze.multiplyBy(1+2*ce)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ns=ts.extend({options:{tolerance:0},getEvents:function(){var ce=ts.prototype.getEvents.call(this);return ce.viewprereset=this._onViewPreReset,ce},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ts.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ce=this._container=document.createElement("canvas");on(ce,"mousemove",this._onMouseMove,this),on(ce,"click dblclick mousedown mouseup contextmenu",this._onClick,this),on(ce,"mouseout",this._handleMouseOut,this),ce._leaflet_disable_events=!0,this._ctx=ce.getContext("2d")},_destroyContainer:function(){cancelAnimFrame(this._redrawRequest),delete this._ctx,remove(this._container),off(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var ce in this._redrawBounds=null,this._layers)this._layers[ce]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=this._container,Ve=ce.getSize(),qe=Ei.retina?2:1;setPosition(ze,ce.min),ze.width=qe*Ve.x,ze.height=qe*Ve.y,ze.style.width=Ve.x+"px",ze.style.height=Ve.y+"px",Ei.retina&&this._ctx.scale(2,2),this._ctx.translate(-ce.min.x,-ce.min.y),this.fire("update")}},_reset:function(){ts.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ce){this._updateDashArray(ce),this._layers[stamp(ce)]=ce;var ze=ce._order={layer:ce,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=ze),this._drawLast=ze,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ce){this._requestRedraw(ce)},_removePath:function(ce){var ze=ce._order,Ve=ze.next,qe=ze.prev;Ve?Ve.prev=qe:this._drawLast=qe,qe?qe.next=Ve:this._drawFirst=Ve,delete ce._order,delete this._layers[stamp(ce)],this._requestRedraw(ce)},_updatePath:function(ce){this._extendRedrawBounds(ce),ce._project(),ce._update(),this._requestRedraw(ce)},_updateStyle:function(ce){this._updateDashArray(ce),this._requestRedraw(ce)},_updateDashArray:function(ce){if("string"==typeof ce.options.dashArray){var ze,Ve,qe=ce.options.dashArray.split(/[, ]+/),Ye=[];for(Ve=0;Ve')}}catch(ce){}return function(ce){return document.createElement("<"+ce+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),os={_initContainer:function(){this._container=create$1("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ts.prototype._update.call(this),this.fire("update"))},_initPath:function(ce){var ze=ce._container=rs("shape");addClass(ze,"leaflet-vml-shape "+(this.options.className||"")),ze.coordsize="1 1",ce._path=rs("path"),ze.appendChild(ce._path),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){var ze=ce._container;this._container.appendChild(ze),ce.options.interactive&&ce.addInteractiveTarget(ze)},_removePath:function(ce){var ze=ce._container;remove(ze),ce.removeInteractiveTarget(ze),delete this._layers[stamp(ce)]},_updateStyle:function(ce){var ze=ce._stroke,Ve=ce._fill,qe=ce.options,Ye=ce._container;Ye.stroked=!!qe.stroke,Ye.filled=!!qe.fill,qe.stroke?(ze||(ze=ce._stroke=rs("stroke")),Ye.appendChild(ze),ze.weight=qe.weight+"px",ze.color=qe.color,ze.opacity=qe.opacity,qe.dashArray?ze.dashStyle=We(qe.dashArray)?qe.dashArray.join(" "):qe.dashArray.replace(/( *, *)/g," "):ze.dashStyle="",ze.endcap=qe.lineCap.replace("butt","flat"),ze.joinstyle=qe.lineJoin):ze&&(Ye.removeChild(ze),ce._stroke=null),qe.fill?(Ve||(Ve=ce._fill=rs("fill")),Ye.appendChild(Ve),Ve.color=qe.fillColor||qe.color,Ve.opacity=qe.fillOpacity):Ve&&(Ye.removeChild(Ve),ce._fill=null)},_updateCircle:function(ce){var ze=ce._point.round(),Ve=Math.round(ce._radius),qe=Math.round(ce._radiusY||Ve);this._setPath(ce,ce._empty()?"M0 0":"AL "+ze.x+","+ze.y+" "+Ve+","+qe+" 0,23592600")},_setPath:function(ce,ze){ce._path.v=ze},_bringToFront:function(ce){toFront(ce._container)},_bringToBack:function(ce){toBack(ce._container)}},ss=Ei.vml?rs:svgCreate,ls=ts.extend({_initContainer:function(){this._container=ss("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ss("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){remove(this._container),off(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=ce.getSize(),Ve=this._container;this._svgSize&&this._svgSize.equals(ze)||(this._svgSize=ze,Ve.setAttribute("width",ze.x),Ve.setAttribute("height",ze.y)),setPosition(Ve,ce.min),Ve.setAttribute("viewBox",[ce.min.x,ce.min.y,ze.x,ze.y].join(" ")),this.fire("update")}},_initPath:function(ce){var ze=ce._path=ss("path");ce.options.className&&addClass(ze,ce.options.className),ce.options.interactive&&addClass(ze,"leaflet-interactive"),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ce._path),ce.addInteractiveTarget(ce._path)},_removePath:function(ce){remove(ce._path),ce.removeInteractiveTarget(ce._path),delete this._layers[stamp(ce)]},_updatePath:function(ce){ce._project(),ce._update()},_updateStyle:function(ce){var ze=ce._path,Ve=ce.options;ze&&(Ve.stroke?(ze.setAttribute("stroke",Ve.color),ze.setAttribute("stroke-opacity",Ve.opacity),ze.setAttribute("stroke-width",Ve.weight),ze.setAttribute("stroke-linecap",Ve.lineCap),ze.setAttribute("stroke-linejoin",Ve.lineJoin),Ve.dashArray?ze.setAttribute("stroke-dasharray",Ve.dashArray):ze.removeAttribute("stroke-dasharray"),Ve.dashOffset?ze.setAttribute("stroke-dashoffset",Ve.dashOffset):ze.removeAttribute("stroke-dashoffset")):ze.setAttribute("stroke","none"),Ve.fill?(ze.setAttribute("fill",Ve.fillColor||Ve.color),ze.setAttribute("fill-opacity",Ve.fillOpacity),ze.setAttribute("fill-rule",Ve.fillRule||"evenodd")):ze.setAttribute("fill","none"))},_updatePoly:function(ce,ze){this._setPath(ce,pointsToPath(ce._parts,ze))},_updateCircle:function(ce){var ze=ce._point,Ve=Math.max(Math.round(ce._radius),1),qe="a"+Ve+","+(Math.max(Math.round(ce._radiusY),1)||Ve)+" 0 1,0 ",Ye=ce._empty()?"M0 0":"M"+(ze.x-Ve)+","+ze.y+qe+2*Ve+",0 "+qe+2*-Ve+",0 ";this._setPath(ce,Ye)},_setPath:function(ce,ze){ce._path.setAttribute("d",ze)},_bringToFront:function(ce){toFront(ce._path)},_bringToBack:function(ce){toBack(ce._path)}});function svg(ce){return Ei.svg||Ei.vml?new ls(ce):null}Ei.vml&&ls.include(os),zr.include({getRenderer:function(ce){var ze=ce.options.renderer||this._getPaneRenderer(ce.options.pane)||this.options.renderer||this._renderer;return ze||(ze=this._renderer=this._createRenderer()),this.hasLayer(ze)||this.addLayer(ze),ze},_getPaneRenderer:function(ce){if("overlayPane"===ce||void 0===ce)return!1;var ze=this._paneRenderers[ce];return void 0===ze&&(ze=this._createRenderer({pane:ce}),this._paneRenderers[ce]=ze),ze},_createRenderer:function(ce){return this.options.preferCanvas&&canvas(ce)||svg(ce)}});var cs=ko.extend({initialize:function(ce,ze){ko.prototype.initialize.call(this,this._boundsToLatLngs(ce),ze)},setBounds:function(ce){return this.setLatLngs(this._boundsToLatLngs(ce))},_boundsToLatLngs:function(ce){return[(ce=toLatLngBounds(ce)).getSouthWest(),ce.getNorthWest(),ce.getNorthEast(),ce.getSouthEast()]}});function rectangle(ce,ze){return new cs(ce,ze)}ls.create=ss,ls.pointsToPath=pointsToPath,Oo.geometryToLayer=geometryToLayer,Oo.coordsToLatLng=coordsToLatLng,Oo.coordsToLatLngs=coordsToLatLngs,Oo.latLngToCoords=latLngToCoords,Oo.latLngsToCoords=latLngsToCoords,Oo.getFeature=getFeature,Oo.asFeature=asFeature,zr.mergeOptions({boxZoom:!0});var ds=Ur.extend({initialize:function(ce){this._map=ce,this._container=ce._container,this._pane=ce._panes.overlayPane,this._resetStateTimeout=0,ce.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){remove(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ce){if(!ce.shiftKey||1!==ce.which&&1!==ce.button)return!1;this._clearDeferredResetState(),this._resetState(),dr(),disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(ce),on(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ce){this._moved||(this._moved=!0,this._box=create$1("div","leaflet-zoom-box",this._container),addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ce);var ze=new Bounds(this._point,this._startPoint),Ve=ze.getSize();setPosition(this._box,ze.min),this._box.style.width=Ve.x+"px",this._box.style.height=Ve.y+"px"},_finish:function(){this._moved&&(remove(this._box),removeClass(this._container,"leaflet-crosshair")),ur(),enableImageDrag(),off(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ce){if((1===ce.which||1===ce.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(bind(this._resetState,this),0);var ze=new LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(ze).fire("boxzoomend",{boxZoomBounds:ze})}},_onKeyDown:function(ce){27===ce.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});zr.addInitHook("addHandler","boxZoom",ds),zr.mergeOptions({doubleClickZoom:!0});var us=Ur.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ce){var ze=this._map,Ve=ze.getZoom(),qe=ze.options.zoomDelta,Ye=ce.originalEvent.shiftKey?Ve-qe:Ve+qe;"center"===ze.options.doubleClickZoom?ze.setZoom(Ye):ze.setZoomAround(ce.containerPoint,Ye)}});zr.addInitHook("addHandler","doubleClickZoom",us),zr.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ps=Ur.extend({addHooks:function(){if(!this._draggable){var ce=this._map;this._draggable=new Gr(ce._mapPane,ce._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ce.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ce.on("zoomend",this._onZoomEnd,this),ce.whenReady(this._onZoomEnd,this))}addClass(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){removeClass(this._map._container,"leaflet-grab"),removeClass(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ce=this._map;if(ce._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var ze=toLatLngBounds(this._map.options.maxBounds);this._offsetLimit=toBounds(this._map.latLngToContainerPoint(ze.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(ze.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ce.fire("movestart").fire("dragstart"),ce.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ce){if(this._map.options.inertia){var ze=this._lastTime=+new Date,Ve=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(Ve),this._times.push(ze),this._prunePositions(ze)}this._map.fire("move",ce).fire("drag",ce)},_prunePositions:function(ce){for(;this._positions.length>1&&ce-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ce=this._map.getSize().divideBy(2),ze=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=ze.subtract(ce).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ce,ze){return ce-(ce-ze)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var ce=this._draggable._newPos.subtract(this._draggable._startPos),ze=this._offsetLimit;ce.xze.max.x&&(ce.x=this._viscousLimit(ce.x,ze.max.x)),ce.y>ze.max.y&&(ce.y=this._viscousLimit(ce.y,ze.max.y)),this._draggable._newPos=this._draggable._startPos.add(ce)}},_onPreDragWrap:function(){var ce=this._worldWidth,ze=Math.round(ce/2),Ve=this._initialWorldOffset,qe=this._draggable._newPos.x,Ye=(qe-ze+Ve)%ce+ze-Ve,We=(qe+ze+Ve)%ce-ze-Ve,Qe=Math.abs(Ye+Ve)0?We:-We))-ze;this._delta=0,this._startTime=null,Qe&&("center"===ce.options.scrollWheelZoom?ce.setZoom(ze+Qe):ce.setZoomAround(this._lastMousePos,ze+Qe))}});zr.addInitHook("addHandler","scrollWheelZoom",fs);var ms=600;zr.mergeOptions({tapHold:Ei.touchNative&&Ei.safari&&Ei.mobile,tapTolerance:15});var gs=Ur.extend({addHooks:function(){on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ce){if(clearTimeout(this._holdTimeout),1===ce.touches.length){var ze=ce.touches[0];this._startPos=this._newPos=new Point(ze.clientX,ze.clientY),this._holdTimeout=setTimeout(bind((function(){this._cancel(),this._isTapValid()&&(on(document,"touchend",preventDefault),on(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",ze))}),this),ms),on(document,"touchend touchcancel contextmenu",this._cancel,this),on(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function cancelClickPrevent(){off(document,"touchend",preventDefault),off(document,"touchend touchcancel",cancelClickPrevent)},_cancel:function(){clearTimeout(this._holdTimeout),off(document,"touchend touchcancel contextmenu",this._cancel,this),off(document,"touchmove",this._onMove,this)},_onMove:function(ce){var ze=ce.touches[0];this._newPos=new Point(ze.clientX,ze.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ce,ze){var Ve=new MouseEvent(ce,{bubbles:!0,cancelable:!0,view:window,screenX:ze.screenX,screenY:ze.screenY,clientX:ze.clientX,clientY:ze.clientY});Ve._simulated=!0,ze.target.dispatchEvent(Ve)}});zr.addInitHook("addHandler","tapHold",gs),zr.mergeOptions({touchZoom:Ei.touch,bounceAtZoomLimits:!0});var ys=Ur.extend({addHooks:function(){addClass(this._map._container,"leaflet-touch-zoom"),on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){removeClass(this._map._container,"leaflet-touch-zoom"),off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ce){var ze=this._map;if(ce.touches&&2===ce.touches.length&&!ze._animatingZoom&&!this._zooming){var Ve=ze.mouseEventToContainerPoint(ce.touches[0]),qe=ze.mouseEventToContainerPoint(ce.touches[1]);this._centerPoint=ze.getSize()._divideBy(2),this._startLatLng=ze.containerPointToLatLng(this._centerPoint),"center"!==ze.options.touchZoom&&(this._pinchStartLatLng=ze.containerPointToLatLng(Ve.add(qe)._divideBy(2))),this._startDist=Ve.distanceTo(qe),this._startZoom=ze.getZoom(),this._moved=!1,this._zooming=!0,ze._stop(),on(document,"touchmove",this._onTouchMove,this),on(document,"touchend touchcancel",this._onTouchEnd,this),preventDefault(ce)}},_onTouchMove:function(ce){if(ce.touches&&2===ce.touches.length&&this._zooming){var ze=this._map,Ve=ze.mouseEventToContainerPoint(ce.touches[0]),qe=ze.mouseEventToContainerPoint(ce.touches[1]),Ye=Ve.distanceTo(qe)/this._startDist;if(this._zoom=ze.getScaleZoom(Ye,this._startZoom),!ze.options.bounceAtZoomLimits&&(this._zoomze.getMaxZoom()&&Ye>1)&&(this._zoom=ze._limitZoom(this._zoom)),"center"===ze.options.touchZoom){if(this._center=this._startLatLng,1===Ye)return}else{var We=Ve._add(qe)._divideBy(2)._subtract(this._centerPoint);if(1===Ye&&0===We.x&&0===We.y)return;this._center=ze.unproject(ze.project(this._pinchStartLatLng,this._zoom).subtract(We),this._zoom)}this._moved||(ze._moveStart(!0,!1),this._moved=!0),cancelAnimFrame(this._animRequest);var Qe=bind(ze._move,ze,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimFrame(Qe,this,!0),preventDefault(ce)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimFrame(this._animRequest),off(document,"touchmove",this._onTouchMove,this),off(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});zr.addInitHook("addHandler","touchZoom",ys),zr.BoxZoom=ds,zr.DoubleClickZoom=us,zr.Drag=ps,zr.Keyboard=hs,zr.ScrollWheelZoom=fs,zr.TapHold=gs,zr.TouchZoom=ys,ce.Bounds=Bounds,ce.Browser=Ei,ce.CRS=wt,ce.Canvas=ns,ce.Circle=_o,ce.CircleMarker=go,ce.Class=Class,ce.Control=Br,ce.DivIcon=Uo,ce.DivOverlay=Bo,ce.DomEvent=jr,ce.DomUtil=Tr,ce.Draggable=Gr,ce.Evented=yt,ce.FeatureGroup=Aa,ce.GeoJSON=Oo,ce.GridLayer=Wo,ce.Handler=Ur,ce.Icon=Ba,ce.ImageOverlay=Ao,ce.LatLng=LatLng,ce.LatLngBounds=LatLngBounds,ce.Layer=ka,ce.LayerGroup=xa,ce.LineUtil=Zr,ce.Map=zr,ce.Marker=po,ce.Mixin=Wr,ce.Path=ho,ce.Point=Point,ce.PolyUtil=Jr,ce.Polygon=ko,ce.Polyline=Co,ce.Popup=Vo,ce.PosAnimation=Ir,ce.Projection=ba,ce.Rectangle=cs,ce.Renderer=ts,ce.SVG=ls,ce.SVGOverlay=Fo,ce.TileLayer=$o,ce.Tooltip=Ho,ce.Transformation=Transformation,ce.Util=mt,ce.VideoOverlay=jo,ce.bind=bind,ce.bounds=toBounds,ce.canvas=canvas,ce.circle=circle,ce.circleMarker=circleMarker,ce.control=control,ce.divIcon=divIcon,ce.extend=extend,ce.featureGroup=featureGroup,ce.geoJSON=geoJSON,ce.geoJson=To,ce.gridLayer=gridLayer,ce.icon=icon,ce.imageOverlay=imageOverlay,ce.latLng=toLatLng,ce.latLngBounds=toLatLngBounds,ce.layerGroup=layerGroup,ce.map=createMap,ce.marker=marker,ce.point=toPoint,ce.polygon=polygon,ce.polyline=polyline,ce.popup=popup,ce.rectangle=rectangle,ce.setOptions=setOptions,ce.stamp=stamp,ce.svg=svg,ce.svgOverlay=svgOverlay,ce.tileLayer=tileLayer,ce.tooltip=tooltip,ce.transformation=toTransformation,ce.version=ze,ce.videoOverlay=videoOverlay;var bs=window.L;ce.noConflict=function(){return window.L=bs,this},window.L=ce}(ze)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Dt}));var qe=Ve(29),Ye=Ve(117),We=Ve(285),Qe=Ve(153),Xe=Ve(446);class ot extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var st=Ve(282);function preventDefault(ce){return ce.bindTemplate.to((ze=>{ze.target===ce.element&&ze.preventDefault()}))}var mt=Ve(55),gt=Ve(362),yt=Ve(77),bt=Ve(195),vt=Ve(8),wt=Ve(286),Ct=Ve(678);class Dt extends qe.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate,qe=this.t;this.options=ze||{},this.set("ariaLabel",qe("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ye.a,this.keystrokes=new Qe.a,this.set("class"),this.set("isCompact",!1),this.itemsView=new kt(ce),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const Xe="rtl"===ce.uiLanguageDirection;this._focusCycler=new We.a({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[Xe?"arrowright":"arrowleft","arrowup"],focusNext:[Xe?"arrowleft":"arrowright","arrowdown"]}});const ot=["ck","ck-toolbar",Ve.to("class"),Ve.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&ot.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:ot,role:"toolbar","aria-label":Ve.to("ariaLabel"),style:{maxWidth:Ve.to("maxWidth")}},children:this.children,on:{mousedown:preventDefault(this)}}),this._behavior=this.options.shouldGroupWhenFull?new xt(this):new St(this)}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(ce,ze){const Ve=Object(wt.a)(ce),qe=Ve.items.filter(((ce,qe,Ye)=>"|"===ce||-1===Ve.removeItems.indexOf(ce)&&("-"===ce?!this.options.shouldGroupWhenFull||(Object(vt.b)("toolbarview-line-break-ignored-when-grouping-items",Ye),!1):!!ze.has(ce)||(Object(vt.b)("toolbarview-item-unavailable",{name:ce}),!1)))),Ye=this._cleanSeparators(qe).map((ce=>"|"===ce?new Xe.a:"-"===ce?new ot:ze.create(ce)));this.items.addMany(Ye)}_cleanSeparators(ce){const nonSeparatorPredicate=ce=>"-"!==ce&&"|"!==ce,ze=ce.length,Ve=ce.findIndex(nonSeparatorPredicate),qe=ze-ce.slice().reverse().findIndex(nonSeparatorPredicate);return ce.slice(Ve,qe).filter(((ce,ze,Ve)=>{if(nonSeparatorPredicate(ce))return!0;return!(ze>0&&Ve[ze-1]===ce)}))}}class kt extends qe.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class St{constructor(ce){const ze=ce.bindTemplate;ce.set("isVertical",!1),ce.itemsView.children.bindTo(ce.items).using((ce=>ce)),ce.focusables.bindTo(ce.items).using((ce=>ce)),ce.extendTemplate({attributes:{class:[ze.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class xt{constructor(ce){this.view=ce,this.viewChildren=ce.children,this.viewFocusables=ce.focusables,this.viewItemsView=ce.itemsView,this.viewFocusTracker=ce.focusTracker,this.viewLocale=ce.locale,this.ungroupedItems=ce.createCollection(),this.groupedItems=ce.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,ce.itemsView.children.bindTo(this.ungroupedItems).using((ce=>ce)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),ce.children.on("add",this._updateFocusCycleableItems.bind(this)),ce.children.on("remove",this._updateFocusCycleableItems.bind(this)),ce.items.on("change",((ce,ze)=>{const Ve=ze.index;for(const ce of ze.removed)Ve>=this.ungroupedItems.length?this.groupedItems.remove(ce):this.ungroupedItems.remove(ce);for(let ce=Ve;cethis.ungroupedItems.length?this.groupedItems.add(qe,ce-this.ungroupedItems.length):this.ungroupedItems.add(qe,ce)}this._updateGrouping()})),ce.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(ce){this.viewElement=ce.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(ce)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Object(gt.a)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const ce=this.groupedItems.length;let ze;for(;this._areItemsOverflowing;)this._groupLastItem(),ze=!0;if(!ze&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==ce&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const ce=this.viewElement,ze=this.viewLocale.uiLanguageDirection,Ve=new mt.a(ce.lastChild),qe=new mt.a(ce);if(!this.cachedPadding){const Ve=yt.a.window.getComputedStyle(ce),qe="ltr"===ze?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(Ve[qe])}return"ltr"===ze?Ve.right>qe.right-this.cachedPadding:Ve.left{ce&&ce===ze.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),ce=ze.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(ce){ce.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Xe.a),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const ce=this.viewLocale,ze=ce.t,Ve=Object(bt.c)(ce);return Ve.class="ck-toolbar__grouped-dropdown",Ve.panelPosition="ltr"===ce.uiLanguageDirection?"sw":"se",Object(bt.b)(Ve,[]),Ve.buttonView.set({label:ze("Show more items"),tooltip:!0,tooltipPosition:"rtl"===ce.uiLanguageDirection?"se":"sw",icon:Ct.a}),Ve.toolbarView.items.bindTo(this.groupedItems).using((ce=>ce)),Ve}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((ce=>{this.viewFocusables.add(ce)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="spinner--JOvoXr-6M5",ot="double-bounce1--bxN5IINllU",st="double-bounce2---16LSNss73";class mt extends Ye.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},qe=Qe()(Xe,ze);return Ye.a.createElement("div",{className:qe,style:Ve},Ye.a.createElement("div",{className:ot}),Ye.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";ze.a=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(166);class Ye extends qe.a{constructor(ce,ze,Ve){super(ce,ze),this.startRange=Ve,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(165),Ye=Ve(8),We=Ve(92);Ve(325);class Qe{constructor(ce){this.parent=null,this._attrs=Object(qe.a)(ce)}get index(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildIndex(this)))throw new Ye.a("model-node-not-found-in-parent",this);return ce}get startOffset(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildStartOffset(this)))throw new Ye.a("model-node-not-found-in-parent",this);return ce}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce+1)||null}get previousSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce-1)||null}get root(){let ce=this;for(;ce.parent;)ce=ce.parent;return ce}isAttached(){return this.root.is("rootElement")}getPath(){const ce=[];let ze=this;for(;ze.parent;)ce.unshift(ze.startOffset),ze=ze.parent;return ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),qe=ce.getAncestors(ze);let Ye=0;for(;Ve[Ye]==qe[Ye]&&Ve[Ye];)Ye++;return 0===Ye?null:Ve[Ye-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),qe=Object(We.a)(ze,Ve);switch(qe){case"prefix":return!0;case"extension":return!1;default:return ze[qe](ce[ze[0]]=ze[1],ce)),{})),ce}is(ce){return"node"===ce||"model:node"===ce}_clone(){return new Qe(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(ce,ze){this._attrs.set(ce,ze)}_setAttributesTo(ce){this._attrs=Object(qe.a)(ce)}_removeAttribute(ce){return this._attrs.delete(ce)}_clearAttributes(){this._attrs.clear()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(16),Ye=Ve(39),We=Ve(25);class Qe extends qe.a{constructor(ce,ze){super(ce,ze),bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"liveRange"===ce||"model:liveRange"===ce||"range"==ce||"model:range"===ce}toRange(){return new qe.a(this.start,this.end)}static fromRange(ce){return new Qe(ce.start,ce.end)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce),Ve=qe.a._createFromRanges(ze),Ye=!Ve.isEqual(this),We=doesOperationChangeRangeContent(this,ce);let Qe=null;if(Ye){"$graveyard"==Ve.root.rootName&&(Qe="remove"==ce.type?ce.sourcePosition:ce.deletionPosition);const ze=this.toRange();this.start=Ve.start,this.end=Ve.end,this.fire("change:range",ze,{deletionPosition:Qe})}else We&&this.fire("change:content",this.toRange(),{deletionPosition:Qe})}function doesOperationChangeRangeContent(ce,ze){switch(ze.type){case"insert":return ce.containsPosition(ze.position);case"move":case"remove":case"reinsert":case"merge":return ce.containsPosition(ze.sourcePosition)||ce.start.isEqual(ze.sourcePosition)||ce.containsPosition(ze.targetPosition);case"split":return ce.containsPosition(ze.splitPosition)||ce.containsPosition(ze.insertionPosition)}return!1}Object(We.a)(Qe,Ye.c)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(36),ot=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(ce,ze){var Ve=withMimeType(ce);if("string"!=typeof Ve.path){var qe=ce.webkitRelativePath;Object.defineProperty(Ve,"path",{value:"string"==typeof ze?ze:"string"==typeof qe&&qe.length>0?qe:ce.name,writable:!1,configurable:!1,enumerable:!0})}return Ve}function withMimeType(ce){var ze=ce.name;if(ze&&-1!==ze.lastIndexOf(".")&&!ce.type){var Ve=ze.split(".").pop().toLowerCase(),qe=ot.get(Ve);qe&&Object.defineProperty(ce,"type",{value:qe,writable:!1,configurable:!1,enumerable:!0})}return ce}var st=[".DS_Store","Thumbs.db"];function isDataTransfer(ce){return isObject(ce.dataTransfer)}function isChangeEvt(ce){return isObject(ce)&&isObject(ce.target)}function isObject(ce){return"object"==typeof ce&&null!==ce}function getInputFiles(ce){return fromList(ce.target.files).map((function(ce){return toFileWithPath(ce)}))}function getFsHandleFiles(ce){return Object(Xe.b)(this,void 0,void 0,(function(){return Object(Xe.d)(this,(function(ze){switch(ze.label){case 0:return[4,Promise.all(ce.map((function(ce){return ce.getFile()})))];case 1:return[2,ze.sent().map((function(ce){return toFileWithPath(ce)}))]}}))}))}function getDataTransferFiles(ce,ze){return Object(Xe.b)(this,void 0,void 0,(function(){var Ve;return Object(Xe.d)(this,(function(qe){switch(qe.label){case 0:return null===ce?[2,[]]:ce.items?(Ve=fromList(ce.items).filter((function(ce){return"file"===ce.kind})),"drop"!==ze?[2,Ve]:[4,Promise.all(Ve.map(toFilePromises))]):[3,2];case 1:return[2,noIgnoredFiles(flatten(qe.sent()))];case 2:return[2,noIgnoredFiles(fromList(ce.files).map((function(ce){return toFileWithPath(ce)})))]}}))}))}function noIgnoredFiles(ce){return ce.filter((function(ce){return-1===st.indexOf(ce.name)}))}function fromList(ce){if(null===ce)return[];for(var ze=[],Ve=0;Vece.length)&&(ze=ce.length);for(var Ve=0,qe=new Array(ze);VeVe)return[!1,Dt(Ve)];if(ce.sizeVe)return[!1,Dt(Ve)]}return[!0,null]}function isDefined(ce){return null!=ce}function allFilesAccepted(ce){var ze=ce.files,Ve=ce.accept,qe=ce.minSize,Ye=ce.maxSize,We=ce.multiple,Qe=ce.maxFiles;return!(!We&&ze.length>1||We&&Qe>=1&&ze.length>Qe)&&ze.every((function(ce){var ze=_slicedToArray(fileAccepted(ce,Ve),1)[0],We=_slicedToArray(fileMatchSize(ce,qe,Ye),1)[0];return ze&&We}))}function isPropagationStopped(ce){return"function"==typeof ce.isPropagationStopped?ce.isPropagationStopped():void 0!==ce.cancelBubble&&ce.cancelBubble}function isEvtWithFiles(ce){return ce.dataTransfer?Array.prototype.some.call(ce.dataTransfer.types,(function(ce){return"Files"===ce||"application/x-moz-file"===ce})):!!ce.target&&!!ce.target.files}function onDocumentDragOver(ce){ce.preventDefault()}function isIe(ce){return-1!==ce.indexOf("MSIE")||-1!==ce.indexOf("Trident/")}function isEdge(ce){return-1!==ce.indexOf("Edge/")}function isIeOrEdge(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(ce)||isEdge(ce)}function composeEventHandlers(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve1?Ve-1:0),Ye=1;Yece.length)&&(ze=ce.length);for(var Ve=0,qe=new Array(ze);Ve=0||Object.prototype.propertyIsEnumerable.call(ce,Ve)&&(Ye[Ve]=ce[Ve])}return Ye}function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,qe,Ye={},We=Object.keys(ce);for(qe=0;qe=0||(Ye[Ve]=ce[Ve]);return Ye}var Lt=Object(qe.forwardRef)((function(ce,ze){var Ve=ce.children,We=useDropzone(_objectWithoutProperties(ce,xt)),Qe=We.open,Xe=_objectWithoutProperties(We,Et);return Object(qe.useImperativeHandle)(ze,(function(){return{open:Qe}}),[Qe]),Ye.a.createElement(qe.Fragment,null,Ve(es_objectSpread(es_objectSpread({},Xe),{},{open:Qe})))}));Lt.displayName="Dropzone";var Ft={disabled:!1,getFilesFromEvent:function fromEvent(ce){return Object(Xe.b)(this,void 0,void 0,(function(){return Object(Xe.d)(this,(function(ze){return isObject(ce)&&isDataTransfer(ce)?[2,getDataTransferFiles(ce.dataTransfer,ce.type)]:isChangeEvt(ce)?[2,getInputFiles(ce)]:Array.isArray(ce)&&ce.every((function(ce){return"getFile"in ce&&"function"==typeof ce.getFile}))?[2,getFsHandleFiles(ce)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Lt.defaultProps=Ft,Lt.propTypes={children:Qe.a.func,accept:Qe.a.oneOfType([Qe.a.string,Qe.a.arrayOf(Qe.a.string)]),multiple:Qe.a.bool,preventDropOnDocument:Qe.a.bool,noClick:Qe.a.bool,noKeyboard:Qe.a.bool,noDrag:Qe.a.bool,noDragEventsBubbling:Qe.a.bool,minSize:Qe.a.number,maxSize:Qe.a.number,maxFiles:Qe.a.number,disabled:Qe.a.bool,getFilesFromEvent:Qe.a.func,onFileDialogCancel:Qe.a.func,onFileDialogOpen:Qe.a.func,useFsAccessApi:Qe.a.bool,onDragEnter:Qe.a.func,onDragLeave:Qe.a.func,onDragOver:Qe.a.func,onDrop:Qe.a.func,onDropAccepted:Qe.a.func,onDropRejected:Qe.a.func,validator:Qe.a.func};ze.a=Lt;var Bt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=es_objectSpread(es_objectSpread({},Ft),ce),Ve=ze.accept,Ye=ze.disabled,We=ze.getFilesFromEvent,Qe=ze.maxSize,Xe=ze.minSize,ot=ze.multiple,st=ze.maxFiles,mt=ze.onDragEnter,gt=ze.onDragLeave,yt=ze.onDragOver,bt=ze.onDrop,vt=ze.onDropAccepted,wt=ze.onDropRejected,Ct=ze.onFileDialogCancel,Dt=ze.onFileDialogOpen,kt=ze.useFsAccessApi,xt=ze.preventDropOnDocument,Et=ze.noClick,Lt=ze.noKeyboard,Vt=ze.noDrag,Ht=ze.noDragEventsBubbling,Ut=ze.validator,Wt=Object(qe.useMemo)((function(){return"function"==typeof Dt?Dt:noop}),[Dt]),Jt=Object(qe.useMemo)((function(){return"function"==typeof Ct?Ct:noop}),[Ct]),Qt=Object(qe.useRef)(null),en=Object(qe.useRef)(null),rn=es_slicedToArray(Object(qe.useReducer)(reducer,Bt),2),ln=rn[0],mn=rn[1],gn=ln.isFocused,bn=ln.isFileDialogActive,wn=ln.draggedFiles,Cn=function onWindowFocus(){bn&&setTimeout((function(){en.current&&(en.current.files.length||(mn({type:"closeDialog"}),Jt()))}),300)};Object(qe.useEffect)((function(){return kt&&canUseFileSystemAccessAPI()?function(){}:(window.addEventListener("focus",Cn,!1),function(){window.removeEventListener("focus",Cn,!1)})}),[en,bn,Jt,kt]);var Sn=Object(qe.useRef)([]),En=function onDocumentDrop(ce){Qt.current&&Qt.current.contains(ce.target)||(ce.preventDefault(),Sn.current=[])};Object(qe.useEffect)((function(){return xt&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",En,!1)),function(){xt&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",En))}}),[Qt,xt]);var Tn=Object(qe.useCallback)((function(ce){var ze;ce.preventDefault(),ce.persist(),Ri(ce),Sn.current=[].concat(_arrayWithoutHoles(ze=Sn.current)||_iterableToArray(ze)||es_unsupportedIterableToArray(ze)||_nonIterableSpread(),[ce.target]),isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Ht||(mn({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(ce))}))}),[We,mt,Ht]),Ln=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce);var ze=isEvtWithFiles(ce);if(ze&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch(ce){}return ze&&yt&&yt(ce),!1}),[yt,Ht]),Fn=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce);var ze=Sn.current.filter((function(ce){return Qt.current&&Qt.current.contains(ce)})),Ve=ze.indexOf(ce.target);-1!==Ve&&ze.splice(Ve,1),Sn.current=ze,ze.length>0||(mn({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(ce)&>&>(ce))}),[Qt,gt,Ht]),Yn=Object(qe.useCallback)((function(ce,ze){var qe=[],Ye=[];ce.forEach((function(ce){var ze=es_slicedToArray(fileAccepted(ce,Ve),2),We=ze[0],ot=ze[1],st=es_slicedToArray(fileMatchSize(ce,Xe,Qe),2),mt=st[0],gt=st[1],yt=Ut?Ut(ce):null;if(We&&mt&&!yt)qe.push(ce);else{var bt=[ot,gt];yt&&(bt=bt.concat(yt)),Ye.push({file:ce,errors:bt.filter((function(ce){return ce}))})}})),(!ot&&qe.length>1||ot&&st>=1&&qe.length>st)&&(qe.forEach((function(ce){Ye.push({file:ce,errors:[St]})})),qe.splice(0)),mn({acceptedFiles:qe,fileRejections:Ye,type:"setFiles"}),bt&&bt(qe,Ye,ze),Ye.length>0&&wt&&wt(Ye,ze),qe.length>0&&vt&&vt(qe,ze)}),[mn,ot,Ve,Xe,Qe,st,bt,vt,wt,Ut]),Un=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),Ri(ce),Sn.current=[],isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Ht||Yn(ze,ce)})),mn({type:"reset"})}),[We,Yn,Ht]),Gn=Object(qe.useCallback)((function(){if(kt&&canUseFileSystemAccessAPI()){mn({type:"openDialog"}),Wt();var ce={multiple:ot,types:filePickerOptionsTypes(Ve)};window.showOpenFilePicker(ce).then((function(ce){return We(ce)})).then((function(ce){return Yn(ce,null)})).catch((function(ce){return Jt(ce)})).finally((function(){return mn({type:"closeDialog"})}))}else en.current&&(mn({type:"openDialog"}),Wt(),en.current.value=null,en.current.click())}),[mn,Wt,Jt,kt,Yn,Ve,ot]),Kn=Object(qe.useCallback)((function(ce){Qt.current&&Qt.current.isEqualNode(ce.target)&&(32!==ce.keyCode&&13!==ce.keyCode||(ce.preventDefault(),Gn()))}),[Qt,en,Gn]),Jn=Object(qe.useCallback)((function(){mn({type:"focus"})}),[]),Zn=Object(qe.useCallback)((function(){mn({type:"blur"})}),[]),Xn=Object(qe.useCallback)((function(){Et||(isIeOrEdge()?setTimeout(Gn,0):Gn())}),[en,Et,Gn]),ei=function composeHandler(ce){return Ye?null:ce},si=function composeKeyboardHandler(ce){return Lt?null:ei(ce)},_i=function composeDragHandler(ce){return Vt?null:ei(ce)},Ri=function stopPropagation(ce){Ht&&ce.stopPropagation()},Ci=Object(qe.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ve=void 0===ze?"ref":ze,qe=ce.role,We=ce.onKeyDown,Qe=ce.onFocus,Xe=ce.onBlur,ot=ce.onClick,st=ce.onDragEnter,mt=ce.onDragOver,gt=ce.onDragLeave,yt=ce.onDrop,bt=_objectWithoutProperties(ce,Pt);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:si(composeEventHandlers(We,Kn)),onFocus:si(composeEventHandlers(Qe,Jn)),onBlur:si(composeEventHandlers(Xe,Zn)),onClick:ei(composeEventHandlers(ot,Xn)),onDragEnter:_i(composeEventHandlers(st,Tn)),onDragOver:_i(composeEventHandlers(mt,Ln)),onDragLeave:_i(composeEventHandlers(gt,Fn)),onDrop:_i(composeEventHandlers(yt,Un)),role:"string"==typeof qe&&""!==qe?qe:"button"},Ve,Qt),Ye||Lt?{}:{tabIndex:0}),bt)}}),[Qt,Kn,Jn,Zn,Xn,Tn,Ln,Fn,Un,Lt,Vt,Ye]),Di=Object(qe.useCallback)((function(ce){ce.stopPropagation()}),[]),Ei=Object(qe.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,qe=void 0===ze?"ref":ze,Ye=ce.onChange,We=ce.onClick,Qe=_objectWithoutProperties(ce,Tt);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:Ve,multiple:ot,type:"file",style:{display:"none"},onChange:ei(composeEventHandlers(Ye,Un)),onClick:ei(composeEventHandlers(We,Di)),autoComplete:"off",tabIndex:-1},qe,en)),Qe)}}),[en,Ve,ot,Un,Ye]),Oi=wn.length,Ti=Oi>0&&allFilesAccepted({files:wn,accept:Ve,minSize:Xe,maxSize:Qe,multiple:ot,maxFiles:st}),er=Oi>0&&!Ti;return es_objectSpread(es_objectSpread({},ln),{},{isDragAccept:Ti,isDragReject:er,isFocused:gn&&!Ye,getRootProps:Ci,getInputProps:Ei,rootRef:Qt,inputRef:en,open:ei(Gn)})}function reducer(ce,ze){switch(ze.type){case"focus":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},Bt),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},ce),{},{isFileDialogActive:!1});case"setDraggedFiles":var Ve=ze.isDragActive,qe=ze.draggedFiles;return es_objectSpread(es_objectSpread({},ce),{},{draggedFiles:qe,isDragActive:Ve});case"setFiles":return es_objectSpread(es_objectSpread({},ce),{},{acceptedFiles:ze.acceptedFiles,fileRejections:ze.fileRejections});case"reset":return es_objectSpread({},Bt);default:return ce}}function noop(){}},function(ce,ze,Ve){"use strict";var qe=Ve(718),Ye=Ve(395),We=Ve(658),Qe=Object(We.a)(Object.keys,Object),Xe=Object.prototype.hasOwnProperty;var ot=function baseKeys(ce){if(!Object(Ye.a)(ce))return Qe(ce);var ze=[];for(var Ve in Object(ce))Xe.call(ce,Ve)&&"constructor"!=Ve&&ze.push(Ve);return ze},st=Ve(174);ze.a=function keys(ce){return Object(st.a)(ce)?Object(qe.a)(ce):ot(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return qe.a})),Ve.d(ze,"k",(function(){return Ye.a})),Ve.d(ze,"a",(function(){return We.a})),Ve.d(ze,"j",(function(){return We.b})),Ve.d(ze,"c",(function(){return Qe})),Ve.d(ze,"h",(function(){return Xe.a})),Ve.d(ze,"f",(function(){return getDataFromElement})),Ve.d(ze,"i",(function(){return ot.d})),Ve.d(ze,"g",(function(){return ot.c})),Ve.d(ze,"b",(function(){return st.a})),Ve.d(ze,"e",(function(){return mt.a})),Ve.d(ze,"l",(function(){return gt.a}));var qe=Ve(58),Ye=(Ve(199),Ve(25)),We=(Ve(39),Ve(42),Ve(8));class Qe{constructor(){this._replacedElements=[]}replace(ce,ze){this._replacedElements.push({element:ce,newElement:ze}),ce.style.display="none",ze&&ce.parentNode.insertBefore(ze,ce.nextSibling)}restore(){this._replacedElements.forEach((ce=>{let{element:ze,newElement:Ve}=ce;ze.style.display="",Ve&&Ve.remove()})),this._replacedElements=[]}}Ve(635),Ve(151);var Xe=Ve(77);function getDataFromElement(ce){return ce instanceof HTMLTextAreaElement?ce.value:ce.innerHTML}Ve(55),Ve(282),Ve(519),Ve(152),Ve(362),Ve(520);var ot=Ve(37),st=(Ve(442),Ve(634),Ve(129)),mt=Ve(283),gt=(Ve(117),Ve(153),Ve(91),Ve(165),Ve(198));Ve(114),Ve(325)},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function lexer(ce){for(var ze=[],Ve=0;Ve=48&&ot<=57||ot>=65&&ot<=90||ot>=97&&ot<=122||95===ot))break;Qe+=ce[Xe++]}if(!Qe)throw new TypeError("Missing parameter name at ".concat(Ve));ze.push({type:"NAME",index:Ve,value:Qe}),Ve=Xe}else ze.push({type:"CLOSE",index:Ve,value:ce[Ve++]});else ze.push({type:"OPEN",index:Ve,value:ce[Ve++]});else ze.push({type:"ESCAPED_CHAR",index:Ve++,value:ce[Ve++]});else ze.push({type:"MODIFIER",index:Ve,value:ce[Ve++]})}return ze.push({type:"END",index:Ve,value:""}),ze}function parse(ce,ze){void 0===ze&&(ze={});for(var Ve=lexer(ce),qe=ze.prefixes,Ye=void 0===qe?"./":qe,We=ze.delimiter,Qe=void 0===We?"/#?":We,Xe=[],ot=0,st=0,mt="",tryConsume=function(ce){if(st-1)return!0}return!1},safePattern=function(ce){var ze=Xe[Xe.length-1],Ve=ce||(ze&&"string"==typeof ze?ze:"");if(ze&&!Ve)throw new TypeError('Must have text between two parameters, missing text after "'.concat(ze.name,'"'));return!Ve||isSafe(Ve)?"[^".concat(escapeString(Qe),"]+?"):"(?:(?!".concat(escapeString(Ve),")[^").concat(escapeString(Qe),"])+?")};st)?(?!\?)/g,qe=0,Ye=Ve.exec(ce.source);Ye;)ze.push({name:Ye[1]||qe++,prefix:"",suffix:"",modifier:"",pattern:""}),Ye=Ve.exec(ce.source);return ce}function arrayToRegexp(ce,ze,Ve){var qe=ce.map((function(ce){return pathToRegexp(ce,ze,Ve).source}));return new RegExp("(?:".concat(qe.join("|"),")"),flags(Ve))}function stringToRegexp(ce,ze,Ve){return tokensToRegexp(parse(ce,Ve),ze,Ve)}function tokensToRegexp(ce,ze,Ve){void 0===Ve&&(Ve={});for(var qe=Ve.strict,Ye=void 0!==qe&&qe,We=Ve.start,Qe=void 0===We||We,Xe=Ve.end,ot=void 0===Xe||Xe,st=Ve.encode,mt=void 0===st?function(ce){return ce}:st,gt=Ve.delimiter,yt=void 0===gt?"/#?":gt,bt=Ve.endsWith,vt="[".concat(escapeString(void 0===bt?"":bt),"]|$"),wt="[".concat(escapeString(yt),"]"),Ct=Qe?"^":"",Dt=0,kt=ce;Dt-1:void 0===Tt;Ye||(Ct+="(?:".concat(wt,"(?=").concat(vt,"))?")),Lt||(Ct+="(?=".concat(wt,"|").concat(vt,")"))}return new RegExp(Ct,flags(Ve))}function pathToRegexp(ce,ze,Ve){return ce instanceof RegExp?regexpToRegexp(ce,ze):Array.isArray(ce)?arrayToRegexp(ce,ze,Ve):stringToRegexp(ce,ze,Ve)}Ve.d(ze,"a",(function(){return compile})),Ve.d(ze,"b",(function(){return pathToRegexp}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(225),Ye=Ve(8);class We{constructor(ce){this._nodes=[],ce&&this._insertNodes(0,ce)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((ce,ze)=>ce+ze.offsetSize),0)}getNode(ce){return this._nodes[ce]||null}getNodeIndex(ce){const ze=this._nodes.indexOf(ce);return-1==ze?null:ze}getNodeStartOffset(ce){const ze=this.getNodeIndex(ce);return null===ze?null:this._nodes.slice(0,ze).reduce(((ce,ze)=>ce+ze.offsetSize),0)}indexToOffset(ce){if(ce==this._nodes.length)return this.maxOffset;const ze=this._nodes[ce];if(!ze)throw new Ye.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(ze)}offsetToIndex(ce){let ze=0;for(const Ve of this._nodes){if(ce>=ze&&ce1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(ce,ze)}toJSON(){return this._nodes.map((ce=>ce.toJSON()))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(20),Ye=Ve(225),We=Ve(16),Qe=Ve(39),Xe=Ve(8),ot=Ve(25),st=Ve(99);class mt{constructor(ce,ze,Ve){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,ce&&this.setTo(ce,ze,Ve)}get anchor(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.end:ce.start}return null}get focus(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.start:ce.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(ce){if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const qe of ce._ranges)if(ze.isEqual(qe)){Ve=!0;break}if(!Ve)return!1}return!0}*getRanges(){for(const ce of this._ranges)yield new We.a(ce.start,ce.end)}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]);else if(ce instanceof mt)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce&&"function"==typeof ce.getRanges)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce instanceof We.a)this._setRanges([ce],!!ze&&!!ze.backward);else if(ce instanceof qe.a)this._setRanges([new We.a(ce)]);else if(ce instanceof Ye.a){const Ye=!!Ve&&!!Ve.backward;let Qe;if("in"==ze)Qe=We.a._createIn(ce);else if("on"==ze)Qe=We.a._createOn(ce);else{if(void 0===ze)throw new Xe.a("model-selection-setto-required-second-parameter",[this,ce]);Qe=new We.a(qe.a._createAt(ce,ze))}this._setRanges([Qe],Ye)}else{if(!Object(st.a)(ce))throw new Xe.a("model-selection-setto-not-selectable",[this,ce]);this._setRanges(ce,ze&&!!ze.backward)}}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=(ce=Array.from(ce)).some((ze=>{if(!(ze instanceof We.a))throw new Xe.a("model-selection-set-ranges-not-range",[this,ce]);return this._ranges.every((ce=>!ce.isEqual(ze)))}));if(ce.length!==this._ranges.length||Ve){this._removeAllRanges();for(const ze of ce)this._pushRange(ze);this._lastRangeBackward=!!ze,this.fire("change:range",{directChange:!0})}}setFocus(ce,ze){if(null===this.anchor)throw new Xe.a("model-selection-setfocus-no-ranges",[this,ce]);const Ve=qe.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Ye=this.anchor;this._ranges.length&&this._popRange(),"before"==Ve.compareWith(Ye)?(this._pushRange(new We.a(Ve,Ye)),this._lastRangeBackward=!0):(this._pushRange(new We.a(Ye,Ve)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(ce){return this._attrs.get(ce)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(ce){return this._attrs.has(ce)}removeAttribute(ce){this.hasAttribute(ce)&&(this._attrs.delete(ce),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}setAttribute(ce,ze){this.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(ce){return"selection"===ce||"model:selection"===ce}*getSelectedBlocks(){const ce=new WeakSet;for(const ze of this.getRanges()){const Ve=getParentBlock(ze.start,ce);Ve&&isTopBlockInRange(Ve,ze)&&(yield Ve);for(const Ve of ze.getWalker()){const qe=Ve.item;"elementEnd"==Ve.type&&isUnvisitedTopBlock(qe,ce,ze)&&(yield qe)}const Ye=getParentBlock(ze.end,ce);Ye&&!ze.end.isTouching(qe.a._createAt(Ye,0))&&isTopBlockInRange(Ye,ze)&&(yield Ye)}}containsEntireContent(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root;const ze=qe.a._createAt(ce,0),Ve=qe.a._createAt(ce,"end");return ze.isTouching(this.getFirstPosition())&&Ve.isTouching(this.getLastPosition())}_pushRange(ce){this._checkRange(ce),this._ranges.push(new We.a(ce.start,ce.end))}_checkRange(ce){for(let ze=0;ze0;)this._popRange()}_popRange(){this._ranges.pop()}}function isUnvisitedBlock(ce,ze){return!ze.has(ce)&&(ze.add(ce),ce.root.document.model.schema.isBlock(ce)&&ce.parent)}function isUnvisitedTopBlock(ce,ze,Ve){return isUnvisitedBlock(ce,ze)&&isTopBlockInRange(ce,Ve)}function getParentBlock(ce,ze){const Ve=ce.parent.root.document.model.schema,qe=ce.parent.getAncestors({parentFirst:!0,includeSelf:!0});let Ye=!1;const We=qe.find((ce=>!Ye&&(Ye=Ve.isLimit(ce),!Ye&&isUnvisitedBlock(ce,ze))));return qe.forEach((ce=>ze.add(ce))),We}function isTopBlockInRange(ce,ze){const Ve=findAncestorBlock(ce);if(!Ve)return!0;return!ze.containsRange(We.a._createOn(Ve),!0)}function findAncestorBlock(ce){const ze=ce.root.document.model.schema;let Ve=ce.parent;for(;Ve;){if(ze.isBlock(Ve))return Ve;Ve=Ve.parent}}Object(ot.a)(mt,Qe.c)},function(ce,ze,Ve){"use strict";function autoParagraphEmptyRoots(ce){const{schema:ze,document:Ve}=ce.model;for(const qe of Ve.getRootNames()){const Ye=Ve.getRoot(qe);if(Ye.isEmpty&&!ze.checkChild(Ye,"$text")&&ze.checkChild(Ye,"paragraph"))return ce.insertElement("paragraph",Ye),!0}return!1}function isParagraphable(ce,ze,Ve){const qe=Ve.createContext(ce);return!!Ve.checkChild(qe,"paragraph")&&!!Ve.checkChild(qe.push("paragraph"),ze)}function wrapInParagraph(ce,ze){const Ve=ze.createElement("paragraph");return ze.insert(Ve,ce),ze.createPositionAt(Ve,0)}Ve.d(ze,"a",(function(){return autoParagraphEmptyRoots})),Ve.d(ze,"b",(function(){return isParagraphable})),Ve.d(ze,"c",(function(){return wrapInParagraph}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return mt})),Ve.d(ze,"c",(function(){return ot.c})),Ve.d(ze,"d",(function(){return ot.d})),Ve.d(ze,"e",(function(){return ot.e}));var qe=Ve(579),Ye=Ve(31),We=Ve(138),Qe=Ve(221),Xe=Ve(180),ot=Ve(74),st=Ve(8);class mt extends Ye.a{static get requires(){return[We.a]}static get pluginName(){return"WidgetToolbarRepository"}init(){const ce=this.editor;if(ce.plugins.has("BalloonToolbar")){const ze=ce.plugins.get("BalloonToolbar");this.listenTo(ze,"show",(ze=>{isWidgetSelected(ce.editing.view.document.selection)&&ze.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const ce of this._toolbarDefinitions.values())ce.view.destroy()}register(ce,ze){let{ariaLabel:Ve,items:qe,getRelatedElement:Ye,balloonClassName:We="ck-toolbar-container"}=ze;if(!qe.length)return void Object(st.b)("widget-toolbar-no-items",{toolbarId:ce});const Xe=this.editor,ot=Xe.t,mt=new Qe.a(Xe.locale);if(mt.ariaLabel=Ve||ot("Widget toolbar"),this._toolbarDefinitions.has(ce))throw new st.a("widget-toolbar-duplicated",this,{toolbarId:ce});mt.fillFromConfig(qe,Xe.ui.componentFactory),this._toolbarDefinitions.set(ce,{view:mt,getRelatedElement:Ye,balloonClassName:We})}_updateToolbarsVisibility(){let ce=0,ze=null,Ve=null;for(const qe of this._toolbarDefinitions.values()){const Ye=qe.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&Ye)if(this.editor.ui.focusTracker.isFocused){const We=Ye.getAncestors().length;We>ce&&(ce=We,ze=Ye,Ve=qe)}else this._isToolbarVisible(qe)&&this._hideToolbar(qe);else this._isToolbarInBalloon(qe)&&this._hideToolbar(qe)}Ve&&this._showToolbar(Ve,ze)}_hideToolbar(ce){this._balloon.remove(ce.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(ce,ze){this._isToolbarVisible(ce)?repositionContextualBalloon(this.editor,ze):this._isToolbarInBalloon(ce)||(this._balloon.add({view:ce.view,position:getBalloonPositionData(this.editor,ze),balloonClassName:ce.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const ce of this._toolbarDefinitions.values())if(this._isToolbarVisible(ce)){const ze=ce.getRelatedElement(this.editor.editing.view.document.selection);repositionContextualBalloon(this.editor,ze)}})))}_isToolbarVisible(ce){return this._balloon.visibleView===ce.view}_isToolbarInBalloon(ce){return this._balloon.hasView(ce.view)}}function repositionContextualBalloon(ce,ze){const Ve=ce.plugins.get("ContextualBalloon"),qe=getBalloonPositionData(ce,ze);Ve.updatePosition(qe)}function getBalloonPositionData(ce,ze){const Ve=ce.editing.view,qe=Xe.a.defaultPositions;return{target:Ve.domConverter.mapViewToDom(ze),positions:[qe.northArrowSouth,qe.northArrowSouthWest,qe.northArrowSouthEast,qe.southArrowNorth,qe.southArrowNorthWest,qe.southArrowNorthEast,qe.viewportStickyNorth]}}function isWidgetSelected(ce){const ze=ce.getSelectedElement();return!(!ze||!Object(ot.c)(ze))}var gt=Ve(132),yt=Ve(55),bt=Ve(92),vt=Ve(42),wt=Ve(25);class Ct{constructor(ce){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=ce,this._referenceCoordinates=null}begin(ce,ze,Ve){const qe=new yt.a(ze);this.activeHandlePosition=getHandlePosition(ce),this._referenceCoordinates=getAbsoluteBoundaryPoint(ze,getOppositePosition(this.activeHandlePosition)),this.originalWidth=qe.width,this.originalHeight=qe.height,this.aspectRatio=qe.width/qe.height;const Ye=Ve.style.width;Ye&&Ye.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(Ye):this.originalWidthPercents=calculateHostPercentageWidth(Ve,qe)}update(ce){this.proposedWidth=ce.width,this.proposedHeight=ce.height,this.proposedWidthPercents=ce.widthPercents,this.proposedHandleHostWidth=ce.handleHostWidth,this.proposedHandleHostHeight=ce.handleHostHeight}}function calculateHostPercentageWidth(ce,ze){const Ve=ce.parentElement,qe=parseFloat(Ve.ownerDocument.defaultView.getComputedStyle(Ve).width);return ze.width/qe*100}function getAbsoluteBoundaryPoint(ce,ze){const Ve=new yt.a(ce),qe=ze.split("-"),Ye={x:"right"==qe[1]?Ve.right:Ve.left,y:"bottom"==qe[0]?Ve.bottom:Ve.top};return Ye.x+=ce.ownerDocument.defaultView.scrollX,Ye.y+=ce.ownerDocument.defaultView.scrollY,Ye}function getHandlePosition(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ve of ze)if(ce.classList.contains(`ck-widget__resizer__handle-${Ve}`))return Ve}function getOppositePosition(ce){const ze=ce.split("-"),Ve={top:"bottom",bottom:"top",left:"right",right:"left"};return`${Ve[ze[0]]}-${Ve[ze[1]]}`}Object(wt.a)(Ct,vt.a);var Dt=Ve(29);class kt extends Dt.a{constructor(){super();const ce=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",ce.to("_viewPosition",(ce=>ce?`ck-orientation-${ce}`:""))],style:{display:ce.if("_isVisible","none",(ce=>!ce))}},children:[{text:ce.to("_label")}]})}_bindToState(ce,ze){this.bind("_isVisible").to(ze,"proposedWidth",ze,"proposedHeight",((ce,ze)=>null!==ce&&null!==ze)),this.bind("_label").to(ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",ze,"proposedWidthPercents",((ze,Ve,qe)=>"px"===ce.unit?`${ze}×${Ve}`:`${qe}%`)),this.bind("_viewPosition").to(ze,"activeHandlePosition",ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",((ce,ze,Ve)=>ze<50||Ve<50?"above-center":ce))}_dismiss(){this.unbind(),this._isVisible=!1}}class St{constructor(ce){this._options=ce,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(ce=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),ce.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const ce=this,ze=this._options.viewElement;this._options.editor.editing.view.change((Ve=>{const qe=Ve.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(ze){const Ve=this.toDomElement(ze);return ce._appendHandles(Ve),ce._appendSizeUI(Ve),ce.on("change:isEnabled",((ce,ze,qe)=>{Ve.style.display=qe?"":"none"})),Ve.style.display=ce.isEnabled?"":"none",Ve}));Ve.insert(Ve.createPositionAt(ze,"end"),qe),Ve.addClass("ck-widget_with-resizer",ze),this._viewResizerWrapper=qe}))}begin(ce){this.state=new Ct(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(ce,this._getHandleHost(),this._getResizeHost())}updateSize(ce){const ze=this._proposeNewSize(ce);this._options.editor.editing.view.change((ce=>{const Ve=this._options.unit||"%",qe=("%"===Ve?ze.widthPercents:ze.width)+Ve;ce.setStyle("width",qe,this._options.viewElement)}));const Ve=this._getHandleHost(),qe=new yt.a(Ve);ze.handleHostWidth=Math.round(qe.width),ze.handleHostHeight=Math.round(qe.height);const Ye=new yt.a(Ve);ze.width=Math.round(Ye.width),ze.height=Math.round(Ye.height),this.redraw(qe),this.state.update(ze)}commit(){const ce=this._options.unit||"%",ze=("%"===ce?this.state.proposedWidthPercents:this.state.proposedWidth)+ce;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(ze)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(ce){const ze=this._domResizerWrapper;if(!((Ve=ze)&&Ve.ownerDocument&&Ve.ownerDocument.contains(Ve)))return;var Ve;const qe=ze.parentElement,Ye=this._getHandleHost(),We=this._viewResizerWrapper,Qe=[We.getStyle("width"),We.getStyle("height"),We.getStyle("left"),We.getStyle("top")];let Xe;if(qe.isSameNode(Ye)){const ze=ce||new yt.a(Ye);Xe=[ze.width+"px",ze.height+"px",void 0,void 0]}else Xe=[Ye.offsetWidth+"px",Ye.offsetHeight+"px",Ye.offsetLeft+"px",Ye.offsetTop+"px"];"same"!==Object(bt.a)(Qe,Xe)&&this._options.editor.editing.view.change((ce=>{ce.setStyle({width:Xe[0],height:Xe[1],left:Xe[2],top:Xe[3]},We)}))}containsHandle(ce){return this._domResizerWrapper.contains(ce)}static isResizeHandle(ce){return ce.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((ce=>{ce.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(ce){const ze=this.state,Ve={x:(qe=ce).pageX,y:qe.pageY};var qe;const Ye=!this._options.isCentered||this._options.isCentered(this),We={x:ze._referenceCoordinates.x-(Ve.x+ze.originalWidth),y:Ve.y-ze.originalHeight-ze._referenceCoordinates.y};Ye&&ze.activeHandlePosition.endsWith("-right")&&(We.x=Ve.x-(ze._referenceCoordinates.x+ze.originalWidth)),Ye&&(We.x*=2);const Qe={width:Math.abs(ze.originalWidth+We.x),height:Math.abs(ze.originalHeight+We.y)};Qe.dominant=Qe.width/ze.aspectRatio>Qe.height?"width":"height",Qe.max=Qe[Qe.dominant];const Xe={width:Qe.width,height:Qe.height};return"width"==Qe.dominant?Xe.height=Xe.width/ze.aspectRatio:Xe.width=Xe.height*ze.aspectRatio,{width:Math.round(Xe.width),height:Math.round(Xe.height),widthPercents:Math.min(Math.round(ze.originalWidthPercents/ze.originalWidth*Xe.width*100)/100,100)}}_getResizeHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getResizeHost(ce)}_getHandleHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getHandleHost(ce)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const qe of ze)ce.appendChild(new gt.a({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(Ve=qe,`ck-widget__resizer__handle-${Ve}`)}}).render());var Ve}_appendSizeUI(ce){this._sizeView=new kt,this._sizeView.render(),ce.appendChild(this._sizeView.element)}}Object(wt.a)(St,vt.a);var xt=Ve(151),Et=Ve(77),Pt=Ve(288),Tt=Ve(1087);class Lt extends Ye.a{static get pluginName(){return"WidgetResize"}init(){const ce=this.editor.editing,ze=Et.a.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,ce.view.addObserver(Pt.a),this._observer=Object.create(xt.a),this.listenTo(ce.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(ze,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(ze,"mouseup",this._mouseUpListener.bind(this));const redrawFocusedResizer=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Object(Tt.a)(redrawFocusedResizer,200),this.on("change:visibleResizer",redrawFocusedResizer),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[ce,ze]of this._resizers)ce.isAttached()||(this._resizers.delete(ce),ze.destroy())}),{priority:"lowest"}),this._observer.listenTo(Et.a.window,"resize",this._redrawFocusedResizerThrottled);const Ve=this.editor.editing.view.document.selection;Ve.on("change",(()=>{const ce=Ve.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(ce)||null}))}destroy(){this._observer.stopListening();for(const ce of this._resizers.values())ce.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(ce){const ze=new St(ce),Ve=this.editor.plugins;if(ze.attach(),Ve.has("WidgetToolbarRepository")){const ce=Ve.get("WidgetToolbarRepository");ze.on("begin",(()=>{ce.forceDisabled("resize")}),{priority:"lowest"}),ze.on("cancel",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"}),ze.on("commit",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(ce.viewElement,ze);const qe=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(qe)==ze&&(this.visibleResizer=ze),ze}getResizerByViewElement(ce){return this._resizers.get(ce)}_getResizerByHandle(ce){for(const ze of this._resizers.values())if(ze.containsHandle(ce))return ze}_mouseDownListener(ce,ze){const Ve=ze.domTarget;St.isResizeHandle(Ve)&&(this._activeResizer=this._getResizerByHandle(Ve),this._activeResizer&&(this._activeResizer.begin(Ve),ce.stop(),ze.preventDefault()))}_mouseMoveListener(ce,ze){this._activeResizer&&this._activeResizer.updateSize(ze)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Object(wt.a)(Lt,vt.a);Ve(580)},function(ce,ze,Ve){"use strict";var qe=Ve(306);var Ye=function stackClear(){this.__data__=new qe.a,this.size=0};var We=function stackDelete(ce){var ze=this.__data__,Ve=ze.delete(ce);return this.size=ze.size,Ve};var Qe=function stackGet(ce){return this.__data__.get(ce)};var Xe=function stackHas(ce){return this.__data__.has(ce)},ot=Ve(308),st=Ve(337);var mt=function stackSet(ce,ze){var Ve=this.__data__;if(Ve instanceof qe.a){var Ye=Ve.__data__;if(!ot.a||Ye.length<199)return Ye.push([ce,ze]),this.size=++Ve.size,this;Ve=this.__data__=new st.a(Ye)}return Ve.set(ce,ze),this.size=Ve.size,this};function Stack(ce){var ze=this.__data__=new qe.a(ce);this.size=ze.size}Stack.prototype.clear=Ye,Stack.prototype.delete=We,Stack.prototype.get=Qe,Stack.prototype.has=Xe,Stack.prototype.set=mt;ze.a=Stack},function(ce,ze,Ve){"use strict";var qe=Object({});ze.a=qe},function(ce,ze,Ve){"use strict";var qe=Object({});ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(107),Ye=Ve(63),We=Ve(181),Qe=Ve(24),Xe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Xe.a("view-tree-walker-no-start-position",null);if(ce.direction&&"forward"!=ce.direction&&"backward"!=ce.direction)throw new Xe.a("view-tree-walker-unknown-direction",ce.startPosition,{direction:ce.direction});this.boundaries=ce.boundaries||null,ce.startPosition?this.position=Qe.a._createAt(ce.startPosition):this.position=Qe.a._createAt(ce.boundaries["backward"==ce.direction?"end":"start"]),this.direction=ce.direction||"forward",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(ce){let ze,Ve,qe;do{qe=this.position,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=qe)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&ce.offset===Ve.childCount)return{done:!0};if(Ve===this._boundaryEndParent&&ce.offset==this.boundaries.end.offset)return{done:!0};let Xe;if(Ve instanceof Ye.a){if(ce.isAtEnd)return this.position=Qe.a._createAfter(Ve),this._next();Xe=Ve.data[ce.offset]}else Xe=Ve.getChild(ce.offset);if(Xe instanceof qe.a)return this.shallow?ce.offset++:ce=new Qe.a(Xe,0),this.position=ce,this._formatReturnValue("elementStart",Xe,ze,ce,1);if(Xe instanceof Ye.a){if(this.singleCharacters)return ce=new Qe.a(Xe,0),this.position=ce,this._next();{let Ve,qe=Xe.data.length;return Xe==this._boundaryEndParent?(qe=this.boundaries.end.offset,Ve=new We.a(Xe,0,qe),ce=Qe.a._createAfter(Ve)):(Ve=new We.a(Xe,0,Xe.data.length),ce.offset++),this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Xe){let qe;if(this.singleCharacters)qe=1;else{qe=(Ve===this._boundaryEndParent?this.boundaries.end.offset:Ve.data.length)-ce.offset}const Ye=new We.a(Ve,ce.offset,qe);return ce.offset+=qe,this.position=ce,this._formatReturnValue("text",Ye,ze,ce,qe)}return ce=Qe.a._createAfter(Ve),this.position=ce,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",Ve,ze,ce)}_previous(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&0===ce.offset)return{done:!0};if(Ve==this._boundaryStartParent&&ce.offset==this.boundaries.start.offset)return{done:!0};let Xe;if(Ve instanceof Ye.a){if(ce.isAtStart)return this.position=Qe.a._createBefore(Ve),this._previous();Xe=Ve.data[ce.offset-1]}else Xe=Ve.getChild(ce.offset-1);if(Xe instanceof qe.a)return this.shallow?(ce.offset--,this.position=ce,this._formatReturnValue("elementStart",Xe,ze,ce,1)):(ce=new Qe.a(Xe,Xe.childCount),this.position=ce,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",Xe,ze,ce));if(Xe instanceof Ye.a){if(this.singleCharacters)return ce=new Qe.a(Xe,Xe.data.length),this.position=ce,this._previous();{let Ve,qe=Xe.data.length;if(Xe==this._boundaryStartParent){const ze=this.boundaries.start.offset;Ve=new We.a(Xe,ze,Xe.data.length-ze),qe=Ve.data.length,ce=Qe.a._createBefore(Ve)}else Ve=new We.a(Xe,0,Xe.data.length),ce.offset--;return this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Xe){let qe;if(this.singleCharacters)qe=1;else{const ze=Ve===this._boundaryStartParent?this.boundaries.start.offset:0;qe=ce.offset-ze}ce.offset-=qe;const Ye=new We.a(Ve,ce.offset,qe);return this.position=ce,this._formatReturnValue("text",Ye,ze,ce,qe)}return ce=Qe.a._createBefore(Ve),this.position=ce,this._formatReturnValue("elementStart",Ve,ze,ce,1)}_formatReturnValue(ce,ze,Ve,qe,Ye){return ze instanceof We.a&&(ze.offsetInText+ze.data.length==ze.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?Ve=Qe.a._createAfter(ze.textNode):(qe=Qe.a._createAfter(ze.textNode),this.position=qe)),0===ze.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?Ve=Qe.a._createBefore(ze.textNode):(qe=Qe.a._createBefore(ze.textNode),this.position=qe))),{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:qe,length:Ye}}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _createClass}));var qe=Ve(715);function _defineProperties(ce,ze){for(var Ve=0;Ve{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove},Ye.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(19),Dt=Ve(89),kt={option:"option--8tv8vgUy1a",selected:"selected--+xFcKmIarn",icon:"icon--DSZ0Y3dHoR",checkbox:"checkbox--oXaD4hyw4F",input:"input--IRO3glVqFu"};class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?Ye.a.createElement(Ct.a,{className:kt.icon,name:"su-check"}):null:Ye.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:qe,selectedVisualization:We}=this.props,Qe=wt()(kt.option,kt[We],{[kt.selected]:ze});return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},Ye.a.createElement("button",{className:Qe,disabled:qe,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(196),Et={displayValue:"displayValue--jra4TeJ7nC",flat:"flat--fcQoMyt8uW",dark:"dark--vUzR-fJei+",default:"default--AHL9-NjVKf","has-icon":"has-icon--sWFrLVpLhL",hasIcon:"has-icon--sWFrLVpLhL","front-icon":"front-icon--PhbTIZPrze",frontIcon:"front-icon--PhbTIZPrze",toggle:"toggle--BW0pj2m1yE"};class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props,We=wt()(Et.displayValue,Et[qe],{[Et.hasIcon]:!!Ve});return Ye.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&Ye.a.createElement(Ct.a,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?Ye.a.createElement(xt.a,null,String(ce)):ce,Ye.a.createElement(Ct.a,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--gDrAPOSEh4";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cn=Object(Qe.b)((bn=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Vt,this),_initializerDefineProperty(this,"searchText",Ht,this),_initializerDefineProperty(this,"focusedElementIndex",Ut,this),_initializerDefineProperty(this,"open",Wt,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,qe]=ze;return ce.set(Ve,qe.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return Ye.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return Ye.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return Ye.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return Ye.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:qe}=this.props,We=this.cloneChildren();return Ye.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},Ye.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:qe},Ve),Ye.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>Ye.a.createElement(gt.a,{menuRef:ce,style:ze},Ye.a.Children.count(We)>0?We:Ye.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.a.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ht=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;var Sn=Cn;ze.a=Sn},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";var qe=Ve(724),Ye=Function.prototype,We=Ye.call,Qe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Qe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=qe({}.toString),We=qe("".slice);ce.exports=function(ce){return We(Ye(ce),8,-1)}},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Ve(106);ce.exports=function(ce,ze){return arguments.length<2?(Ve=qe[ce],Ye(Ve)?Ve:void 0):qe[ce]&&qe[ce][ze];var Ve}},function(ce,ze,Ve){"use strict";Ve(1222),Ve(1227),Ve(1228),Ve(1229),Ve(1231)},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(120),We=Ve(105),Qe=Ve(70),Xe=Ve(111),ot=Ve(106),st=Ve(343),mt=Ve(149),gt=Ve(347),yt=Ve(828),bt=We.Symbol,vt=bt&&bt.prototype;if(Ye&&ot(bt)&&(!("description"in vt)||void 0!==bt().description)){var wt={},Ct=function Symbol(){var ce=arguments.length<1||void 0===arguments[0]?void 0:mt(arguments[0]),ze=st(vt,this)?new bt(ce):void 0===ce?bt():bt(ce);return""===ce&&(wt[ze]=!0),ze};yt(Ct,bt),Ct.prototype=vt,vt.constructor=Ct;var Dt="Symbol(description detection)"===String(bt("description detection")),kt=Qe(vt.valueOf),St=Qe(vt.toString),xt=/^Symbol\((.*)\)[^)]+$/,Et=Qe("".replace),Pt=Qe("".slice);gt(vt,"description",{configurable:!0,get:function description(){var ce=kt(this);if(Xe(wt,ce))return"";var ze=St(ce),Ve=Dt?Pt(ze,7,-1):Et(ze,xt,"$1");return""===Ve?void 0:Ve}}),qe({global:!0,constructor:!0,forced:!0},{Symbol:Ct})}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(209),We=Ve(469);qe({target:"Object",stat:!0,forced:Ve(61)((function(){We(1)}))},{keys:function keys(ce){return We(Ye(ce))}})},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(429).filter;qe({target:"Array",proto:!0,forced:!Ve(745)("filter")},{filter:function filter(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.MissingRefError=ze.ValidationError=ze.CodeGen=ze.Name=ze.nil=ze.stringify=ze.str=ze._=ze.KeywordCxt=ze.Ajv=void 0;const qe=Ve(1736),Ye=Ve(1748),We=Ve(1781),Qe=Ve(1783),Xe=["/properties"],ot="http://json-schema.org/draft-07/schema";class st extends qe.default{_addVocabularies(){super._addVocabularies(),Ye.default.forEach((ce=>this.addVocabulary(ce))),this.opts.discriminator&&this.addKeyword(We.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const ce=this.opts.$data?this.$dataMetaSchema(Qe,Xe):Qe;this.addMetaSchema(ce,ot,!1),this.refs["http://json-schema.org/schema"]=ot}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ot)?ot:void 0)}}ze.Ajv=st,ce.exports=ze=st,ce.exports.Ajv=st,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=st;var mt=Ve(489);Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return mt.KeywordCxt}});var gt=Ve(50);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return gt._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return gt.str}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return gt.stringify}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return gt.nil}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return gt.Name}}),Object.defineProperty(ze,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var yt=Ve(769);Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return yt.default}});var bt=Ve(494);Object.defineProperty(ze,"MissingRefError",{enumerable:!0,get:function(){return bt.default}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(268),Ye=Ve(8);class We{constructor(){this._patterns=[],this.add(...arguments)}add(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0?ce:null}getElementName(){if(1!==this._patterns.length)return null;const ce=this._patterns[0],ze=ce.name;return"function"==typeof ce||!ze||ze instanceof RegExp?null:ze}}function isElementMatching(ce,ze){if("function"==typeof ze)return ze(ce);const Ve={};return ze.name&&(Ve.name=matchName(ze.name,ce.name),!Ve.name)||ze.attributes&&(Ve.attributes=matchAttributes(ze.attributes,ce),!Ve.attributes)?null:!(ze.classes&&(Ve.classes=matchClasses(ze.classes,ce),!Ve.classes))&&(!(ze.styles&&(Ve.styles=matchStyles(ze.styles,ce),!Ve.styles))&&Ve)}function matchName(ce,ze){return ce instanceof RegExp?!!ze.match(ce):ce===ze}function matchPatterns(ce,ze,Ve){const qe=normalizePatterns(ce),Ye=Array.from(ze),We=[];return qe.forEach((ce=>{let[ze,qe]=ce;Ye.forEach((ce=>{isKeyMatched(ze,ce)&&isValueMatched(qe,ce,Ve)&&We.push(ce)}))})),!qe.length||We.lengthObject(qe.a)(ce)?(void 0!==ce.key&&void 0!==ce.value||Object(Ye.b)("matcher-pattern-missing-key-or-value",ce),[ce.key,ce.value]):[ce,!0])):Object(qe.a)(ce)?Object.entries(ce):[[ce,!0]]}function isKeyMatched(ce,ze){return!0===ce||ce===ze||ce instanceof RegExp&&ze.match(ce)}function isValueMatched(ce,ze,Ve){if(!0===ce)return!0;const qe=Ve(ze);return ce===qe||ce instanceof RegExp&&!!String(qe).match(ce)}function matchAttributes(ce,ze){const Ve=new Set(ze.getAttributeKeys());return Object(qe.a)(ce)?(void 0!==ce.style&&Object(Ye.b)("matcher-pattern-deprecated-attributes-style-key",ce),void 0!==ce.class&&Object(Ye.b)("matcher-pattern-deprecated-attributes-class-key",ce)):(Ve.delete("style"),Ve.delete("class")),matchPatterns(ce,Ve,(ce=>ze.getAttribute(ce)))}function matchClasses(ce,ze){return matchPatterns(ce,ze.getClassNames())}function matchStyles(ce,ze){return matchPatterns(ce,ze.getStyleNames(!0),(ce=>ze.getStyle(ce)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"b",(function(){return injectUiElementHandling}));var qe=Ve(107),Ye=Ve(8),We=Ve(177),Qe=Ve(37);class Xe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce):"uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-uielement-cannot-add",this)}render(ce){return this.toDomElement(ce)}toDomElement(ce){const ze=ce.createElement(this.name);for(const ce of this.getAttributeKeys())ze.setAttribute(ce,this.getAttribute(ce));return ze}}function injectUiElementHandling(ce){ce.document.on("arrowKey",((ze,Ve)=>jumpOverUiElement(ze,Ve,ce.domConverter)),{priority:"low"})}function getFillerOffset(){return null}function jumpOverUiElement(ce,ze,Ve){if(ze.keyCode==Qe.f.arrowright){const ce=ze.domTarget.ownerDocument.defaultView.getSelection(),qe=1==ce.rangeCount&&ce.getRangeAt(0).collapsed;if(qe||ze.shiftKey){const ze=ce.focusNode,Ye=ce.focusOffset,We=Ve.domPositionToView(ze,Ye);if(null===We)return;let Qe=!1;const Xe=We.getLastMatchingPosition((ce=>(ce.item.is("uiElement")&&(Qe=!0),!(!ce.item.is("uiElement")&&!ce.item.is("attributeElement")))));if(Qe){const ze=Ve.viewPositionToDom(Xe);qe?ce.collapse(ze.parent,ze.offset):ce.extend(ze.parent,ze.offset)}}}}},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(216),mt=Ve(708);var gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,metadataOptions:Ye,options:We,preSelectedItem:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe);const gt=[];Qe&>.push(Qe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,Ye,gt),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural}),this.selectionDisposer=Object(Xe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},qe=Ye))||qe;ze.a=gt},function(ce,ze,Ve){"use strict";var qe=Ve(588);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(415);const Ye="form";ze.a=new class{getSchemaTypes(ce,ze){return qe.a.loadMetadata(Ye,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!qe&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in qe)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.form}))}getJsonSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in qe)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";(function(ce){var qe=Ve(102),Ye=Ve(1086),We="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=Qe&&Qe.exports===We?qe.a.Buffer:void 0,ot=(Xe?Xe.isBuffer:void 0)||Ye.a;ze.a=ot}).call(this,Ve(785)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(107),Ye=Ve(8);class We extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new Ye.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce):"attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}isSimilar(ce){return null!==this.id||null!==ce.id?this.id===ce.id:super.isSimilar(ce)&&this.priority==ce.priority}_clone(ce){const ze=super._clone(ce);return ze._priority=this._priority,ze._id=this._id,ze}}function getFillerOffset(){if(nonUiChildrenCount(this))return null;let ce=this.parent;for(;ce&&ce.is("attributeElement");){if(nonUiChildrenCount(ce)>1)return null;ce=ce.parent}return!ce||nonUiChildrenCount(ce)>1?null:this.childCount}function nonUiChildrenCount(ce){return Array.from(ce.getChildren()).filter((ce=>!ce.is("uiElement"))).length}We.DEFAULT_PRIORITY=10},function(ce,ze,Ve){"use strict";var qe=Ve(416);const Ye="form";ze.a=new class{getSchemaTypes(ce,ze){return qe.a.loadMetadata(Ye,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!qe&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in qe)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.form}))}getJsonSchema(ce,ze,Ve){return qe.a.loadMetadata(Ye,ce,Ve).then((Ve=>{const qe=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in qe)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return qe.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return enablePlaceholder})),Ve.d(ze,"b",(function(){return Ye.a})),Ve.d(ze,"d",(function(){return We.b})),Ve.d(ze,"a",(function(){return Qe.a}));const qe=new WeakMap;function enablePlaceholder(ce){const{view:ze,element:Ve,text:Ye,isDirectHost:We=!0,keepOnFocus:Qe=!1}=ce,Xe=ze.document;qe.has(Xe)||(qe.set(Xe,new Map),Xe.registerPostFixer((ce=>updateDocumentPlaceholders(Xe,ce)))),qe.get(Xe).set(Ve,{text:Ye,isDirectHost:We,keepOnFocus:Qe,hostElement:We?Ve:null}),ze.change((ce=>updateDocumentPlaceholders(Xe,ce)))}function showPlaceholder(ce,ze){return!ze.hasClass("ck-placeholder")&&(ce.addClass("ck-placeholder",ze),!0)}function hidePlaceholder(ce,ze){return!!ze.hasClass("ck-placeholder")&&(ce.removeClass("ck-placeholder",ze),!0)}function needsPlaceholder(ce,ze){if(!ce.isAttached())return!1;const Ve=Array.from(ce.getChildren()).some((ce=>!ce.is("uiElement")));if(Ve)return!1;if(ze)return!0;const qe=ce.document;if(!qe.isFocused)return!0;const Ye=qe.selection.anchor;return Ye&&Ye.parent!==ce}function updateDocumentPlaceholders(ce,ze){const Ve=qe.get(ce),Ye=[];let We=!1;for(const[ce,qe]of Ve)qe.isDirectHost&&(Ye.push(ce),updatePlaceholder(ze,ce,qe)&&(We=!0));for(const[ce,qe]of Ve){if(qe.isDirectHost)continue;const Ve=getChildPlaceholderHostSubstitute(ce);Ve&&(Ye.includes(Ve)||(qe.hostElement=Ve,updatePlaceholder(ze,ce,qe)&&(We=!0)))}return We}function updatePlaceholder(ce,ze,Ve){const{text:qe,isDirectHost:Ye,hostElement:We}=Ve;let Qe=!1;We.getAttribute("data-placeholder")!==qe&&(ce.setAttribute("data-placeholder",qe,We),Qe=!0);return(Ye||1==ze.childCount)&&needsPlaceholder(We,Ve.keepOnFocus)?showPlaceholder(ce,We)&&(Qe=!0):hidePlaceholder(ce,We)&&(Qe=!0),Qe}function getChildPlaceholderHostSubstitute(ce){if(ce.childCount){const ze=ce.getChild(0);if(ze.is("element")&&!ze.is("uiElement")&&!ze.is("attributeElement"))return ze}return null}Ve(536),Ve(581),Ve(521),Ve(638),Ve(109),Ve(142),Ve(523),Ve(524),Ve(119),Ve(16),Ve(226),Ve(124),Ve(534);var Ye=Ve(156),We=(Ve(57),Ve(20),Ve(203),Ve(522),Ve(64),Ve(294),Ve(563),Ve(383),Ve(63),Ve(107),Ve(218)),Qe=(Ve(258),Ve(443),Ve(444),Ve(253),Ve(178),Ve(116),Ve(219),Ve(130));Ve(288),Ve(361),Ve(268),Ve(24),Ve(41),Ve(139);Ve(252),Ve(281),Ve(365);new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"])},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=Ve(102),We=Object(qe.a)(Ye.a,"DataView"),Qe=Ve(308),Xe=Object(qe.a)(Ye.a,"Promise"),ot=Object(qe.a)(Ye.a,"Set"),st=Object(qe.a)(Ye.a,"WeakMap"),mt=Ve(140),gt=Ve(267),yt="[object Map]",bt="[object Promise]",vt="[object Set]",wt="[object WeakMap]",Ct="[object DataView]",Dt=Object(gt.a)(We),kt=Object(gt.a)(Qe.a),St=Object(gt.a)(Xe),xt=Object(gt.a)(ot),Et=Object(gt.a)(st),Pt=mt.a;(We&&Pt(new We(new ArrayBuffer(1)))!=Ct||Qe.a&&Pt(new Qe.a)!=yt||Xe&&Pt(Xe.resolve())!=bt||ot&&Pt(new ot)!=vt||st&&Pt(new st)!=wt)&&(Pt=function(ce){var ze=Object(mt.a)(ce),Ve="[object Object]"==ze?ce.constructor:void 0,qe=Ve?Object(gt.a)(Ve):"";if(qe)switch(qe){case Dt:return Ct;case kt:return yt;case St:return bt;case xt:return vt;case Et:return wt}return ze});ze.a=Pt},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return unquote})),Ve.d(ze,"a",(function(){return getType})),Ve.d(ze,"b",(function(){return showSpaces}));Ve(1271),Ve(68),Ve(86),Ve(148),Ve(274);function unquote(ce){return ce&&ce.replace(/^['"]|['"]$/g,"")}function getType(ce){return ce.flowType?"union"===ce.flowType.name&&ce.flowType.elements.every((function(ce){return"literal"===ce.name}))?Object.assign({},ce.flowType,{name:"enum",value:ce.flowType.elements}):ce.flowType:ce.tsType?ce.tsType:ce.type}function showSpaces(ce){return ce&&ce.replace(/^\s|\s$/g,"␣")}},function(ce,ze,Ve){"use strict";(function(ce){var qe=Ve(654),Ye="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=We&&We.exports===Ye&&qe.a.process,Xe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Qe&&Qe.binding&&Qe.binding("util")}catch(ce){}}();ze.a=Xe}).call(this,Ve(785)(ce))},function(ce,ze,Ve){"use strict";function isNode(ce){if(ce){if(ce.defaultView)return ce instanceof ce.defaultView.Document;if(ce.ownerDocument&&ce.ownerDocument.defaultView)return ce instanceof ce.ownerDocument.defaultView.Node}return!1}Ve.d(ze,"a",(function(){return isNode}))},function(ce,ze,Ve){"use strict";var qe=Function.prototype.toString;ze.a=function toSource(ce){if(null!=ce){try{return qe.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(393),We=Ve(98),Qe=Function.prototype,Xe=Object.prototype,ot=Qe.toString,st=Xe.hasOwnProperty,mt=ot.call(Object);ze.a=function isPlainObject(ce){if(!Object(We.a)(ce)||"[object Object]"!=Object(qe.a)(ce))return!1;var ze=Object(Ye.a)(ce);if(null===ze)return!0;var Ve=st.call(ze,"constructor")&&ze.constructor;return"function"==typeof Ve&&Ve instanceof Ve&&ot.call(Ve)==mt}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(436);const Ye="default";ze.b=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new qe.a;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}}},,function(ce,ze,Ve){"use strict";var qe=Ve(243);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var qe=Ve(169);ce.exports=function(ce){return"object"==typeof ce?null!==ce:qe(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(106),Ye=Ve(185),We=Ve(826),Qe=Ve(736);ce.exports=function(ce,ze,Ve,Xe){Xe||(Xe={});var ot=Xe.enumerable,st=void 0!==Xe.name?Xe.name:ze;if(qe(Ve)&&We(Ve,st,Xe),Xe.global)ot?ce[ze]=Ve:Qe(ze,Ve);else{try{Xe.unsafe?ce[ze]&&(ot=!0):delete ce[ze]}catch(ce){}ot?ce[ze]=Ve:Ye.f(ce,ze,{value:Ve,enumerable:!1,configurable:!Xe.nonConfigurable,writable:!Xe.nonWritable})}return ce}},function(ce,ze,Ve){"use strict";var qe=Ve(746),Ye=Ve(136),We=Ve(70),Qe=Ve(472),Xe=Ve(61),ot=Ve(147),st=Ve(106),mt=Ve(319),gt=Ve(465),yt=Ve(467),bt=Ve(149),vt=Ve(208),wt=Ve(750),Ct=Ve(419),Dt=Ve(1166),kt=Ve(473),St=Ve(122)("replace"),xt=Math.max,Et=Math.min,Pt=We([].concat),Tt=We([].push),Lt=We("".indexOf),Ft=We("".slice),Bt="$0"==="a".replace(/./,"$0"),Vt=!!/./[St]&&""===/./[St]("a","$0");Qe("replace",(function(ce,ze,Ve){var We=Vt?"$":"$0";return[function replace(ce,Ve){var qe=vt(this),We=mt(ce)?void 0:Ct(ce,St);return We?Ye(We,ce,qe,Ve):Ye(ze,bt(qe),ce,Ve)},function(ce,Ye){var Qe=ot(this),Xe=bt(ce);if("string"==typeof Ye&&-1===Lt(Ye,We)&&-1===Lt(Ye,"$<")){var mt=Ve(ze,Qe,Xe,Ye);if(mt.done)return mt.value}var vt=st(Ye);vt||(Ye=bt(Ye));var Ct,St=Qe.global;St&&(Ct=Qe.unicode,Qe.lastIndex=0);for(var Bt,Vt=[];null!==(Bt=kt(Qe,Xe))&&(Tt(Vt,Bt),St);){""===bt(Bt[0])&&(Qe.lastIndex=wt(Xe,yt(Qe.lastIndex),Ct))}for(var Ht,Ut="",Wt=0,Jt=0;Jt=Wt&&(Ut+=Ft(Xe,Wt,rn)+Qt,Wt=rn+en.length)}return Ut+Ft(Xe,Wt)}]}),!!Xe((function(){var ce=/./;return ce.exec=function(){var ce=[];return ce.groups={a:"7"},ce},"7"!=="".replace(ce,"$")}))||!Bt||Vt)},function(ce,ze,Ve){var qe=Ve(752),Ye=Ve(757);ce.exports=function isArrayLike(ce){return null!=ce&&Ye(ce.length)&&!qe(ce)}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(50),Ye={data:new qe.Name("data"),valCxt:new qe.Name("valCxt"),instancePath:new qe.Name("instancePath"),parentData:new qe.Name("parentData"),parentDataProperty:new qe.Name("parentDataProperty"),rootData:new qe.Name("rootData"),dynamicAnchors:new qe.Name("dynamicAnchors"),vErrors:new qe.Name("vErrors"),errors:new qe.Name("errors"),this:new qe.Name("this"),self:new qe.Name("self"),scope:new qe.Name("scope"),json:new qe.Name("json"),jsonPos:new qe.Name("jsonPos"),jsonLen:new qe.Name("jsonLen"),jsonPart:new qe.Name("jsonPart")};ze.default=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(557);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.views={},this.viewConfigs={}}add(ce,ze,Ve){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze,this.viewConfigs[ce]=Ve||{}}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}getConfig(ce){if(ce in this.viewConfigs)return this.viewConfigs[ce];throw new Error('There is not view config for the key "'+ce+'" registered')}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(722);class Ye{constructor(ce,ze,Ve){this.view=ce,this.document=ce.document,this.domEvent=ze,this.domTarget=ze.target,Object(qe.a)(this,Ve)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(25),Ye=Ve(77),We=Ve(55),Qe=Ve(151);class Xe{constructor(ce,ze){Xe._observerInstance||Xe._createObserver(),this._element=ce,this._callback=ze,Xe._addElementCallback(ce,ze),Xe._observerInstance.observe(ce)}destroy(){Xe._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ce,ze){Xe._elementCallbacks||(Xe._elementCallbacks=new Map);let Ve=Xe._elementCallbacks.get(ce);Ve||(Ve=new Set,Xe._elementCallbacks.set(ce,Ve)),Ve.add(ze)}static _deleteElementCallback(ce,ze){const Ve=Xe._getElementCallbacks(ce);Ve&&(Ve.delete(ze),Ve.size||(Xe._elementCallbacks.delete(ce),Xe._observerInstance.unobserve(ce))),Xe._elementCallbacks&&!Xe._elementCallbacks.size&&(Xe._observerInstance=null,Xe._elementCallbacks=null)}static _getElementCallbacks(ce){return Xe._elementCallbacks?Xe._elementCallbacks.get(ce):null}static _createObserver(){let ce;ce="function"==typeof Ye.a.window.ResizeObserver?Ye.a.window.ResizeObserver:ot,Xe._observerInstance=new ce((ce=>{for(const ze of ce){const ce=Xe._getElementCallbacks(ze.target);if(ce)for(const Ve of ce)Ve(ze)}}))}}Xe._observerInstance=null,Xe._elementCallbacks=null;class ot{constructor(ce){this._callback=ce,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(ce){this._elements.add(ce),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(ce){this._elements.delete(ce),this._previousRects.delete(ce),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const periodicCheck=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(periodicCheck,100)};this.listenTo(Ye.a.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(periodicCheck,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const ce=[];for(const ze of this._elements)this._hasRectChanged(ze)&&ce.push({target:ze,contentRect:this._previousRects.get(ze)});ce.length&&this._callback(ce)}_hasRectChanged(ce){if(!ce.ownerDocument.body.contains(ce))return!1;const ze=new We.a(ce),Ve=this._previousRects.get(ce),qe=!Ve||!Ve.isEqual(ze);return this._previousRects.set(ce,ze),qe}}Object(qe.a)(ot,Qe.a)},function(ce,ze,Ve){"use strict";function first(ce){const ze=ce.next();return ze.done?null:ze.value}Ve.d(ze,"a",(function(){return first}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(8),Ye=Ve(129);class We extends Ye.a{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{idProperty:"viewUid"}),this.on("add",((ce,ze,Ve)=>{this._renderViewIntoCollectionParent(ze,Ve)})),this.on("remove",((ce,ze)=>{ze.element&&this._parentElement&&ze.element.remove()})),this._parentElement=null}destroy(){this.map((ce=>ce.destroy()))}setParent(ce){this._parentElement=ce;for(const ce of this)this._renderViewIntoCollectionParent(ce)}delegate(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve"string"==typeof ce)))throw new qe.a("ui-viewcollection-delegate-wrong-events",this);return{to:ce=>{for(const Ve of this)for(const qe of ze)Ve.delegate(qe).to(ce);this.on("add",((Ve,qe)=>{for(const Ve of ze)qe.delegate(Ve).to(ce)})),this.on("remove",((Ve,qe)=>{for(const Ve of ze)qe.stopDelegating(Ve,ce)}))}}}_renderViewIntoCollectionParent(ce,ze){ce.isRendered||ce.render(),ce.element&&this._parentElement&&this._parentElement.insertBefore(ce.element,this._parentElement.children[ze])}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(362);class Ye{constructor(ce){if(Object.assign(this,ce),ce.actions&&ce.keystrokeHandler)for(const ze in ce.actions){let Ve=ce.actions[ze];"string"==typeof Ve&&(Ve=[Ve]);for(const qe of Ve)ce.keystrokeHandler.set(qe,((ce,Ve)=>{this[ze](),Ve()}))}}get first(){return this.focusables.find(isFocusable)||null}get last(){return this.focusables.filter(isFocusable).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let ce=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((ze,Ve)=>{const qe=ze.element===this.focusTracker.focusedElement;return qe&&(ce=Ve),qe})),ce)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(ce){ce&&ce.focus()}_getFocusableItem(ce){const ze=this.current,Ve=this.focusables.length;if(!Ve)return null;if(null===ze)return this[1===ce?"first":"last"];let qe=(ze+Ve+ce)%Ve;do{const ze=this.focusables.get(qe);if(isFocusable(ze))return ze;qe=(qe+Ve+ce)%Ve}while(qe!==ze);return null}}function isFocusable(ce){return!(!ce.focus||!Object(qe.a)(ce.element))}},function(ce,ze,Ve){"use strict";function normalizeToolbarConfig(ce){return Array.isArray(ce)?{items:ce,removeItems:[]}:ce?Object.assign({items:[],removeItems:[]},ce):{items:[],removeItems:[]}}Ve.d(ze,"a",(function(){return normalizeToolbarConfig}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(130);class Ye extends qe.a{constructor(ce){super(ce),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformDateForUrl}));var transformDateForUrl=function(ce){const ze=ce.getFullYear().toString(),Ve=(ce.getMonth()+1).toString(),qe=ce.getDate().toString(),Ye=ce.getHours().toString(),We=ce.getMinutes().toString();return ze+"-"+(Ve[1]?Ve:"0"+Ve)+"-"+(qe[1]?qe:"0"+qe)+" "+((Ye[1]?Ye:"0"+Ye)+":"+(We[1]?We:"0"+We))};new Intl.DateTimeFormat("en",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!1})},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(3),St=Ve(1),xt=Ve(51),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(19),Vt=Ve(54),Ht=Ve(697),Ut=Ve(711),Wt="multi-auto-complete--qUaqDaWXyD",Jt="chip--CtDYP6BWFq",Qt="input--BIQwPuIyw5",en="icon--LuW0QMll6r",rn="items--a5m896nhHd",ln="disabled--MBw8d+Jnsa";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mn=Object(kt.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputContainerRef",We,this),_initializerDefineProperty(this,"inputRef",Qe,this),_initializerDefineProperty(this,"displaySuggestions",Xe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setInputContainerRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze(qe.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:qe,value:Ye}=this.props;if(0===this.inputValue.length)return!1;const We=qe.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Qe=Ye.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Qe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.inputContainerRef?this.inputContainerRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:qe,loading:Ye,searchProperties:We,suggestions:Qe,value:Xe}=this.props,ot=Ft()(Wt,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("div",{className:ot,ref:this.setInputContainerRef},Dt.a.createElement("div",{className:en},Ye?Dt.a.createElement(Vt.a,{size:16}):Dt.a.createElement(Bt.a,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Xe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[qe]},Dt.a.createElement(Ut.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Ht.a,{anchorElement:this.inputContainerRef,idProperty:qe,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Qe.length>0,query:this.inputValue,searchProperties:We,suggestions:Qe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((Ye=wt).prototype,"inputContainerRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"displaySuggestions",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputValue",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(Ye.prototype,"setInputContainerRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.inputContainerRef=ce)}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(Ye.prototype,"popoverMinWidth",[St.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"popoverMinWidth"),Ye.prototype),gt=_applyDecoratedDescriptor(Ye.prototype,"handleInputChange",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleSelect",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze([...qe,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(Ye.prototype,"search",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),qe=Ye))||qe;var gn,bn,wn=mn,Cn=Ve(719);Ve(192);var Sn=Object(kt.b)(((bn=class extends Dt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:qe}=this.props;this.searchStore=new Cn.a(qe.resourceKey,Ve,ze,qe.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,searchProperties:Qe,selectionStore:Xe}=this.props;return Dt.a.createElement(wn,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,loading:this.searchStore.loading||Xe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Qe,suggestions:this.searchStore.searchResults,value:Xe.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},gn=bn))||gn;ze.a=Sn},function(ce,ze,Ve){"use strict";var qe=Ve(1),Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(3),Xe=Ve(230),ot=Ve(262),st="container--r1nzIE5Vvz";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}ze.a=function withContainerSize_withContainerSize(ce){var ze,Ve,Ye,mt;let gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st,yt=Object(Qe.b)((Ve=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",Ye,this),_initializerDefineProperty(this,"containerHeight",mt,this),this.readContainerDimensions=ce=>{Object(ot.a)(Object(qe.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(ot.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return We.a.createElement("div",{className:gt,ref:this.readContainerDimensions},We.a.createElement(ce,ze))}},Ye=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mt=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return yt.displayName=Object(Xe.a)("withContainerSize",ce),yt}},function(ce,ze,Ve){"use strict";var qe=Ve(5),Ye=Ve.n(qe),We=Ve(0),Qe=Ve.n(We),Xe="backdrop--NZJVO6A-OW",ot="visible--hFwYopciso",st="fixed--aOYT+NGh1F";class mt extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=Ye()(Xe,{[ot]:ce,[st]:ze});return Qe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var qe=Ve(31),Ye=Ve(80),We=Ve(452),Qe=Ve(682);class Xe extends Ye.a{constructor(ce,ze){super(ce),this.direction=ze,this._buffer=new Qe.a(ce.model,ce.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.enqueueChange(this._buffer.batch,(qe=>{this._buffer.lock();const Ye=qe.createSelection(ce.selection||Ve.selection),Qe=ce.sequence||1,Xe=Ye.isCollapsed;if(Ye.isCollapsed&&ze.modifySelection(Ye,{direction:this.direction,unit:ce.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(Qe))return void this._replaceEntireContentWithParagraph(qe);if(this._shouldReplaceFirstBlockWithParagraph(Ye,Qe))return void this.editor.execute("paragraph",{selection:Ye});if(Ye.isCollapsed)return;let ot=0;Ye.getFirstRange().getMinimalFlatRanges().forEach((ce=>{ot+=Object(We.a)(ce.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),ze.deleteContent(Ye,{doNotResetEntireContent:Xe,direction:this.direction}),this._buffer.input(ot),qe.setSelection(Ye),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(ce){if(ce>1)return!1;const ze=this.editor.model,Ve=ze.document.selection,qe=ze.schema.getLimitElement(Ve);if(!(Ve.isCollapsed&&Ve.containsEntireContent(qe)))return!1;if(!ze.schema.checkChild(qe,"paragraph"))return!1;const Ye=qe.getChild(0);return!Ye||"paragraph"!==Ye.name}_replaceEntireContentWithParagraph(ce){const ze=this.editor.model,Ve=ze.document.selection,qe=ze.schema.getLimitElement(Ve),Ye=ce.createElement("paragraph");ce.remove(ce.createRangeIn(qe)),ce.insert(Ye,qe),ce.setSelection(Ye,0)}_shouldReplaceFirstBlockWithParagraph(ce,ze){const Ve=this.editor.model;if(ze>1||"backward"!=this.direction)return!1;if(!ce.isCollapsed)return!1;const qe=ce.getFirstPosition(),Ye=Ve.schema.getLimitElement(qe),We=Ye.getChild(0);return qe.parent==We&&(!!ce.containsEntireContent(We)&&(!!Ve.schema.checkChild(Ye,"paragraph")&&"paragraph"!=We.name))}}var ot=Ve(116),st=Ve(281),mt=Ve(224),gt=Ve(37),yt=Ve(58),bt=Ve(341);class vt extends ot.a{constructor(ce){super(ce);const ze=ce.document;let Ve=0;function fireViewDeleteEvent(ce,Ve,qe){const Ye=new mt.a(ze,"delete",ze.selection.getFirstRange());ze.fire(Ye,new st.a(ze,Ve,qe)),Ye.stop.called&&ce.stop()}ze.on("keyup",((ce,ze)=>{ze.keyCode!=gt.f.delete&&ze.keyCode!=gt.f.backspace||(Ve=0)})),ze.on("keydown",((ce,qe)=>{if(yt.a.isWindows&&Object(bt.c)(qe,ze))return;const Ye={};if(qe.keyCode==gt.f.delete)Ye.direction="forward",Ye.unit="character";else{if(qe.keyCode!=gt.f.backspace)return;Ye.direction="backward",Ye.unit="codePoint"}const We=yt.a.isMac?qe.altKey:qe.ctrlKey;Ye.unit=We?"word":Ye.unit,Ye.sequence=++Ve,fireViewDeleteEvent(ce,qe.domEvent,Ye)})),yt.a.isAndroid&&ze.on("beforeinput",((ze,Ve)=>{if("deleteContentBackward"!=Ve.domEvent.inputType)return;const qe={unit:"codepoint",direction:"backward",sequence:1},Ye=Ve.domTarget.ownerDocument.defaultView.getSelection();Ye.anchorNode==Ye.focusNode&&Ye.anchorOffset+1!=Ye.focusOffset&&(qe.selectionToRemove=ce.domConverter.domSelectionToView(Ye)),fireViewDeleteEvent(ze,Ve.domEvent,qe)}))}observe(){}}class wt extends qe.a{static get pluginName(){return"Delete"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document,qe=ce.model.document;ze.addObserver(vt),this._undoOnBackspace=!1;const Ye=new Xe(ce,"forward");if(ce.commands.add("deleteForward",Ye),ce.commands.add("forwardDelete",Ye),ce.commands.add("delete",new Xe(ce,"backward")),this.listenTo(Ve,"delete",((Ve,qe)=>{const Ye={unit:qe.unit,sequence:qe.sequence};if(qe.selectionToRemove){const ze=ce.model.createSelection(),Ve=[];for(const ze of qe.selectionToRemove.getRanges())Ve.push(ce.editing.mapper.toModelRange(ze));ze.setTo(Ve),Ye.selection=ze}ce.execute("forward"==qe.direction?"deleteForward":"delete",Ye),qe.preventDefault(),ze.scrollToTheSelection()}),{priority:"low"}),yt.a.isAndroid){let ce=null;this.listenTo(Ve,"delete",((ze,Ve)=>{const qe=Ve.domTarget.ownerDocument.defaultView.getSelection();ce={anchorNode:qe.anchorNode,anchorOffset:qe.anchorOffset,focusNode:qe.focusNode,focusOffset:qe.focusOffset}}),{priority:"lowest"}),this.listenTo(Ve,"keyup",((ze,Ve)=>{if(ce){const ze=Ve.domTarget.ownerDocument.defaultView.getSelection();ze.collapse(ce.anchorNode,ce.anchorOffset),ze.extend(ce.focusNode,ce.focusOffset),ce=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(Ve,"delete",((ze,Ve)=>{this._undoOnBackspace&&"backward"==Ve.direction&&1==Ve.sequence&&"codePoint"==Ve.unit&&(this._undoOnBackspace=!1,ce.execute("undo"),Ve.preventDefault(),ze.stop())}),{context:"$capture"}),this.listenTo(qe,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Pt}));var qe=Ve(63),Ye=Ve(107),We=Ve(253),Qe=Ve(24),Xe=Ve(41),ot=Ve(139),st=Ve(178),mt=Ve(240),gt=Ve(252),yt=Ve(60),bt=Ve(77),vt=Ve(8);function indexOf(ce){let ze=0;for(;ce.previousSibling;)ce=ce.previousSibling,ze++;return ze}function getAncestors(ce){const ze=[];for(;ce&&ce.nodeType!=Node.DOCUMENT_NODE;)ze.unshift(ce),ce=ce.parentNode;return ze}var wt=Ve(104),Ct=Ve(313);const Dt=Object(yt.a)(document),kt=Object(yt.e)(document),St=Object(yt.d)(document),xt="data-ck-unsafe-attribute-",Et="data-ck-unsafe-element";class Pt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=ce,this.renderingMode=ze.renderingMode||"editing",this.blockFillerMode=ze.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new gt.a,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(ce,ze){this._fakeSelectionMapping.set(ce,new ot.a(ze))}fakeSelectionToView(ce){return this._fakeSelectionMapping.get(ce)}bindElements(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}unbindDomElement(ce){const ze=this._domToViewMapping.get(ce);if(ze){this._domToViewMapping.delete(ce),this._viewToDomMapping.delete(ze);for(const ze of ce.childNodes)this.unbindDomElement(ze)}}bindDocumentFragments(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}shouldRenderAttribute(ce,ze,Ve){return"data"===this.renderingMode||!(ce=ce.toLowerCase()).startsWith("on")&&(("srcdoc"!==ce||!ze.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===Ve&&("src"===ce||"srcset"===ce)||("source"===Ve&&"srcset"===ce||!ze.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(ce,ze){if("data"===this.renderingMode)return void(ce.innerHTML=ze);const Ve=(new DOMParser).parseFromString(ze,"text/html"),qe=Ve.createDocumentFragment(),Ye=Ve.body.childNodes;for(;Ye.length>0;)qe.appendChild(Ye[0]);const We=Ve.createTreeWalker(qe,NodeFilter.SHOW_ELEMENT),Qe=[];let Xe;for(;Xe=We.nextNode();)Qe.push(Xe);for(const ce of Qe){for(const ze of ce.getAttributeNames())this.setDomElementAttribute(ce,ze,ce.getAttribute(ze));const ze=ce.tagName.toLowerCase();this._shouldRenameElement(ze)&&(_logUnsafeElement(ze),ce.replaceWith(this._createReplacementDomElement(ze,ce)))}for(;ce.firstChild;)ce.firstChild.remove();ce.append(qe)}viewToDom(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce.is("$text")){const Ve=this._processDataFromViewText(ce);return ze.createTextNode(Ve)}{if(this.mapViewToDom(ce))return this.mapViewToDom(ce);let qe;if(ce.is("documentFragment"))qe=ze.createDocumentFragment(),Ve.bind&&this.bindDocumentFragments(qe,ce);else{if(ce.is("uiElement"))return qe="$comment"===ce.name?ze.createComment(ce.getCustomProperty("$rawContent")):ce.render(ze,this),Ve.bind&&this.bindElements(qe,ce),qe;this._shouldRenameElement(ce.name)?(_logUnsafeElement(ce.name),qe=this._createReplacementDomElement(ce.name)):qe=ce.hasAttribute("xmlns")?ze.createElementNS(ce.getAttribute("xmlns"),ce.name):ze.createElement(ce.name),ce.is("rawElement")&&ce.render(qe,this),Ve.bind&&this.bindElements(qe,ce);for(const ze of ce.getAttributeKeys())this.setDomElementAttribute(qe,ze,ce.getAttribute(ze),ce)}if(!1!==Ve.withChildren)for(const Ye of this.viewChildrenToDom(ce,ze,Ve))qe.appendChild(Ye);return qe}}setDomElementAttribute(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const Ye=this.shouldRenderAttribute(ze,Ve,ce.tagName.toLowerCase())||qe&&qe.shouldRenderUnsafeAttribute(ze);Ye||Object(vt.b)("domconverter-unsafe-attribute-detected",{domElement:ce,key:ze,value:Ve}),ce.hasAttribute(ze)&&!Ye?ce.removeAttribute(ze):ce.hasAttribute(xt+ze)&&Ye&&ce.removeAttribute(xt+ze),ce.setAttribute(Ye?ze:xt+ze,Ve)}removeDomElementAttribute(ce,ze){ze!=Et&&(ce.removeAttribute(ze),ce.removeAttribute(xt+ze))}viewChildrenToDom(ce,ze){var Ve=this;let qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const Ye=ce.getFillerOffset&&ce.getFillerOffset();let We=0;for(const Qe of ce.getChildren()){Ye===We&&(yield Ve._getBlockFiller(ze));const ce=Qe.is("element")&&Qe.getCustomProperty("dataPipeline:transparentRendering");ce&&"data"==Ve.renderingMode?yield*Ve.viewChildrenToDom(Qe,ze,qe):(ce&&Object(vt.b)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:Qe}),yield Ve.viewToDom(Qe,ze,qe)),We++}Ye===We&&(yield Ve._getBlockFiller(ze))}()}viewRangeToDom(ce){const ze=this.viewPositionToDom(ce.start),Ve=this.viewPositionToDom(ce.end),qe=document.createRange();return qe.setStart(ze.parent,ze.offset),qe.setEnd(Ve.parent,Ve.offset),qe}viewPositionToDom(ce){const ze=ce.parent;if(ze.is("$text")){const Ve=this.findCorrespondingDomText(ze);if(!Ve)return null;let qe=ce.offset;return Object(yt.i)(Ve)&&(qe+=yt.c),{parent:Ve,offset:qe}}{let Ve,qe,Ye;if(0===ce.offset){if(Ve=this.mapViewToDom(ze),!Ve)return null;Ye=Ve.childNodes[0]}else{const ze=ce.nodeBefore;if(qe=ze.is("$text")?this.findCorrespondingDomText(ze):this.mapViewToDom(ce.nodeBefore),!qe)return null;Ve=qe.parentNode,Ye=qe.nextSibling}if(Object(wt.a)(Ye)&&Object(yt.i)(Ye))return{parent:Ye,offset:yt.c};return{parent:Ve,offset:qe?indexOf(qe)+1:0}}}domToView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(ce))return null;const Ve=this.getHostViewElement(ce);if(Ve)return Ve;if(Object(Ct.a)(ce)&&ze.skipComments)return null;if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return null;{const ze=this._processDataFromDomText(ce);return""===ze?null:new qe.a(this.document,ze)}}{if(this.mapDomToView(ce))return this.mapDomToView(ce);let Ve;if(this.isDocumentFragment(ce))Ve=new st.a(this.document),ze.bind&&this.bindDocumentFragments(ce,Ve);else{Ve=this._createViewElement(ce,ze),ze.bind&&this.bindElements(ce,Ve);const qe=ce.attributes;if(qe)for(let ce=qe.length,ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(let qe=0;qe1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.mapDomToView(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Qe.a._createBefore(Ve);if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.findCorrespondingViewText(ce);let qe=ze;return Ve?(Object(yt.i)(ce)&&(qe-=yt.c,qe=qe<0?0:qe),new Qe.a(Ve,qe)):null}if(0===ze){const ze=this.mapDomToView(ce);if(ze)return new Qe.a(ze,0)}else{const Ve=ce.childNodes[ze-1],qe=Object(wt.a)(Ve)?this.findCorrespondingViewText(Ve):this.mapDomToView(Ve);if(qe&&qe.parent)return new Qe.a(qe.parent,qe.index+1)}return null}mapDomToView(ce){return this.getHostViewElement(ce)||this._domToViewMapping.get(ce)}findCorrespondingViewText(ce){if(Object(yt.h)(ce))return null;const ze=this.getHostViewElement(ce);if(ze)return ze;const Ve=ce.previousSibling;if(Ve){if(!this.isElement(Ve))return null;const ce=this.mapDomToView(Ve);if(ce){return ce.nextSibling instanceof qe.a?ce.nextSibling:null}}else{const ze=this.mapDomToView(ce.parentNode);if(ze){const ce=ze.getChild(0);return ce instanceof qe.a?ce:null}}return null}mapViewToDom(ce){return this._viewToDomMapping.get(ce)}findCorrespondingDomText(ce){const ze=ce.previousSibling;return ze&&this.mapViewToDom(ze)?this.mapViewToDom(ze).nextSibling:!ze&&ce.parent&&this.mapViewToDom(ce.parent)?this.mapViewToDom(ce.parent).childNodes[0]:null}focus(ce){const ze=this.mapViewToDom(ce);if(ze&&ze.ownerDocument.activeElement!==ze){const{scrollX:ce,scrollY:Ve}=bt.a.window,qe=[];forEachDomNodeAncestor(ze,(ce=>{const{scrollLeft:ze,scrollTop:Ve}=ce;qe.push([ze,Ve])})),ze.focus(),forEachDomNodeAncestor(ze,(ce=>{const[ze,Ve]=qe.shift();ce.scrollLeft=ze,ce.scrollTop=Ve})),bt.a.window.scrollTo(ce,Ve)}}isElement(ce){return ce&&ce.nodeType==Node.ELEMENT_NODE}isDocumentFragment(ce){return ce&&ce.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(ce){return"br"==this.blockFillerMode?ce.isEqualNode(Dt):!("BR"!==ce.tagName||!hasBlockParent(ce,this.blockElements)||1!==ce.parentNode.childNodes.length)||(ce.isEqualNode(St)||isNbspBlockFiller(ce,this.blockElements))}isDomSelectionBackward(ce){if(ce.isCollapsed)return!1;const ze=document.createRange();ze.setStart(ce.anchorNode,ce.anchorOffset),ze.setEnd(ce.focusNode,ce.focusOffset);const Ve=ze.collapsed;return ze.detach(),Ve}getHostViewElement(ce){const ze=getAncestors(ce);for(ze.pop();ze.length;){const ce=ze.pop(),Ve=this._domToViewMapping.get(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Ve}return null}isDomSelectionCorrect(ce){return this._isDomSelectionPositionCorrect(ce.anchorNode,ce.anchorOffset)&&this._isDomSelectionPositionCorrect(ce.focusNode,ce.focusOffset)}registerRawContentMatcher(ce){this._rawContentElementMatcher.add(ce)}_getBlockFiller(ce){switch(this.blockFillerMode){case"nbsp":return Object(yt.e)(ce);case"markedNbsp":return Object(yt.d)(ce);case"br":return Object(yt.a)(ce)}}_isDomSelectionPositionCorrect(ce,ze){if(Object(wt.a)(ce)&&Object(yt.i)(ce)&&zethis.preElements.includes(ce.name))))return ze;if(" "==ze.charAt(0)){const Ve=this._getTouchingInlineViewNode(ce,!1);!(Ve&&Ve.is("$textProxy")&&this._nodeEndsWithSpace(Ve))&&Ve||(ze=" "+ze.substr(1))}if(" "==ze.charAt(ze.length-1)){const Ve=this._getTouchingInlineViewNode(ce,!0),qe=Ve&&Ve.is("$textProxy")&&" "==Ve.data.charAt(0);" "!=ze.charAt(ze.length-2)&&Ve&&!qe||(ze=ze.substr(0,ze.length-1)+" ")}return ze.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(ce){if(ce.getAncestors().some((ce=>this.preElements.includes(ce.name))))return!1;const ze=this._processDataFromViewText(ce);return" "==ze.charAt(ze.length-1)}_processDataFromDomText(ce){let ze=ce.data;if(_hasDomParentOfType(ce,this.preElements))return Object(yt.f)(ce);ze=ze.replace(/[ \n\t\r]{1,}/g," ");const Ve=this._getTouchingInlineDomNode(ce,!1),qe=this._getTouchingInlineDomNode(ce,!0),Ye=this._checkShouldLeftTrimDomText(ce,Ve),We=this._checkShouldRightTrimDomText(ce,qe);Ye&&(ze=ze.replace(/^ /,"")),We&&(ze=ze.replace(/ $/,"")),ze=Object(yt.f)(new Text(ze)),ze=ze.replace(/ \u00A0/g," ");const Qe=qe&&this.isElement(qe)&&"BR"!=qe.tagName,Xe=qe&&Object(wt.a)(qe)&&" "==qe.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(ze)||!qe||Qe||Xe)&&(ze=ze.replace(/\u00A0$/," ")),(Ye||Ve&&this.isElement(Ve)&&"BR"!=Ve.tagName)&&(ze=ze.replace(/^\u00A0/," ")),ze}_checkShouldLeftTrimDomText(ce,ze){return!ze||(this.isElement(ze)?"BR"===ze.tagName:!this._encounteredRawContentDomNodes.has(ce.previousSibling)&&/[^\S\u00A0]/.test(ze.data.charAt(ze.data.length-1)))}_checkShouldRightTrimDomText(ce,ze){return!ze&&!Object(yt.i)(ce)}_getTouchingInlineViewNode(ce,ze){const Ve=new mt.a({startPosition:ze?Qe.a._createAfter(ce):Qe.a._createBefore(ce),direction:ze?"forward":"backward"});for(const ce of Ve){if(ce.item.is("element")&&this.inlineObjectElements.includes(ce.item.name))return ce.item;if(ce.item.is("containerElement"))return null;if(ce.item.is("element","br"))return null;if(ce.item.is("$textProxy"))return ce.item}return null}_getTouchingInlineDomNode(ce,ze){if(!ce.parentNode)return null;const Ve=ze?"firstChild":"lastChild",qe=ze?"nextSibling":"previousSibling";let Ye=!0;do{if(!Ye&&ce[Ve]?ce=ce[Ve]:ce[qe]?(ce=ce[qe],Ye=!1):(ce=ce.parentNode,Ye=!0),!ce||this._isBlockElement(ce))return null}while(!Object(wt.a)(ce)&&"BR"!=ce.tagName&&!this._isInlineObjectElement(ce));return ce}_isBlockElement(ce){return this.isElement(ce)&&this.blockElements.includes(ce.tagName.toLowerCase())}_isInlineObjectElement(ce){return this.isElement(ce)&&this.inlineObjectElements.includes(ce.tagName.toLowerCase())}_createViewElement(ce,ze){if(Object(Ct.a)(ce))return new We.a(this.document,"$comment");const Ve=ze.keepOriginalCase?ce.tagName:ce.tagName.toLowerCase();return new Ye.a(this.document,Ve)}_isViewElementWithRawContent(ce,ze){return!1!==ze.withChildren&&this._rawContentElementMatcher.match(ce)}_shouldRenameElement(ce){const ze=ce.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(ze)}_createReplacementDomElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=document.createElement("span");if(Ve.setAttribute(Et,ce),ze){for(;ze.firstChild;)Ve.appendChild(ze.firstChild);for(const ce of ze.getAttributeNames())Ve.setAttribute(ce,ze.getAttribute(ce))}return Ve}}function _hasDomParentOfType(ce,ze){return getAncestors(ce).some((ce=>ce.tagName&&ze.includes(ce.tagName.toLowerCase())))}function forEachDomNodeAncestor(ce,ze){for(;ce&&ce!=bt.a.document;)ze(ce),ce=ce.parentNode}function isNbspBlockFiller(ce,ze){return ce.isEqualNode(kt)&&hasBlockParent(ce,ze)&&1===ce.parentNode.childNodes.length}function hasBlockParent(ce,ze){const Ve=ce.parentNode;return Ve&&Ve.tagName&&ze.includes(Ve.tagName.toLowerCase())}function _logUnsafeElement(ce){"script"===ce&&Object(vt.b)("domconverter-unsafe-script-element-detected"),"style"===ce&&Object(vt.b)("domconverter-unsafe-style-element-detected")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(29),Ye=Ve(117),We=Ve(285),Qe=Ve(153);class Xe extends qe.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ye.a,this.keystrokes=new Qe.a,this._focusCycler=new We.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(){super();const ce=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:ce.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const ce=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),ze=ce.getAttribute("viewBox");for(ze&&(this.viewBox=ze),this.element.innerHTML="";ce.childNodes.length>0;)this.element.appendChild(ce.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((ce=>{ce.style.fill=this.fillColor}))}}},function(ce,ze,Ve){"use strict";(function(ce){const qe=Ve(1786),Ye=Ve(865),We={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,undesiredNonAscii:25,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161,errDotAfterDomainLiteral:162},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};We.specials=function(){const ce='()<>[]:;@\\,."',ze=new Array(256);ze.fill(!1);for(let Ve=0;Ve<13;++Ve)ze[ce.codePointAt(Ve)]=!0;return function(ce){return ze[ce]}}(),We.c0Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=0;ze<33;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.c1Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=127;ze<160;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},We.normalizeSupportsNul="\0"==="\0".normalize("NFC"),We.nulNormalize=function(ce){return ce.split("\0").map((ce=>ce.normalize("NFC"))).join("\0")},We.normalize=function(ce){return ce.normalize("NFC")},We.normalizeSupportsNul||(We.normalize=function(ce){return ce.indexOf("\0")>=0?We.nulNormalize(ce):ce.normalize("NFC")}),We.checkIpV6=function(ce){return ce.every((ce=>We.regex.ipV6.test(ce)))},We.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(We.isIterable=ce=>Array.isArray(ce)||!!ce&&"object"==typeof ce&&"function"==typeof ce[Symbol.iterator]),We._isSet=ce=>ce instanceof Set,We._isMap=ce=>ce instanceof Map,We.isSet=Ye.types&&Ye.types.isSet||We._isSet,We.isMap=Ye.types&&Ye.types.isMap||We._isMap,We.normalizeTable=function(ce){return We.isSet(ce)||Array.isArray(ce)?ce:We.isMap(ce)?ce.keys():Object.keys(ce)},We.canonicalizeAtom=function(ce){return qe.toASCII(ce).toLowerCase()},We.includesMapped=function(ce,ze,Ve){for(const qe of ce)if(Ve===ze(qe))return!0;return!1},We.validDomain=function(ce,ze){const Ve=We.canonicalizeAtom(ce);return ze.tldBlacklist?!We.includesMapped(We.normalizeTable(ze.tldBlacklist),We.canonicalizeAtom,Ve):We.includesMapped(We.normalizeTable(ze.tldWhitelist),We.canonicalizeAtom,Ve)},We.hasDomainLiteralThenAtom=function(ce){let ze=!1;for(let Ve=0;Ve{!(ce>ot)||Ve.excludeDiagnoses&&Ve.excludeDiagnoses.has(ce)||(ot=ce)};!(void 0===Ve.allowUnicode||!!Ve.allowUnicode)&&/[^\x00-\x7f]/.test(ze)&&updateResult(We.diagnoses.undesiredNonAscii);const st={now:We.components.localpart,prev:We.components.localpart,stack:[We.components.localpart]};let mt="";const gt={local:"",domain:""},yt={locals:[""],domains:[""]};let bt,vt=0,wt=0,Ct=0,Dt=!1,kt=!1;const St=ze.length;let xt;for(let Ve=0;Ve64?updateResult(We.diagnoses.rfc5322LocalTooLong):st.prev!==We.components.contextComment&&st.prev!==We.components.contextFWS||updateResult(We.diagnoses.deprecatedCFWSNearAt),st.now=We.components.domain,st.stack[0]=We.components.domain,vt=0,wt=0,kt=!1;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.contextQuotedString:updateResult(We.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}else st.prev=st.now,bt=xt.codePointAt(0),(We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt))&&updateResult(We.diagnoses.errExpectingATEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.domain:switch(xt){case"(":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedComment):(kt=!0,updateResult(We.diagnoses.cfwsComment)),st.stack.push(st.now),st.now=We.components.contextComment;break;case".":const Ye=qe.toASCII(yt.domains[vt]).length;0===wt?updateResult(0===vt?We.diagnoses.errDotStart:We.diagnoses.errConsecutiveDots):Dt?updateResult(We.diagnoses.errDomainHyphenEnd):Ye>63&&updateResult(We.diagnoses.rfc5322LabelTooLong),kt=!1,wt=0,++vt,yt.domains[vt]="",gt.domain+=xt;break;case"[":0===yt.domains[vt].length?(gt.domain.length&&updateResult(We.diagnoses.errDotAfterDomainLiteral),kt=!0,wt+=ce.byteLength(xt,"utf8"),st.stack.push(st.now),st.now=We.components.literal,gt.domain+=xt,yt.domains[vt]+=xt,gt.literal=""):updateResult(We.diagnoses.errExpectingATEXT);break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedFWS):(updateResult(We.diagnoses.cfwsFWS),kt=!0),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.literal:updateResult(We.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}bt=xt.codePointAt(0),Dt=!1,We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingATEXT):"-"===xt?(0===wt&&updateResult(We.diagnoses.errDomainHyphenStart),Dt=!0):(bt<48||bt>122&&bt<192||bt>57&&bt<65||bt>90&&bt<97)&&updateResult(We.diagnoses.rfc5322Domain),gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.literal:switch(xt){case"]":if(otqe?updateResult(We.diagnoses.rfc5322IPv6MaxGroups):Ye.length===qe&&updateResult(We.diagnoses.deprecatedIPv6)):Ye.length!==qe&&updateResult(We.diagnoses.rfc5322IPv6GroupCount),":"===Ve[0]&&":"!==Ve[1]?updateResult(We.diagnoses.rfc5322IPv6ColonStart):":"===Ve[Ve.length-1]&&":"!==Ve[Ve.length-2]?updateResult(We.diagnoses.rfc5322IPv6ColonEnd):We.checkIpV6(Ye)?updateResult(We.diagnoses.rfc5321AddressLiteral):updateResult(We.diagnoses.rfc5322IPv6BadCharacter)}}else updateResult(We.diagnoses.rfc5322DomainLiteral);gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;case"\\":updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||"["===xt){updateResult(We.diagnoses.errExpectingDTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),gt.literal+=xt,gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedString:switch(xt){case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case"\t":gt.local+=" ",yt.locals[vt]+=" ",wt+=ce.byteLength(xt,"utf8"),updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;case'"':gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;default:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||10===bt?updateResult(We.diagnoses.errExpectingQTEXT):(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedQTEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedPair:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingQPair):(bt<31&&9!==bt||127===bt)&&updateResult(We.diagnoses.deprecatedQP),st.prev=st.now,st.now=st.stack.pop();const Ye="\\"+xt;switch(st.now){case We.components.contextComment:break;case We.components.contextQuotedString:gt.local+=Ye,yt.locals[vt]+=Ye,wt+=2;break;case We.components.literal:gt.domain+=Ye,yt.domains[vt]+=Ye,wt+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+st.now)}break;case We.components.contextComment:switch(xt){case"(":st.stack.push(st.now),st.now=We.components.contextComment;break;case")":st.prev=st.now,st.now=st.stack.pop();break;case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),0===bt||10===bt||127!==bt&&We.c1Controls(bt)){updateResult(We.diagnoses.errExpectingCTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedCTEXT)}break;case We.components.contextFWS:if("\r"===mt){if("\r"===xt){updateResult(We.diagnoses.errFWSCRLFx2);break}++Ct>1?updateResult(We.diagnoses.deprecatedFWS):Ct=1}switch(xt){case"\r":St!==++Ve&&"\n"===ze[Ve]||updateResult(We.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===mt&&updateResult(We.diagnoses.errFWSCRLFEnd),Ct=0,st.prev=st.now,st.now=st.stack.pop(),--Ve}mt=xt;break;default:throw new Error("unknown context: "+st.now)}if(ot>We.categories.rfc5322)break}if(ot255)updateResult(We.diagnoses.rfc5322DomainTooLong);else if(ce.byteLength(gt.local,"utf8")+ze+1>254)updateResult(We.diagnoses.rfc5322TooLong);else if(wt>63)updateResult(We.diagnoses.rfc5322LabelTooLong);else if(Ve.minDomainAtoms&&yt.domains.length2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var qe=Ve(546);ze.a=qe.default},function(ce,ze,Ve){"use strict";ze.a=function identity(ce){return ce}},function(ce,ze,Ve){"use strict";var qe=/^(?:0|[1-9]\d*)$/;ze.a=function isIndex(ce,ze){var Ve=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==Ve||"symbol"!=Ve&&qe.test(ce))&&ce>-1&&ce%1==0&&cemt))return!1;var yt=We.get(ce),bt=We.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Xe:void 0;for(We.set(ce,ze),We.set(ze,ce);++vt{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:qe,options:Ye}=this.props,We=bt()(St.button,St[qe],{[St.hasLabel]:Ve,[St.hasOptions]:Ye}),Qe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.a,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),Ye&&mt.a.createElement(kt.a,{name:"su-angle-down"}));return Ye?mt.a.createElement(Dt.a,{anchorElement:Qe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,Ye.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Qe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Et=xt,Pt="header--gKNR2ZffzU",Tt="disabled--HMlox4NnLW",Lt="empty-list--N0CVUSEn5X",Ft="label--70OAuMsWZr",Bt="loader--XuEdVBrC-x";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:qe,onClick:Ye,onEdit:We,onRemove:Qe,sortable:Xe}=this.props,ot=this.createDragHandle(),st=bt()(Ht,{[Ut]:Ve}),gt=bt()(Jt,{[Qt]:Ye}),yt=bt()(Wt,{[ln]:Xe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Xe&&mt.a.createElement(kt.a,{name:"su-more"}),mt.a.createElement("span",{className:mn},qe)),Ye?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.a,{name:"su-pen"})),Qe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.a,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass---o9A8qyxFL",wn="disabled--b2meQpX+vj",Cn="list--lzFOb27VZc",Sn="list-element--dc5ZPkhJYB",En="dragging--SBnsmOsTuJ";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const qe=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:qe},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:qe}=this.props;qe&&qe(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:qe,loading:Ye,rightButton:We,onItemClick:Qe,onItemEdit:Xe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Vt,{disabled:ce,emptyList:gt,label:Ve,leftButton:qe?{disabled:ce,...qe}:void 0,loading:Ye,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Qe||ze.props.onClick,onEdit:Xe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;var Yn=Fn;ze.a=Yn},function(ce,ze,Ve){"use strict";var qe=function listCacheClear(){this.__data__=[],this.size=0},Ye=Ve(223);var We=function assocIndexOf(ce,ze){for(var Ve=ce.length;Ve--;)if(Object(Ye.a)(ce[Ve][0],ze))return Ve;return-1},Qe=Array.prototype.splice;var Xe=function listCacheDelete(ce){var ze=this.__data__,Ve=We(ze,ce);return!(Ve<0)&&(Ve==ze.length-1?ze.pop():Qe.call(ze,Ve,1),--this.size,!0)};var ot=function listCacheGet(ce){var ze=this.__data__,Ve=We(ze,ce);return Ve<0?void 0:ze[Ve][1]};var st=function listCacheHas(ce){return We(this.__data__,ce)>-1};var mt=function listCacheSet(ce,ze){var Ve=this.__data__,qe=We(Ve,ce);return qe<0?(++this.size,Ve.push([ce,ze])):Ve[qe][1]=ze,this};function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{if(!ze.modelRange&&Ve.consumable.consume(ze.viewItem,{name:!0})){const{modelRange:ce,modelCursor:qe}=Ve.convertChildren(ze.viewItem,ze.modelCursor);ze.modelRange=ce,ze.modelCursor=qe}}}function convertText(){return(ce,ze,Ve)=>{let{schema:qe,consumable:Ye,writer:We}=Ve,Qe=ze.modelCursor;if(!Ye.test(ze.viewItem))return;if(!qe.checkChild(Qe,"$text")){if(!Object(Xe.b)(Qe,"$text",qe))return;if(0==ze.viewItem.data.trim().length)return;Qe=Object(Xe.c)(Qe,We)}Ye.consume(ze.viewItem);const ot=We.createText(ze.viewItem.data);We.insert(ot,Qe),ze.modelRange=We.createRange(Qe,Qe.getShiftedBy(ot.offsetSize)),ze.modelCursor=ze.modelRange.end}}function convertSelectionChange(ce,ze){return(Ve,qe)=>{const Ye=qe.newSelection,We=[];for(const ce of Ye.getRanges())We.push(ze.toModelRange(ce));const Qe=ce.createSelection(We,{backward:Ye.isBackward});Qe.isEqual(ce.document.selection)||ce.change((ce=>{ce.setSelection(Qe)}))}}function upcastElementToElement(ce){const ze=prepareToElementConverter(ce=Object(We.a)(ce)),Ve=getViewElementNameFromConfig(ce.view),qe=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(qe,ze,{priority:ce.converterPriority||"normal"})}}function upcastElementToAttribute(ce){normalizeModelAttributeConfig(ce=Object(We.a)(ce));const ze=prepareToAttributeConverter(ce,!1),Ve=getViewElementNameFromConfig(ce.view),qe=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(qe,ze,{priority:ce.converterPriority||"low"})}}function upcastAttributeToAttribute(ce){let ze=null;("string"==typeof(ce=Object(We.a)(ce)).view||ce.view.key)&&(ze=normalizeViewAttributeKeyValueConfig(ce)),normalizeModelAttributeConfig(ce,ze);const Ve=prepareToAttributeConverter(ce,!0);return ze=>{ze.on("element",Ve,{priority:ce.converterPriority||"low"})}}function upcastElementToMarker(ce){return normalizeElementToMarkerConfig(ce=Object(We.a)(ce)),upcastElementToElement(ce)}function upcastDataToMarker(ce){(ce=Object(We.a)(ce)).model||(ce.model=ze=>ze?ce.view+":"+ze:ce.view);const ze=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"start")),Ve=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"end"));return qe=>{qe.on("element:"+ce.view+"-start",ze,{priority:ce.converterPriority||"normal"}),qe.on("element:"+ce.view+"-end",Ve,{priority:ce.converterPriority||"normal"});const Ye=Qe.a.get("low"),We=Qe.a.get("highest"),Xe=Qe.a.get(ce.converterPriority)/We;qe.on("element",upcastAttributeToMarker(ce),{priority:Ye+Xe})}}function upcastAttributeToMarker(ce){return(ze,Ve,qe)=>{const Ye=`data-${ce.view}`;function addMarkerElements(ze,Ye){for(const We of Ye){const Ye=ce.model(We,qe),Qe=qe.writer.createElement("$marker",{"data-name":Ye});qe.writer.insert(Qe,ze),Ve.modelCursor.isEqual(ze)?Ve.modelCursor=Ve.modelCursor.getShiftedBy(1):Ve.modelCursor=Ve.modelCursor._getTransformedByInsertion(ze,1),Ve.modelRange=Ve.modelRange._getTransformedByInsertion(ze,1)[0]}}(qe.consumable.test(Ve.viewItem,{attributes:Ye+"-end-after"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-start-after"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-end-before"})||qe.consumable.test(Ve.viewItem,{attributes:Ye+"-start-before"}))&&(Ve.modelRange||Object.assign(Ve,qe.convertChildren(Ve.viewItem,Ve.modelCursor)),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-end-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(Ye+"-end-after").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-start-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(Ye+"-start-after").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-end-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(Ye+"-end-before").split(",")),qe.consumable.consume(Ve.viewItem,{attributes:Ye+"-start-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(Ye+"-start-before").split(",")))}}function getViewElementNameFromConfig(ce){return"string"==typeof ce?ce:"object"==typeof ce&&"string"==typeof ce.name?ce.name:null}function prepareToElementConverter(ce){const ze=new qe.a(ce.view);return(Ve,qe,Ye)=>{const We=ze.match(qe.viewItem);if(!We)return;const Qe=We.match;if(Qe.name=!0,!Ye.consumable.test(qe.viewItem,Qe))return;const Xe=getModelElement(ce.model,qe.viewItem,Ye);Xe&&Ye.safeInsert(Xe,qe.modelCursor)&&(Ye.consumable.consume(qe.viewItem,Qe),Ye.convertChildren(qe.viewItem,Xe),Ye.updateConversionResult(Xe,qe))}}function getModelElement(ce,ze,Ve){return ce instanceof Function?ce(ze,Ve):Ve.writer.createElement(ce)}function normalizeViewAttributeKeyValueConfig(ce){"string"==typeof ce.view&&(ce.view={key:ce.view});const ze=ce.view.key;let Ve;if("class"==ze||"style"==ze){const qe="class"==ze?"classes":"styles";Ve={[qe]:ce.view.value}}else{const qe=void 0===ce.view.value?/[\s\S]*/:ce.view.value;Ve={attributes:{[ze]:qe}}}return ce.view.name&&(Ve.name=ce.view.name),ce.view=Ve,ze}function normalizeModelAttributeConfig(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=null===ze||(ce=>ce.getAttribute(ze)),qe="object"!=typeof ce.model?ce.model:ce.model.key,Ye="object"!=typeof ce.model||void 0===ce.model.value?Ve:ce.model.value;ce.model={key:qe,value:Ye}}function prepareToAttributeConverter(ce,ze){const Ve=new qe.a(ce.view);return(qe,Ye,We)=>{if(!Ye.modelRange&&ze)return;const Qe=Ve.match(Ye.viewItem);if(!Qe)return;if(onlyViewNameIsDefined(ce.view,Ye.viewItem)?Qe.match.name=!0:delete Qe.match.name,!We.consumable.test(Ye.viewItem,Qe.match))return;const Xe=ce.model.key,ot="function"==typeof ce.model.value?ce.model.value(Ye.viewItem,We):ce.model.value;if(null===ot)return;Ye.modelRange||Object.assign(Ye,We.convertChildren(Ye.viewItem,Ye.modelCursor));setAttributeOn(Ye.modelRange,{key:Xe,value:ot},ze,We)&&(We.consumable.test(Ye.viewItem,{name:!0})&&(Qe.match.name=!0),We.consumable.consume(Ye.viewItem,Qe.match))}}function onlyViewNameIsDefined(ce,ze){const Ve="function"==typeof ce?ce(ze):ce;return!("object"==typeof Ve&&!getViewElementNameFromConfig(Ve))&&(!Ve.classes&&!Ve.attributes&&!Ve.styles)}function setAttributeOn(ce,ze,Ve,qe){let Ye=!1;for(const We of Array.from(ce.getItems({shallow:Ve})))qe.schema.checkAttribute(We,ze.key)&&(Ye=!0,We.hasAttribute(ze.key)||qe.writer.setAttribute(ze.key,ze.value,We));return Ye}function normalizeElementToMarkerConfig(ce){const ze=ce.model;ce.model=(ce,Ve)=>{const qe="string"==typeof ze?ze:ze(ce,Ve);return Ve.writer.createElement("$marker",{"data-name":qe})}}function normalizeDataToMarkerConfig(ce,ze){const Ve={};return Ve.view=ce.view+"-"+ze,Ve.model=(ze,Ve)=>{const qe=ze.getAttribute("name"),Ye=ce.model(qe,Ve);return Ve.writer.createElement("$marker",{"data-name":Ye})},Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(100),Ye=Ve(8);class We extends qe.a{constructor(ce,ze,Ve,qe,Ye){super(Ye),this.root=ce,this.key=ze,this.oldValue=Ve,this.newValue=qe}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new We(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new We(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Ye.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Ye.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Ye.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const ce=super.toJSON();return ce.root=this.root.toJSON(),ce}static get className(){return"RootAttributeOperation"}static fromJSON(ce,ze){if(!ze.getRoot(ce.root))throw new Ye.a("rootattribute-operation-fromjson-no-root",this,{rootName:ce.root});return new We(ze.getRoot(ce.root),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return vt})),Ve.d(ze,"a",(function(){return bt.a})),Ve.d(ze,"b",(function(){return St})),Ve.d(ze,"d",(function(){return inlineHighlight}));var qe=Ve(31),Ye=Ve(80),We=Ve(682);class Qe extends Ye.a{constructor(ce,ze){super(ce),this._buffer=new We.a(ce.model,ze)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,qe=ce.text||"",Ye=qe.length,We=ce.range?ze.createSelection(ce.range):Ve.selection,Qe=ce.resultRange;ze.enqueueChange(this._buffer.batch,(ce=>{this._buffer.lock(),ze.deleteContent(We),qe&&ze.insertContent(ce.createText(qe,Ve.selection.getAttributes()),We),Qe?ce.setSelection(Qe):We.is("documentSelection")||ce.setSelection(We),this._buffer.unlock(),this._buffer.input(Ye)}))}}var Xe=Ve(364),ot=Ve(199),st=Ve(294),mt=Ve(341);function injectTypingMutationsHandling(ce){ce.editing.view.document.on("mutations",((ze,Ve,qe)=>{new gt(ce).handle(Ve,qe)}))}class gt{constructor(ce){this.editor=ce,this.editing=this.editor.editing}handle(ce,ze){if(Object(mt.a)(ce))this._handleContainerChildrenMutations(ce,ze);else for(const Ve of ce)this._handleTextMutation(Ve,ze),this._handleTextNodeInsertion(Ve)}_handleContainerChildrenMutations(ce,ze){const Ve=getMutationsContainer(ce);if(!Ve)return;const qe=this.editor.editing.view.domConverter.mapViewToDom(Ve),Ye=new st.a(this.editor.editing.view.document),We=this.editor.data.toModel(Ye.domToView(qe)).getChild(0),Qe=this.editor.editing.mapper.toModelElement(Ve);if(!Qe)return;const Xe=Array.from(We.getChildren()),mt=Array.from(Qe.getChildren()),gt=Xe[Xe.length-1],yt=mt[mt.length-1],bt=gt&>.is("element","softBreak"),vt=yt&&!yt.is("element","softBreak");bt&&vt&&Xe.pop();const wt=this.editor.model.schema;if(!isSafeForTextMutation(Xe,wt)||!isSafeForTextMutation(mt,wt))return;const Ct=Xe.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," "),Dt=mt.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," ");if(Dt===Ct)return;const kt=Object(ot.a)(Dt,Ct),{firstChangeAt:St,insertions:xt,deletions:Et}=calculateChanges(kt);let Pt=null;ze&&(Pt=this.editing.mapper.toModelRange(ze.getFirstRange()));const Tt=Ct.substr(St,xt),Lt=this.editor.model.createRange(this.editor.model.createPositionAt(Qe,St),this.editor.model.createPositionAt(Qe,St+Et));this.editor.execute("input",{text:Tt,range:Lt,resultRange:Pt})}_handleTextMutation(ce,ze){if("text"!=ce.type)return;const Ve=ce.newText.replace(/\u00A0/g," "),qe=ce.oldText.replace(/\u00A0/g," ");if(qe===Ve)return;const Ye=Object(ot.a)(qe,Ve),{firstChangeAt:We,insertions:Qe,deletions:Xe}=calculateChanges(Ye);let st=null;ze&&(st=this.editing.mapper.toModelRange(ze.getFirstRange()));const mt=this.editing.view.createPositionAt(ce.node,We),gt=this.editing.mapper.toModelPosition(mt),yt=this.editor.model.createRange(gt,gt.getShiftedBy(Xe)),bt=Ve.substr(We,Qe);this.editor.execute("input",{text:bt,range:yt,resultRange:st})}_handleTextNodeInsertion(ce){if("children"!=ce.type)return;const ze=Object(mt.b)(ce),Ve=this.editing.view.createPositionAt(ce.node,ze.index),qe=this.editing.mapper.toModelPosition(Ve),Ye=ze.values[0].data;this.editor.execute("input",{text:Ye.replace(/\u00A0/g," "),range:this.editor.model.createRange(qe)})}}function getMutationsContainer(ce){const ze=ce.map((ce=>ce.node)).reduce(((ce,ze)=>ce.getCommonAncestor(ze,{includeSelf:!0})));if(ze)return ze.getAncestors({includeSelf:!0,parentFirst:!0}).find((ce=>ce.is("containerElement")||ce.is("rootElement")))}function isSafeForTextMutation(ce,ze){return ce.every((ce=>ze.isInline(ce)))}function calculateChanges(ce){let ze=null,Ve=null;for(let qe=0;qeqe.is("$text")||qe.is("$textProxy")?ce+qe.data:(Ve=ze.createPositionAfter(qe),"")),""),range:ze.createRange(Ve,ce.end)}}class Dt{constructor(ce,ze){this.model=ce,this.testCallback=ze,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(ce.document.selection),this.stopListening(ce.document))})),this._startListening()}_startListening(){const ce=this.model.document;this.listenTo(ce.selection,"change:range",((ze,Ve)=>{let{directChange:qe}=Ve;qe&&(ce.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(ce,"change:data",((ce,ze)=>{!ze.isUndo&&ze.isLocal&&this._evaluateTextBeforeSelection("data",{batch:ze})}))}_evaluateTextBeforeSelection(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.model,qe=Ve.document.selection,Ye=Ve.createRange(Ve.createPositionAt(qe.focus.parent,0),qe.focus),{text:We,range:Qe}=getLastTextLine(Ye,Ve),Xe=this.testCallback(We);if(!Xe&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!Xe,Xe){const Ve=Object.assign(ze,{text:We,range:Qe});"object"==typeof Xe&&Object.assign(Ve,Xe),this.fire(`matched:${ce}`,Ve)}}}Object(wt.a)(Dt,Ct.a);var kt=Ve(37);class St extends qe.a{static get pluginName(){return"TwoStepCaretMovement"}constructor(ce){super(ce),this.attributes=new Set,this._overrideUid=null}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,qe=ce.locale,Ye=ze.document.selection;this.listenTo(Ve.document,"arrowKey",((ce,ze)=>{if(!Ye.isCollapsed)return;if(ze.shiftKey||ze.altKey||ze.ctrlKey)return;const Ve=ze.keyCode==kt.f.arrowright,We=ze.keyCode==kt.f.arrowleft;if(!Ve&&!We)return;const Qe=qe.contentLanguageDirection;let Xe=!1;Xe="ltr"===Qe&&Ve||"rtl"===Qe&&We?this._handleForwardMovement(ze):this._handleBackwardMovement(ze),!0===Xe&&ce.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(Ye,"change:range",((ce,ze)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!ze.directChange&&isBetweenDifferentAttributes(Ye.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(ce){this.attributes.add(ce)}_handleForwardMovement(ce){const ze=this.attributes,Ve=this.editor.model.document.selection,qe=Ve.getFirstPosition();return!this._isGravityOverridden&&((!qe.isAtStart||!hasAnyAttribute(Ve,ze))&&(isBetweenDifferentAttributes(qe,ze)?(preventCaretMovement(ce),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(ce){const ze=this.attributes,Ve=this.editor.model,qe=Ve.document.selection,Ye=qe.getFirstPosition();return this._isGravityOverridden?(preventCaretMovement(ce),this._restoreGravity(),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):Ye.isAtStart?!!hasAnyAttribute(qe,ze)&&(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):isStepAfterAnyAttributeBoundary(Ye,ze)?Ye.isAtEnd&&!hasAnyAttribute(qe,ze)&&isBetweenDifferentAttributes(Ye,ze)?(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,Ye),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((ce=>ce.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((ce=>{ce.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function hasAnyAttribute(ce,ze){for(const Ve of ze)if(ce.hasAttribute(Ve))return!0;return!1}function setSelectionAttributesFromTheNodeBefore(ce,ze,Ve){const qe=Ve.nodeBefore;ce.change((ce=>{qe?ce.setSelectionAttribute(qe.getAttributes()):ce.removeSelectionAttribute(ze)}))}function preventCaretMovement(ce){ce.preventDefault()}function isStepAfterAnyAttributeBoundary(ce,ze){return isBetweenDifferentAttributes(ce.getShiftedBy(-1),ze)}function isBetweenDifferentAttributes(ce,ze){const{nodeBefore:Ve,nodeAfter:qe}=ce;for(const ce of ze){const ze=Ve?Ve.getAttribute(ce):void 0;if((qe?qe.getAttribute(ce):void 0)!==ze)return!0}return!1}Ve(716);var xt=/[\\^$.*+?()[\]{}|]/g;RegExp(xt.source);buildQuotesRegExp('"'),buildQuotesRegExp("'"),buildQuotesRegExp("'"),buildQuotesRegExp('"'),buildQuotesRegExp('"'),buildQuotesRegExp("'");qe.a;function buildQuotesRegExp(ce){return new RegExp(`(^|\\s)(${ce})([^${ce}]*)(${ce})$`)}function findAttributeRange(ce,ze,Ve,qe){return qe.createRange(_findBound(ce,ze,Ve,!0,qe),_findBound(ce,ze,Ve,!1,qe))}function _findBound(ce,ze,Ve,qe,Ye){let We=ce.textNode||(qe?ce.nodeBefore:ce.nodeAfter),Qe=null;for(;We&&We.getAttribute(ze)==Ve;)Qe=We,We=qe?We.previousSibling:We.nextSibling;return Qe?Ye.createPositionAt(Qe,qe?"before":"after"):ce}function inlineHighlight(ce,ze,Ve,qe){const Ye=ce.editing.view,We=new Set;Ye.document.registerPostFixer((Ye=>{const Qe=ce.model.document.selection;let Xe=!1;if(Qe.hasAttribute(ze)){const ot=findAttributeRange(Qe.getFirstPosition(),ze,Qe.getAttribute(ze),ce.model),st=ce.editing.mapper.toViewRange(ot);for(const ce of st.getItems())ce.is("element",Ve)&&!ce.hasClass(qe)&&(Ye.addClass(qe,ce),We.add(ce),Xe=!0)}return Xe})),ce.conversion.for("editingDowncast").add((ce=>{function removeHighlight(){Ye.change((ce=>{for(const ze of We.values())ce.removeClass(qe,ze),We.delete(ze)}))}ce.on("insert",removeHighlight,{priority:"highest"}),ce.on("remove",removeHighlight,{priority:"highest"}),ce.on("attribute",removeHighlight,{priority:"highest"}),ce.on("selection",removeHighlight,{priority:"highest"})}))}},function(ce,ze,Ve){"use strict";var qe=Ve(9),Ye=Ve.n(qe);var We=new class{getSystems(){return Object.keys(this.securityContexts)}setSecurityContexts(ce){this.securityContexts=ce}getSecurityContextByResourceKey(ce){return this.resourceKeyMapping[ce]}getSecurityContextGroups(ce){return this.securityContexts[ce]}getAvailableActions(ce,ze){const Ve=this.securityContexts[ze||this.suluSecuritySystem];if(!Ve)return[];for(const ze in Ve){const qe=Ve[ze];for(const ze in qe)if(ze===this.resourceKeyMapping[ce])return qe[ze]}return[]}loadSecurityContextGroups(ce){return Ye.a.warn('The "loadSecurityContextGroups" method is deprecated since 2.2 and will be removed. Use the "getSecurityContextGroups" method instead.'),Promise.resolve(this.getSecurityContextGroups(ce))}loadAvailableActions(ce){return Ye.a.warn('The "loadAvailableActions" method is deprecated since 2.2 and will be removed. Use the "getAvailableActions" method instead.'),Promise.resolve(this.getAvailableActions(ce))}};ze.a=We},function(ce,ze,Ve){"use strict";function isComment(ce){return ce&&ce.nodeType===Node.COMMENT_NODE}Ve.d(ze,"a",(function(){return isComment}))},function(ce,ze,Ve){"use strict";var qe=Ve(570);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(1),Xe=Ve(3),ot=Ve(34),st=Ve(7),mt=Ve(6),gt=Ve(11),yt=Ve(76);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var bt,vt,wt,Ct,Dt,kt,St,xt=(_applyDecoratedDescriptor((qe=class{constructor(ce,ze){this.collectionId=ce,this.locale=ze,this.resourceStore=new yt.c("collections",ce,{locale:ze},{depth:1,breadcrumb:!0,parent:!0})}destroy(){this.resourceStore.destroy()}get loading(){return!!this.resourceStore&&this.resourceStore.loading}get id(){return this.resourceStore.id}get locked(){return!this.loading&&this.resourceStore.data.locked}get permissions(){return this.resourceStore.loading||!this.resourceStore.id?{}:this.resourceStore.data._permissions||{}}get parentId(){const{data:ce}=this.resourceStore;if(!ce._embedded)return null;const{_embedded:{parent:ze}}=ce;return ze?ze.id:null}}).prototype,"loading",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locked",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locked"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"permissions",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"permissions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"parentId",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"parentId"),qe.prototype),qe),Et=Ve(227),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaUploadStore_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ft="media",Bt="media_preview",Vt="fileVersion";var Ht,Ut=(vt=MediaUploadStore_applyDecoratedDescriptor((bt=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",vt,this),_initializerDefineProperty(this,"progress",wt,this),_initializerDefineProperty(this,"media",Ct,this),_initializerDefineProperty(this,"error",Dt,this),_initializerDefineProperty(this,"handleResponse",kt,this),_initializerDefineProperty(this,"handleError",St,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return Lt.c.delete(Ft,{id:this.id}).then(Object(Qe.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Ft,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,Vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=Lt.d.getDetailUrl(Ft,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,Vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return Lt.c.delete(Bt,{id:this.id}).then(Object(Qe.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((qe,Ye)=>{const We=new XMLHttpRequest,Qe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)qe(JSON.parse(ce.target.response));else try{Ye(JSON.parse(ce.target.response))}catch(ze){Ye(ce.target)}},We.onerror=ce=>Ye(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Qe.append(Ve,ce),We.send(Qe)}))}}).prototype,"uploading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"progress",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"media",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"id",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"id"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"downloadUrl",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"downloadUrl"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"mimeType",[Qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"mimeType"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setUploading",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setUploading"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setProgress",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setProgress"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"delete",[Qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"delete"),bt.prototype),kt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleResponse",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),St=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleError",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),bt),Wt="media-item--i1slzbiO2z",Jt="progressbar-container--zwNiAALe6Z";var Qt,en,rn=Object(Xe.b)(Ht=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:Wt},ce.uploading&&We.a.createElement("div",{className:Jt},We.a.createElement(st.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||Ht,ln=Ve(26),mn=Ve.n(ln),gn=Ve(2138),bn="dropzone-overlay--p1a2GYaKwB",wn="close-icon--LACaXh13yC",Cn="drop-area--190zXu+gQx",Sn="upload-info-container--yWWmN-i5em",En="upload-info--r7p6WjxwJY",Tn="upload-info-headline--RW58fEn6Ro",Ln="upload-info-subline--VPGL7CROiO",Fn="upload-icon--7qORNHiOsu",Yn="media-items--Z3x1f4kuLm";const Un="esc";var Gn,Kn,Jn,Zn,Xn,ei,si,_i,Ri=Object(Xe.b)(((en=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&mn.a.bind(Un,ze)}componentWillUnmount(){this.props.open&&mn.a.unbind(Un)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?mn.a.bind(Un,ze):mn.a.unbind(Un))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(gn.a,null,We.a.createElement("div",{className:bn,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Cn,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Sn},Ve&&We.a.createElement("div",{className:En},We.a.createElement(st.Icon,{className:Fn,name:"su-upload"}),We.a.createElement("div",{className:Tn},Object(mt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Ln},Object(mt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Yn},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(st.Icon,{className:wn,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Qt=en))||Qt,Ci="dropzone--ggmbKoqa8h";function MultiMediaDropzone_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MultiMediaDropzone_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Di="collections";let Ei=Object(Xe.b)((_i=class extends We.a.Component{constructor(){super(...arguments),MultiMediaDropzone_initializerDefineProperty(this,"filesScheduledForUpload",Jn,this),MultiMediaDropzone_initializerDefineProperty(this,"mediaUploadStores",Zn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:qe,onUpload:Ye,onUploadError:We}=this.props,Qe=[];return ce.forEach((ce=>{const qe=new Ut(void 0,Ve),Ye=qe.create(ze,ce);Qe.push(Ye),this.addMediaUploadStore(qe)})),Promise.allSettled(Qe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?Ye(ze):We(Ve),setTimeout((()=>{qe(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},MultiMediaDropzone_initializerDefineProperty(this,"handleDrop",Xn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",ei,this),MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",si,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(rn,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:qe,locale:Ye,open:Qe}=this.props,st=Tt()(Ci,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(Et.a,{accept:ce,disabled:qe,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:qe}=ce;return We.a.createElement(Xe.a,null,(()=>We.a.createElement("div",qe({className:st}),ze,We.a.createElement("input",Ve()),We.a.createElement(Ri,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Qe},this.createMediaItems()))))})),We.a.createElement(ot.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:Di,locale:Ye,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:Di,title:Object(gt.b)("sulu_media.select_collection_for_upload")}))}},_i.defaultProps={accept:void 0,disabled:!1},Jn=MultiMediaDropzone_applyDecoratedDescriptor((Kn=_i).prototype,"filesScheduledForUpload",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"mediaUploadStores",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"addMediaUploadStore",[Qe.action],Object.getOwnPropertyDescriptor(Kn.prototype,"addMediaUploadStore"),Kn.prototype),MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"destroyMediaUploadStores",[Qe.action],Object.getOwnPropertyDescriptor(Kn.prototype,"destroyMediaUploadStores"),Kn.prototype),Xn=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleDrop",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),ei=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleSelectCollectionOverlayClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),si=MultiMediaDropzone_applyDecoratedDescriptor(Kn.prototype,"handleSelectCollectionOverlayConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),Gn=Kn))||Gn;var Oi,Ti,er,tr,nr=Ei,rr=Ve(401),ar=Ve(335),sr="overlay--nyNBhHN8Va";function CollectionFormOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CollectionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const lr="collection_details";var dr,ur,pr=Object(Xe.b)((Ti=class extends We.a.Component{constructor(ce){super(ce),CollectionFormOverlay_initializerDefineProperty(this,"title",er,this),CollectionFormOverlay_initializerDefineProperty(this,"formStore",tr,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=ot.j.createFromResourceStore(ze,lr)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(mt.translate)("sulu_media.add_collection"):Object(mt.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=ot.j.createFromResourceStore(this.props.resourceStore,lr))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,qe="create"===ce||"update"===ce,Ye=Object(mt.translate)("sulu_admin.ok"),Qe=Object(mt.translate)("sulu_admin.cancel"),Xe=We.a.createElement(ot.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?We.a.createElement(st.Dialog,{cancelText:Qe,confirmLoading:Ve.saving,confirmText:Ye,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},Xe):We.a.createElement(st.Overlay,{confirmLoading:Ve.saving,confirmText:Ye,onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},We.a.createElement("div",{className:sr},Xe))}},er=CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"title",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tr=CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"formStore",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CollectionFormOverlay_applyDecoratedDescriptor(Ti.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(Ti.prototype,"componentDidUpdate"),Ti.prototype),Oi=Ti))||Oi;let vr=Object(Xe.b)((ur=class ce extends We.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:qe}}=Ve,Ye=ce.getCurrentCollectionItem(Ve);return qe?[...qe,Ye]:[Ye]}render(){const ce=st.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(mt.translate)("sulu_media.all_media");if(!ze||!ze.length)return We.a.createElement(st.Breadcrumb,null,We.a.createElement(ce,null,Ve));if(1===ze.length){const qe=ze[0];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,null,qe.title))}const qe=ze[ze.length-1],Ye=ze[ze.length-2];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,{value:Ye.id},"..."),We.a.createElement(ce,null,qe.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(ur.prototype,"breadcrumb",[Qe.computed],Object.getOwnPropertyDescriptor(ur.prototype,"breadcrumb"),ur.prototype),dr=ur))||dr;var _r,Rr,Cr,Dr,Er,Tr,Ar,Mr,Lr,jr,Ir=vr,zr="overlay--4vlgQyxpWS";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Br={resourceKey:"media"};var Nr,Vr,Hr,qr,Yr,Ur,Wr,$r,Gr,Kr=Object(Xe.b)((Rr=class extends We.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Cr,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Dr,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Er,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Tr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Ar,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Mr,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...Br}).then((()=>ze())).catch((ce=>{ce.json().then(Object(Qe.action)((ce=>{const ze=ce.detail||ce.title||Object(mt.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",Lr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",jr,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new yt.c("permissions",ce,{},Br),this.formStore=ot.j.createFromResourceStore(this.resourceStore,"permission_details",Br),this.inheritDialogFormStore=ot.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return We.a.createElement(Ye.Fragment,null,We.a.createElement(st.Overlay,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(mt.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(mt.translate)("sulu_security.permissions")},We.a.createElement("div",{className:zr},We.a.createElement(ot.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(mt.translate)("sulu_security.inherit_permissions_title")},We.a.createElement(ot.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Cr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"showInheritDialog",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(Rr.prototype,"componentDidUpdate"),Rr.prototype),Er=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Tr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleConfirmInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Ar=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleSubmitInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Mr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleCancelInherit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),Lr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleSnackbarCloseClick",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),jr=PermissionFormOverlay_applyDecoratedDescriptor(Rr.prototype,"handleClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),_r=Rr))||_r,Jr="collection-section--pi1B29igFv",Zr="left--KWb5Oxux68",ga="right--7zITYQUc-5";function CollectionSection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ya="collections";let ba=Object(Xe.b)((Vr=class extends We.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Hr,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",qr,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",Yr,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,qe=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(qe)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(Qe.action)((Ve=>{409!==ze.status||Ve.code!==ar.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",Ur,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Wr,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$r,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Gr,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(Qe.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const qe=new yt.c(ya,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&qe.set("parent",this.collectionId),qe}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?We.a.createElement(rr.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:qe,locale:Ye,overlayType:Qe,resourceStore:Xe,securable:gt}=this.props,yt=this.openedCollectionOperationOverlayType;return We.a.createElement("div",null,!Xe.loading&&We.a.createElement("div",{className:Jr},We.a.createElement("div",{className:Zr},We.a.createElement(Ir,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Xe})),We.a.createElement("div",{className:ga},We.a.createElement(st.ButtonGroup,null,ce&&We.a.createElement(st.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(mt.translate)("sulu_media.add_collection")),!!Xe.id&&(Ve||ze||Ve||gt)&&We.a.createElement(st.DropdownButton,{icon:"su-cog"},Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(mt.translate)("sulu_admin.edit")),ze&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(mt.translate)("sulu_admin.delete")),Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(mt.translate)("sulu_admin.move")),gt&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(mt.translate)("sulu_security.permissions")))))),We.a.createElement(ot.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:qe}),We.a.createElement(pr,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:yt,overlayType:Qe,resourceStore:this.resourceStoreByOperationType}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:Xe.deleting,confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===yt,title:Object(mt.translate)("sulu_media.remove_collection")},Object(mt.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),We.a.createElement(Kr,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===yt}),We.a.createElement(ot.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Xe.moving,disabledIds:Xe.id?[Xe.id]:[],itemDisabledCondition:"!!locked",listKey:ya,locale:Ye,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===yt,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:ya,title:Object(mt.translate)("sulu_media.move_collection")}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(mt.translate)("sulu_security.move_permission_title")},Object(mt.translate)("sulu_security.move_permission_warning")))}},Hr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"openedCollectionOperationOverlayType",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"movingRestrictedTargetCollection",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Yr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"dependantResourcesData",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"openCollectionOperationOverlay",[Qe.action],Object.getOwnPropertyDescriptor(Vr.prototype,"openCollectionOperationOverlay"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"closeCollectionOperationOverlay",[Qe.action],Object.getOwnPropertyDescriptor(Vr.prototype,"closeCollectionOperationOverlay"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"collectionId",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"collectionId"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"hasChildren",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"hasChildren"),Vr.prototype),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"resourceStoreByOperationType",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"resourceStoreByOperationType"),Vr.prototype),Ur=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMoveCollectionConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Wr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMovePermissionWarningConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),$r=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"handleMovePermissionWarningCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Gr=CollectionSection_applyDecoratedDescriptor(Vr.prototype,"closeDeleteDependantResourcesDialog",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(Vr.prototype,"deleteDependantResourcesDialogRequestOptions",[Qe.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"deleteDependantResourcesDialogRequestOptions"),Vr.prototype),Nr=Vr))||Nr;var va,_a,wa,ka,xa,Aa=ba;function MediaCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ba=Object(Xe.b)((xa=class ce extends We.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",wa,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",ka,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:qe,collectionStore:Ye,hideUploadAction:Qe,locale:Xe,overlayType:mt,mediaListAdapters:yt,mediaListRef:bt,mediaListStore:vt,onMediaNavigate:wt,onUploadOverlayClose:Ct,onUploadOverlayOpen:Dt,uploadOverlayOpen:kt}=this.props,{locked:St,permissions:xt}=Ye,Et=[],Pt=!St&&(void 0!==xt.add?xt.add:ce.addable),Tt=!St&&(void 0!==xt.edit?xt.edit:ce.editable),Lt=!St&&(void 0!==xt.delete?xt.delete:ce.deletable),Ft=!St&&(void 0!==xt.security?xt.security:ce.securable);return Pt&&!Qe&&Et.push({disabled:Ye.loading,icon:"su-upload",label:Object(gt.b)("sulu_media.upload_file"),onClick:Dt}),We.a.createElement(nr,{className:Ve,collectionId:Ye.id,disabled:Ye.loading||!Pt,locale:Xe,onClose:Ct,onOpen:Dt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:kt},We.a.createElement(Aa,{addable:Pt,deletable:Lt,editable:Tt,listStore:qe,locale:Xe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:mt,resourceStore:Ye.resourceStore,securable:Ft}),We.a.createElement(st.Divider,null),We.a.createElement(ot.b,{actions:Et,adapters:yt,onDeleteError:ze,onItemClick:wt,ref:bt,store:vt}))}},xa.defaultProps={hideUploadAction:!1,overlayType:"overlay"},xa.addable=!0,xa.deletable=!0,xa.editable=!0,xa.securable=!0,wa=MediaCollection_applyDecoratedDescriptor((_a=xa).prototype,"handleUpload",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(Qe.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),ka=MediaCollection_applyDecoratedDescriptor(_a.prototype,"handleUploadError",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),va=_a))||va;var Ja,io,po,ho,go,_o,Co,ko,Oo=Ba,Po="overlay--ELcKC82pcm";function MediaSelectionOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaSelectionOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const To="media",Ao="collections",jo="media_selection_overlay";var Fo=Object(Xe.b)(((ko=class extends We.a.Component{static createCollectionListStore(ce,ze){return new ot.c(Ao,Ao,jo,{page:Qe.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,qe){const Ye={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(Qe.isArrayLike)(qe)&&qe.length>0&&(Ye.types=qe.join(",")),new ot.c(To,To,jo,{page:Qe.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},Ye)}constructor(ce){super(ce),MediaSelectionOverlay_initializerDefineProperty(this,"collectionStore",po,this),MediaSelectionOverlay_initializerDefineProperty(this,"showMediaUploadOverlay",ho,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleCollectionNavigate",go,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayOpen",_o,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayClose",Co,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(Qe.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new xt(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:qe,locale:Ye}=this.props,Qe=[{title:Object(mt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return We.a.createElement(st.Overlay,{actions:Qe,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(mt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:Object(mt.translate)("sulu_media.select_media_plural")},We.a.createElement("div",{className:Po},We.a.createElement(Oo,{collectionListStore:ce,collectionStore:this.collectionStore,locale:Ye,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},po=MediaSelectionOverlay_applyDecoratedDescriptor((io=ko).prototype,"collectionStore",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"showMediaUploadOverlay",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"updateCollectionStore",[Qe.action],Object.getOwnPropertyDescriptor(io.prototype,"updateCollectionStore"),io.prototype),go=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleCollectionNavigate",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),_o=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayOpen",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),Co=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),Ja=io))||Ja;ze.a=Fo},function(ce,ze,Ve){"use strict";function getIconForDisplayOption(ce){switch(ce){case"leftTop":return"su-display-top-left";case"top":return"su-display-top-center";case"rightTop":return"su-display-top-right";case"left":return"su-display-center-left";case"middle":return"su-display-center-center";case"right":return"su-display-center-right";case"leftBottom":return"su-display-bottom-left";case"bottom":return"su-display-bottom-center";case"rightBottom":return"su-display-bottom-right";default:return"su-display-default"}}Ve.d(ze,"a",(function(){return getIconForDisplayOption})),Ve.d(ze,"b",(function(){return getTranslationForDisplayOption}));var qe=Ve(6);function getTranslationForDisplayOption(ce){switch(ce){case"leftTop":return Object(qe.translate)("sulu_media.left_top");case"top":return Object(qe.translate)("sulu_media.top");case"rightTop":return Object(qe.translate)("sulu_media.right_top");case"left":return Object(qe.translate)("sulu_media.left");case"middle":return Object(qe.translate)("sulu_media.middle");case"right":return Object(qe.translate)("sulu_media.right");case"leftBottom":return Object(qe.translate)("sulu_media.left_bottom");case"bottom":return Object(qe.translate)("sulu_media.bottom");case"rightBottom":return Object(qe.translate)("sulu_media.right_bottom");default:return""}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce,ze,Ve,qe,Ye,We,Qe,Xe){if(!ce){var ot;if(void 0===ze)ot=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var st=[Ve,qe,Ye,We,Qe,Xe],mt=0;(ot=new Error(ze.replace(/%s/g,(function(){return st[mt++]})))).name="Invariant Violation"}throw ot.framesToPop=1,ot}}},function(ce,ze,Ve){"use strict";var qe=Ve(418),Ye=Ve(208);ce.exports=function(ce){return qe(Ye(ce))}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){return null==ce}},function(ce,ze,Ve){var qe=Ve(1178),Ye=Ve(1183);ce.exports=function getNative(ce,ze){var Ve=Ye(ce,ze);return qe(Ve)?Ve:void 0}},function(ce,ze,Ve){var qe=Ve(425),Ye=Ve(1179),We=Ve(1180),Qe=qe?qe.toStringTag:void 0;ce.exports=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":Qe&&Qe in Object(ce)?Ye(ce):We(ce)}},function(ce,ze){ce.exports=function(ce){return ce.webpackPolyfill||(ce.deprecate=function(){},ce.paths=[],ce.children||(ce.children=[]),Object.defineProperty(ce,"loaded",{enumerable:!0,get:function(){return ce.l}}),Object.defineProperty(ce,"id",{enumerable:!0,get:function(){return ce.i}}),ce.webpackPolyfill=1),ce}},function(ce,ze){ce.exports=function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){"use strict";let qe,Ye,We,Qe,Xe=Ve(495),ot=Ve(498),st=Ve(496),{isClean:mt,my:gt}=Ve(776);function cleanSource(ce){return ce.map((ce=>(ce.nodes&&(ce.nodes=cleanSource(ce.nodes)),delete ce.source,ce)))}function markTreeDirty(ce){if(ce[mt]=!1,ce.proxyOf.nodes)for(let ze of ce.proxyOf.nodes)markTreeDirty(ze)}class yt extends st{append(...ce){for(let ze of ce){let ce=this.normalize(ze,this.last);for(let ze of ce)this.proxyOf.nodes.push(ze)}return this.markDirty(),this}cleanRaws(ce){if(super.cleanRaws(ce),this.nodes)for(let ze of this.nodes)ze.cleanRaws(ce)}each(ce){if(!this.proxyOf.nodes)return;let ze,Ve,qe=this.getIterator();for(;this.indexes[qe]"proxyOf"===ze?ce:ce[ze]?"each"===ze||"string"==typeof ze&&ze.startsWith("walk")?(...Ve)=>ce[ze](...Ve.map((ce=>"function"==typeof ce?(ze,Ve)=>ce(ze.toProxy(),Ve):ce))):"every"===ze||"some"===ze?Ve=>ce[ze](((ce,...ze)=>Ve(ce.toProxy(),...ze))):"root"===ze?()=>ce.root().toProxy():"nodes"===ze?ce.nodes.map((ce=>ce.toProxy())):"first"===ze||"last"===ze?ce[ze].toProxy():ce[ze]:ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"name"!==ze&&"params"!==ze&&"selector"!==ze||ce.markDirty()),!0)}}index(ce){return"number"==typeof ce?ce:(ce.proxyOf&&(ce=ce.proxyOf),this.proxyOf.nodes.indexOf(ce))}insertAfter(ce,ze){let Ve,qe=this.index(ce),Ye=this.normalize(ze,this.proxyOf.nodes[qe]).reverse();qe=this.index(ce);for(let ce of Ye)this.proxyOf.nodes.splice(qe+1,0,ce);for(let ce in this.indexes)Ve=this.indexes[ce],qe(ce[gt]||yt.rebuild(ce),(ce=ce.proxyOf).parent&&ce.parent.removeChild(ce),ce[mt]&&markTreeDirty(ce),ce.raws||(ce.raws={}),void 0===ce.raws.before&&ze&&void 0!==ze.raws.before&&(ce.raws.before=ze.raws.before.replace(/\S/g,"")),ce.parent=this.proxyOf,ce)))}prepend(...ce){ce=ce.reverse();for(let ze of ce){let ce=this.normalize(ze,this.first,"prepend").reverse();for(let ze of ce)this.proxyOf.nodes.unshift(ze);for(let ze in this.indexes)this.indexes[ze]=this.indexes[ze]+ce.length}return this.markDirty(),this}push(ce){return ce.parent=this,this.proxyOf.nodes.push(ce),this}removeAll(){for(let ce of this.proxyOf.nodes)ce.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(ce){let ze;ce=this.index(ce),this.proxyOf.nodes[ce].parent=void 0,this.proxyOf.nodes.splice(ce,1);for(let Ve in this.indexes)ze=this.indexes[Ve],ze>=ce&&(this.indexes[Ve]=ze-1);return this.markDirty(),this}replaceValues(ce,ze,Ve){return Ve||(Ve=ze,ze={}),this.walkDecls((qe=>{ze.props&&!ze.props.includes(qe.prop)||ze.fast&&!qe.value.includes(ze.fast)||(qe.value=qe.value.replace(ce,Ve))})),this.markDirty(),this}some(ce){return this.nodes.some(ce)}walk(ce){return this.each(((ze,Ve)=>{let qe;try{qe=ce(ze,Ve)}catch(ce){throw ze.addToError(ce)}return!1!==qe&&ze.walk&&(qe=ze.walk(ce)),qe}))}walkAtRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("atrule"===Ve.type&&ce.test(Ve.name))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("atrule"===Ve.type&&Ve.name===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("atrule"===ce.type)return ze(ce,Ve)})))}walkComments(ce){return this.walk(((ze,Ve)=>{if("comment"===ze.type)return ce(ze,Ve)}))}walkDecls(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("decl"===Ve.type&&ce.test(Ve.prop))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("decl"===Ve.type&&Ve.prop===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("decl"===ce.type)return ze(ce,Ve)})))}walkRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,qe)=>{if("rule"===Ve.type&&ce.test(Ve.selector))return ze(Ve,qe)})):this.walk(((Ve,qe)=>{if("rule"===Ve.type&&Ve.selector===ce)return ze(Ve,qe)})):(ze=ce,this.walk(((ce,Ve)=>{if("rule"===ce.type)return ze(ce,Ve)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}yt.registerParse=ce=>{Ye=ce},yt.registerRule=ce=>{Qe=ce},yt.registerAtRule=ce=>{qe=ce},yt.registerRoot=ce=>{We=ce},ce.exports=yt,yt.default=yt,yt.rebuild=ce=>{"atrule"===ce.type?Object.setPrototypeOf(ce,qe.prototype):"rule"===ce.type?Object.setPrototypeOf(ce,Qe.prototype):"decl"===ce.type?Object.setPrototypeOf(ce,ot.prototype):"comment"===ce.type?Object.setPrototypeOf(ce,Xe.prototype):"root"===ce.type&&Object.setPrototypeOf(ce,We.prototype),ce[gt]=!0,ce.nodes&&ce.nodes.forEach((ce=>{yt.rebuild(ce)}))}},function(ce,ze,Ve){"use strict";(function(ce){var ze=Ve(8);const qe="34.2.0";const Ye="object"==typeof window?window:ce;if(Ye.CKEDITOR_VERSION)throw new ze.a("ckeditor-duplicated-modules",null);Ye.CKEDITOR_VERSION=qe}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1),Xe=Ve(85);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",Ye,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=qe,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Xe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Qe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Qe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},Ye=_applyDecoratedDescriptor(qe.prototype,"item",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"loadItem"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(204),Qe=Ve(15);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Qe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Xe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props;return Ye.a.createElement(We.default,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default"},Xe.Action=We.default.Action,Xe.Option=We.default.Option,Xe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";var qe=Ve(599);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(9),mt=Ve.n(st),gt=Ve(28),yt=Ve.n(gt),bt=Ve(368),vt=Ve(414);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const wt=Object(bt.a)();let Ct=(qe=class extends vt.b{constructor(ce,ze,Ve,qe,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",Ye,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"types",Xe,this),this.data=ce,this.schema=ze,this.locale=qe,this.addMissingSchemaProperties(),this.validator=Ve?wt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const qe=ce.startsWith("/")?ce:"/"+ce;yt.a.set(this.data,qe,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(ot.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){mt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},Ye=_applyDecoratedDescriptor(qe.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"dirty",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"change",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We="divider--1yF2ej4tQa";class Qe extends Ye.a.PureComponent{render(){return Ye.a.createElement("li",{className:We})}}var Xe="menu--XoYz+ChQAk";class ot extends Ye.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return Ye.a.createElement("ul",{className:Xe,ref:this.setRef,style:ce},ze)}}ot.Divider=Qe;ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(649),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(1036),Ve(10)),xt=Ve.n(St),Et=Ve(48),Pt=Ve(118);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.a,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:qe,valid:Ye}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Qe={placeholder:qe||this.getFormat(),valid:Ye&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Qe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((Ye=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setOpen"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setShowError"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),qe=Ye))||qe;ze.a=Tt},function(ce,ze,Ve){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}Ve.d(ze,"a",(function(){return _typeof}))},function(ce,ze,Ve){"use strict";var qe=Ve(504);ze.a=qe.default},function(ce,ze,Ve){"use strict";function isRange(ce){return"[object Range]"==Object.prototype.toString.apply(ce)}Ve.d(ze,"a",(function(){return isRange}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe})),Ve.d(ze,"b",(function(){return Ye}));const qe=1105,Ye=1106},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Lt})),Ve.d(ze,"a",(function(){return wa.a}));var qe,Ye,We,Qe,Xe,ot=Ve(564),st=(Ve(213),Ve(200),Ve(1)),mt=Ve(28),gt=Ve.n(mt),yt=Ve(27),bt=(Ve(353),Ve(354),Ve(9)),vt=Ve.n(bt),wt=Ve(367),Ct=Ve(410);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Dt=Object(wt.a)();let kt=(qe=class extends Ct.b{constructor(ce,ze,Ve,qe,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",Ye,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"types",Xe,this),this.data=ce,this.schema=ze,this.locale=qe,this.addMissingSchemaProperties(),this.validator=Ve?Dt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const qe=ce.startsWith("/")?ce:"/"+ce;gt.a.set(this.data,qe,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(st.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},Ye=_applyDecoratedDescriptor(qe.prototype,"data",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"dirty",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"types",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"change",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),qe);var St,xt,Et,Pt=Ve(256);function SchemaFormStoreDecorator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Tt=(St=st.computed.struct,Et=SchemaFormStoreDecorator_applyDecoratedDescriptor((xt=class{constructor(ce,ze,Ve,qe){var Ye,We,Qe,Xe;Ye=this,We="innerFormStore",Xe=this,(Qe=Et)&&Object.defineProperty(Ye,We,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(Xe):void 0}),Promise.all([Pt.a.getSchema(ze,Ve,qe),Pt.a.getJsonSchema(ze,Ve,qe)]).then(Object(st.action)((ze=>{let[Ve,qe]=ze;this.innerFormStore=ce(Ve,qe)})))}change(ce,ze,Ve){Object(st.when)((()=>!!this.innerFormStore),(()=>{var qe;null===(qe=this.innerFormStore)||void 0===qe||qe.change(ce,ze,Ve)}))}changeType(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(vt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"data",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"data"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"dirty",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"dirty"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"errors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"errors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasErrors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasErrors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"forbidden",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"forbidden"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasInvalidType",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasInvalidType"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"id",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"id"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"loading",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"loading"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"locale"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"metadataOptions",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"metadataOptions"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"options",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"options"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"resourceKey",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"resourceKey"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"schema",[St],Object.getOwnPropertyDescriptor(xt.prototype,"schema"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"types",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),xt);var Lt=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,qe=arguments.length>4?arguments[4]:void 0;return new Tt(((ce,Ye)=>new kt(ze,ce,Ye,Ve,qe)),ce,arguments.length>3?arguments[3]:void 0,qe)}createFromSchema(ce,ze){return new kt(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ce,ze)}},Ft=Ve(355);Ve(351);new class{createFromResourceStore(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;return new Ft.a(ce,ze,Ve,qe)}};var Bt,Vt,Ht,Ut,Wt,Jt,Qt=Ve(0),en=Ve.n(Qt),rn=Ve(3),ln=Ve(47),mn=Ve(49),gn=Ve(15);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((Vt=class extends en.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Ht,this),ChangelogLine_initializerDefineProperty(this,"creator",Ut,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Wt,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Jt,this),this.loadChanger=()=>{"number"==typeof this.changerId?mn.a.get("users",{id:this.changerId}).then(Object(st.action)((ce=>{this.setChanger(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?mn.a.get("users",{id:this.creatorId}).then(Object(st.action)((ce=>{this.setCreator(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(st.autorun)(this.loadChanger),this.creatorDisposer=Object(st.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?en.a.createElement(Qt.Fragment,null,en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):en.a.createElement(ln.a,null)}},Ht=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changer",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creator",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"setChanger",[st.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setChanger"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"setCreator",[st.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setCreator"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerId",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changerId"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorId",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"creatorId"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changerFullName",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changerFullName"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"changed",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"changed"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"creatorFullName",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"creatorFullName"),Vt.prototype),ChangelogLine_applyDecoratedDescriptor(Vt.prototype,"created",[st.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"created"),Vt.prototype),Bt=Vt));var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Ve(566).default,Gn=Ve(128),Kn="overlay--4K-u1kFoiV";function CardCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((wn=class extends en.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Cn,this),CardCollection_initializerDefineProperty(this,"formStore",Sn,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",En,this),CardCollection_initializerDefineProperty(this,"handleEdit",Tn,this),CardCollection_initializerDefineProperty(this,"handleRemove",Ln,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",Fn,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",Yn,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:qe}=this.props;return en.a.createElement(Qt.Fragment,null,en.a.createElement(Un,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!qe&&qe.map(((ce,ze)=>en.a.createElement(Un.Card,{key:ze},Ve(ce))))),en.a.createElement(Gn.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(gn.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(gn.b)(ze):Object(gn.b)(ce)},en.a.createElement("div",{className:Kn},!!this.formStore&&en.a.createElement(ho,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Cn=CardCollection_applyDecoratedDescriptor(wn.prototype,"overlayIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Sn=CardCollection_applyDecoratedDescriptor(wn.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleAdd",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Lt.createFromSchema(ze,ce)}}}),Tn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:qe}=this.props;if(!qe)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Lt.createFromSchema(Ve,ze,Object(st.toJS)(qe[ce]))}}}),Ln=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleRemove",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),Fn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleCloseOverlay",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),Yn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleOverlaySubmit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:qe}=this;if(!qe)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([qe.data]):void 0===this.overlayIndex?ce([...Ve,qe.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?qe.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(wn.prototype,"closeFormStore",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeFormStore"),wn.prototype),bn=wn));var Jn,Zn,Xn,ei=Ve(22),si=Ve.n(ei),_i=Ve(686),Ri=Ve(215),Ci=Ve(190),Di=Ve(387),Ei=Ve(606).default,Oi="list---35vI7JUIe";function Selection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((Zn=class extends en.a.Component{constructor(ce){var ze,Ve,qe,Ye;if(super(ce),ze=this,Ve="requestOptions",Ye=this,(qe=Xn)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||si()(Object(st.toJS)(this.value),Object(st.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||si()(Object(st.toJS)(this.value)||[],Object(st.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Qe,schemaOptions:{request_parameters:{value:Xe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Xe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Xe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;if(this.requestOptions=this.buildRequestOptions(mt,yt,Qe),Qe.addFinishFieldHandler((ce=>{if(yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,yt,Qe);si()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new Ri.a(We,ce||We,"selection",{locale:this.locale,page:st.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(st.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(st.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(st.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Ci.a(We,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!si()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(st.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(st.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(vt.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:Ye}=ce,We="string"==typeof Ye?Ye:ze;qe[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),qe}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,list_key:Ye,display_properties:We,icon:Qe,label:Xe,overlay_title:ot}}},schemaOptions:{types:{value:st}={},item_disabled_condition:{value:mt}={},allow_deselect_for_disabled_items:{value:gt=!0}={},sortable:{value:yt=!0}={}}}=this.props;if(void 0!==st&&"string"!=typeof st)throw new Error('The "types" schema option must be a string if given!');if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==gt&&"boolean"!=typeof gt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!qe)throw new Error('The selection field needs a "adapter" option to work properly');const bt={...this.requestOptions};return st&&(bt.types=st),en.a.createElement(Ei,{adapter:qe,allowDeselectForDisabledItems:!!gt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Qe,itemDisabledCondition:mt,label:Object(gn.b)(Xe,{count:this.value?this.value.length:0}),listKey:Ye||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:bt,overlayTitle:Object(gn.b)(ot),resourceKey:Ve,sortable:yt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:qe,search_properties:Ye}}}}=this.props;if(!qe)throw new Error('The selection field needs a "display_property" option to work properly!');if(!Ye)throw new Error('The selection field needs a "search_properties" option to work properly!');return en.a.createElement(Di.a,{allowAdd:Ve,disabled:!!ze,displayProperty:qe,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:Ye,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return en.a.createElement("div",{className:Oi},en.a.createElement(_i.a,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},Xn=Selection_applyDecoratedDescriptor(Zn.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Zn.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"value"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"locale"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"type"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteIdProperty",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteIdProperty"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteFilterParameter",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteFilterParameter"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"viewName"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"resultToView"),Zn.prototype),Jn=Zn));var Ti,er,tr,nr=Ve(553).default,rr=Ve(607).default,ar=Ve(653),sr=Ve(326);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((er=class extends en.a.Component{constructor(ce){var ze,Ve,qe,Ye;if(super(ce),ze=this,Ve="requestOptions",Ye=this,(qe=tr)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Qe,schemaOptions:{request_parameters:{value:Xe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Xe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Xe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;this.requestOptions=this.buildRequestOptions(mt,yt,Qe),Qe.addFinishFieldHandler((ce=>{if(yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name)).includes(ce)){const ce=this.buildRequestOptions(mt,yt,Qe);si()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new sr.a(We,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:Ye}=ce,We="string"==typeof Ye?Ye:ze;qe[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),qe}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||vt.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&vt.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,detail_options:Ye,list_key:We,display_properties:Qe,empty_text:Xe,icon:ot,overlay_title:mt}}},schemaOptions:{form_options_to_list_options:{value:gt=[]}={},item_disabled_condition:{value:yt}={},allow_deselect_for_disabled_items:{value:bt=!0}={},types:{value:vt}={}}={}}=this.props;if(void 0!==vt&&"string"!=typeof vt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==yt&&"string"!=typeof yt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(st.isArrayLike)(gt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const wt=gt;if(Ye&&"object"!=typeof Ye)throw new Error('The "detail_options" option has to be an array if defined!');const Ct=wt.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),Dt=vt?{types:vt}:void 0,kt={...this.requestOptions,...Ct,...Dt},St={...this.requestOptions,...Ye};return en.a.createElement(ar.a,{adapter:qe,allowDeselectForDisabledItems:!!bt,detailOptions:St,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:Qe,emptyText:Object(gn.b)(Xe),icon:ot,itemDisabledCondition:yt,listKey:We||Ve,listOptions:kt,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(gn.b)(mt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:qe,overlay_title:Ye}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof qe)throw new Error('The "id_property" field-type option must be a string!');return en.a.createElement(nr,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:qe,onChange:this.handleChange,overlayTitle:Object(gn.b)(Ye),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:qe,schemaOptions:{data_path_to_auto_complete:{value:Ye=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:We,search_properties:Qe}}}=Ve;if(!Object(st.isArrayLike)(Ye))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const Xe=Ye;Xe.length>0&&vt.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const ot={...Xe.reduce(((ce,ze)=>{const{name:Ve,value:Ye}=ze;if("string"!=typeof Ve||"string"!=typeof Ye)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[Ye]=qe.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return en.a.createElement(rr,{disabled:!!ce,displayProperty:We,id:ze,options:ot,searchProperties:Qe,selectionStore:this.autoCompleteSelectionStore})}},tr=SingleSelection_applyDecoratedDescriptor(er.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(er.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"value"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"type"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"locale"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"viewName"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"resultToView"),er.prototype),SingleSelection_applyDecoratedDescriptor(er.prototype,"useDeprecatedObjectDataFormat",[st.computed],Object.getOwnPropertyDescriptor(er.prototype,"useDeprecatedObjectDataFormat"),er.prototype),Ti=er));var lr,dr,ur=Ve(87),pr=Ve(150),vr=Ve(508);function Heading_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var _r,Rr,Cr=Object(rn.b)((Heading_applyDecoratedDescriptor((dr=class extends en.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return en.a.createElement(vr.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"schemaOptions"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"description",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"description"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"icon",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"icon"),dr.prototype),Heading_applyDecoratedDescriptor(dr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(dr.prototype,"label"),dr.prototype),lr=dr))||lr;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_value:{value:Ye}={}}=Ve;if(null!=Ye){if("boolean"!=typeof Ye)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===qe&&ze(Ye,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?en.a.createElement(pr.default,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):en.a.createElement(ur.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?en.a.createElement(Cr,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"schemaOptions"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"label"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"skin",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"skin"),Rr.prototype),Checkbox_applyDecoratedDescriptor(Rr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"type"),Rr.prototype),_r=Rr)),Ve(567).default;en.a.Component;var Dr,Er,Tr=Ve(10),Ar=Ve.n(Tr),Mr=Ve(328);function createStringValue(ce,ze){if(ce)return Ar()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ar()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(rn.b)((Er=class extends en.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:qe,value:Ye}=this.props,{dateFormat:We,timeFormat:Qe}=qe;if(void 0===We||void 0===Qe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const Xe={};return Qe&&(Xe.timeFormat=Qe),We||(Xe.dateFormat=!1),en.a.createElement(Mr.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:Xe,valid:!Ve,value:getValue(Ye,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Er.prototype,"format",[st.computed],Object.getOwnPropertyDescriptor(Er.prototype,"format"),Er.prototype),Dr=Er));Ve(509);en.a.Component;Ve(38);en.a.Component;var Lr,jr,Ir=Ve(358);function Number_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(rn.b)((jr=class extends en.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:qe,value:Ye}=this.props;return en.a.createElement(Ir.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:qe,step:this.step,valid:!Ve,value:Ye})}},Number_applyDecoratedDescriptor(jr.prototype,"min",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"min"),jr.prototype),Number_applyDecoratedDescriptor(jr.prototype,"max",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"max"),jr.prototype),Number_applyDecoratedDescriptor(jr.prototype,"step",[st.computed],Object.getOwnPropertyDescriptor(jr.prototype,"step"),jr.prototype),Lr=jr));Ve(610).default;en.a.Component;Ve(512);en.a.Component;Ve(514);en.a.Component;Ve(35);en.a.Component;var zr,Br=Ve(197);(function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We})((zr=class extends en.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,qe=this.values.map((ce=>ce.name)),Ye=ce.filter((ce=>qe.includes(ce)));ze(Ye.length>0?Ye:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_values:{value:Ye}={}}=Ve;if(null==Ye)return;if(!Object(st.isArrayLike)(Ye))throw new Error('The "default_values" schema option must be an array!');const We=Ye.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===qe&&ze(We,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(st.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return en.a.createElement(Br.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return en.a.createElement(Br.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"values"),zr.prototype);var Nr,Vr,Hr,qr,Yr,Ur,Wr,$r,Gr=Ve(516),Kr=Ve(613).default,Jr=Ve(78),Zr=Ve(33),ga="buttons-container--PmWNPlBqI+",ya="refresh-button--BUDSw4z+ON";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ba="sulu.rlp.part";Object(rn.b)((Vr=class extends en.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(ba).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Hr,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",qr,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Yr,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Ur,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Wr,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",$r,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:qe,value:Ye}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(st.action)((ce=>this.mode=ce))),"/"!==Ye&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(st.reaction)((()=>this.parts),Object(st.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:st.comparer.structural}),qe.addFinishFieldHandler(Object(st.action)(((ce,ze)=>{const{tags:Ve}=qe.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===ba))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:qe,formInspector:Ye,schemaOptions:{entity_class:{value:We}={}}={},value:Qe}=this.props;return"/"===Qe?"/":en.a.createElement(Qt.Fragment,null,en.a.createElement(Gr.a,{disabled:!!qe,id:Ve,locale:Ye.locale?Ye.locale:st.observable.box(yt.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:Qe}),en.a.createElement("div",{className:ga},en.a.createElement(Zr.default,{className:ya,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(gn.b)("sulu_admin.refresh_url")),en.a.createElement(Kr,{id:Ye.id,options:{locale:Ye.locale?Ye.locale.get():yt.a.contentLocale,resourceKey:Ye.resourceKey,webspace:Ye.options.webspace,entityClass:We,...ze},resourceKey:ce})))}},Hr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"mode",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"inputChanged",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"inputChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ur=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"partsChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"parts",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"parts"),Vr.prototype),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"enableAutoGeneration",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"enableAutoGeneration"),Vr.prototype),ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"enableRefreshButton",[st.computed],Object.getOwnPropertyDescriptor(Vr.prototype,"enableRefreshButton"),Vr.prototype),Wr=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"refreshResourceLocator",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:qe,schemaOptions:{entity_class:{value:Ye}={},route_schema:{value:We}={}}={}}=this.props,Qe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,qe]=ce;const Ye=Object(st.toJS)(Ve.getValueByPath("/"+ze));void 0!==Ye&&(Qe[qe]=Ye)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,Jr.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():yt.a.contentLocale,id:Ve.id,entityClass:Ye,routeSchema:We,...Qe}).then(Object(st.action)((ce=>{qe(ce.resourcelocator)})))}}}),$r=ResourceLocator_applyDecoratedDescriptor(Vr.prototype,"handleInputChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),Nr=Vr));var va,_a,wa=Ve(562),ka=Ve(796),xa=Ve(517),Aa=Ve(500),Ba=ka.default;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ja,io=new(_a=smartContentStorePool_applyDecoratedDescriptor((va=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,qe;ce=this,ze="entries",qe=this,(Ve=_a)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const qe=this.findPreviousStores(ze);0!==qe.length?Object(st.when)((()=>qe.every((ce=>!ce.itemsLoading))),(()=>{const Ve=qe.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"stores",[st.computed],Object.getOwnPropertyDescriptor(va.prototype,"stores"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"add",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"add"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"remove",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"remove"),va.prototype),va);function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}SmartContent_applyDecoratedDescriptor((Ja=class extends en.a.Component{get previousSmartContentStores(){return io.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(st.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return xa.a.getDefaultValue(this.provider,this.presentations)}get viewName(){return xa.a.getConfig(this.provider).view}get resultToView(){return xa.a.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props,Ye=Object(st.toJS)(qe),We=Object(st.toJS)(ce);Ye&&(Ye.categories&&Ye.categories.sort(),Ye.tags&&Ye.tags.sort()),We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),this.smartContentStore.loading||si()(Ye,We)||(ze(ce),Ve(),io.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:qe,viewName:Ye}=this;Ve&&Ye&&qe&&Ve.navigate(Ye,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:qe,schemaOptions:Ye={},value:We}=this.props,{exclude_duplicates:{value:Qe=!1}={}}=Ye;if("boolean"!=typeof Qe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:Xe}=xa.a.getConfig(this.provider);void 0===We&&qe(this.value,{isDefaultValue:!0}),this.smartContentStore=new Aa.a(this.provider,this.value,Ve.locale,Xe,Ve.resourceKey===this.provider?Ve.id:void 0,Ye,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),io.add(this.smartContentStore,Qe),this.filterCriteriaChangeDisposer=Object(st.reaction)((()=>Object(st.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Qe&&0!==this.previousSmartContentStores.length?Object(st.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{io.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){io.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return en.a.createElement(Ba,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"previousSmartContentStores"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"presentations",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"presentations"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"provider",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"provider"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"defaultValue",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"defaultValue"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ve(665);en.a.Component;var po=Ve(518);Ve(435),po.default;en.a.Component;Ve(359);en.a.Component;Ve(616);en.a.Component;var ho=ze.b=ot.default},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=Object(qe.a)(Object,"create");var We=function hashClear(){this.__data__=Ye?Ye(null):{},this.size=0};var Qe=function hashDelete(ce){var ze=this.has(ce)&&delete this.__data__[ce];return this.size-=ze?1:0,ze},Xe=Object.prototype.hasOwnProperty;var ot=function hashGet(ce){var ze=this.__data__;if(Ye){var Ve=ze[ce];return"__lodash_hash_undefined__"===Ve?void 0:Ve}return Xe.call(ze,ce)?ze[ce]:void 0},st=Object.prototype.hasOwnProperty;var mt=function hashHas(ce){var ze=this.__data__;return Ye?void 0!==ze[ce]:st.call(ze,ce)};var gt=function hashSet(ce,ze){var Ve=this.__data__;return this.size+=this.has(ce)?0:1,Ve[ce]=Ye&&void 0===ze?"__lodash_hash_undefined__":ze,this};function Hash(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),qe=Ye))||qe;var Tt=Pt;ze.a=Tt},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(98);var We=function baseIsArguments(ce){return Object(Ye.a)(ce)&&"[object Arguments]"==Object(qe.a)(ce)},Qe=Object.prototype,Xe=Qe.hasOwnProperty,ot=Qe.propertyIsEnumerable,st=We(function(){return arguments}())?We:function(ce){return Object(Ye.a)(ce)&&Xe.call(ce,"callee")&&!ot.call(ce,"callee")};ze.a=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Qe=Ve.n(We),Xe=Ve(23),ot=function CodeRenderer(ce){var ze=ce.classes,Ve=ce.children;return Ye.a.createElement("code",{className:ze.code},Ve)};ot.propTypes={classes:Qe.a.objectOf(Qe.a.string.isRequired).isRequired,children:Qe.a.node.isRequired};var st=Object(Xe.a)((function styles(ce){return{code:{fontFamily:ce.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(ot)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return containerChildrenMutated})),Ve.d(ze,"b",(function(){return getSingleTextNodeChange})),Ve.d(ze,"c",(function(){return isShiftDeleteOnNonCollapsedSelection}));var qe=Ve(199);function diffToChanges(ce,ze){const Ve=[];let qe,Ye=0;return ce.forEach((ce=>{"equal"==ce?(pushLast(),Ye++):"insert"==ce?(isContinuationOf("insert")?qe.values.push(ze[Ye]):(pushLast(),qe={type:"insert",index:Ye,values:[ze[Ye]]}),Ye++):isContinuationOf("delete")?qe.howMany++:(pushLast(),qe={type:"delete",index:Ye,howMany:1})})),pushLast(),Ve;function pushLast(){qe&&(Ve.push(qe),qe=null)}function isContinuationOf(ce){return qe&&qe.type==ce}}var Ye=Ve(37);function containerChildrenMutated(ce){if(0==ce.length)return!1;for(const ze of ce)if("children"===ze.type&&!getSingleTextNodeChange(ze))return!0;return!1}function getSingleTextNodeChange(ce){if(ce.newChildren.length-ce.oldChildren.length!=1)return;const ze=diffToChanges(Object(qe.a)(ce.oldChildren,ce.newChildren,compareChildNodes),ce.newChildren);if(ze.length>1)return;const Ve=ze[0];return Ve.values[0]&&Ve.values[0].is("$text")?Ve:void 0}function compareChildNodes(ce,ze){return ce&&ce.is("$text")&&ze&&ze.is("$text")?ce.data===ze.data:ce===ze}function isShiftDeleteOnNonCollapsedSelection(ce,ze){const Ve=ze.selection,qe=ce.shiftKey&&ce.keyCode===Ye.f.delete,We=!Ve.isCollapsed;return qe&&We}},function(ce,ze,Ve){"use strict";var qe=Ve(244),Ye=Ve(725),We=qe({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(Ye(ce),ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(70);ce.exports=qe({}.isPrototypeOf)},function(ce,ze,Ve){"use strict";var qe=Ve(734),Ye=Ve(61),We=Ve(105).String;ce.exports=!!Object.getOwnPropertySymbols&&!Ye((function(){var ce=Symbol("symbol detection");return!We(ce)||!(Object(ce)instanceof Symbol)||!Symbol.sham&&qe&&qe<41}))},function(ce,ze,Ve){"use strict";var qe=Ve(735);ce.exports=function(ce,ze){return qe[ce]||(qe[ce]=ze||{})}},function(ce,ze,Ve){"use strict";var qe=Ve(120),Ye=Ve(185),We=Ve(459);ce.exports=qe?function(ce,ze,Ve){return Ye.f(ce,ze,We(1,Ve))}:function(ce,ze,Ve){return ce[ze]=Ve,ce}},function(ce,ze,Ve){"use strict";var qe=Ve(826),Ye=Ve(185);ce.exports=function(ce,ze,Ve){return Ve.get&&qe(Ve.get,ze,{getter:!0}),Ve.set&&qe(Ve.set,ze,{setter:!0}),Ye.f(ce,ze,Ve)}},function(ce,ze,Ve){var qe=Ve(856),Ye=Ve(873),We=Ve(275);ce.exports=function keys(ce){return We(ce)?qe(ce):Ye(ce)}},function(ce,ze){ce.exports=function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){var qe=Ve(1032);function _defineProperties(ce,ze){for(var Ve=0;Ve2&&void 0!==arguments[2]?arguments[2]:{},Ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},kt=arguments.length>4?arguments[4]:void 0,St=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_initializerDefineProperty(this,"id",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"saving",Xe,this),_initializerDefineProperty(this,"deleting",ot,this),_initializerDefineProperty(this,"moving",st,this),_initializerDefineProperty(this,"data",mt,this),_initializerDefineProperty(this,"dirty",gt,this),_initializerDefineProperty(this,"forbidden",yt,this),this.loadOptions={},this.load=()=>{const{id:ce,observableOptions:{locale:ze}}=this;ze&&!ze.get()||(this.preventLoadingOnce?this.preventLoadingOnce=!1:ce?(Dt.a.info('ResourceStore loads "'+this.resourceKey+'" data with the ID "'+ce+'"'),this.setLoading(!0),this.setForbidden(!1),this.requestRemoteData().then(Object(wt.action)((ce=>{this.idQueryParameter?(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce)):this.setMultiple(ce),this.initialized=!0,this.setLoading(!1),this.dirty=!1}))).catch(Object(wt.action)((ce=>{403===ce.status&&this.setForbidden(!0)})))):this.initialized=!0)},this.requestRemoteData=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:ze,observableOptions:{locale:qe}}=Ve;return qe&&(ce.locale=qe.get()),Ve.idQueryParameter?xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,[Ve.idQueryParameter]:ze}):xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,id:ze})},_initializerDefineProperty(this,"reload",bt,this),_initializerDefineProperty(this,"move",vt,this),this.resourceKey=ce,this.id=ze,this.observableOptions=qe,this.loadOptions=Ct,this.idQueryParameter=kt,this.preventLoadingOnce=St,this.disposer=Object(wt.autorun)(this.load)}setLoading(ce){this.loading=ce}setForbidden(ce){this.forbidden=ce}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),this.idQueryParameter||!this.id?this.create(ce):this.update(ce)}create(ce){this.saving=!0;const ze=ce;return this.idQueryParameter&&(ze[this.idQueryParameter]=this.id),xt.a.post(this.resourceKey,this.data,ze).then(Object(wt.action)((ce=>(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}update(ce){if(!this.id)throw new Error('Can not save resource with an undefined "id"');return this.saving=!0,xt.a.put(this.resourceKey,this.data,{...ce,id:this.id}).then(Object(wt.action)((ce=>(this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}delete(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.data.id)throw new Error('Cannot delete resource with an undefined "id"');const{locale:ze}=this.observableOptions;if(ce.deleteLocale&&!ze)throw new Error('Cannot delete a localized resource with an undefined "locale"');this.deleting=!0;const Ve=ce;return ze&&(Ve.locale=ze.get()),xt.a.delete(this.resourceKey,{...Ve,id:this.data.id}).then(Object(wt.action)((ce=>{this.id=void 0,this.setMultiple(ce),this.deleting=!1,this.dirty=!1,this.destroy()}))).catch(Object(wt.action)((ce=>{throw this.deleting=!1,ce})))}copyFromLocale(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.id)throw new Error("Copying from another locale does not work for new objects!");if(!this.locale)throw new Error("Copying from another locale does only work for objects with locales!");const Ve=this.locale.get();return xt.a.post(this.resourceKey,{},{...ze,action:"copy-locale",dest:Ve,id:this.id,locale:Ve,src:ce}).then(Object(wt.action)((ce=>(this.setMultiple(ce),ce))))}set(ce,ze){const Ve=ce.startsWith("/")?ce.substring(1):ce;"id"!==Ve||"string"!=typeof ze&&"number"!=typeof ze||(this.id=ze),St.a.set(this.data,"/"+Ve,ze)}setMultiple(ce){ce.id&&(this.id=ce.id),Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])})),Object(wt.set)(this.data,this.data),Dt.a.info('ResourceStore changed "'+this.resourceKey+'" data with the ID "'+(this.id||"undefined")+'"',this.data)}change(ce,ze){this.set(ce,ze),this.dirty=!0}changeMultiple(ce){this.setMultiple(ce),this.dirty=!0}clone(){const ze=new ce(this.resourceKey,this.id,this.observableOptions,this.loadOptions,void 0,!0);return ze.loading=this.loading,Object(wt.when)((()=>!this.loading),(()=>{ze.data=Object(wt.toJS)(this.data),ze.loading=!1})),ze}get locale(){return this.observableOptions.locale}destroy(){this.disposer()}handleIdQueryParameterResponse(ce){ce.id&&(this.idQueryParameter=void 0,this.id=ce.id,this.preventLoadingOnce=!0)}},Ye=_applyDecoratedDescriptor(qe.prototype,"id",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"saving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"deleting",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"moving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"data",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gt=_applyDecoratedDescriptor(qe.prototype,"dirty",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(qe.prototype,"forbidden",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(qe.prototype,"reload",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.load()}}}),_applyDecoratedDescriptor(qe.prototype,"setLoading",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForbidden",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"save",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"save"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"create",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"create"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"update",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"update"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"delete",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"delete"),qe.prototype),vt=_applyDecoratedDescriptor(qe.prototype,"move",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.id)throw new Error("Moving does not work for new objects!");this.moving=!0;const{locale:ze}=this.observableOptions,Ve={action:"move",destination:ce,locale:ze?ze.get():void 0};return xt.a.post(this.resourceKey,void 0,{...Ve,id:this.id}).then(Object(wt.action)((()=>{this.moving=!1}))).catch(Object(wt.action)((ce=>{throw this.moving=!1,ce})))}}}),_applyDecoratedDescriptor(qe.prototype,"set",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"change",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clone",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clone"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"handleIdQueryParameterResponse",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"handleIdQueryParameterResponse"),qe.prototype),qe);ze.a=Et},function(ce,ze,Ve){"use strict";function findById(ce,ze){for(const Ve of ce){if(ze===Ve.id)return Ve;if(Ve.items){const ce=findById(Ve.items,ze);if(ce)return ce}}}Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.navigationItems=[]}set(ce){this.navigationItems=ce}get(ce){const ze=findById(this.navigationItems,ce);if(!ze)throw new Error('Navigation item with id "'+ce+'" not found.');return ze}getAll(){return this.navigationItems}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return kt}));var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(28),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(367),vt=(Ve(351),Ve(410)),wt=Ve(256);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ct="template",Dt=Object(bt.a)();function mergeData(ce,ze,Ve,qe){let Ye={};if(!ce||!ze)return Ye;for(const Qe in ze){const{items:Xe,defaultType:st,type:mt,types:gt}=ze[Qe],{items:yt,defaultType:bt,type:wt,types:Ct}=ce[Qe]||{};if(mt===vt.a&&Xe)Ye=mergeData(ce,Xe,Ve,qe);else if(wt===vt.a&&yt)Ye=mergeData(yt,ze,Ve,qe);else if(gt&&Ct&&Object.keys(gt).length>0&&Object.keys(Ct).length>0&&Ve[Qe]&&qe[Qe]&&Object(ot.isArrayLike)(Ve[Qe])&&Object(ot.isArrayLike)(qe[Qe]))for(let ce=0;cece&&qe[Qe][ce]||{}),Xe=Object(ot.toJS)(Ve[Qe].length>ce&&Ve[Qe][ce]||{}),mt=null==Xe?void 0:Xe.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(We=Ct[Xe.type])||void 0===We?void 0:We.form)||Ct[bt].form,gt[yt].form,Xe,ze);Ye[Qe]||(Ye[Qe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==Xe?void 0:Xe.settings)||ze.settings,Ye[Qe].push(vt))}else Ve[Qe]&&mt===wt?Ye[Qe]=Ve[Qe]:Ye[Qe]=qe[Qe]}return Ye}let kt=(qe=class extends vt.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;super(),_initializerDefineProperty(this,"types",Ye,this),_initializerDefineProperty(this,"schemaLoading",We,this),_initializerDefineProperty(this,"typesLoading",Qe,this),_initializerDefineProperty(this,"handleSchemaTypeResponse",Xe,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Dt.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(ot.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const qe=mergeData(ce,ze,this.data,Ve);this.setMultiple(qe)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=qe,wt.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(ot.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(ot.get)(this.data,Ct):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(ot.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){yt.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){yt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(yt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Ct,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Ct,ce,ze)}getSchemaEntryByPath(ce){return mt.a.get(this.schema,ce)}},Ye=_applyDecoratedDescriptor(qe.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),We=_applyDecoratedDescriptor(qe.prototype,"schemaLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_applyDecoratedDescriptor(qe.prototype,"typesLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleSchemaTypeResponse",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(ot.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Ct]||Ve||Object.keys(this.types)[0];Object(ot.set)(this.data,{[Ct]:ce})})),this.schemaDisposer=Object(ot.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([wt.a.getSchema(this.formKey,this.type,this.metadataOptions),wt.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),_applyDecoratedDescriptor(qe.prototype,"hasTypes",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasTypes"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasInvalidType",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasInvalidType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"data",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"data"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"type",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"type"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"save",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"save"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"resourceKey",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"saving",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"saving"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"deleting",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"deleting"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"forbidden",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"forbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"dirty",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"dirty"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setSchemaLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setSchemaLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setType",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeType",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeType"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(596);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(602);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(511);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(615);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(42),Ye=Ve(25);class We{constructor(ce){this.context=ce}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Object(Ye.a)(We,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Dt}));var qe=Ve(24),Ye=Ve(41),We=Ve(139),Qe=Ve(218),Xe=Ve(258),ot=Ve(443),st=Ve(253),mt=Ve(444),gt=Ve(8),yt=Ve(178),bt=Ve(99),vt=Ve(63),wt=Ve(398),Ct=Ve(268);class Dt{constructor(ce){this.document=ce,this._cloneGroups=new Map,this._slotFactory=null}setSelection(ce,ze,Ve){this.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this.document.selection._setFocus(ce,ze)}createDocumentFragment(ce){return new yt.a(this.document,ce)}createText(ce){return new vt.a(this.document,ce)}createAttributeElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new Xe.a(this.document,ce,ze);return"number"==typeof Ve.priority&&(qe._priority=Ve.priority),Ve.id&&(qe._id=Ve.id),Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createContainerElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ye=null;Object(Ct.a)(Ve)?qe=Ve:Ye=Ve;const We=new Qe.a(this.document,ce,ze,Ye);return qe.renderUnsafeAttributes&&We._unsafeAttributesToRender.push(...qe.renderUnsafeAttributes),We}createEditableElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new wt.a(this.document,ce,ze);return qe._document=this.document,Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createEmptyElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new ot.a(this.document,ce,ze);return Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createUIElement(ce,ze,Ve){const qe=new st.a(this.document,ce,ze);return Ve&&(qe.render=Ve),qe}createRawElement(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=new mt.a(this.document,ce,ze);return Ye.render=Ve||(()=>{}),qe.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...qe.renderUnsafeAttributes),Ye}setAttribute(ce,ze,Ve){Ve._setAttribute(ce,ze)}removeAttribute(ce,ze){ze._removeAttribute(ce)}addClass(ce,ze){ze._addClass(ce)}removeClass(ce,ze){ze._removeClass(ce)}setStyle(ce,ze,Ve){Object(Ct.a)(ce)&&void 0===Ve&&(Ve=ze),Ve._setStyle(ce,ze)}removeStyle(ce,ze){ze._removeStyle(ce)}setCustomProperty(ce,ze,Ve){Ve._setCustomProperty(ce,ze)}removeCustomProperty(ce,ze){return ze._removeCustomProperty(ce)}breakAttributes(ce){return ce instanceof qe.a?this._breakAttributes(ce):this._breakAttributesRange(ce)}breakContainer(ce){const ze=ce.parent;if(!ze.is("containerElement"))throw new gt.a("view-writer-break-non-container-element",this.document);if(!ze.parent)throw new gt.a("view-writer-break-root",this.document);if(ce.isAtStart)return qe.a._createBefore(ze);if(!ce.isAtEnd){const Ve=ze._clone(!1);this.insert(qe.a._createAfter(ze),Ve);const We=new Ye.a(ce,qe.a._createAt(ze,"end")),Qe=new qe.a(Ve,0);this.move(We,Qe)}return qe.a._createAfter(ze)}mergeAttributes(ce){const ze=ce.offset,Ve=ce.parent;if(Ve.is("$text"))return ce;if(Ve.is("attributeElement")&&0===Ve.childCount){const ce=Ve.parent,ze=Ve.index;return Ve._remove(),this._removeFromClonedElementsGroup(Ve),this.mergeAttributes(new qe.a(ce,ze))}const Ye=Ve.getChild(ze-1),We=Ve.getChild(ze);if(!Ye||!We)return ce;if(Ye.is("$text")&&We.is("$text"))return mergeTextNodes(Ye,We);if(Ye.is("attributeElement")&&We.is("attributeElement")&&Ye.isSimilar(We)){const ce=Ye.childCount;return Ye._appendChild(We.getChildren()),We._remove(),this._removeFromClonedElementsGroup(We),this.mergeAttributes(new qe.a(Ye,ce))}return ce}mergeContainers(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze&&Ve&&ze.is("containerElement")&&Ve.is("containerElement")))throw new gt.a("view-writer-merge-containers-invalid-position",this.document);const We=ze.getChild(ze.childCount-1),Qe=We instanceof vt.a?qe.a._createAt(We,"end"):qe.a._createAt(ze,"end");return this.move(Ye.a._createIn(Ve),qe.a._createAt(ze,"end")),this.remove(Ye.a._createOn(Ve)),Qe}insert(ce,ze){validateNodesToInsert(ze=Object(bt.a)(ze)?[...ze]:[ze],this.document);const Ve=ze.reduce(((ce,ze)=>{const Ve=ce[ce.length-1],qe=!ze.is("uiElement");return Ve&&Ve.breakAttributes==qe?Ve.nodes.push(ze):ce.push({breakAttributes:qe,nodes:[ze]}),ce}),[]);let qe=null,We=ce;for(const{nodes:ce,breakAttributes:ze}of Ve){const Ve=this._insertNodes(We,ce,ze);qe||(qe=Ve.start),We=Ve.end}return qe?new Ye.a(qe,We):new Ye.a(ce)}remove(ce){const ze=ce instanceof Ye.a?ce:Ye.a._createOn(ce);if(validateRangeContainer(ze,this.document),ze.isCollapsed)return new yt.a(this.document);const{start:Ve,end:qe}=this._breakAttributesRange(ze,!0),We=Ve.parent,Qe=qe.offset-Ve.offset,Xe=We._removeChildren(Ve.offset,Qe);for(const ce of Xe)this._removeFromClonedElementsGroup(ce);const ot=this.mergeAttributes(Ve);return ze.start=ot,ze.end=ot.clone(),new yt.a(this.document,Xe)}clear(ce,ze){validateRangeContainer(ce,this.document);const Ve=ce.getWalker({direction:"backward",ignoreElementEnd:!0});for(const qe of Ve){const Ve=qe.item;let We;if(Ve.is("element")&&ze.isSimilar(Ve))We=Ye.a._createOn(Ve);else if(!qe.nextPosition.isAfter(ce.start)&&Ve.is("$textProxy")){const ce=Ve.getAncestors().find((ce=>ce.is("element")&&ze.isSimilar(ce)));ce&&(We=Ye.a._createIn(ce))}We&&(We.end.isAfter(ce.end)&&(We.end=ce.end),We.start.isBefore(ce.start)&&(We.start=ce.start),this.remove(We))}}move(ce,ze){let Ve;if(ze.isAfter(ce.end)){const qe=(ze=this._breakAttributes(ze,!0)).parent,Ye=qe.childCount;ce=this._breakAttributesRange(ce,!0),Ve=this.remove(ce),ze.offset+=qe.childCount-Ye}else Ve=this.remove(ce);return this.insert(ze,Ve)}wrap(ce,ze){if(!(ze instanceof Xe.a))throw new gt.a("view-writer-wrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed){let qe=ce.start;qe.parent.is("element")&&(Ve=qe.parent,!Array.from(Ve.getChildren()).some((ce=>!ce.is("uiElement"))))&&(qe=qe.getLastMatchingPosition((ce=>ce.item.is("uiElement")))),qe=this._wrapPosition(qe,ze);const We=this.document.selection;return We.isCollapsed&&We.getFirstPosition().isEqual(ce.start)&&this.setSelection(qe),new Ye.a(qe)}return this._wrapRange(ce,ze);var Ve}unwrap(ce,ze){if(!(ze instanceof Xe.a))throw new gt.a("view-writer-unwrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed)return ce;const{start:Ve,end:qe}=this._breakAttributesRange(ce,!0),We=Ve.parent,Qe=this._unwrapChildren(We,Ve.offset,qe.offset,ze),ot=this.mergeAttributes(Qe.start);ot.isEqual(Qe.start)||Qe.end.offset--;const st=this.mergeAttributes(Qe.end);return new Ye.a(ot,st)}rename(ce,ze){const Ve=new Qe.a(this.document,ce,ze.getAttributes());return this.insert(qe.a._createAfter(ze),Ve),this.move(Ye.a._createIn(ze),qe.a._createAt(Ve,0)),this.remove(Ye.a._createOn(ze)),Ve}clearClonedElementsGroup(ce){this._cloneGroups.delete(ce)}createPositionAt(ce,ze){return qe.a._createAt(ce,ze)}createPositionAfter(ce){return qe.a._createAfter(ce)}createPositionBefore(ce){return qe.a._createBefore(ce)}createRange(ce,ze){return new Ye.a(ce,ze)}createRangeOn(ce){return Ye.a._createOn(ce)}createRangeIn(ce){return Ye.a._createIn(ce)}createSelection(ce,ze,Ve){return new We.a(ce,ze,Ve)}createSlot(ce){if(!this._slotFactory)throw new gt.a("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,ce)}_registerSlotFactory(ce){this._slotFactory=ce}_clearSlotFactory(){this._slotFactory=null}_insertNodes(ce,ze,Ve){let qe,We;if(qe=Ve?getParentContainer(ce):ce.parent.is("$text")?ce.parent.parent:ce.parent,!qe)throw new gt.a("view-writer-invalid-position-container",this.document);We=Ve?this._breakAttributes(ce,!0):ce.parent.is("$text")?breakTextNode(ce):ce;const Qe=qe._insertChild(We.offset,ze);for(const ce of ze)this._addToClonedElementsGroup(ce);const Xe=We.getShiftedBy(Qe),ot=this.mergeAttributes(We);ot.isEqual(We)||Xe.offset--;const st=this.mergeAttributes(Xe);return new Ye.a(ot,st)}_wrapChildren(ce,ze,Ve,We){let Qe=ze;const Xe=[];for(;Qe!1,ce.parent._insertChild(ce.offset,Ve);const We=new Ye.a(ce,ce.getShiftedBy(1));this.wrap(We,ze);const Qe=new qe.a(Ve.parent,Ve.index);Ve._remove();const Xe=Qe.nodeBefore,ot=Qe.nodeAfter;return Xe instanceof vt.a&&ot instanceof vt.a?mergeTextNodes(Xe,ot):movePositionToTextNode(Qe)}_wrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&ze.hasAttribute(Ve)&&ze.getAttribute(Ve)!==ce.getAttribute(Ve))return!1;for(const Ve of ce.getStyleNames())if(ze.hasStyle(Ve)&&ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&(ze.hasAttribute(Ve)||this.setAttribute(Ve,ce.getAttribute(Ve),ze));for(const Ve of ce.getStyleNames())ze.hasStyle(Ve)||this.setStyle(Ve,ce.getStyle(Ve),ze);for(const Ve of ce.getClassNames())ze.hasClass(Ve)||this.addClass(Ve,ze);return!0}_unwrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&(!ze.hasAttribute(Ve)||ze.getAttribute(Ve)!==ce.getAttribute(Ve)))return!1;if(!ze.hasClass(...ce.getClassNames()))return!1;for(const Ve of ce.getStyleNames())if(!ze.hasStyle(Ve)||ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&this.removeAttribute(Ve,ze);return this.removeClass(Array.from(ce.getClassNames()),ze),this.removeStyle(Array.from(ce.getStyleNames()),ze),!0}_breakAttributesRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.start,qe=ce.end;if(validateRangeContainer(ce,this.document),ce.isCollapsed){const Ve=this._breakAttributes(ce.start,ze);return new Ye.a(Ve,Ve)}const We=this._breakAttributes(qe,ze),Qe=We.parent.childCount,Xe=this._breakAttributes(Ve,ze);return We.offset+=We.parent.childCount-Qe,new Ye.a(Xe,We)}_breakAttributes(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.offset,Ye=ce.parent;if(ce.parent.is("emptyElement"))throw new gt.a("view-writer-cannot-break-empty-element",this.document);if(ce.parent.is("uiElement"))throw new gt.a("view-writer-cannot-break-ui-element",this.document);if(ce.parent.is("rawElement"))throw new gt.a("view-writer-cannot-break-raw-element",this.document);if(!ze&&Ye.is("$text")&&isContainerOrFragment(Ye.parent))return ce.clone();if(isContainerOrFragment(Ye))return ce.clone();if(Ye.is("$text"))return this._breakAttributes(breakTextNode(ce),ze);if(Ve==Ye.childCount){const ce=new qe.a(Ye.parent,Ye.index+1);return this._breakAttributes(ce,ze)}if(0===Ve){const ce=new qe.a(Ye.parent,Ye.index);return this._breakAttributes(ce,ze)}{const ce=Ye.index+1,We=Ye._clone();Ye.parent._insertChild(ce,We),this._addToClonedElementsGroup(We);const Qe=Ye.childCount-Ve,Xe=Ye._removeChildren(Ve,Qe);We._appendChild(Xe);const ot=new qe.a(Ye.parent,ce);return this._breakAttributes(ot,ze)}}_addToClonedElementsGroup(ce){if(!ce.root.is("rootElement"))return;if(ce.is("element"))for(const ze of ce.getChildren())this._addToClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;let Ve=this._cloneGroups.get(ze);Ve||(Ve=new Set,this._cloneGroups.set(ze,Ve)),Ve.add(ce),ce._clonesGroup=Ve}_removeFromClonedElementsGroup(ce){if(ce.is("element"))for(const ze of ce.getChildren())this._removeFromClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;const Ve=this._cloneGroups.get(ze);Ve&&Ve.delete(ce)}}function getParentContainer(ce){let ze=ce.parent;for(;!isContainerOrFragment(ze);){if(!ze)return;ze=ze.parent}return ze}function shouldABeOutsideB(ce,ze){return ce.priorityze.priority)&&ce.getIdentity()Ve instanceof ce)))throw new gt.a("view-writer-insert-invalid-node-type",ze);Ve.is("$text")||validateNodesToInsert(Ve.getChildren(),ze)}}const kt=[vt.a,Xe.a,Qe.a,ot.a,mt.a,st.a];function isContainerOrFragment(ce){return ce&&(ce.is("containerElement")||ce.is("documentFragment"))}function validateRangeContainer(ce,ze){const Ve=getParentContainer(ce.start),qe=getParentContainer(ce.end);if(!Ve||!qe||Ve!==qe)throw new gt.a("view-writer-invalid-range-container",ze)}function canBeJoined(ce,ze){return null===ce.id&&null===ze.id}},function(ce,ze,Ve){"use strict";function isVisible(ce){return!!(ce&&ce.getClientRects&&ce.getClientRects().length)}Ve.d(ze,"a",(function(){return isVisible}))},function(ce,ze,Ve){"use strict";function clickOutsideHandler(ce){let{emitter:ze,activator:Ve,callback:qe,contextElements:Ye}=ce;ze.listenTo(document,"mousedown",((ce,ze)=>{if(!Ve())return;const We="function"==typeof ze.composedPath?ze.composedPath():[];for(const ce of Ye)if(ce.contains(ze.target)||We.includes(ce))return;qe()}))}Ve.d(ze,"a",(function(){return clickOutsideHandler}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return injectUnsafeKeystrokesHandling})),Ve.d(ze,"b",(function(){return isNonTypingKeystroke}));var qe=Ve(37),Ye=Ve(58),We=Ve(341);function injectUnsafeKeystrokesHandling(ce){let ze=null;const Ve=ce.model,qe=ce.editing.view,Qe=ce.commands.get("input");function handleUnsafeKeystroke(ce){if(Ye.a.isWindows&&Object(We.c)(ce,qe.document))return;const Xe=Ve.document,ot=qe.document.isComposing,st=ze&&ze.isEqual(Xe.selection);ze=null,Qe.isEnabled&&(isNonTypingKeystroke(ce)||Xe.selection.isCollapsed||ot&&229===ce.keyCode||!ot&&229===ce.keyCode&&st||deleteSelectionContent())}function deleteSelectionContent(){const ce=Qe.buffer;ce.lock();const ze=ce.batch;Ve.enqueueChange(ze,(()=>{Ve.deleteContent(Ve.document.selection)})),ce.unlock()}Ye.a.isAndroid?qe.document.on("beforeinput",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}):qe.document.on("keydown",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}),qe.document.on("compositionstart",(function handleCompositionStart(){const ce=Ve.document,ze=1!==ce.selection.rangeCount||ce.selection.getFirstRange().isFlat;if(ce.selection.isCollapsed||ze)return;deleteSelectionContent()}),{priority:"lowest"}),qe.document.on("compositionend",(()=>{ze=Ve.createSelection(Ve.document.selection)}),{priority:"lowest"})}const Qe=[Object(qe.a)("arrowUp"),Object(qe.a)("arrowRight"),Object(qe.a)("arrowDown"),Object(qe.a)("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let ce=112;ce<=135;ce++)Qe.push(ce);function isNonTypingKeystroke(ce){return!(!ce.ctrlKey&&!ce.metaKey)||Qe.includes(ce.keyCode)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return kt})),Ve.d(ze,"a",(function(){return St}));var qe=Ve(71),Ye=Ve(307);var We=function last(ce){var ze=null==ce?0:ce.length;return ze?ce[ze-1]:void 0},Qe=Ve(397);var Xe=function baseSlice(ce,ze,Ve){var qe=-1,Ye=ce.length;ze<0&&(ze=-ze>Ye?0:Ye+ze),(Ve=Ve>Ye?Ye:Ve)<0&&(Ve+=Ye),Ye=ze>Ve?0:Ve-ze>>>0,ze>>>=0;for(var We=Array(Ye);++qe{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)}set(ce,ze){if(Object(qe.a)(ce))for(const[ze,Ve]of Object.entries(ce))this._styleProcessor.toNormalizedForm(ze,Ve,this._styles);else this._styleProcessor.toNormalizedForm(ce,ze,this._styles)}remove(ce){const ze=toPath(ce);gt(this._styles,ze),delete this._styles[ce],this._cleanEmptyObjectsOnPath(ze)}getNormalized(ce){return this._styleProcessor.getNormalized(ce,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((ce=>ce.join(":"))).sort().join(";")+";"}getAsString(ce){if(this.isEmpty)return;if(this._styles[ce]&&!Object(qe.a)(this._styles[ce]))return this._styles[ce];const ze=this._styleProcessor.getReducedForm(ce,this._styles).find((ze=>{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)?ze[1]:void 0}getStyleNames(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty)return[];if(ce)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((ce=>{let[ze]=ce;return ze}))}clear(){this._styles={}}_getStylesEntries(){const ce=[],ze=Object.keys(this._styles);for(const Ve of ze)ce.push(...this._styleProcessor.getReducedForm(Ve,this._styles));return ce}_cleanEmptyObjectsOnPath(ce){const ze=ce.split(".");if(!(ze.length>1))return;const Ve=ze.splice(0,ze.length-1).join("."),qe=Object(yt.a)(this._styles,Ve);if(!qe)return;!Array.from(Object.keys(qe)).length&&this.remove(Ve)}}class St{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(ce,ze,Ve){if(Object(qe.a)(ze))appendStyleValue(Ve,toPath(ce),ze);else if(this._normalizers.has(ce)){const qe=this._normalizers.get(ce),{path:Ye,value:We}=qe(ze);appendStyleValue(Ve,Ye,We)}else appendStyleValue(Ve,ce,ze)}getNormalized(ce,ze){if(!ce)return Object(bt.a)({},ze);if(void 0!==ze[ce])return ze[ce];if(this._extractors.has(ce)){const Ve=this._extractors.get(ce);if("string"==typeof Ve)return Object(yt.a)(ze,Ve);const qe=Ve(ce,ze);if(qe)return qe}return Object(yt.a)(ze,toPath(ce))}getReducedForm(ce,ze){const Ve=this.getNormalized(ce,ze);if(void 0===Ve)return[];if(this._reducers.has(ce)){return this._reducers.get(ce)(Ve)}return[[ce,Ve]]}getStyleNames(ce){const ze=Array.from(this._consumables.keys()).filter((ze=>{const Ve=this.getNormalized(ze,ce);return Ve&&"object"==typeof Ve?Object.keys(Ve).length:Ve})),Ve=new Set([...ze,...Object.keys(ce)]);return Array.from(Ve.values())}getRelatedStyles(ce){return this._consumables.get(ce)||[]}setNormalizer(ce,ze){this._normalizers.set(ce,ze)}setExtractor(ce,ze){this._extractors.set(ce,ze)}setReducer(ce,ze){this._reducers.set(ce,ze)}setStyleRelation(ce,ze){this._mapStyleNames(ce,ze);for(const Ve of ze)this._mapStyleNames(Ve,[ce])}_mapStyleNames(ce,ze){this._consumables.has(ce)||this._consumables.set(ce,[]),this._consumables.get(ce).push(...ze)}}function parseInlineStyles(ce){let ze=null,Ve=0,qe=0,Ye=null;const We=new Map;if(""===ce)return We;";"!=ce.charAt(ce.length-1)&&(ce+=";");for(let Qe=0;Qeot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new Ye.a(ce);return Qe()(ze),Object.entries(st).forEach((ce=>{let[Ve,qe]=ce;ze.addFormat(Ve,qe)})),ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ajv_createAjv}));var qe=Ve(251),Ye=Ve.n(qe),We=Ve(643),Qe=Ve.n(We),Xe=Ve(297),ot=Ve.n(Xe);var st={"idn-email":ce=>ot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new Ye.a(ce);return Qe()(ze),Object.entries(st).forEach((ce=>{let[Ve,qe]=ce;ze.addFormat(Ve,qe)})),ze}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);const Qe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Xe{static get(ce){const ze=ce.split("/")[0];return Qe[ce]?Qe[ce]:Qe[ze]?Qe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--BJnDc+jsOT";class st extends Ye.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:qe}=this.props,{icon:Qe,backgroundColor:st}=Xe.get(qe),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),Ye.a.createElement("div",{className:ot,style:mt},Ye.a.createElement(We.Icon,{name:Qe}))}}st.defaultProps={iconSize:52};ze.a=st},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));Ve(887),Ve(888);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st="clickable--gheuqOwzCi";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,iconRef:qe,style:We}=this.props;let Xe="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":Xe=null;break;case"fa-":Xe="fa";break;default:return logInvalidIconWarning(ze),null}const ot=Qe()(Xe||void 0,ze,{[st]:Ve},ce),mt=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return Ye.a.createElement("span",_extends({"aria-label":ze,className:ot,ref:qe,style:We},mt))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return yt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(644),ot=Ve(17),st=Ve(47),mt=Ve(585).default,gt={input:"input--GwyohBMkr0",left:"left--jqE60JbxNL",center:"center--KkWWwgx62u",right:"right--xFu0OPgBpR",collapsed:"collapsed--O1JXR5bw7L","has-append-icon":"has-append-icon--Lu2UlczQff",hasAppendIcon:"has-append-icon--Lu2UlczQff",dark:"dark--DZ07bvfCbp",error:"error--C7l70iztHs",disabled:"disabled--P-5jSgcsYg","prepended-container":"prepended-container--D+QwicpkCM",prependedContainer:"prepended-container--D+QwicpkCM",icon:"icon--Ncd5A0qR+H",headline:"headline--Q5o4Q21pEM","append-container":"append-container--gjPbDwwz9g",appendContainer:"append-container--gjPbDwwz9g","icon-clickable":"icon-clickable--7suxJ5r9Ng",iconClickable:"icon-clickable--7suxJ5r9Ng"};class yt extends Ye.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setInputContainerRef=ce=>{const{inputContainerRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:yt,valid:bt,disabled:vt,icon:wt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Vt,type:Ht,value:Ut,iconStyle:Wt,iconClassName:Jt,inputMode:Qt,inputRef:en,inputContainerRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Qe()(gt.input,gt[ln],gt[ce],{[gt.error]:!bt,[gt.disabled]:vt,[gt.collapsed]:Dt,[gt.hasAppendIcon]:Lt,[gt.headline]:Ve}),Cn=Qe()(gt.icon,gt[ln],Jt,{[gt.iconClickable]:!!wt&&!!Tt,[gt.collapsed]:Dt}),Sn=Qe()(gt.prependedContainer,gt[ln],{[gt.collapsed]:Dt});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("div",{className:wn,ref:rn?this.setInputContainerRef:void 0},!Ct&&wt&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(ot.default,{className:Cn,name:wt,onClick:Tt||void 0,style:Wt})),Ct&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(st.a,{size:20})),Ye.a.createElement("input",{autoComplete:ze,className:yt,disabled:vt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Ht,value:null==Ut?"":Ut}),!Dt&&!!Ut&&Lt&&Ye.a.createElement("div",{className:gt.appendContainer},Ye.a.createElement(ot.default,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Wt}))),kt&&Ye.a.createElement(Xe.a,{max:kt,value:Ut}),Vt&&St&&Ye.a.createElement(mt,{delimiter:Vt,max:St,value:Ut?Ut.toString():void 0}))}}yt.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(80),Ye=Ve(283);class We extends qe.a{refresh(){const ce=this.editor.model,ze=ce.document,Ve=Object(Ye.a)(ze.selection.getSelectedBlocks());this.value=!!Ve&&Ve.is("element","paragraph"),this.isEnabled=!!Ve&&checkCanBecomeParagraph(Ve,ce.schema)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.change((qe=>{const Ye=(ce.selection||Ve.selection).getSelectedBlocks();for(const ce of Ye)!ce.is("element","paragraph")&&checkCanBecomeParagraph(ce,ze.schema)&&qe.rename(ce,"paragraph")}))}}function checkCanBecomeParagraph(ce,ze){return ze.checkChild(ce.parent,"paragraph")&&!ze.isObject(ce)}class Qe extends qe.a{execute(ce){const ze=this.editor.model,Ve=ce.attributes;let qe=ce.position;ze.change((ce=>{const Ye=ce.createElement("paragraph");if(Ve&&ze.schema.setAllowedAttributes(Ye,Ve,ce),!ze.schema.checkChild(qe.parent,Ye)){const Ve=ze.schema.findAllowedParent(qe,Ye);if(!Ve)return;qe=ce.split(qe,Ve).position}ze.insertContent(Ye,qe),ce.setSelection(Ye,"in")}))}}var Xe=Ve(31);class ot extends Xe.a{static get pluginName(){return"Paragraph"}init(){const ce=this.editor,ze=ce.model;ce.commands.add("paragraph",new We(ce)),ce.commands.add("insertParagraph",new Qe(ce)),ze.schema.register("paragraph",{inheritAllFrom:"$block"}),ce.conversion.elementToElement({model:"paragraph",view:"p"}),ce.conversion.for("upcast").elementToElement({model:(ce,ze)=>{let{writer:Ve}=ze;return ot.paragraphLikeElements.has(ce.name)?ce.isEmpty?null:Ve.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}ot.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=(Ve(40),Ve(789),"button-group--qlcr5mKxfX"),ot="button--FVhuZqLzqh";class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return Ye.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Qe()(ot,ce.props.className);return Ye.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return Ye.a.createElement("div",{className:Xe},this.cloneChildren())}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="ghost-indicator--WSUP-JcZo9";class ot extends Ye.a.Component{render(){const{className:ce}=this.props,ze=Qe()(Xe,ce);return Ye.a.createElement("span",{className:ze},this.props.locale)}}ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(297),Et=Ve.n(xt),Pt=Ve(32),Tt="url--8uqaJgtC7F",Lt="error--RnWk++VEOm",Ft="protocols--e2rGpz4UzD";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Qe,this),_initializerDefineProperty(this,"validUrl",Xe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:qe}=this.props;if(qe===this.url)return;const Ye=Ve.find((ze=>ce&&ce.startsWith(ze)));Ye||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=Ye||this.selectedProtocol,this.path=ce.substring(Ye?Ye.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(Ye)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:qe}=this.props,Ye=Dt()(Tt,{[Lt]:!qe||!this.validUrl});return bt.a.createElement("div",{className:Ye},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((Ye=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(Ye.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUrl"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"url"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:qe}=this.props;if("string"!=typeof ce||!qe.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+qe.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,qe=ze.find((ce=>Ve.startsWith(ce)));qe&&(this.selectedProtocol=qe,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),qe=Ye))||qe;ze.a=Bt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(90),vt=Ve.n(bt),wt=Ve(402),Ct=Ve(173),Dt=Ve(161),kt=Ve(254),St="item-container--UbyyXGs9zG",xt="publish-indicator--FdYm7qgkPv",Et="column-list--EGOkMmV5YQ",Pt="item-column--DwiI-enH6x";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Tt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Qe,this),_initializerDefineProperty(this,"handleOverlayClose",Xe,this),this.handleOverlayConfirm=ce=>{this.singleSelectionStore.loadItem(ce.id),this.closeOverlay()},this.handleRemove=()=>{this.singleSelectionStore.clear()};const{detailOptions:ze,locale:Ve,resourceKey:qe,value:Ye}=this.props;this.singleSelectionStore=new Dt.a(qe,Ye,Ve,ze),this.changeDisposer=Object(gt.reaction)((()=>void 0===this.singleSelectionStore.item?void 0:null===this.singleSelectionStore.item?null:this.singleSelectionStore.item.id),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve!==ce&&ze(ce,this.singleSelectionStore.item)}))}componentWillUnmount(){this.changeDisposer()}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value);(this.singleSelectionStore.item?this.singleSelectionStore.item.id:void 0)!==ce&&this.singleSelectionStore.loadItem(ce)}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:qe,disabledIds:Ye,displayProperties:We,emptyText:Qe,icon:Xe,itemDisabledCondition:ot,locale:gt,listOptions:yt,onItemClick:bt,overlayTitle:Dt,resourceKey:Tt}=this.props,{item:Lt,loading:Ft}=this.singleSelectionStore,Bt=We.length,Vt=!!Lt&&Ye.includes(Lt.id)||!!Lt&&!!ot&&vt.a.evalSync(ot,Lt),Ht=Lt?Lt.published:void 0,Ut=Lt?Lt.publishedState:void 0;return mt.a.createElement(st.Fragment,null,mt.a.createElement(wt.a,{allowRemoveWhileItemDisabled:ze,disabled:qe,emptyText:Qe,id:Lt&&Lt.id,itemDisabled:Vt,leftButton:{icon:Xe,onClick:this.handleOverlayOpen},loading:Ft,onItemClick:bt,onRemove:Lt?this.handleRemove:void 0,value:Lt},Lt&&mt.a.createElement("div",{className:St},(void 0!==Ut||void 0!==Ht)&&!(Ut&&Ht)&&mt.a.createElement("div",{className:xt},mt.a.createElement(Ct.a,{draft:!Ut,published:!!Ht})),mt.a.createElement("div",{className:Et},We.map((ce=>mt.a.createElement("span",{className:Pt,key:ce,style:{width:100/Bt+"%"}},Lt[ce])))))),!Ft&&mt.a.createElement(kt.a,{adapter:ce,disabledIds:Ye,itemDisabledCondition:ot,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:yt,preSelectedItem:Lt,resourceKey:Tt,title:Dt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],icon:"su-plus"},We=_applyDecoratedDescriptor((Ye=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeOverlay"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),qe=Ye))||qe;ze.a=Tt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(1),gt=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const yt="media",bt="media_preview",vt="fileVersion";let wt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",Ye,this),_initializerDefineProperty(this,"progress",We,this),_initializerDefineProperty(this,"media",Qe,this),_initializerDefineProperty(this,"error",Xe,this),_initializerDefineProperty(this,"handleResponse",ot,this),_initializerDefineProperty(this,"handleError",st,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return gt.c.delete(yt,{id:this.id}).then(Object(mt.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(yt,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=gt.d.getDetailUrl(yt,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return gt.c.delete(bt,{id:this.id}).then(Object(mt.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((qe,Ye)=>{const We=new XMLHttpRequest,Qe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)qe(JSON.parse(ce.target.response));else try{Ye(JSON.parse(ce.target.response))}catch(ze){Ye(ce.target)}},We.onerror=ce=>Ye(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Qe.append(Ve,ce),We.send(Qe)}))}}).prototype,"uploading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"progress",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"media",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"error",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"id",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"downloadUrl",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"downloadUrl"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"mimeType",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"mimeType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUploading",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUploading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setProgress",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setProgress"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"delete",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"delete"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleResponse",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),st=_applyDecoratedDescriptor(qe.prototype,"handleError",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),qe);ze.a=wt},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(48);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,inputContainerRef:this.props.inputContainerRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return Ye.a.createElement(We.a,ce)}}Qe.defaultProps={alignment:"left",disabled:!1,valid:!0};ze.a=Qe},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(53),yt=Ve(239),bt=Ve(11),vt=Ve(103),wt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"config",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"bundles"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitialized"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInitializedTranslationsLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=Ct},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(216),mt=Ve(708);var gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,options:Ye,preloadSelectedItems:We,preSelectedItems:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,Ye,void 0,We?Qe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},qe=Ye))||qe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var qe=Ve(670),Ye=Ve(129),We=Ve(25),Qe=Ve(166),Xe=Ve(8),ot=Ve(39),st=Ve(91),mt=Ve(224);const gt=Symbol("bubbling contexts"),yt={fire(ce){try{const Ye=ce instanceof Qe.a?ce:new Qe.a(this,ce),We=getBubblingContexts(this);if(!We.size)return;updateEventInfo(Ye,"capturing",this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe3?Ye-3:0),Qe=3;QeYe.length?ze:Ve}var vt=Ve(42);class wt{constructor(ce){this.selection=new qe.a,this.roots=new Ye.a({idProperty:"rootName"}),this.stylesProcessor=ce,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}registerPostFixer(ce){this._postFixers.add(ce)}destroy(){this.roots.map((ce=>ce.destroy())),this.stopListening()}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(ze=Ve(ce),ze)break}while(ze)}}Object(We.a)(wt,bt),Object(We.a)(wt,vt.a)},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.DOCS_THIRDPARTIES=ze.DOCS_DOCUMENTING=ze.DOCS_WEBPACK=ze.DOCS_COMPONENTS=ze.DOCS_CONFIG=ze.BUGS=ze.HOMEPAGE=void 0;ze.HOMEPAGE="https://react-styleguidist.js.org/";ze.BUGS="https://github.com/styleguidist/react-styleguidist/issues";ze.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration";ze.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components";ze.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack";ze.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting";ze.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties"},function(ce,ze,Ve){"use strict";var qe=Ve(549);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(586);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(600);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(71);ze.a=function isFunction(ce){if(!Object(Ye.a)(ce))return!1;var ze=Object(qe.a)(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){"use strict";ze.a=function isLength(ce){return"number"==typeof ce&&ce>-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze,Ve){"use strict";var qe=Ve(411);ze.a=function baseAssignValue(ce,ze,Ve){"__proto__"==ze&&qe.a?Object(qe.a)(ce,ze,{configurable:!0,enumerable:!0,value:Ve,writable:!0}):ce[ze]=Ve}},function(ce,ze,Ve){"use strict";ze.a=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){"use strict";var qe=Ve(412);ze.a=function cloneArrayBuffer(ce){var ze=new ce.constructor(ce.byteLength);return new qe.a(ze).set(new qe.a(ce)),ze}},function(ce,ze,Ve){"use strict";var qe=Ve(658),Ye=Object(qe.a)(Object.getPrototypeOf,Object);ze.a=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(390),Ye=Ve(223),We=Object.prototype.hasOwnProperty;ze.a=function assignValue(ce,ze,Ve){var Qe=ce[ze];We.call(ce,ze)&&Object(Ye.a)(Qe,Ve)&&(void 0!==Ve||ze in ce)||Object(qe.a)(ce,ze,Ve)}},function(ce,ze,Ve){"use strict";var qe=Object.prototype;ze.a=function isPrototype(ce){var ze=ce&&ce.constructor;return ce===("function"==typeof ze&&ze.prototype||qe)}},function(ce,ze,Ve){"use strict";var qe=Ve(82),Ye=Ve(302),We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/;ze.a=function isKey(ce,ze){if(Object(qe.a)(ce))return!1;var Ve=typeof ce;return!("number"!=Ve&&"symbol"!=Ve&&"boolean"!=Ve&&null!=ce&&!Object(Ye.a)(ce))||(Qe.test(ce)||!We.test(ce)||null!=ze&&ce in Object(ze))}},function(ce,ze,Ve){"use strict";var qe=Ve(307),Ye=Ve(176);ze.a=function baseGet(ce,ze){for(var Ve=0,We=(ze=Object(qe.a)(ze,ce)).length;null!=ce&&Veze&&ce.selection.editableElement==this)),this.listenTo(ce.selection,"change",(()=>{this.isFocused=ce.isFocused&&ce.selection.editableElement==this}))}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}destroy(){this.stopListening()}}Object(Ye.a)(Qe,We.a)},function(ce,ze,Ve){var populateChar=function(ce,ze){for(var Ve="",qe=0;qe/i);yt&&(gt=gt.substring(0,yt.index));const bt=gt.match(/]*>/i);if(bt&&(gt=gt.substring(bt.index+bt[0].length,gt.length)),gt=(gt=(gt=gt.replace(/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,"")).replace(/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,"")).replace(/]*)>/gi,(function(ce,ze){var Ve="",Ye="",We=/src="([^"]*)"/i.exec(ze),Qe=/alt="([^"]*)"/i.exec(ze);return null!==We&&(Ve=We[1]),null!==Qe&&(Ye=Qe[1]),"function"==typeof qe?qe(Ve,Ye):""===Ye?"![image] ("+Ve+")":"!["+Ye+"] ("+Ve+")"})),"linebreak"===We)gt=gt.replace(/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,"\n");else if("indention"===We)for(;/<(o|u)l[^>]*>(.*)<\/\1l>/gi.test(gt);)gt=gt.replace(/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,(function(ce,ze,Ve,qe){var Ye=0;return Ve&&/start="([0-9]+)"/i.test(Ve)&&(Ye=/start="([0-9]+)"/i.exec(Ve)[1]-1),"

"+qe.replace(/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,(function(ce,Ve){var qe=0;return Ve.replace(/(^|(
))(?!

)/gi,(function(){return"o"===ze&&0===qe?(qe+=1,"
"+(Ye+=1)+populateChar(ot,Xe-String(Ye).length)):"
"+mt}))}))+"

"}));for("linebreak"===Ye?gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,"\n$2\n"):"underline"===Ye?gt=(gt=(gt=gt.replace(/]*>(((?!<\/h1>).)*)<\/h1>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("=",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h2>).)*)<\/h2>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("-",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+Ve+"\n \n"})):"hashify"===Ye&&(gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+populateChar("#",ze)+" "+Ve+"\n \n"}))),gt=(gt=(gt=(gt=gt.replace(/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,"\n")).replace(/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,(function(ce,ze,qe){return"function"==typeof Ve?Ve(ze,qe):" ["+qe+"] ("+ze+") "}))).replace(/\n[ \t\f]*/gi,"\n")).replace(/\n\n+/gi,"\n"),gt=(gt=(gt=st?(gt=gt.replace(/( |\t)+/gi," ")).replace(/ /gi," "):gt.replace(/( | |\t)+/gi," ")).replace(/\n +/gi,"\n")).replace(/^ +/gi,"");0===gt.indexOf("\n");)gt=gt.substring(1);return 0!==gt.length&>.lastIndexOf("\n")===gt.length-1||(gt+="\n"),gt}!function(ze,Ve){if(this&&"function"==typeof this.define)this.define(Ve);else if(ce.exports)ce.exports=Ve();else{var qe=Ve(),Ye=this,We=Ye[ze];qe.noConflict=function(){return Ye[ze]=We,qe},Ye[ze]=qe}}("createTextVersion",(function(){return htmlToPlainText}))},function(ce,ze,Ve){"use strict";var qe=Ve(237),Ye=Ve(659),We=Ve(394),Qe=Ve(175),Xe=Ve(228);var ot=function baseAssign(ce,ze){return ce&&Object(Qe.a)(ze,Object(Xe.a)(ze),ce)},st=Ve(179);var mt=function baseAssignIn(ce,ze){return ce&&Object(Qe.a)(ze,Object(st.a)(ze),ce)},gt=Ve(656),yt=Ve(655),bt=Ve(407);var vt=function copySymbols(ce,ze){return Object(Qe.a)(ce,Object(bt.a)(ce),ze)},wt=Ve(662),Ct=Ve(393),Dt=Ve(663),kt=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Object(wt.a)(ze,Object(bt.a)(ce)),ce=Object(Ct.a)(ce);return ze}:Dt.a;var St=function copySymbolsIn(ce,ze){return Object(Qe.a)(ce,kt(ce),ze)},xt=Ve(450),Et=Ve(661);var Pt=function getAllKeysIn(ce){return Object(Et.a)(ce,st.a,kt)},Tt=Ve(261),Lt=Object.prototype.hasOwnProperty;var Ft=function initCloneArray(ce){var ze=ce.length,Ve=new ce.constructor(ze);return ze&&"string"==typeof ce[0]&&Lt.call(ce,"index")&&(Ve.index=ce.index,Ve.input=ce.input),Ve},Bt=Ve(392);var Vt=function cloneDataView(ce,ze){var Ve=ze?Object(Bt.a)(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.byteLength)},Ht=/\w*$/;var Ut=function cloneRegExp(ce){var ze=new ce.constructor(ce.source,Ht.exec(ce));return ze.lastIndex=ce.lastIndex,ze},Wt=Ve(141),Jt=Wt.a?Wt.a.prototype:void 0,Qt=Jt?Jt.valueOf:void 0;var en=function cloneSymbol(ce){return Qt?Object(Qt.call(ce)):{}},rn=Ve(657);var ln=function initCloneByTag(ce,ze,Ve){var qe=ce.constructor;switch(ze){case"[object ArrayBuffer]":return Object(Bt.a)(ce);case"[object Boolean]":case"[object Date]":return new qe(+ce);case"[object DataView]":return Vt(ce,Ve);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(rn.a)(ce,Ve);case"[object Map]":case"[object Set]":return new qe;case"[object Number]":case"[object String]":return new qe(ce);case"[object RegExp]":return Ut(ce);case"[object Symbol]":return en(ce)}},mn=Ve(720),gn=Ve(82),bn=Ve(257),wn=Ve(98);var Cn=function baseIsMap(ce){return Object(wn.a)(ce)&&"[object Map]"==Object(Tt.a)(ce)},Sn=Ve(391),En=Ve(265),Tn=En.a&&En.a.isMap,Ln=Tn?Object(Sn.a)(Tn):Cn,Fn=Ve(71);var Yn=function baseIsSet(ce){return Object(wn.a)(ce)&&"[object Set]"==Object(Tt.a)(ce)},Un=En.a&&En.a.isSet,Gn=Un?Object(Sn.a)(Un):Yn,Kn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Xn={};Xn[Kn]=Xn["[object Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object DataView]"]=Xn["[object Boolean]"]=Xn["[object Date]"]=Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn[Zn]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object String]"]=Xn["[object Symbol]"]=Xn["[object Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Error]"]=Xn[Jn]=Xn["[object WeakMap]"]=!1;ze.a=function baseClone(ce,ze,Ve,Qe,bt,wt){var Ct,Dt=1&ze,kt=2&ze,Et=4&ze;if(Ve&&(Ct=bt?Ve(ce,Qe,bt,wt):Ve(ce)),void 0!==Ct)return Ct;if(!Object(Fn.a)(ce))return ce;var Lt=Object(gn.a)(ce);if(Lt){if(Ct=Ft(ce),!Dt)return Object(yt.a)(ce,Ct)}else{var Bt=Object(Tt.a)(ce),Vt=Bt==Jn||"[object GeneratorFunction]"==Bt;if(Object(bn.a)(ce))return Object(gt.a)(ce,Dt);if(Bt==Zn||Bt==Kn||Vt&&!bt){if(Ct=kt||Vt?{}:Object(mn.a)(ce),!Dt)return kt?St(ce,mt(Ct,ce)):vt(ce,ot(Ct,ce))}else{if(!Xn[Bt])return bt?ce:{};Ct=ln(ce,Bt,Dt)}}wt||(wt=new qe.a);var Ht=wt.get(ce);if(Ht)return Ht;wt.set(ce,Ct),Gn(ce)?ce.forEach((function(qe){Ct.add(baseClone(qe,ze,Ve,qe,ce,wt))})):Ln(ce)&&ce.forEach((function(qe,Ye){Ct.set(Ye,baseClone(qe,ze,Ve,Ye,ce,wt))}));var Ut=Et?kt?Pt:xt.a:kt?st.a:Xe.a,Wt=Lt?void 0:Ut(ce);return Object(Ye.a)(Wt||ce,(function(qe,Ye){Wt&&(qe=ce[Ye=qe]),Object(We.a)(Ct,Ye,baseClone(qe,ze,Ve,Ye,ce,wt))})),Ct}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(3),Qe=Ve(1),Xe=Ve(22),ot=Ve.n(Xe),st=Ve(101),mt=Ve(5),gt=Ve.n(mt),yt={progressBar:"progressBar--kLLc8cFSQ+",error:"error--xLPhjfPDdJ",warning:"warning--0TgviD4vg5",success:"success--CIpG5wsMBt"};class bt extends Ye.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=gt()(yt.progressBar,yt[ce]);return Ye.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}bt.defaultProps={skin:"progress"};var vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft=bt,Bt=Ve(45),Vt=(Ve(280),Ve(6)),Ht="progressBar--EYsYhZFK-j";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ut=Object(We.b)((wt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inProgress",Ct,this),_initializerDefineProperty(this,"finished",Dt,this),_initializerDefineProperty(this,"showSnackbar",kt,this),_initializerDefineProperty(this,"error",St,this),_initializerDefineProperty(this,"closed",xt,this),_initializerDefineProperty(this,"totalDeletedResources",Et,this),this.promises=[],_initializerDefineProperty(this,"handleConfirm",Pt,this),this.deleteResourceBatches=ce=>{const{requestOptions:ze}=this.props;if(0===ce.length)return Promise.resolve();const[Ve,...qe]=ce;return Ve.forEach((ce=>{const Ve=Bt.a.delete(ce.resourceKey,{...ze,id:ce.id});Ve.then(Object(Qe.action)((()=>{this.totalDeletedResources++}))).catch((()=>{})),this.promises.push(Ve)})),Promise.all(this.promises).then((()=>{if(this.promises.splice(0,this.promises.length),this.inProgress)return this.deleteResourceBatches(qe)}))},_initializerDefineProperty(this,"handleCancel",Tt,this),_initializerDefineProperty(this,"handleSnackbarCloseClick",Lt,this)}get title(){return this.props.dependantResourcesData.title}get detail(){return this.props.dependantResourcesData.detail}get dependantResourceBatches(){return this.props.dependantResourcesData.dependantResourceBatches}get dependantResourcesCount(){return this.props.dependantResourcesData.dependantResourcesCount}componentDidUpdate(ce){ot()(Object(Qe.toJS)(ce.dependantResourcesData),Object(Qe.toJS)(this.props.dependantResourcesData))&&ot()(Object(Qe.toJS)(ce.requestOptions),Object(Qe.toJS)(this.props.requestOptions))||(this.inProgress=!1,this.finished=!1,this.showSnackbar=!0,this.error=void 0,this.closed=!1,this.totalDeletedResources=0,this.promises=[])}get errored(){return!!this.error}get snackbarType(){if(this.showSnackbar&&this.errored)return"error"}get snackbarMessage(){if("error"===this.snackbarType&&this.error)return this.error}render(){return Ye.a.createElement(st.a,{cancelText:this.errored||this.finished?Object(Vt.translate)("sulu_admin.close"):Object(Vt.translate)("sulu_admin.cancel"),confirmDisabled:this.errored||this.finished,confirmLoading:this.inProgress,confirmText:Object(Vt.translate)("sulu_admin.delete"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:!this.closed,snackbarMessage:this.snackbarMessage,snackbarType:this.snackbarType,title:this.title},!this.inProgress&&!this.finished&&!this.errored&&Ye.a.createElement("p",null,this.detail),(this.inProgress||this.finished||this.errored)&&Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement("div",{className:Ht},Ye.a.createElement(Ft,{max:this.dependantResourcesCount,skin:this.errored?"error":this.finished?"success":"progress",value:this.errored?this.totalDeletedResources+1:this.totalDeletedResources})),Ye.a.createElement("p",null,Object(Vt.translate)("sulu_admin.delete_dependants_progress_text",{count:`${this.totalDeletedResources}/${this.dependantResourcesCount}`}))))}},Ct=_applyDecoratedDescriptor(wt.prototype,"inProgress",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(wt.prototype,"finished",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(wt.prototype,"showSnackbar",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),St=_applyDecoratedDescriptor(wt.prototype,"error",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xt=_applyDecoratedDescriptor(wt.prototype,"closed",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(wt.prototype,"totalDeletedResources",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_applyDecoratedDescriptor(wt.prototype,"title",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"title"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"detail",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"detail"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourceBatches",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourceBatches"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourcesCount",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourcesCount"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"componentDidUpdate"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"errored",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"errored"),wt.prototype),Pt=_applyDecoratedDescriptor(wt.prototype,"handleConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce,onError:ze}=this.props;this.inProgress=!0,this.deleteResourceBatches(this.dependantResourceBatches).then(Object(Qe.action)((()=>{this.inProgress=!1,this.finished=!0,ce&&ce()}))).catch((ce=>{ce.json().then(Object(Qe.action)((ce=>{this.inProgress=!1,this.error=ce.detail||ce.title||Object(Vt.translate)("sulu_admin.unexpected_delete_server_error"),ze&&ze(ce)})))}))}}}),Tt=_applyDecoratedDescriptor(wt.prototype,"handleCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onCancel:ce}=this.props;this.inProgress&&(this.inProgress=!1,this.promises.forEach((ce=>{ce.abort()}))),this.closed=!0,ce&&ce()}}}),Lt=_applyDecoratedDescriptor(wt.prototype,"handleSnackbarCloseClick",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showSnackbar=!1}}}),_applyDecoratedDescriptor(wt.prototype,"snackbarType",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarType"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"snackbarMessage",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarMessage"),wt.prototype),vt=wt))||vt;var Wt=Ut;ze.a=Wt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(19),vt=Ve(405),wt="single-item-selection---kA-JYVira",Ct="item-container--zqZpp-ygwS",Dt="item--CwE0v6eB41",kt="clickable--sd1+oyeuMr",St="empty--QnP4cwEBWH",xt="remove-button--MZzexds7TQ",Et="loader--vL67uCNnqF",Pt="error--h0DdmMU5ae",Tt="disabled--t25RP77rRV",Lt=Ve(1),Ft=Ve(3),Bt=Ve(66),Vt={button:"button--E8E5iuGORv",left:"left--IsGnVmtBTw",right:"right--IberqDy3Ag","has-options":"has-options--8DgfyVSJSv",hasOptions:"has-options--8DgfyVSJSv",icon:"icon--t5D9-7GOo5"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ht=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:qe}=this.props,Ye=yt()(Vt.button,Vt[Ve],{[Vt.hasOptions]:qe}),We=mt.a.createElement("button",{className:Ye,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.a,{className:Vt.icon,name:ze}),qe&&mt.a.createElement(bt.a,{name:"su-angle-down"}));return qe?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,qe.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Ut=Ht;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:qe,itemDisabled:Ye,emptyText:We,leftButton:Qe,loading:Xe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:qe||Ye}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Ut,_extends({},Qe,{disabled:qe||Ye,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Xe?"…":We)),st&&!Xe&&!qe&&(!Ye||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.a,{name:"su-trash-alt"})),Xe&&mt.a.createElement(vt.a,{className:Et,size:14})),gt&&mt.a.createElement(Ut,_extends({},gt,{disabled:qe||Ye,location:"right"})))}}Wt.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0};ze.a=Wt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot={label:"label--NExT2msrBj",disabled:"disabled--G3RpqBocRC",small:"small--qe9GiAwIBK",switch:"switch--s8wD-Fpng8"};class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:qe,checked:We,children:st,className:mt,disabled:gt,size:yt,tabIndex:bt}=this.props,vt=Qe()(ot.label,{[ot.disabled]:gt},"default"!==yt?ot[yt]:null),wt=Qe()(ot.switch,{[ot.disabled]:gt},mt);return Ye.a.createElement("label",{className:vt,onClick:this.handleClick,tabIndex:-1},Ye.a.createElement("span",{className:wt},Ye.a.createElement("input",{checked:We,disabled:gt,name:Ve,onChange:this.handleChange,tabIndex:bt,type:ze,value:qe}),Ye.a.createElement("span",null,ce&&Ye.a.createElement(Xe.a,{name:ce}))),st&&Ye.a.createElement("div",null,st))}}st.defaultProps={checked:!1,disabled:!1,size:"default",type:"checkbox"};ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(140),Ye=Ve(389),We=Ve(98),Qe={};Qe["[object Float32Array]"]=Qe["[object Float64Array]"]=Qe["[object Int8Array]"]=Qe["[object Int16Array]"]=Qe["[object Int32Array]"]=Qe["[object Uint8Array]"]=Qe["[object Uint8ClampedArray]"]=Qe["[object Uint16Array]"]=Qe["[object Uint32Array]"]=!0,Qe["[object Arguments]"]=Qe["[object Array]"]=Qe["[object ArrayBuffer]"]=Qe["[object Boolean]"]=Qe["[object DataView]"]=Qe["[object Date]"]=Qe["[object Error]"]=Qe["[object Function]"]=Qe["[object Map]"]=Qe["[object Number]"]=Qe["[object Object]"]=Qe["[object RegExp]"]=Qe["[object Set]"]=Qe["[object String]"]=Qe["[object WeakMap]"]=!1;var Xe=function baseIsTypedArray(ce){return Object(We.a)(ce)&&Object(Ye.a)(ce.length)&&!!Qe[Object(qe.a)(ce)]},ot=Ve(391),st=Ve(265),mt=st.a&&st.a.isTypedArray,gt=mt?Object(ot.a)(mt):Xe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="spinner--6TDb2Dt3oi",ot="double-bounce1--lt1kT0687K",st="double-bounce2--lF96T7rn67";class mt extends Ye.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},qe=Qe()(Xe,ze);return Ye.a.createElement("div",{className:qe,style:Ve},Ye.a.createElement("div",{className:ot}),Ye.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getOptimalPosition}));var qe=Ve(77),Ye=Ve(55);function getPositionedAncestor(ce){return ce&&ce.parentNode?ce.offsetParent===qe.a.document.body?null:ce.offsetParent:null}var We=Ve(672),Qe=Ve(388);function getOptimalPosition(ce){let{element:ze,target:Ve,positions:qe,limiter:We,fitInViewport:ot,viewportOffsetConfig:st}=ce;Object(Qe.a)(Ve)&&(Ve=Ve()),Object(Qe.a)(We)&&(We=We());const mt=getPositionedAncestor(ze),gt=new Ye.a(ze);let yt;const bt={targetRect:new Ye.a(Ve),elementRect:gt,positionedElementAncestor:mt};if(We||ot){const ce=We&&new Ye.a(We).getVisible(),ze=ot&&getConstrainedViewportRect(st);Object.assign(bt,{limiterRect:ce,viewportRect:ze}),yt=getBestPosition(qe,bt)||new Xe(qe[0],bt)}else yt=new Xe(qe[0],bt);return yt}function getConstrainedViewportRect(ce){ce=Object.assign({top:0,bottom:0,left:0,right:0},ce);const ze=new Ye.a(qe.a.window);return ze.top+=ce.top,ze.height-=ce.top,ze.bottom-=ce.bottom,ze.height-=ce.bottom,ze}function getBestPosition(ce,ze){const{elementRect:Ve}=ze,qe=Ve.getArea(),Ye=ce.map((ce=>new Xe(ce,ze))).filter((ce=>!!ce.name));let We=0,Qe=null;for(const ce of Ye){const{_limiterIntersectionArea:ze,_viewportIntersectionArea:Ve}=ce;if(ze===qe)return ce;const Ye=Ve**2+ze**2;Ye>We&&(We=Ye,Qe=ce)}return Qe}function shiftRectToCompensatePositionedAncestor(ce,ze){const Ve=getRectForAbsolutePositioning(new Ye.a(ze)),qe=Object(We.a)(ze);let Qe=0,Xe=0;Qe-=Ve.left,Xe-=Ve.top,Qe+=ze.scrollLeft,Xe+=ze.scrollTop,Qe-=qe.left,Xe-=qe.top,ce.moveBy(Qe,Xe)}function getRectForAbsolutePositioning(ce){const{scrollX:ze,scrollY:Ve}=qe.a.window;return ce.clone().moveBy(ze,Ve)}class Xe{constructor(ce,ze){const Ve=ce(ze.targetRect,ze.elementRect,ze.viewportRect);if(!Ve)return;const{left:qe,top:Ye,name:We,config:Qe}=Ve;Object.assign(this,{name:We,config:Qe}),this._positioningFunctionCorrdinates={left:qe,top:Ye},this._options=ze}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get _limiterIntersectionArea(){const ce=this._options.limiterRect;if(ce){const ze=this._options.viewportRect;if(!ze)return ce.getIntersectionArea(this._rect);{const Ve=ce.getIntersection(ze);if(Ve)return Ve.getIntersectionArea(this._rect)}}return 0}get _viewportIntersectionArea(){const ce=this._options.viewportRect;return ce?ce.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=getRectForAbsolutePositioning(this._rect),this._options.positionedElementAncestor&&shiftRectToCompensatePositionedAncestor(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}},function(ce,ze,Ve){"use strict";var qe=function arrayFilter(ce,ze){for(var Ve=-1,qe=null==ce?0:ce.length,Ye=0,We=[];++Ve=0&&(ze.hash=ce.substr(Ve),ce=ce.substr(0,Ve));var qe=ce.indexOf("?");qe>=0&&(ze.search=ce.substr(qe),ce=ce.substr(0,qe)),ce&&(ze.pathname=ce)}return ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(28),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const gt="section";function addSchemaProperties(ce,ze,Ve){const qe=Ve[ze].type;qe!==gt&&ot.a.set(ce,"/"+ze,void 0);const Ye=Ve[ze].items;return qe===gt&&Ye&&Object.keys(Ye).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,Ye)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const Ye=[];for(const We in Ve){const{items:Xe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Xe)Ye.push(...collectTagPathsWithPriority(ce,ze,Xe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Qe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Qe=ze[We][Ve];Qe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Qe,mt[Qe.type].form,qe.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;Ye.push({path:qe.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return Ye.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"schema",Ye,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Qe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Qe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Qe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(155),Ye=function(){try{var ce=Object(qe.a)(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ze.a=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(102).a.Uint8Array;ze.a=qe},function(ce,ze,Ve){"use strict";function isWindow(ce){const ze=Object.prototype.toString.apply(ce);return"[object Window]"==ze||"[object global]"==ze}Ve.d(ze,"a",(function(){return isWindow}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(28),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const gt="section";function addSchemaProperties(ce,ze,Ve){const qe=Ve[ze].type;qe!==gt&&ot.a.set(ce,"/"+ze,void 0);const Ye=Ve[ze].items;return qe===gt&&Ye&&Object.keys(Ye).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,Ye)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const Ye=[];for(const We in Ve){const{items:Xe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Xe)Ye.push(...collectTagPathsWithPriority(ce,ze,Xe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Qe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Qe=ze[We][Ve];Qe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Qe,mt[Qe.type].form,qe.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;Ye.push({path:qe.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return Ye.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"schema",Ye,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Qe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Qe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Qe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(133),Ye=Ve.n(qe),We=Ve(378),Qe=Ve(85);const Xe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=Ye.a.generate("sulu_admin.metadata",qe),Ve=Qe.b.fetch(ze,Xe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(133),Ye=Ve.n(qe),We=Ve(379),Qe=Ve(30);const Xe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=Ye.a.generate("sulu_admin.metadata",qe),Ve=Qe.b.fetch(ze,Xe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(61),We=Ve(245),Qe=Object,Xe=qe("".split);ce.exports=Ye((function(){return!Qe("z").propertyIsEnumerable(0)}))?function(ce){return"String"===We(ce)?Xe(ce,""):Qe(ce)}:Qe},function(ce,ze,Ve){"use strict";var qe=Ve(461),Ye=Ve(319);ce.exports=function(ce,ze){var Ve=ce[ze];return Ye(Ve)?void 0:qe(Ve)}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=0,We=Math.random(),Qe=qe(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Qe(++Ye+We,36)}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1148),Xe=Ve(105),ot=Ve(121),st=Ve(346),mt=Ve(111),gt=Ve(735),yt=Ve(464),bt=Ve(422),vt="Object already initialized",wt=Xe.TypeError,Ct=Xe.WeakMap;if(Qe||gt.state){var Dt=gt.state||(gt.state=new Ct);Dt.get=Dt.get,Dt.has=Dt.has,Dt.set=Dt.set,qe=function(ce,ze){if(Dt.has(ce))throw new wt(vt);return ze.facade=ce,Dt.set(ce,ze),ze},Ye=function(ce){return Dt.get(ce)||{}},We=function(ce){return Dt.has(ce)}}else{var kt=yt("state");bt[kt]=!0,qe=function(ce,ze){if(mt(ce,kt))throw new wt(vt);return ze.facade=ce,st(ce,kt,ze),ze},Ye=function(ce){return mt(ce,kt)?ce[kt]:{}},We=function(ce){return mt(ce,kt)}}ce.exports={set:qe,get:Ye,has:We,enforce:function(ce){return We(ce)?Ye(ce):qe(ce,{})},getterFor:function(ce){return function(ze){var Ve;if(!ot(ze)||(Ve=Ye(ze)).type!==ce)throw new wt("Incompatible receiver, "+ce+" required");return Ve}}}},function(ce,ze,Ve){"use strict";ce.exports={}},function(ce,ze,Ve){"use strict";var qe=Ve(829),Ye=Ve(738).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function getOwnPropertyNames(ce){return qe(ce,Ye)}},function(ce,ze){ce.exports=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){var qe=Ve(171).Symbol;ce.exports=qe},function(ce,ze,Ve){(function(ce){var qe=Ve(171),Ye=Ve(1201),We=ze&&!ze.nodeType&&ze,Qe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=Qe&&Qe.exports===We?qe.Buffer:void 0,ot=(Xe?Xe.isBuffer:void 0)||Ye;ce.exports=ot}).call(this,Ve(322)(ce))},function(ce,ze,Ve){var qe=Ve(855),Ye=Ve(754);ce.exports=function copyObject(ce,ze,Ve,We){var Qe=!Ve;Ve||(Ve={});for(var Xe=-1,ot=ze.length;++XeLt;Lt++)if((bt||Lt in Et)&&(St=Tt(kt=Et[Lt],Lt,xt),ce))if(ze)Bt[Lt]=St;else if(St)switch(ce){case 3:return!0;case 5:return kt;case 6:return Lt;case 2:st(Bt,kt)}else switch(ce){case 4:return!1;case 7:st(Bt,kt)}return gt?-1:Ye||mt?mt:Bt}};ce.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(70),We=Ve(418),Qe=Ve(318),Xe=Ve(484),ot=Ye([].join);qe({target:"Array",proto:!0,forced:We!==Object||!Xe("join",",")},{join:function join(ce){return ot(Qe(this),void 0===ce?",":ce)}})},function(ce,ze,Ve){var qe=Ve(1253),Ye=Ve(751),We=Ve(1254),Qe=Ve(1255),Xe=Ve(1256),ot=Ve(321),st=Ve(843),mt="[object Map]",gt="[object Promise]",yt="[object Set]",bt="[object WeakMap]",vt="[object DataView]",wt=st(qe),Ct=st(Ye),Dt=st(We),kt=st(Qe),St=st(Xe),xt=ot;(qe&&xt(new qe(new ArrayBuffer(1)))!=vt||Ye&&xt(new Ye)!=mt||We&&xt(We.resolve())!=gt||Qe&&xt(new Qe)!=yt||Xe&&xt(new Xe)!=bt)&&(xt=function(ce){var ze=ot(ce),Ve="[object Object]"==ze?ce.constructor:void 0,qe=Ve?st(Ve):"";if(qe)switch(qe){case wt:return vt;case Ct:return mt;case Dt:return gt;case kt:return yt;case St:return bt}return ze}),ce.exports=xt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"clearTranslations",(function(){return clearTranslations})),Ve.d(ze,"setTranslations",(function(){return setTranslations})),Ve.d(ze,"translate",(function(){return translate}));var qe=Ve(9),Ye=Ve.n(qe),We=Ve(689);let Qe;function setTranslations(ce,ze){Qe=Object.keys(ce).reduce(((Ve,qe)=>{try{Ve[qe]=new We.a(ce[qe],ze)}catch(ze){Ye.a.error("The translation key "+qe+' could not be translated. It is translated to "'+ce[qe]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function clearTranslations(){Qe=null}function translate(ce,ze){return Qe&&ce in Qe?Qe[ce].format(ze):(Ye.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";let qe,Ye,We=Ve(324);class Qe extends We{constructor(ce){super(ce),this.type="root",this.nodes||(this.nodes=[])}normalize(ce,ze,Ve){let qe=super.normalize(ce);if(ze)if("prepend"===Ve)this.nodes.length>1?ze.raws.before=this.nodes[1].raws.before:delete ze.raws.before;else if(this.first!==ze)for(let ce of qe)ce.raws.before=ze.raws.before;return qe}removeChild(ce,ze){let Ve=this.index(ce);return!ze&&0===Ve&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[Ve].raws.before),super.removeChild(ce)}toResult(ce={}){return new qe(new Ye,this,ce).stringify()}}Qe.registerLazyResult=ce=>{qe=ce},Qe.registerProcessor=ce=>{Ye=ce},ce.exports=Qe,Qe.default=Qe,We.registerRoot(Qe)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(386),ot={radio:"radio--6SPkS7f2GG",dark:"dark--tCbcJGXJpb",light:"light--dVY52Qatz3",disabled:"disabled--OiuQnSOO-M"};class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:We}=this.props,st=Qe()(ot.radio,ot[this.props.skin],{[ot.disabled]:ce});return Ye.a.createElement(Xe.a,{checked:qe,className:st,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},We)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ot=(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="config",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.showSuccessDisposer=Object(We.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(We.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Xe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Xe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Xe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Xe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"setConfig",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clearConfig",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"clearConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"disableAll",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"disableAll"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"warnings",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"warnings"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"showSuccess",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"showSuccess"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe);var We=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}};class Qe extends Ye.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.get(ce);return Ye.a.createElement(Ve,ze)}}Qe.defaultProps={disabled:!1};ze.a=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(386),ot={checkbox:"checkbox--W3VJ4iRnvV",dark:"dark--9ANew0mYch",light:"light--LZcLfDMoNI",small:"small--l-tNA2xkQA"};class st extends Ye.a.PureComponent{render(){const{size:ce,skin:ze,name:Ve,value:qe,checked:We,onChange:st,children:mt,className:gt,disabled:yt,tabIndex:bt}=this.props,vt=Qe()(ot.checkbox,ot[ze],gt);return Ye.a.createElement(Xe.a,{checked:We,className:vt,disabled:yt,icon:We?"su-check":void 0,name:Ve,onChange:st,size:ce,tabIndex:bt,value:qe},mt)}}st.defaultProps={checked:!1,disabled:!1,size:"default",skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(17),Qe="folder--w0696HNIyJ",Xe="description--P7Fy161SQC",ot="title--GxsDkafQyr",st="info--ZA5QF1FD62",mt="icon-container--5zzf7JJJTX";class gt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)},this.handleKeypress=ce=>{const{onClick:ze,id:Ve}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze(Ve)))}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Ye.a.createElement("div",{className:Qe,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Ye.a.createElement("div",{className:mt},Ye.a.createElement(We.default,{name:ce?"su-folder-permission":"su-folder"})),Ye.a.createElement("div",{className:Xe},Ye.a.createElement("h5",{className:ot},Ve),Ye.a.createElement("div",{className:st},ze)))}}},function(ce,ze,Ve){"use strict";Ve(127);ze.a=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getLanguageDirection}));const qe=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function getLanguageDirection(ce){return qe.includes(ce)?"rtl":"ltr"}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(107),Ye=Ve(8),We=Ve(177);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce):"emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-emptyelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(107),Ye=Ve(8),We=Ve(177);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rawElement"===ce||"view:rawElement"===ce||"element"===ce||"view:element"===ce):"rawElement"===ce||"view:rawElement"===ce||ce===this.name||ce==="view:"+this.name||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new Ye.a("view-rawelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(52),Ye=Ve(679),We=Ve(296);class Qe extends qe.a{constructor(ce){super(ce),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const ce=new We.a;return ce.content=Ye.a,ce.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},function(ce,ze,Ve){"use strict";Ve(86);var qe=Ve(59),Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},We="object"===("undefined"==typeof window?"undefined":Ye(window))&&"object"===("undefined"==typeof document?"undefined":Ye(document))&&9===document.nodeType;var Qe=Ve(241),Xe=Ve(639);function _inheritsLoose(ce,ze){ce.prototype=Object.create(ze.prototype),ce.prototype.constructor=ce,Object(Xe.a)(ce,ze)}var ot=Ve(43);function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve={};for(var qe in ce)if({}.hasOwnProperty.call(ce,qe)){if(ze.includes(qe))continue;Ve[qe]=ce[qe]}return Ve}var st={}.constructor;function cloneStyle(ce){if(null==ce||"object"!=typeof ce)return ce;if(Array.isArray(ce))return ce.map(cloneStyle);if(ce.constructor!==st)return ce;var ze={};for(var Ve in ce)ze[Ve]=cloneStyle(ce[Ve]);return ze}function createRule(ce,ze,Ve){void 0===ce&&(ce="unnamed");var qe=Ve.jss,Ye=cloneStyle(ze),We=qe.plugins.onCreateRule(ce,Ye,Ve);return We||(ce[0],null)}var mt=function join(ce,ze){for(var Ve="",qe=0;qe<+~=|^:(),"'`\s])/g,bt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(ce){return bt?bt(ce):ce.replace(yt,"\\$1")},vt=function(){function BaseStyleRule(ce,ze,Ve){this.type="style",this.isProcessed=!1;var qe=Ve.sheet,Ye=Ve.Renderer;this.key=ce,this.options=Ve,this.style=ze,qe?this.renderer=qe.renderer:Ye&&(this.renderer=new Ye)}return BaseStyleRule.prototype.prop=function prop(ce,ze,Ve){if(void 0===ze)return this.style[ce];var qe=!!Ve&&Ve.force;if(!qe&&this.style[ce]===ze)return this;var Ye=ze;Ve&&!1===Ve.process||(Ye=this.options.jss.plugins.onChangeValue(ze,ce,this));var We=null==Ye||!1===Ye,Qe=ce in this.style;if(We&&!Qe&&!qe)return this;var Xe=We&&Qe;if(Xe?delete this.style[ce]:this.style[ce]=Ye,this.renderable&&this.renderer)return Xe?this.renderer.removeProperty(this.renderable,ce):this.renderer.setProperty(this.renderable,ce,Ye),this;var ot=this.options.sheet;return ot&&ot.attached,this},BaseStyleRule}(),wt=function(ce){function StyleRule(ze,Ve,qe){var Ye;Ye=ce.call(this,ze,Ve,qe)||this;var We=qe.selector,Qe=qe.scoped,Xe=qe.sheet,st=qe.generateId;return We?Ye.selectorText=We:!1!==Qe&&(Ye.id=st(Object(ot.a)(Object(ot.a)(Ye)),Xe),Ye.selectorText="."+jss_esm_escape(Ye.id)),Ye}_inheritsLoose(StyleRule,ce);var ze=StyleRule.prototype;return ze.applyTo=function applyTo(ce){var ze=this.renderer;if(ze){var Ve=this.toJSON();for(var qe in Ve)ze.setProperty(ce,qe,Ve[qe])}return this},ze.toJSON=function toJSON(){var ce={};for(var ze in this.style){var Ve=this.style[ze];"object"!=typeof Ve?ce[ze]=Ve:Array.isArray(Ve)&&(ce[ze]=gt(Ve))}return ce},ze.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(qe.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.selectorText,this.style,Ve)},Object(Qe.a)(StyleRule,[{key:"selector",set:function set(ce){if(ce!==this.selectorText){this.selectorText=ce;var ze=this.renderer,Ve=this.renderable;if(Ve&&ze)ze.setSelector(Ve,ce)||ze.replaceRule(Ve,this)}},get:function get(){return this.selectorText}}]),StyleRule}(vt),Ct={onCreateRule:function onCreateRule(ce,ze,Ve){return"@"===ce[0]||Ve.parent&&"keyframes"===Ve.parent.type?null:new wt(ce,ze,Ve)}},Dt={indent:1,children:!0},kt=/@([\w-]+)/,St=function(){function ConditionalRule(ce,ze,Ve){this.type="conditional",this.isProcessed=!1,this.key=ce;var Ye=ce.match(kt);for(var We in this.at=Ye?Ye[1]:"unknown",this.query=Ve.name||"@"+this.at,this.options=Ve,this.rules=new En(Object(qe.a)({},Ve,{parent:this})),ze)this.rules.add(We,ze[We]);this.rules.process()}var ce=ConditionalRule.prototype;return ce.getRule=function getRule(ce){return this.rules.get(ce)},ce.indexOf=function indexOf(ce){return this.rules.indexOf(ce)},ce.addRule=function addRule(ce,ze,Ve){var qe=this.rules.add(ce,ze,Ve);return qe?(this.options.jss.plugins.onProcessRule(qe),qe):null},ce.replaceRule=function replaceRule(ce,ze,Ve){var qe=this.rules.replace(ce,ze,Ve);return qe&&this.options.jss.plugins.onProcessRule(qe),qe},ce.toString=function toString(ce){void 0===ce&&(ce=Dt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Dt.indent),null==ce.children&&(ce.children=Dt.children),!1===ce.children)return this.query+" {}";var Ve=this.rules.toString(ce);return Ve?this.query+" {"+ze+Ve+ze+"}":""},ConditionalRule}(),xt=/@container|@media|@supports\s+/,Et={onCreateRule:function onCreateRule(ce,ze,Ve){return xt.test(ce)?new St(ce,ze,Ve):null}},Pt={indent:1,children:!0},Tt=/@keyframes\s+([\w-]+)/,Lt=function(){function KeyframesRule(ce,ze,Ve){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var Ye=ce.match(Tt);Ye&&Ye[1]?this.name=Ye[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=Ve;var We=Ve.scoped,Qe=Ve.sheet,Xe=Ve.generateId;for(var ot in this.id=!1===We?this.name:jss_esm_escape(Xe(this,Qe)),this.rules=new En(Object(qe.a)({},Ve,{parent:this})),ze)this.rules.add(ot,ze[ot],Object(qe.a)({},Ve,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(ce){void 0===ce&&(ce=Pt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Pt.indent),null==ce.children&&(ce.children=Pt.children),!1===ce.children)return this.at+" "+this.id+" {}";var Ve=this.rules.toString(ce);return Ve&&(Ve=""+ze+Ve+ze),this.at+" "+this.id+" {"+Ve+"}"},KeyframesRule}(),Ft=/@keyframes\s+/,Bt=/\$([\w-]+)/g,Vt=function findReferencedKeyframe(ce,ze){return"string"==typeof ce?ce.replace(Bt,(function(ce,Ve){return Ve in ze?ze[Ve]:ce})):ce},Ht=function replaceRef(ce,ze,Ve){var qe=ce[ze],Ye=Vt(qe,Ve);Ye!==qe&&(ce[ze]=Ye)},Ut={onCreateRule:function onCreateRule(ce,ze,Ve){return"string"==typeof ce&&Ft.test(ce)?new Lt(ce,ze,Ve):null},onProcessStyle:function onProcessStyle(ce,ze,Ve){return"style"===ze.type&&Ve?("animation-name"in ce&&Ht(ce,"animation-name",Ve.keyframes),"animation"in ce&&Ht(ce,"animation",Ve.keyframes),ce):ce},onChangeValue:function onChangeValue(ce,ze,Ve){var qe=Ve.options.sheet;if(!qe)return ce;switch(ze){case"animation":case"animation-name":return Vt(ce,qe.keyframes);default:return ce}}},Wt=function(ce){function KeyframeRule(){return ce.apply(this,arguments)||this}return _inheritsLoose(KeyframeRule,ce),KeyframeRule.prototype.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(qe.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.key,this.style,Ve)},KeyframeRule}(vt),Jt={onCreateRule:function onCreateRule(ce,ze,Ve){return Ve.parent&&"keyframes"===Ve.parent.type?new Wt(ce,ze,Ve):null}},Qt=function(){function FontFaceRule(ce,ze,Ve){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=ce,this.style=ze,this.options=Ve}return FontFaceRule.prototype.toString=function toString(ce){var ze=getWhitespaceSymbols(ce).linebreak;if(Array.isArray(this.style)){for(var Ve="",qe=0;qe=this.index)ze.push(ce);else for(var qe=0;qeVe)return void ze.splice(qe,0,ce)},ce.reset=function reset(){this.registry=[]},ce.remove=function remove(ce){var ze=this.registry.indexOf(ce);this.registry.splice(ze,1)},ce.toString=function toString(ce){for(var ze=void 0===ce?{}:ce,Ve=ze.attached,qe=_objectWithoutPropertiesLoose(ze,["attached"]),Ye=getWhitespaceSymbols(qe).linebreak,We="",Qe=0;Qe-1?qe.substr(0,Ye-1):qe;ce.style.setProperty(ze,We,Ye>-1?"important":"")}}catch(ce){return!1}return!0},ei=function removeProperty(ce,ze){try{ce.attributeStyleMap?ce.attributeStyleMap.delete(ze):ce.style.removeProperty(ze)}catch(ce){}},si=function setSelector(ce,ze){return ce.selectorText=ze,ce.selectorText===ze},_i=Jn((function(){return document.querySelector("head")}));function findHigherSheet(ce,ze){for(var Ve=0;Veze.index&&qe.options.insertionPoint===ze.insertionPoint)return qe}return null}function findHighestSheet(ce,ze){for(var Ve=ce.length-1;Ve>=0;Ve--){var qe=ce[Ve];if(qe.attached&&qe.options.insertionPoint===ze.insertionPoint)return qe}return null}function findCommentNode(ce){for(var ze=_i(),Ve=0;Ve0){var Ve=findHigherSheet(ze,ce);if(Ve&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element};if((Ve=findHighestSheet(ze,ce))&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element.nextSibling}}var qe=ce.insertionPoint;if(qe&&"string"==typeof qe){var Ye=findCommentNode(qe);if(Ye)return{parent:Ye.parentNode,node:Ye.nextSibling}}return!1}function insertStyle(ce,ze){var Ve=ze.insertionPoint,qe=findPrevNode(ze);if(!1!==qe&&qe.parent)qe.parent.insertBefore(ce,qe.node);else if(Ve&&"number"==typeof Ve.nodeType){var Ye=Ve,We=Ye.parentNode;We&&We.insertBefore(ce,Ye.nextSibling)}else _i().appendChild(ce)}var Ri=Jn((function(){var ce=document.querySelector('meta[property="csp-nonce"]');return ce?ce.getAttribute("content"):null})),Ci=function insertRule(ce,ze,Ve){try{"insertRule"in ce?ce.insertRule(ze,Ve):"appendRule"in ce&&ce.appendRule(ze)}catch(ce){return!1}return ce.cssRules[Ve]},Di=function getValidRuleInsertionIndex(ce,ze){var Ve=ce.cssRules.length;return void 0===ze||ze>Ve?Ve:ze},Ei=function createStyle(){var ce=document.createElement("style");return ce.textContent="\n",ce},Oi=function(){function DomRenderer(ce){this.getPropertyValue=Zn,this.setProperty=Xn,this.removeProperty=ei,this.setSelector=si,this.hasInsertedRules=!1,this.cssRules=[],ce&&Fn.add(ce),this.sheet=ce;var ze=this.sheet?this.sheet.options:{},Ve=ze.media,qe=ze.meta,Ye=ze.element;this.element=Ye||Ei(),this.element.setAttribute("data-jss",""),Ve&&this.element.setAttribute("media",Ve),qe&&this.element.setAttribute("data-meta",qe);var We=Ri();We&&this.element.setAttribute("nonce",We)}var ce=DomRenderer.prototype;return ce.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var ce=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&ce&&(this.hasInsertedRules=!1,this.deploy())}},ce.detach=function detach(){if(this.sheet){var ce=this.element.parentNode;ce&&ce.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},ce.deploy=function deploy(){var ce=this.sheet;ce&&(ce.options.link?this.insertRules(ce.rules):this.element.textContent="\n"+ce.toString()+"\n")},ce.insertRules=function insertRules(ce,ze){for(var Ve=0;Ve-1)return registerClass(ce,ze.split(" "));var qe=ce.options.parent;if("$"===ze[0]){var Ye=qe.getRule(ze.substr(1));return!!Ye&&(Ye!==ce&&(qe.classes[ce.key]+=" "+qe.classes[Ye.key],!0))}return qe.classes[ce.key]+=" "+ze,!0}var Wr=function jssCompose(){return{onProcessStyle:function onProcessStyle(ce,ze){return"composes"in ce?(registerClass(ze,ce.composes),delete ce.composes,ce):ce}}},$r=tr({createGenerateId:function createGenerateId(){var ce=0;return function(ze){return"rsg--"+ze.key+"-"+ce++}},plugins:[ur(),Er({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),Lr(),Nr(),Ur(),Wr()]});ze.a=$r},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(29),Ye=Ve(52);class We extends Ye.a{constructor(ce){super(ce),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const ce=new qe.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),ce}}},function(ce,ze,Ve){var qe=Ve(0),Ye=Ve(2);function Group(ce){var ze=qe.Children.toArray(ce.children).filter(Boolean);if(1===ze.length)return ze;var Ve=ce.separator,Ye=qe.isValidElement(Ve),We=[ze.shift()];return ze.forEach((function(ce,ze){if(Ye){var Qe="separator-"+(ce.key||ze);Ve=qe.cloneElement(Ve,{key:Qe})}We.push(Ve,ce)})),We}Group.propTypes={children:Ye.node,separator:Ye.node},Group.defaultProps={separator:" "},ce.exports=Group},function(ce,ze,Ve){"use strict";var qe=Ve(661),Ye=Ve(407),We=Ve(228);ze.a=function getAllKeys(ce){return Object(qe.a)(ce,We.a,Ye.a)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(242),Qe=Ve(11);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Qe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Xe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props;return Ye.a.createElement(We.a,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default"},Xe.Action=We.a.Action,Xe.Option=We.a.Option,Xe.Divider=We.a.Divider},function(ce,ze,Ve){"use strict";function count(ce){let ze=0;for(const Ve of ce)ze++;return ze}Ve.d(ze,"a",(function(){return count}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe.a})),Ve.d(ze,"b",(function(){return st}));var qe=Ve(637),Ye=Ve(80),We=Ve(680);class Qe extends Ye.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{softBreakAction(ce,Ve,ze.selection),this.fire("afterExecute",{writer:Ve})}))}refresh(){const ce=this.editor.model,ze=ce.document;this.isEnabled=isEnabled(ce.schema,ze.selection)}}function isEnabled(ce,ze){if(ze.rangeCount>1)return!1;const Ve=ze.anchor;if(!Ve||!ce.checkChild(Ve,"softBreak"))return!1;const qe=ze.getFirstRange(),Ye=qe.start.parent,We=qe.end.parent;return!isInsideLimitElement(Ye,ce)&&!isInsideLimitElement(We,ce)||Ye===We}function softBreakAction(ce,ze,Ve){const qe=Ve.isCollapsed,Ye=Ve.getFirstRange(),Qe=Ye.start.parent,Xe=Ye.end.parent,ot=Qe==Xe;if(qe){const qe=Object(We.a)(ce.schema,Ve.getAttributes());insertBreak(ce,ze,Ye.end),ze.removeSelectionAttribute(Ve.getAttributeKeys()),ze.setSelectionAttribute(qe)}else{const qe=!(Ye.start.isAtStart&&Ye.end.isAtEnd);ce.deleteContent(Ve,{leaveUnmerged:qe}),ot?insertBreak(ce,ze,Ve.focus):qe&&ze.setSelection(Xe,0)}}function insertBreak(ce,ze,Ve){const qe=ze.createElement("softBreak");ce.insertContent(qe,Ve),ze.setSelection(qe,"after")}function isInsideLimitElement(ce,ze){return!ce.is("rootElement")&&(ze.isLimit(ce)||isInsideLimitElement(ce.parent,ze))}var Xe=Ve(681),ot=Ve(31);class st extends ot.a{static get pluginName(){return"ShiftEnter"}init(){const ce=this.editor,ze=ce.model.schema,Ve=ce.conversion,qe=ce.editing.view,Ye=qe.document;ze.register("softBreak",{allowWhere:"$text",isInline:!0}),Ve.for("upcast").elementToElement({model:"softBreak",view:"br"}),Ve.for("downcast").elementToElement({model:"softBreak",view:(ce,ze)=>{let{writer:Ve}=ze;return Ve.createEmptyElement("br")}}),qe.addObserver(Xe.a),ce.commands.add("shiftEnter",new Qe(ce)),this.listenTo(Ye,"enter",((ze,Ve)=>{Ve.preventDefault(),Ve.isSoft&&(ce.execute("shiftEnter"),qe.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ot=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="allWebspaces",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return Xe.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return Xe.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setWebspaces",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setWebspaces"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"grantedWebspaces",[We.computed],Object.getOwnPropertyDescriptor(qe.prototype,"grantedWebspaces"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Xe=(qe=Qe.observable.shallow,Ye=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="messages",qe=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.timeouts=[]}add(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.messages.push(ce),this.timeouts.push(null),ze&&(this.timeouts[this.messages.length-1]=setTimeout((()=>{this.remove(ce)}),ze))}remove(ce){const ze=this.messages.indexOf(ce);-1!==ze&&(this.timeouts[ze]&&clearTimeout(this.timeouts[ze]),this.timeouts.splice(ze,1),this.messages.splice(ze,1))}clear(){this.messages=[],this.timeouts.forEach((ce=>{clearTimeout(ce)})),this.timeouts=[]}},We=_applyDecoratedDescriptor(Ye.prototype,"messages",[qe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"add",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"add"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"remove",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"remove"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),Ye);var ot=new Xe;ze.a=ot},function(ce,ze,Ve){ce.exports=function(){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}var ce=/^\s+/,ze=/\s+$/;function tinycolor(ce,ze){if(ze=ze||{},(ce=ce||"")instanceof tinycolor)return ce;if(!(this instanceof tinycolor))return new tinycolor(ce,ze);var Ve=inputToRGB(ce);this._originalInput=ce,this._r=Ve.r,this._g=Ve.g,this._b=Ve.b,this._a=Ve.a,this._roundA=Math.round(100*this._a)/100,this._format=ze.format||Ve.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ve.ok}function inputToRGB(ce){var ze={r:0,g:0,b:0},Ve=1,qe=null,Ye=null,We=null,Qe=!1,Xe=!1;return"string"==typeof ce&&(ce=stringInputToObject(ce)),"object"==_typeof(ce)&&(isValidCSSUnit(ce.r)&&isValidCSSUnit(ce.g)&&isValidCSSUnit(ce.b)?(ze=rgbToRgb(ce.r,ce.g,ce.b),Qe=!0,Xe="%"===String(ce.r).substr(-1)?"prgb":"rgb"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.v)?(qe=convertToPercentage(ce.s),Ye=convertToPercentage(ce.v),ze=hsvToRgb(ce.h,qe,Ye),Qe=!0,Xe="hsv"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.l)&&(qe=convertToPercentage(ce.s),We=convertToPercentage(ce.l),ze=hslToRgb(ce.h,qe,We),Qe=!0,Xe="hsl"),ce.hasOwnProperty("a")&&(Ve=ce.a)),Ve=boundAlpha(Ve),{ok:Qe,format:ce.format||Xe,r:Math.min(255,Math.max(ze.r,0)),g:Math.min(255,Math.max(ze.g,0)),b:Math.min(255,Math.max(ze.b,0)),a:Ve}}function rgbToRgb(ce,ze,Ve){return{r:255*bound01(ce,255),g:255*bound01(ze,255),b:255*bound01(Ve,255)}}function rgbToHsl(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var qe,Ye,We=Math.max(ce,ze,Ve),Qe=Math.min(ce,ze,Ve),Xe=(We+Qe)/2;if(We==Qe)qe=Ye=0;else{var ot=We-Qe;switch(Ye=Xe>.5?ot/(2-We-Qe):ot/(We+Qe),We){case ce:qe=(ze-Ve)/ot+(ze1&&(Ve-=1),Ve<1/6?ce+6*(ze-ce)*Ve:Ve<.5?ze:Ve<2/3?ce+(ze-ce)*(2/3-Ve)*6:ce}if(ce=bound01(ce,360),ze=bound01(ze,100),Ve=bound01(Ve,100),0===ze)qe=Ye=We=Ve;else{var Qe=Ve<.5?Ve*(1+ze):Ve+ze-Ve*ze,Xe=2*Ve-Qe;qe=hue2rgb(Xe,Qe,ce+1/3),Ye=hue2rgb(Xe,Qe,ce),We=hue2rgb(Xe,Qe,ce-1/3)}return{r:255*qe,g:255*Ye,b:255*We}}function rgbToHsv(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var qe,Ye,We=Math.max(ce,ze,Ve),Qe=Math.min(ce,ze,Ve),Xe=We,ot=We-Qe;if(Ye=0===We?0:ot/We,We==Qe)qe=0;else{switch(We){case ce:qe=(ze-Ve)/ot+(ze>1)+720)%360;--ze;)qe.h=(qe.h+Ye)%360,We.push(tinycolor(qe));return We}function _monochromatic(ce,ze){ze=ze||6;for(var Ve=tinycolor(ce).toHsv(),qe=Ve.h,Ye=Ve.s,We=Ve.v,Qe=[],Xe=1/ze;ze--;)Qe.push(tinycolor({h:qe,s:Ye,v:We})),We=(We+Xe)%1;return Qe}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function getLuminance(){var ce,ze,Ve,qe=this.toRgb();return ce=qe.r/255,ze=qe.g/255,Ve=qe.b/255,.2126*(ce<=.03928?ce/12.92:Math.pow((ce+.055)/1.055,2.4))+.7152*(ze<=.03928?ze/12.92:Math.pow((ze+.055)/1.055,2.4))+.0722*(Ve<=.03928?Ve/12.92:Math.pow((Ve+.055)/1.055,2.4))},setAlpha:function setAlpha(ce){return this._a=boundAlpha(ce),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var ce=rgbToHsv(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function toHsvString(){var ce=rgbToHsv(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),qe=Math.round(100*ce.v);return 1==this._a?"hsv("+ze+", "+Ve+"%, "+qe+"%)":"hsva("+ze+", "+Ve+"%, "+qe+"%, "+this._roundA+")"},toHsl:function toHsl(){var ce=rgbToHsl(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function toHslString(){var ce=rgbToHsl(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),qe=Math.round(100*ce.l);return 1==this._a?"hsl("+ze+", "+Ve+"%, "+qe+"%)":"hsla("+ze+", "+Ve+"%, "+qe+"%, "+this._roundA+")"},toHex:function toHex(ce){return rgbToHex(this._r,this._g,this._b,ce)},toHexString:function toHexString(ce){return"#"+this.toHex(ce)},toHex8:function toHex8(ce){return rgbaToHex(this._r,this._g,this._b,this._a,ce)},toHex8String:function toHex8String(ce){return"#"+this.toHex8(ce)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(qe[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(ce){var ze="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Ve=ze,qe=this._gradientType?"GradientType = 1, ":"";if(ce){var Ye=tinycolor(ce);Ve="#"+rgbaToArgbHex(Ye._r,Ye._g,Ye._b,Ye._a)}return"progid:DXImageTransform.Microsoft.gradient("+qe+"startColorstr="+ze+",endColorstr="+Ve+")"},toString:function toString(ce){var ze=!!ce;ce=ce||this._format;var Ve=!1,qe=this._a<1&&this._a>=0;return ze||!qe||"hex"!==ce&&"hex6"!==ce&&"hex3"!==ce&&"hex4"!==ce&&"hex8"!==ce&&"name"!==ce?("rgb"===ce&&(Ve=this.toRgbString()),"prgb"===ce&&(Ve=this.toPercentageRgbString()),"hex"!==ce&&"hex6"!==ce||(Ve=this.toHexString()),"hex3"===ce&&(Ve=this.toHexString(!0)),"hex4"===ce&&(Ve=this.toHex8String(!0)),"hex8"===ce&&(Ve=this.toHex8String()),"name"===ce&&(Ve=this.toName()),"hsl"===ce&&(Ve=this.toHslString()),"hsv"===ce&&(Ve=this.toHsvString()),Ve||this.toHexString()):"name"===ce&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(ce,ze){var Ve=ce.apply(null,[this].concat([].slice.call(ze)));return this._r=Ve._r,this._g=Ve._g,this._b=Ve._b,this.setAlpha(Ve._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(ce,ze){return ce.apply(null,[this].concat([].slice.call(ze)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(ce,ze){if("object"==_typeof(ce)){var Ve={};for(var qe in ce)ce.hasOwnProperty(qe)&&(Ve[qe]="a"===qe?ce[qe]:convertToPercentage(ce[qe]));ce=Ve}return tinycolor(ce,ze)},tinycolor.equals=function(ce,ze){return!(!ce||!ze)&&tinycolor(ce).toRgbString()==tinycolor(ze).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(ce,ze,Ve){Ve=0===Ve?0:Ve||50;var qe=tinycolor(ce).toRgb(),Ye=tinycolor(ze).toRgb(),We=Ve/100;return tinycolor({r:(Ye.r-qe.r)*We+qe.r,g:(Ye.g-qe.g)*We+qe.g,b:(Ye.b-qe.b)*We+qe.b,a:(Ye.a-qe.a)*We+qe.a})},tinycolor.readability=function(ce,ze){var Ve=tinycolor(ce),qe=tinycolor(ze);return(Math.max(Ve.getLuminance(),qe.getLuminance())+.05)/(Math.min(Ve.getLuminance(),qe.getLuminance())+.05)},tinycolor.isReadable=function(ce,ze,Ve){var qe,Ye,We=tinycolor.readability(ce,ze);switch(Ye=!1,(qe=validateWCAG2Parms(Ve)).level+qe.size){case"AAsmall":case"AAAlarge":Ye=We>=4.5;break;case"AAlarge":Ye=We>=3;break;case"AAAsmall":Ye=We>=7}return Ye},tinycolor.mostReadable=function(ce,ze,Ve){var qe,Ye,We,Qe,Xe=null,ot=0;Ye=(Ve=Ve||{}).includeFallbackColors,We=Ve.level,Qe=Ve.size;for(var st=0;stot&&(ot=qe,Xe=tinycolor(ze[st]));return tinycolor.isReadable(ce,Xe,{level:We,size:Qe})||!Ye?Xe:(Ve.includeFallbackColors=!1,tinycolor.mostReadable(ce,["#fff","#000"],Ve))};var Ve=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qe=tinycolor.hexNames=flip(Ve);function flip(ce){var ze={};for(var Ve in ce)ce.hasOwnProperty(Ve)&&(ze[ce[Ve]]=Ve);return ze}function boundAlpha(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function bound01(ce,ze){isOnePointZero(ce)&&(ce="100%");var Ve=isPercentage(ce);return ce=Math.min(ze,Math.max(0,parseFloat(ce))),Ve&&(ce=parseInt(ce*ze,10)/100),Math.abs(ce-ze)<1e-6?1:ce%ze/parseFloat(ze)}function clamp01(ce){return Math.min(1,Math.max(0,ce))}function parseIntFromHex(ce){return parseInt(ce,16)}function isOnePointZero(ce){return"string"==typeof ce&&-1!=ce.indexOf(".")&&1===parseFloat(ce)}function isPercentage(ce){return"string"==typeof ce&&-1!=ce.indexOf("%")}function pad2(ce){return 1==ce.length?"0"+ce:""+ce}function convertToPercentage(ce){return ce<=1&&(ce=100*ce+"%"),ce}function convertDecimalToHex(ce){return Math.round(255*parseFloat(ce)).toString(16)}function convertHexToDecimal(ce){return parseIntFromHex(ce)/255}var Ye,We,Qe,Xe=(We="[\\s|\\(]+("+(Ye="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",Qe="[\\s|\\(]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",{CSS_UNIT:new RegExp(Ye),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+Qe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+Qe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+Qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(ce){return!!Xe.CSS_UNIT.exec(ce)}function stringInputToObject(qe){qe=qe.replace(ce,"").replace(ze,"").toLowerCase();var Ye,We=!1;if(Ve[qe])qe=Ve[qe],We=!0;else if("transparent"==qe)return{r:0,g:0,b:0,a:0,format:"name"};return(Ye=Xe.rgb.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3]}:(Ye=Xe.rgba.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3],a:Ye[4]}:(Ye=Xe.hsl.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3]}:(Ye=Xe.hsla.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3],a:Ye[4]}:(Ye=Xe.hsv.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3]}:(Ye=Xe.hsva.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3],a:Ye[4]}:(Ye=Xe.hex8.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),a:convertHexToDecimal(Ye[4]),format:We?"name":"hex8"}:(Ye=Xe.hex6.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),format:We?"name":"hex"}:(Ye=Xe.hex4.exec(qe))?{r:parseIntFromHex(Ye[1]+""+Ye[1]),g:parseIntFromHex(Ye[2]+""+Ye[2]),b:parseIntFromHex(Ye[3]+""+Ye[3]),a:convertHexToDecimal(Ye[4]+""+Ye[4]),format:We?"name":"hex8"}:!!(Ye=Xe.hex3.exec(qe))&&{r:parseIntFromHex(Ye[1]+""+Ye[1]),g:parseIntFromHex(Ye[2]+""+Ye[2]),b:parseIntFromHex(Ye[3]+""+Ye[3]),format:We?"name":"hex"}}function validateWCAG2Parms(ce){var ze,Ve;return"AA"!==(ze=((ce=ce||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==ze&&(ze="AA"),"small"!==(Ve=(ce.size||"small").toLowerCase())&&"large"!==Ve&&(Ve="small"),{level:ze,size:Ve}}return tinycolor}()},function(ce,ze,Ve){"use strict";var qe=Ve(168),Ye=Ve(818),We=Ve(342),Qe=Ve(729),Xe=Ve(816),ot=Ve(815),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Qe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Xe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze){var Ve,qe,Ye=ce.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(ce){if(Ve===setTimeout)return setTimeout(ce,0);if((Ve===defaultSetTimout||!Ve)&&setTimeout)return Ve=setTimeout,setTimeout(ce,0);try{return Ve(ce,0)}catch(ze){try{return Ve.call(null,ce,0)}catch(ze){return Ve.call(this,ce,0)}}}function runClearTimeout(ce){if(qe===clearTimeout)return clearTimeout(ce);if((qe===defaultClearTimeout||!qe)&&clearTimeout)return qe=clearTimeout,clearTimeout(ce);try{return qe(ce)}catch(ze){try{return qe.call(null,ce)}catch(ze){return qe.call(this,ce)}}}!function(){try{Ve="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ce){Ve=defaultSetTimout}try{qe="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ce){qe=defaultClearTimeout}}();var We,Qe=[],Xe=!1,ot=-1;function cleanUpNextTick(){Xe&&We&&(Xe=!1,We.length?Qe=We.concat(Qe):ot=-1,Qe.length&&drainQueue())}function drainQueue(){if(!Xe){var ce=runTimeout(cleanUpNextTick);Xe=!0;for(var ze=Qe.length;ze;){for(We=Qe,Qe=[];++ot1)for(var Ve=1;Ve0?Ye(ze,9007199254740991):0}},function(ce,ze,Ve){"use strict";ze.f=Object.getOwnPropertySymbols},function(ce,ze,Ve){"use strict";var qe=Ve(829),Ye=Ve(738);ce.exports=Object.keys||function keys(ce){return qe(ce,Ye)}},function(ce,ze,Ve){"use strict";var qe=Ve(741),Ye=Ve(106),We=Ve(245),Qe=Ve(122)("toStringTag"),Xe=Object,ot="Arguments"===We(function(){return arguments}()),tryGet=function(ce,ze){try{return ce[ze]}catch(ce){}};ce.exports=qe?We:function(ce){var ze,Ve,qe;return void 0===ce?"Undefined":null===ce?"Null":"string"==typeof(Ve=tryGet(ze=Xe(ce),Qe))?Ve:ot?We(ze):"Object"===(qe=We(ze))&&Ye(ze.callee)?"Arguments":qe}},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(147),We=Ve(832),Qe=Ve(738),Xe=Ve(422),ot=Ve(1157),st=Ve(737),mt=Ve(464),gt="prototype",yt="script",bt=mt("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ce){return"<"+yt+">"+ce+""},NullProtoObjectViaActiveX=function(ce){ce.write(scriptTag("")),ce.close();var ze=ce.parentWindow.Object;return ce=null,ze},NullProtoObject=function(){try{qe=new ActiveXObject("htmlfile")}catch(ce){}var ce,ze,Ve;NullProtoObject="undefined"!=typeof document?document.domain&&qe?NullProtoObjectViaActiveX(qe):(ze=st("iframe"),Ve="java"+yt+":",ze.style.display="none",ot.appendChild(ze),ze.src=String(Ve),(ce=ze.contentWindow.document).open(),ce.write(scriptTag("document.F=Object")),ce.close(),ce.F):NullProtoObjectViaActiveX(qe);for(var Ye=Qe.length;Ye--;)delete NullProtoObject[gt][Qe[Ye]];return NullProtoObject()};Xe[bt]=!0,ce.exports=Object.create||function create(ce,ze){var Ve;return null!==ce?(EmptyConstructor[gt]=Ye(ce),Ve=new EmptyConstructor,EmptyConstructor[gt]=null,Ve[bt]=ce):Ve=NullProtoObject(),void 0===ze?Ve:We.f(Ve,ze)}},function(ce,ze,Ve){"use strict";Ve(148);var qe=Ve(136),Ye=Ve(273),We=Ve(740),Qe=Ve(61),Xe=Ve(122),ot=Ve(346),st=Xe("species"),mt=RegExp.prototype;ce.exports=function(ce,ze,Ve,gt){var yt=Xe(ce),bt=!Qe((function(){var ze={};return ze[yt]=function(){return 7},7!==""[ce](ze)})),vt=bt&&!Qe((function(){var ze=!1,Ve=/a/;return"split"===ce&&((Ve={}).constructor={},Ve.constructor[st]=function(){return Ve},Ve.flags="",Ve[yt]=/./[yt]),Ve.exec=function(){return ze=!0,null},Ve[yt](""),!ze}));if(!bt||!vt||Ve){var wt=/./[yt],Ct=ze(yt,""[ce],(function(ce,ze,Ve,Ye,Qe){var Xe=ze.exec;return Xe===We||Xe===mt.exec?bt&&!Qe?{done:!0,value:qe(wt,ze,Ve,Ye)}:{done:!0,value:qe(ce,Ve,ze,Ye)}:{done:!1}}));Ye(String.prototype,ce,Ct[0]),Ye(mt,yt,Ct[1])}gt&&ot(mt[yt],"sham",!0)}},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(147),We=Ve(106),Qe=Ve(245),Xe=Ve(740),ot=TypeError;ce.exports=function(ce,ze){var Ve=ce.exec;if(We(Ve)){var st=qe(Ve,ce,ze);return null!==st&&Ye(st),st}if("RegExp"===Qe(ce))return qe(Xe,ce,ze);throw new ot("RegExp#exec called on incompatible receiver")}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(748);qe({target:"String",proto:!0,forced:Ve(749)("link")},{link:function link(ce){return Ye(this,"a","href",ce)}})},function(ce,ze,Ve){var qe=Ve(476),Ye=Ve(1173),We=Ve(1174),Qe=Ve(1175),Xe=Ve(1176),ot=Ve(1177);function Stack(ce){var ze=this.__data__=new qe(ce);this.size=ze.size}Stack.prototype.clear=Ye,Stack.prototype.delete=We,Stack.prototype.get=Qe,Stack.prototype.has=Xe,Stack.prototype.set=ot,ce.exports=Stack},function(ce,ze,Ve){var qe=Ve(1168),Ye=Ve(1169),We=Ve(1170),Qe=Ve(1171),Xe=Ve(1172);function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|ce}function byteLength(ce,ze){if(Buffer.isBuffer(ce))return ce.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ce)||ce instanceof ArrayBuffer))return ce.byteLength;"string"!=typeof ce&&(ce=""+ce);var Ve=ce.length;if(0===Ve)return 0;for(var qe=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":case void 0:return utf8ToBytes(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ve;case"hex":return Ve>>>1;case"base64":return base64ToBytes(ce).length;default:if(qe)return utf8ToBytes(ce).length;ze=(""+ze).toLowerCase(),qe=!0}}function slowToString(ce,ze,Ve){var qe=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Ve||Ve>this.length)&&(Ve=this.length),Ve<=0)return"";if((Ve>>>=0)<=(ze>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return hexSlice(this,ze,Ve);case"utf8":case"utf-8":return utf8Slice(this,ze,Ve);case"ascii":return asciiSlice(this,ze,Ve);case"latin1":case"binary":return latin1Slice(this,ze,Ve);case"base64":return base64Slice(this,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Ve);default:if(qe)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),qe=!0}}function swap(ce,ze,Ve){var qe=ce[ze];ce[ze]=ce[Ve],ce[Ve]=qe}function bidirectionalIndexOf(ce,ze,Ve,qe,Ye){if(0===ce.length)return-1;if("string"==typeof Ve?(qe=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,isNaN(Ve)&&(Ve=Ye?0:ce.length-1),Ve<0&&(Ve=ce.length+Ve),Ve>=ce.length){if(Ye)return-1;Ve=ce.length-1}else if(Ve<0){if(!Ye)return-1;Ve=0}if("string"==typeof ze&&(ze=Buffer.from(ze,qe)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(ce,ze,Ve,qe,Ye);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?Ye?Uint8Array.prototype.indexOf.call(ce,ze,Ve):Uint8Array.prototype.lastIndexOf.call(ce,ze,Ve):arrayIndexOf(ce,[ze],Ve,qe,Ye);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(ce,ze,Ve,qe,Ye){var We,Qe=1,Xe=ce.length,ot=ze.length;if(void 0!==qe&&("ucs2"===(qe=String(qe).toLowerCase())||"ucs-2"===qe||"utf16le"===qe||"utf-16le"===qe)){if(ce.length<2||ze.length<2)return-1;Qe=2,Xe/=2,ot/=2,Ve/=2}function read(ce,ze){return 1===Qe?ce[ze]:ce.readUInt16BE(ze*Qe)}if(Ye){var st=-1;for(We=Ve;WeXe&&(Ve=Xe-ot),We=Ve;We>=0;We--){for(var mt=!0,gt=0;gtYe&&(qe=Ye):qe=Ye;var We=ze.length;if(We%2!=0)throw new TypeError("Invalid hex string");qe>We/2&&(qe=We/2);for(var Qe=0;Qe239?4:st>223?3:st>191?2:1;if(Ye+gt<=Ve)switch(gt){case 1:st<128&&(mt=st);break;case 2:128==(192&(We=ce[Ye+1]))&&(ot=(31&st)<<6|63&We)>127&&(mt=ot);break;case 3:We=ce[Ye+1],Qe=ce[Ye+2],128==(192&We)&&128==(192&Qe)&&(ot=(15&st)<<12|(63&We)<<6|63&Qe)>2047&&(ot<55296||ot>57343)&&(mt=ot);break;case 4:We=ce[Ye+1],Qe=ce[Ye+2],Xe=ce[Ye+3],128==(192&We)&&128==(192&Qe)&&128==(192&Xe)&&(ot=(15&st)<<18|(63&We)<<12|(63&Qe)<<6|63&Xe)>65535&&ot<1114112&&(mt=ot)}null===mt?(mt=65533,gt=1):mt>65535&&(mt-=65536,qe.push(mt>>>10&1023|55296),mt=56320|1023&mt),qe.push(mt),Ye+=gt}return decodeCodePointsArray(qe)}ze.Buffer=Buffer,ze.SlowBuffer=function SlowBuffer(ce){+ce!=ce&&(ce=0);return Buffer.alloc(+ce)},ze.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==ce.TYPED_ARRAY_SUPPORT?ce.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var ce=new Uint8Array(1);return ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===ce.foo()&&"function"==typeof ce.subarray&&0===ce.subarray(1,1).byteLength}catch(ce){return!1}}(),ze.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(ce){return ce.__proto__=Buffer.prototype,ce},Buffer.from=function(ce,ze,Ve){return from(null,ce,ze,Ve)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(ce,ze,Ve){return alloc(null,ce,ze,Ve)},Buffer.allocUnsafe=function(ce){return allocUnsafe(null,ce)},Buffer.allocUnsafeSlow=function(ce){return allocUnsafe(null,ce)},Buffer.isBuffer=function isBuffer(ce){return!(null==ce||!ce._isBuffer)},Buffer.compare=function compare(ce,ze){if(!Buffer.isBuffer(ce)||!Buffer.isBuffer(ze))throw new TypeError("Arguments must be Buffers");if(ce===ze)return 0;for(var Ve=ce.length,qe=ze.length,Ye=0,We=Math.min(Ve,qe);Ye0&&(ce=this.toString("hex",0,Ve).match(/.{2}/g).join(" "),this.length>Ve&&(ce+=" ... ")),""},Buffer.prototype.compare=function compare(ce,ze,Ve,qe,Ye){if(!Buffer.isBuffer(ce))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Ve&&(Ve=ce?ce.length:0),void 0===qe&&(qe=0),void 0===Ye&&(Ye=this.length),ze<0||Ve>ce.length||qe<0||Ye>this.length)throw new RangeError("out of range index");if(qe>=Ye&&ze>=Ve)return 0;if(qe>=Ye)return-1;if(ze>=Ve)return 1;if(this===ce)return 0;for(var We=(Ye>>>=0)-(qe>>>=0),Qe=(Ve>>>=0)-(ze>>>=0),Xe=Math.min(We,Qe),ot=this.slice(qe,Ye),st=ce.slice(ze,Ve),mt=0;mtYe)&&(Ve=Ye),ce.length>0&&(Ve<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");qe||(qe="utf8");for(var We=!1;;)switch(qe){case"hex":return hexWrite(this,ce,ze,Ve);case"utf8":case"utf-8":return utf8Write(this,ce,ze,Ve);case"ascii":return asciiWrite(this,ce,ze,Ve);case"latin1":case"binary":return latin1Write(this,ce,ze,Ve);case"base64":return base64Write(this,ce,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,ce,ze,Ve);default:if(We)throw new TypeError("Unknown encoding: "+qe);qe=(""+qe).toLowerCase(),We=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Qe=4096;function decodeCodePointsArray(ce){var ze=ce.length;if(ze<=Qe)return String.fromCharCode.apply(String,ce);for(var Ve="",qe=0;qeqe)&&(Ve=qe);for(var Ye="",We=ze;WeVe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(ce,ze,Ve,qe,Ye,We){if(!Buffer.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>Ye||zece.length)throw new RangeError("Index out of range")}function objectWriteUInt16(ce,ze,Ve,qe){ze<0&&(ze=65535+ze+1);for(var Ye=0,We=Math.min(ce.length-Ve,2);Ye>>8*(qe?Ye:1-Ye)}function objectWriteUInt32(ce,ze,Ve,qe){ze<0&&(ze=4294967295+ze+1);for(var Ye=0,We=Math.min(ce.length-Ve,4);Ye>>8*(qe?Ye:3-Ye)&255}function checkIEEE754(ce,ze,Ve,qe,Ye,We){if(Ve+qe>ce.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function writeFloat(ce,ze,Ve,qe,We){return We||checkIEEE754(ce,0,Ve,4),Ye.write(ce,ze,Ve,qe,23,4),Ve+4}function writeDouble(ce,ze,Ve,qe,We){return We||checkIEEE754(ce,0,Ve,8),Ye.write(ce,ze,Ve,qe,52,8),Ve+8}Buffer.prototype.slice=function slice(ce,ze){var Ve,qe=this.length;if((ce=~~ce)<0?(ce+=qe)<0&&(ce=0):ce>qe&&(ce=qe),(ze=void 0===ze?qe:~~ze)<0?(ze+=qe)<0&&(ze=0):ze>qe&&(ze=qe),ze0&&(Ye*=256);)qe+=this[ce+--ze]*Ye;return qe},Buffer.prototype.readUInt8=function readUInt8(ce,ze){return ze||checkOffset(ce,1,this.length),this[ce]},Buffer.prototype.readUInt16LE=function readUInt16LE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]|this[ce+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]<<8|this[ce+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+16777216*this[ce+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),16777216*this[ce]+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},Buffer.prototype.readIntLE=function readIntLE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var qe=this[ce],Ye=1,We=0;++We=(Ye*=128)&&(qe-=Math.pow(2,8*ze)),qe},Buffer.prototype.readIntBE=function readIntBE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var qe=ze,Ye=1,We=this[ce+--qe];qe>0&&(Ye*=256);)We+=this[ce+--qe]*Ye;return We>=(Ye*=128)&&(We-=Math.pow(2,8*ze)),We},Buffer.prototype.readInt8=function readInt8(ce,ze){return ze||checkOffset(ce,1,this.length),128&this[ce]?-1*(255-this[ce]+1):this[ce]},Buffer.prototype.readInt16LE=function readInt16LE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce]|this[ce+1]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt16BE=function readInt16BE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce+1]|this[ce]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt32LE=function readInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},Buffer.prototype.readFloatLE=function readFloatLE(ce,ze){return ze||checkOffset(ce,4,this.length),Ye.read(this,ce,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(ce,ze){return ze||checkOffset(ce,4,this.length),Ye.read(this,ce,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(ce,ze){return ze||checkOffset(ce,8,this.length),Ye.read(this,ce,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(ce,ze){return ze||checkOffset(ce,8,this.length),Ye.read(this,ce,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(ce,ze,Ve,qe){(ce=+ce,ze|=0,Ve|=0,qe)||checkInt(this,ce,ze,Ve,Math.pow(2,8*Ve)-1,0);var Ye=1,We=0;for(this[ze]=255&ce;++We=0&&(We*=256);)this[ze+Ye]=ce/We&255;return ze+Ve},Buffer.prototype.writeUInt8=function writeUInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),this[ze]=255&ce,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=ce>>>24,this[ze+2]=ce>>>16,this[ze+1]=ce>>>8,this[ze]=255&ce):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(ce,ze,Ve,qe){if(ce=+ce,ze|=0,!qe){var Ye=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,Ye-1,-Ye)}var We=0,Qe=1,Xe=0;for(this[ze]=255&ce;++We=0&&(Qe*=256);)ce<0&&0===Xe&&0!==this[ze+We+1]&&(Xe=1),this[ze+We]=(ce/Qe|0)-Xe&255;return ze+Ve},Buffer.prototype.writeInt8=function writeInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),ce<0&&(ce=255+ce+1),this[ze]=255&ce,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8,this[ze+2]=ce>>>16,this[ze+3]=ce>>>24):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(ce,ze,Ve){return writeFloat(this,ce,ze,!0,Ve)},Buffer.prototype.writeFloatBE=function writeFloatBE(ce,ze,Ve){return writeFloat(this,ce,ze,!1,Ve)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(ce,ze,Ve){return writeDouble(this,ce,ze,!0,Ve)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(ce,ze,Ve){return writeDouble(this,ce,ze,!1,Ve)},Buffer.prototype.copy=function copy(ce,ze,Ve,qe){if(Ve||(Ve=0),qe||0===qe||(qe=this.length),ze>=ce.length&&(ze=ce.length),ze||(ze=0),qe>0&&qe=this.length)throw new RangeError("sourceStart out of bounds");if(qe<0)throw new RangeError("sourceEnd out of bounds");qe>this.length&&(qe=this.length),ce.length-ze=0;--Ye)ce[Ye+ze]=this[Ye+Ve];else if(We<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(Ye=0;Ye>>=0,Ve=void 0===Ve?this.length:Ve>>>0,ce||(ce=0),"number"==typeof ce)for(We=ze;We55295&&Ve<57344){if(!Ye){if(Ve>56319){(ze-=3)>-1&&We.push(239,191,189);continue}if(Qe+1===qe){(ze-=3)>-1&&We.push(239,191,189);continue}Ye=Ve;continue}if(Ve<56320){(ze-=3)>-1&&We.push(239,191,189),Ye=Ve;continue}Ve=65536+(Ye-55296<<10|Ve-56320)}else Ye&&(ze-=3)>-1&&We.push(239,191,189);if(Ye=null,Ve<128){if((ze-=1)<0)break;We.push(Ve)}else if(Ve<2048){if((ze-=2)<0)break;We.push(Ve>>6|192,63&Ve|128)}else if(Ve<65536){if((ze-=3)<0)break;We.push(Ve>>12|224,Ve>>6&63|128,63&Ve|128)}else{if(!(Ve<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;We.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,63&Ve|128)}}return We}function asciiToBytes(ce){for(var ze=[],Ve=0;Ve>8,Ye=Ve%256,We.push(Ye),We.push(qe);return We}function base64ToBytes(ce){return qe.toByteArray(base64clean(ce))}function blitBuffer(ce,ze,Ve,qe){for(var Ye=0;Ye=ze.length||Ye>=ce.length);++Ye)ze[Ye+Ve]=ce[Ye];return Ye}}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";function arrayMoveMutable(ce,ze,Ve){const qe=ze<0?ce.length+ze:ze;if(qe>=0&&qe{ce.code(mt._`"use strict"; ${funcSourceUrl(Ve,Ye)}`),destructureValCxtES5(ce,Ye),ce.code(We)})):ce.func(ze,mt._`${gt.default.data}, ${destructureValCxt(Ye)}`,qe.$async,(()=>ce.code(funcSourceUrl(Ve,Ye)).code(We)))}function destructureValCxt(ce){return mt._`{${gt.default.instancePath}="", ${gt.default.parentData}, ${gt.default.parentDataProperty}, ${gt.default.rootData}=${gt.default.data}${ce.dynamicRef?mt._`, ${gt.default.dynamicAnchors}={}`:mt.nil}}={}`}function destructureValCxtES5(ce,ze){ce.if(gt.default.valCxt,(()=>{ce.var(gt.default.instancePath,mt._`${gt.default.valCxt}.${gt.default.instancePath}`),ce.var(gt.default.parentData,mt._`${gt.default.valCxt}.${gt.default.parentData}`),ce.var(gt.default.parentDataProperty,mt._`${gt.default.valCxt}.${gt.default.parentDataProperty}`),ce.var(gt.default.rootData,mt._`${gt.default.valCxt}.${gt.default.rootData}`),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`${gt.default.valCxt}.${gt.default.dynamicAnchors}`)}),(()=>{ce.var(gt.default.instancePath,mt._`""`),ce.var(gt.default.parentData,mt._`undefined`),ce.var(gt.default.parentDataProperty,mt._`undefined`),ce.var(gt.default.rootData,gt.default.data),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`{}`)}))}function topSchemaObjCode(ce){const{schema:ze,opts:Ve,gen:qe}=ce;validateFunction(ce,(()=>{Ve.$comment&&ze.$comment&&commentKeyword(ce),checkNoDefault(ce),qe.let(gt.default.vErrors,null),qe.let(gt.default.errors,0),Ve.unevaluated&&resetEvaluated(ce),typeAndKeywords(ce),returnResults(ce)}))}function resetEvaluated(ce){const{gen:ze,validateName:Ve}=ce;ce.evaluated=ze.const("evaluated",mt._`${Ve}.evaluated`),ze.if(mt._`${ce.evaluated}.dynamicProps`,(()=>ze.assign(mt._`${ce.evaluated}.props`,mt._`undefined`))),ze.if(mt._`${ce.evaluated}.dynamicItems`,(()=>ze.assign(mt._`${ce.evaluated}.items`,mt._`undefined`)))}function funcSourceUrl(ce,ze){const Ve="object"==typeof ce&&ce[ze.schemaId];return Ve&&(ze.code.source||ze.code.process)?mt._`/*# sourceURL=${Ve} */`:mt.nil}function subschemaCode(ce,ze){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?subSchemaObjCode(ce,ze):(0,qe.boolOrEmptySchema)(ce,ze)}function schemaCxtHasRules({schema:ce,self:ze}){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if(ze.RULES.all[Ve])return!0;return!1}function isSchemaObj(ce){return"boolean"!=typeof ce.schema}function subSchemaObjCode(ce,ze){const{schema:Ve,gen:qe,opts:Ye}=ce;Ye.$comment&&Ve.$comment&&commentKeyword(ce),updateContext(ce),checkAsyncSchema(ce);const We=qe.const("_errs",gt.default.errors);typeAndKeywords(ce,We),qe.var(ze,mt._`${We} === ${gt.default.errors}`)}function checkKeywords(ce){(0,bt.checkUnknownRules)(ce),checkRefsAndKeywords(ce)}function typeAndKeywords(ce,ze){if(ce.opts.jtd)return schemaKeywords(ce,[],!1,ze);const Ve=(0,Ye.getSchemaTypes)(ce.schema);schemaKeywords(ce,Ve,!(0,Ye.coerceAndCheckDataType)(ce,Ve),ze)}function checkRefsAndKeywords(ce){const{schema:ze,errSchemaPath:Ve,opts:qe,self:Ye}=ce;ze.$ref&&qe.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(ze,Ye.RULES)&&Ye.logger.warn(`$ref: keywords ignored in schema at path "${Ve}"`)}function checkNoDefault(ce){const{schema:ze,opts:Ve}=ce;void 0!==ze.default&&Ve.useDefaults&&Ve.strictSchema&&(0,bt.checkStrictMode)(ce,"default is ignored in the schema root")}function updateContext(ce){const ze=ce.schema[ce.opts.schemaId];ze&&(ce.baseId=(0,yt.resolveUrl)(ce.opts.uriResolver,ce.baseId,ze))}function checkAsyncSchema(ce){if(ce.schema.$async&&!ce.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:ce,schemaEnv:ze,schema:Ve,errSchemaPath:qe,opts:Ye}){const We=Ve.$comment;if(!0===Ye.$comment)ce.code(mt._`${gt.default.self}.logger.log(${We})`);else if("function"==typeof Ye.$comment){const Ve=mt.str`${qe}/$comment`,Ye=ce.scopeValue("root",{ref:ze.root});ce.code(mt._`${gt.default.self}.opts.$comment(${We}, ${Ve}, ${Ye}.schema)`)}}function returnResults(ce){const{gen:ze,schemaEnv:Ve,validateName:qe,ValidationError:Ye,opts:We}=ce;Ve.$async?ze.if(mt._`${gt.default.errors} === 0`,(()=>ze.return(gt.default.data)),(()=>ze.throw(mt._`new ${Ye}(${gt.default.vErrors})`))):(ze.assign(mt._`${qe}.errors`,gt.default.vErrors),We.unevaluated&&assignEvaluated(ce),ze.return(mt._`${gt.default.errors} === 0`))}function assignEvaluated({gen:ce,evaluated:ze,props:Ve,items:qe}){Ve instanceof mt.Name&&ce.assign(mt._`${ze}.props`,Ve),qe instanceof mt.Name&&ce.assign(mt._`${ze}.items`,qe)}function schemaKeywords(ce,ze,Ve,qe){const{gen:Ye,schema:Xe,data:ot,allErrors:st,opts:yt,self:vt}=ce,{RULES:wt}=vt;function groupKeywords(bt){(0,We.shouldUseGroup)(Xe,bt)&&(bt.type?(Ye.if((0,Qe.checkDataType)(bt.type,ot,yt.strictNumbers)),iterateKeywords(ce,bt),1===ze.length&&ze[0]===bt.type&&Ve&&(Ye.else(),(0,Qe.reportTypeError)(ce)),Ye.endIf()):iterateKeywords(ce,bt),st||Ye.if(mt._`${gt.default.errors} === ${qe||0}`))}!Xe.$ref||!yt.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(Xe,wt)?(yt.jtd||checkStrictTypes(ce,ze),Ye.block((()=>{for(const ce of wt.rules)groupKeywords(ce);groupKeywords(wt.post)}))):Ye.block((()=>keywordCode(ce,"$ref",wt.all.$ref.definition)))}function iterateKeywords(ce,ze){const{gen:Ve,schema:qe,opts:{useDefaults:Ye}}=ce;Ye&&(0,Xe.assignDefaults)(ce,ze.type),Ve.block((()=>{for(const Ve of ze.rules)(0,We.shouldUseRule)(qe,Ve)&&keywordCode(ce,Ve.keyword,Ve.definition,ze.type)}))}function checkStrictTypes(ce,ze){!ce.schemaEnv.meta&&ce.opts.strictTypes&&(checkContextTypes(ce,ze),ce.opts.allowUnionTypes||checkMultipleTypes(ce,ze),checkKeywordTypes(ce,ce.dataTypes))}function checkContextTypes(ce,ze){ze.length&&(ce.dataTypes.length?(ze.forEach((ze=>{includesType(ce.dataTypes,ze)||strictTypesError(ce,`type "${ze}" not allowed by context "${ce.dataTypes.join(",")}"`)})),narrowSchemaTypes(ce,ze)):ce.dataTypes=ze)}function checkMultipleTypes(ce,ze){ze.length>1&&(2!==ze.length||!ze.includes("null"))&&strictTypesError(ce,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(ce,ze){const Ve=ce.self.RULES.all;for(const qe in Ve){const Ye=Ve[qe];if("object"==typeof Ye&&(0,We.shouldUseRule)(ce.schema,Ye)){const{type:Ve}=Ye.definition;Ve.length&&!Ve.some((ce=>{return qe=ce,(Ve=ze).includes(qe)||"number"===qe&&Ve.includes("integer");var Ve,qe}))&&strictTypesError(ce,`missing type "${Ve.join(",")}" for keyword "${qe}"`)}}}function includesType(ce,ze){return ce.includes(ze)||"integer"===ze&&ce.includes("number")}function narrowSchemaTypes(ce,ze){const Ve=[];for(const qe of ce.dataTypes)includesType(ze,qe)?Ve.push(qe):ze.includes("integer")&&"number"===qe&&Ve.push("integer");ce.dataTypes=Ve}function strictTypesError(ce,ze){ze+=` at "${ce.schemaEnv.baseId+ce.errSchemaPath}" (strictTypes)`,(0,bt.checkStrictMode)(ce,ze,ce.opts.strictTypes)}ze.validateFunctionCode=function validateFunctionCode(ce){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?topSchemaObjCode(ce):validateFunction(ce,(()=>(0,qe.topBoolOrEmptySchema)(ce)))};class wt{constructor(ce,ze,Ve){if((0,ot.validateKeywordUsage)(ce,ze,Ve),this.gen=ce.gen,this.allErrors=ce.allErrors,this.keyword=Ve,this.data=ce.data,this.schema=ce.schema[Ve],this.$data=ze.$data&&ce.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bt.schemaRefOrVal)(ce,this.schema,Ve,this.$data),this.schemaType=ze.schemaType,this.parentSchema=ce.schema,this.params={},this.it=ce,this.def=ze,this.$data)this.schemaCode=ce.gen.const("vSchema",getData(this.$data,ce));else if(this.schemaCode=this.schemaValue,!(0,ot.validSchemaType)(this.schema,ze.schemaType,ze.allowUndefined))throw new Error(`${Ve} value must be ${JSON.stringify(ze.schemaType)}`);("code"in ze?ze.trackErrors:!1!==ze.errors)&&(this.errsCount=ce.gen.const("_errs",gt.default.errors))}result(ce,ze,Ve){this.failResult((0,mt.not)(ce),ze,Ve)}failResult(ce,ze,Ve){this.gen.if(ce),Ve?Ve():this.error(),ze?(this.gen.else(),ze(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ce,ze){this.failResult((0,mt.not)(ce),void 0,ze)}fail(ce){if(void 0===ce)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ce),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ce){if(!this.$data)return this.fail(ce);const{schemaCode:ze}=this;this.fail(mt._`${ze} !== undefined && (${(0,mt.or)(this.invalid$data(),ce)})`)}error(ce,ze,Ve){if(ze)return this.setParams(ze),this._error(ce,Ve),void this.setParams({});this._error(ce,Ve)}_error(ce,ze){(ce?vt.reportExtraError:vt.reportError)(this,this.def.error,ze)}$dataError(){(0,vt.reportError)(this,this.def.$dataError||vt.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,vt.resetErrorsCount)(this.gen,this.errsCount)}ok(ce){this.allErrors||this.gen.if(ce)}setParams(ce,ze){ze?Object.assign(this.params,ce):this.params=ce}block$data(ce,ze,Ve=mt.nil){this.gen.block((()=>{this.check$data(ce,Ve),ze()}))}check$data(ce=mt.nil,ze=mt.nil){if(!this.$data)return;const{gen:Ve,schemaCode:qe,schemaType:Ye,def:We}=this;Ve.if((0,mt.or)(mt._`${qe} === undefined`,ze)),ce!==mt.nil&&Ve.assign(ce,!0),(Ye.length||We.validateSchema)&&(Ve.elseIf(this.invalid$data()),this.$dataError(),ce!==mt.nil&&Ve.assign(ce,!1)),Ve.else()}invalid$data(){const{gen:ce,schemaCode:ze,schemaType:Ve,def:qe,it:Ye}=this;return(0,mt.or)(function wrong$DataType(){if(Ve.length){if(!(ze instanceof mt.Name))throw new Error("ajv implementation error");const ce=Array.isArray(Ve)?Ve:[Ve];return mt._`${(0,Qe.checkDataTypes)(ce,ze,Ye.opts.strictNumbers,Qe.DataType.Wrong)}`}return mt.nil}(),function invalid$DataSchema(){if(qe.validateSchema){const Ve=ce.scopeValue("validate$data",{ref:qe.validateSchema});return mt._`!${Ve}(${ze})`}return mt.nil}())}subschema(ce,ze){const Ve=(0,st.getSubschema)(this.it,ce);(0,st.extendSubschemaData)(Ve,this.it,ce),(0,st.extendSubschemaMode)(Ve,ce);const qe={...this.it,...Ve,items:void 0,props:void 0};return subschemaCode(qe,ze),qe}mergeEvaluated(ce,ze){const{it:Ve,gen:qe}=this;Ve.opts.unevaluated&&(!0!==Ve.props&&void 0!==ce.props&&(Ve.props=bt.mergeEvaluated.props(qe,ce.props,Ve.props,ze)),!0!==Ve.items&&void 0!==ce.items&&(Ve.items=bt.mergeEvaluated.items(qe,ce.items,Ve.items,ze)))}mergeValidEvaluated(ce,ze){const{it:Ve,gen:qe}=this;if(Ve.opts.unevaluated&&(!0!==Ve.props||!0!==Ve.items))return qe.if(ze,(()=>this.mergeEvaluated(ce,mt.Name))),!0}}function keywordCode(ce,ze,Ve,qe){const Ye=new wt(ce,Ve,ze);"code"in Ve?Ve.code(Ye,qe):Ye.$data&&Ve.validate?(0,ot.funcKeywordCode)(Ye,Ve):"macro"in Ve?(0,ot.macroKeywordCode)(Ye,Ve):(Ve.compile||Ve.validate)&&(0,ot.funcKeywordCode)(Ye,Ve)}ze.KeywordCxt=wt;const Ct=/^\/(?:[^~]|~0|~1)*$/,Dt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(ce,{dataLevel:ze,dataNames:Ve,dataPathArr:qe}){let Ye,We;if(""===ce)return gt.default.rootData;if("/"===ce[0]){if(!Ct.test(ce))throw new Error(`Invalid JSON-pointer: ${ce}`);Ye=ce,We=gt.default.rootData}else{const Qe=Dt.exec(ce);if(!Qe)throw new Error(`Invalid JSON-pointer: ${ce}`);const Xe=+Qe[1];if(Ye=Qe[2],"#"===Ye){if(Xe>=ze)throw new Error(errorMsg("property/index",Xe));return qe[ze-Xe]}if(Xe>ze)throw new Error(errorMsg("data",Xe));if(We=Ve[ze-Xe],!Ye)return We}let Qe=We;const Xe=Ye.split("/");for(const ce of Xe)ce&&(We=mt._`${We}${(0,mt.getProperty)((0,bt.unescapeJsonPointer)(ce))}`,Qe=mt._`${Qe} && ${We}`);return Qe;function errorMsg(ce,Ve){return`Cannot access ${ce} ${Ve} levels up, current level is ${ze}`}}ze.getData=getData},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.extendErrors=ze.resetErrorsCount=ze.reportExtraError=ze.reportError=ze.keyword$DataError=ze.keywordError=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(276);function addError(ce,ze){const Ve=ce.const("err",ze);ce.if(qe._`${We.default.vErrors} === null`,(()=>ce.assign(We.default.vErrors,qe._`[${Ve}]`)),qe._`${We.default.vErrors}.push(${Ve})`),ce.code(qe._`${We.default.errors}++`)}function returnErrors(ce,ze){const{gen:Ve,validateName:Ye,schemaEnv:We}=ce;We.$async?Ve.throw(qe._`new ${ce.ValidationError}(${ze})`):(Ve.assign(qe._`${Ye}.errors`,ze),Ve.return(!1))}ze.keywordError={message:({keyword:ce})=>qe.str`must pass "${ce}" keyword validation`},ze.keyword$DataError={message:({keyword:ce,schemaType:ze})=>ze?qe.str`"${ce}" keyword must be ${ze} ($data)`:qe.str`"${ce}" keyword is invalid ($data)`},ze.reportError=function reportError(ce,Ve=ze.keywordError,Ye,We){const{it:Qe}=ce,{gen:Xe,compositeRule:ot,allErrors:st}=Qe,mt=errorObjectCode(ce,Ve,Ye);(null!=We?We:ot||st)?addError(Xe,mt):returnErrors(Qe,qe._`[${mt}]`)},ze.reportExtraError=function reportExtraError(ce,Ve=ze.keywordError,qe){const{it:Ye}=ce,{gen:Qe,compositeRule:Xe,allErrors:ot}=Ye;addError(Qe,errorObjectCode(ce,Ve,qe)),Xe||ot||returnErrors(Ye,We.default.vErrors)},ze.resetErrorsCount=function resetErrorsCount(ce,ze){ce.assign(We.default.errors,ze),ce.if(qe._`${We.default.vErrors} !== null`,(()=>ce.if(ze,(()=>ce.assign(qe._`${We.default.vErrors}.length`,ze)),(()=>ce.assign(We.default.vErrors,null)))))},ze.extendErrors=function extendErrors({gen:ce,keyword:ze,schemaValue:Ve,data:Ye,errsCount:Qe,it:Xe}){if(void 0===Qe)throw new Error("ajv implementation error");const ot=ce.name("err");ce.forRange("i",Qe,We.default.errors,(Qe=>{ce.const(ot,qe._`${We.default.vErrors}[${Qe}]`),ce.if(qe._`${ot}.instancePath === undefined`,(()=>ce.assign(qe._`${ot}.instancePath`,(0,qe.strConcat)(We.default.instancePath,Xe.errorPath)))),ce.assign(qe._`${ot}.schemaPath`,qe.str`${Xe.errSchemaPath}/${ze}`),Xe.opts.verbose&&(ce.assign(qe._`${ot}.schema`,Ve),ce.assign(qe._`${ot}.data`,Ye))}))};const Qe={keyword:new qe.Name("keyword"),schemaPath:new qe.Name("schemaPath"),params:new qe.Name("params"),propertyName:new qe.Name("propertyName"),message:new qe.Name("message"),schema:new qe.Name("schema"),parentSchema:new qe.Name("parentSchema")};function errorObjectCode(ce,ze,Ve){const{createErrors:Ye}=ce.it;return!1===Ye?qe._`{}`:errorObject(ce,ze,Ve)}function errorObject(ce,ze,Ve={}){const{gen:qe,it:Ye}=ce,We=[errorInstancePath(Ye,Ve),errorSchemaPath(ce,Ve)];return extraErrorProps(ce,ze,We),qe.object(...We)}function errorInstancePath({errorPath:ce},{instancePath:ze}){const Ve=ze?qe.str`${ce}${(0,Ye.getErrorPath)(ze,Ye.Type.Str)}`:ce;return[We.default.instancePath,(0,qe.strConcat)(We.default.instancePath,Ve)]}function errorSchemaPath({keyword:ce,it:{errSchemaPath:ze}},{schemaPath:Ve,parentSchema:We}){let Xe=We?ze:qe.str`${ze}/${ce}`;return Ve&&(Xe=qe.str`${Xe}${(0,Ye.getErrorPath)(Ve,Ye.Type.Str)}`),[Qe.schemaPath,Xe]}function extraErrorProps(ce,{params:ze,message:Ve},Ye){const{keyword:Xe,data:ot,schemaValue:st,it:mt}=ce,{opts:gt,propertyName:yt,topSchemaRef:bt,schemaPath:vt}=mt;Ye.push([Qe.keyword,Xe],[Qe.params,"function"==typeof ze?ze(ce):ze||qe._`{}`]),gt.messages&&Ye.push([Qe.message,"function"==typeof Ve?Ve(ce):Ve]),gt.verbose&&Ye.push([Qe.schema,st],[Qe.parentSchema,qe._`${bt}${vt}`],[We.default.data,ot]),yt&&Ye.push([Qe.propertyName,yt])}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.regexpCode=ze.getEsmExportName=ze.getProperty=ze.safeStringify=ze.stringify=ze.strConcat=ze.addCodeArg=ze.str=ze._=ze.nil=ze._Code=ze.Name=ze.IDENTIFIER=ze._CodeOrName=void 0;class qe{}ze._CodeOrName=qe,ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Ye extends qe{constructor(ce){if(super(),!ze.IDENTIFIER.test(ce))throw new Error("CodeGen: name must be a valid identifier");this.str=ce}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}ze.Name=Ye;class We extends qe{constructor(ce){super(),this._items="string"==typeof ce?[ce]:ce}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ce=this._items[0];return""===ce||'""'===ce}get str(){var ce;return null!==(ce=this._str)&&void 0!==ce?ce:this._str=this._items.reduce(((ce,ze)=>`${ce}${ze}`),"")}get names(){var ce;return null!==(ce=this._names)&&void 0!==ce?ce:this._names=this._items.reduce(((ce,ze)=>(ze instanceof Ye&&(ce[ze.str]=(ce[ze.str]||0)+1),ce)),{})}}function _(ce,...ze){const Ve=[ce[0]];let qe=0;for(;qe0&&!(0===Qe.length&&1===ze.length&&(0,Ye.schemaHasRulesForType)(ce,ze[0]));if(Xe){const Ye=checkDataTypes(ze,qe,We.strictNumbers,ot.Wrong);Ve.if(Ye,(()=>{Qe.length?coerceData(ce,ze,Qe):reportTypeError(ce)}))}return Xe};const st=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(ce,ze){return ze?ce.filter((ce=>st.has(ce)||"array"===ze&&"array"===ce)):[]}function coerceData(ce,ze,Ve){const{gen:qe,data:Ye,opts:We}=ce,Xe=qe.let("dataType",Qe._`typeof ${Ye}`),ot=qe.let("coerced",Qe._`undefined`);"array"===We.coerceTypes&&qe.if(Qe._`${Xe} == 'object' && Array.isArray(${Ye}) && ${Ye}.length == 1`,(()=>qe.assign(Ye,Qe._`${Ye}[0]`).assign(Xe,Qe._`typeof ${Ye}`).if(checkDataTypes(ze,Ye,We.strictNumbers),(()=>qe.assign(ot,Ye))))),qe.if(Qe._`${ot} !== undefined`);for(const ce of Ve)(st.has(ce)||"array"===ce&&"array"===We.coerceTypes)&&coerceSpecificType(ce);function coerceSpecificType(ce){switch(ce){case"string":return void qe.elseIf(Qe._`${Xe} == "number" || ${Xe} == "boolean"`).assign(ot,Qe._`"" + ${Ye}`).elseIf(Qe._`${Ye} === null`).assign(ot,Qe._`""`);case"number":return void qe.elseIf(Qe._`${Xe} == "boolean" || ${Ye} === null || (${Xe} == "string" && ${Ye} && ${Ye} == +${Ye})`).assign(ot,Qe._`+${Ye}`);case"integer":return void qe.elseIf(Qe._`${Xe} === "boolean" || ${Ye} === null || (${Xe} === "string" && ${Ye} && ${Ye} == +${Ye} && !(${Ye} % 1))`).assign(ot,Qe._`+${Ye}`);case"boolean":return void qe.elseIf(Qe._`${Ye} === "false" || ${Ye} === 0 || ${Ye} === null`).assign(ot,!1).elseIf(Qe._`${Ye} === "true" || ${Ye} === 1`).assign(ot,!0);case"null":return qe.elseIf(Qe._`${Ye} === "" || ${Ye} === 0 || ${Ye} === false`),void qe.assign(ot,null);case"array":qe.elseIf(Qe._`${Xe} === "string" || ${Xe} === "number" - || ${Xe} === "boolean" || ${Ye} === null`).assign(ot,Qe._`[${Ye}]`)}}qe.else(),reportTypeError(ce),qe.endIf(),qe.if(Qe._`${ot} !== undefined`,(()=>{qe.assign(Ye,ot),assignParentData(ce,ot)}))}function assignParentData({gen:ce,parentData:ze,parentDataProperty:Ve},qe){ce.if(Qe._`${ze} !== undefined`,(()=>ce.assign(Qe._`${ze}[${Ve}]`,qe)))}function checkDataType(ce,ze,Ve,qe=ot.Correct){const Ye=qe===ot.Correct?Qe.operators.EQ:Qe.operators.NEQ;let We;switch(ce){case"null":return Qe._`${ze} ${Ye} null`;case"array":We=Qe._`Array.isArray(${ze})`;break;case"object":We=Qe._`${ze} && typeof ${ze} == "object" && !Array.isArray(${ze})`;break;case"integer":We=numCond(Qe._`!(${ze} % 1) && !isNaN(${ze})`);break;case"number":We=numCond();break;default:return Qe._`typeof ${ze} ${Ye} ${ce}`}return qe===ot.Correct?We:(0,Qe.not)(We);function numCond(ce=Qe.nil){return(0,Qe.and)(Qe._`typeof ${ze} == "number"`,ce,Ve?Qe._`isFinite(${ze})`:Qe.nil)}}function checkDataTypes(ce,ze,Ve,qe){if(1===ce.length)return checkDataType(ce[0],ze,Ve,qe);let Ye;const We=(0,Xe.toHash)(ce);if(We.array&&We.object){const ce=Qe._`typeof ${ze} != "object"`;Ye=We.null?ce:Qe._`!${ze} || ${ce}`,delete We.null,delete We.array,delete We.object}else Ye=Qe.nil;We.number&&delete We.integer;for(const ce in We)Ye=(0,Qe.and)(Ye,checkDataType(ce,ze,Ve,qe));return Ye}ze.checkDataType=checkDataType,ze.checkDataTypes=checkDataTypes;const mt={message:({schema:ce})=>`must be ${ce}`,params:({schema:ce,schemaValue:ze})=>"string"==typeof ce?Qe._`{type: ${ce}}`:Qe._`{type: ${ze}}`};function reportTypeError(ce){const ze=getTypeErrorContext(ce);(0,We.reportError)(ze,mt)}function getTypeErrorContext(ce){const{gen:ze,data:Ve,schema:qe}=ce,Ye=(0,Xe.schemaRefOrVal)(ce,qe,"type");return{gen:ze,keyword:"type",data:Ve,schema:qe.type,schemaCode:Ye,schemaValue:Ye,parentSchema:qe,params:{},it:ce}}ze.reportTypeError=reportTypeError},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getSchemaRefs=ze.resolveUrl=ze.normalizeId=ze._getFullPath=ze.getFullPath=ze.inlineRef=void 0;const qe=Ve(69),Ye=Ve(22),We=Ve(1741),Qe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ze.inlineRef=function inlineRef(ce,ze=!0){return"boolean"==typeof ce||(!0===ze?!hasRef(ce):!!ze&&countKeys(ce)<=ze)};const Xe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(ce){for(const ze in ce){if(Xe.has(ze))return!0;const Ve=ce[ze];if(Array.isArray(Ve)&&Ve.some(hasRef))return!0;if("object"==typeof Ve&&hasRef(Ve))return!0}return!1}function countKeys(ce){let ze=0;for(const Ve in ce){if("$ref"===Ve)return 1/0;if(ze++,!Qe.has(Ve)&&("object"==typeof ce[Ve]&&(0,qe.eachItem)(ce[Ve],(ce=>ze+=countKeys(ce))),ze===1/0))return 1/0}return ze}function getFullPath(ce,ze="",Ve){!1!==Ve&&(ze=normalizeId(ze));const qe=ce.parse(ze);return _getFullPath(ce,qe)}function _getFullPath(ce,ze){return ce.serialize(ze).split("#")[0]+"#"}ze.getFullPath=getFullPath,ze._getFullPath=_getFullPath;const ot=/#\/?$/;function normalizeId(ce){return ce?ce.replace(ot,""):""}ze.normalizeId=normalizeId,ze.resolveUrl=function resolveUrl(ce,ze,Ve){return Ve=normalizeId(Ve),ce.resolve(ze,Ve)};const st=/^[a-z_][-a-z0-9._]*$/i;ze.getSchemaRefs=function getSchemaRefs(ce,ze){if("boolean"==typeof ce)return{};const{schemaId:Ve,uriResolver:qe}=this.opts,Qe=normalizeId(ce[Ve]||ze),Xe={"":Qe},ot=getFullPath(qe,Qe,!1),mt={},gt=new Set;return We(ce,{allKeys:!0},((ce,ze,qe,Ye)=>{if(void 0===Ye)return;const We=ot+ze;let Qe=Xe[Ye];function addRef(ze){const Ve=this.opts.uriResolver.resolve;if(ze=normalizeId(Qe?Ve(Qe,ze):ze),gt.has(ze))throw ambiguos(ze);gt.add(ze);let qe=this.refs[ze];return"string"==typeof qe&&(qe=this.refs[qe]),"object"==typeof qe?checkAmbiguosRef(ce,qe.schema,ze):ze!==normalizeId(We)&&("#"===ze[0]?(checkAmbiguosRef(ce,mt[ze],ze),mt[ze]=ce):this.refs[ze]=We),ze}function addAnchor(ce){if("string"==typeof ce){if(!st.test(ce))throw new Error(`invalid anchor "${ce}"`);addRef.call(this,`#${ce}`)}}"string"==typeof ce[Ve]&&(Qe=addRef.call(this,ce[Ve])),addAnchor.call(this,ce.$anchor),addAnchor.call(this,ce.$dynamicAnchor),Xe[ze]=Qe})),mt;function checkAmbiguosRef(ce,ze,Ve){if(void 0!==ze&&!Ye(ce,ze))throw ambiguos(Ve)}function ambiguos(ce){return new Error(`reference "${ce}" resolves to more than one schema`)}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(493);class Ye extends Error{constructor(ce,ze,Ve,Ye){super(Ye||`can't resolve reference ${Ve} from id ${ze}`),this.missingRef=(0,qe.resolveUrl)(ce,ze,Ve),this.missingSchema=(0,qe.normalizeId)((0,qe.getFullPath)(ce,this.missingRef))}}ze.default=Ye},function(ce,ze,Ve){"use strict";let qe=Ve(496);class Ye extends qe{constructor(ce){ce&&void 0!==ce.value&&"string"!=typeof ce.value&&(ce={...ce,value:String(ce.value)}),super(ce),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";let{isClean:qe,my:Ye}=Ve(775),We=Ve(774),Qe=Ve(1041),Xe=Ve(497);function cloneNode(ce,ze){let Ve=new ce.constructor;for(let qe in ce){if(!Object.prototype.hasOwnProperty.call(ce,qe))continue;if("proxyCache"===qe)continue;let Ye=ce[qe],We=typeof Ye;"parent"===qe&&"object"===We?ze&&(Ve[qe]=ze):"source"===qe?Ve[qe]=Ye:Array.isArray(Ye)?Ve[qe]=Ye.map((ce=>cloneNode(ce,Ve))):("object"===We&&null!==Ye&&(Ye=cloneNode(Ye)),Ve[qe]=Ye)}return Ve}class ot{constructor(ce={}){this.raws={},this[qe]=!1,this[Ye]=!0;for(let ze in ce)if("nodes"===ze){this.nodes=[];for(let Ve of ce[ze])"function"==typeof Ve.clone?this.append(Ve.clone()):this.append(Ve)}else this[ze]=ce[ze]}addToError(ce){if(ce.postcssNode=this,ce.stack&&this.source&&/\n\s{4}at /.test(ce.stack)){let ze=this.source;ce.stack=ce.stack.replace(/\n\s{4}at /,`$&${ze.input.from}:${ze.start.line}:${ze.start.column}$&`)}return ce}after(ce){return this.parent.insertAfter(this,ce),this}assign(ce={}){for(let ze in ce)this[ze]=ce[ze];return this}before(ce){return this.parent.insertBefore(this,ce),this}cleanRaws(ce){delete this.raws.before,delete this.raws.after,ce||delete this.raws.between}clone(ce={}){let ze=cloneNode(this);for(let Ve in ce)ze[Ve]=ce[Ve];return ze}cloneAfter(ce={}){let ze=this.clone(ce);return this.parent.insertAfter(this,ze),ze}cloneBefore(ce={}){let ze=this.clone(ce);return this.parent.insertBefore(this,ze),ze}error(ce,ze={}){if(this.source){let{end:Ve,start:qe}=this.rangeBy(ze);return this.source.input.error(ce,{column:qe.column,line:qe.line},{column:Ve.column,line:Ve.line},ze)}return new We(ce)}getProxyProcessor(){return{get:(ce,ze)=>"proxyOf"===ze?ce:"root"===ze?()=>ce.root().toProxy():ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"prop"!==ze&&"value"!==ze&&"name"!==ze&&"params"!==ze&&"important"!==ze&&"text"!==ze||ce.markDirty()),!0)}}markDirty(){if(this[qe]){this[qe]=!1;let ce=this;for(;ce=ce.parent;)ce[qe]=!1}}next(){if(!this.parent)return;let ce=this.parent.index(this);return this.parent.nodes[ce+1]}positionBy(ce,ze){let Ve=this.source.start;if(ce.index)Ve=this.positionInside(ce.index,ze);else if(ce.word){let qe=(ze=this.toString()).indexOf(ce.word);-1!==qe&&(Ve=this.positionInside(qe,ze))}return Ve}positionInside(ce,ze){let Ve=ze||this.toString(),qe=this.source.start.column,Ye=this.source.start.line;for(let ze=0;ze"object"==typeof ce&&ce.toJSON?ce.toJSON(null,ze):ce));else if("object"==typeof qe&&qe.toJSON)Ve[ce]=qe.toJSON(null,ze);else if("source"===ce){let We=ze.get(qe.input);null==We&&(We=Ye,ze.set(qe.input,Ye),Ye++),Ve[ce]={end:qe.end,inputId:We,start:qe.start}}else Ve[ce]=qe}return qe&&(Ve.inputs=[...ze.keys()].map((ce=>ce.toJSON()))),Ve}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(ce=Xe){ce.stringify&&(ce=ce.stringify);let ze="";return ce(this,(ce=>{ze+=ce})),ze}warn(ce,ze,Ve){let qe={node:this};for(let ce in Ve)qe[ce]=Ve[ce];return ce.warn(ze,qe)}get proxyOf(){return this}}ce.exports=ot,ot.default=ot},function(ce,ze,Ve){"use strict";let qe=Ve(1041);function stringify(ce,ze){new qe(ze).stringify(ce)}ce.exports=stringify,stringify.default=stringify},function(ce,ze,Ve){"use strict";let{SourceMapConsumer:qe,SourceMapGenerator:Ye}=Ve(776),{fileURLToPath:We,pathToFileURL:Qe}=Ve(1044),{isAbsolute:Xe,resolve:ot}=Ve(777),{nanoid:st}=Ve(1817),mt=Ve(1040),gt=Ve(774),yt=Ve(1045),bt=Symbol("fromOffsetCache"),vt=Boolean(qe&&Ye),wt=Boolean(ot&&Xe);class Ct{constructor(ce,ze={}){if(null==ce||"object"==typeof ce&&!ce.toString)throw new Error(`PostCSS received ${ce} instead of CSS string`);if(this.css=ce.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,ze.from&&(!wt||/^\w+:\/\//.test(ze.from)||Xe(ze.from)?this.file=ze.from:this.file=ot(ze.from)),wt&&vt){let ce=new yt(this.css,ze);if(ce.text){this.map=ce;let ze=ce.consumer().file;!this.file&&ze&&(this.file=this.mapResolve(ze))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(ce,ze,Ve,qe={}){let Ye,We,Xe;if(ze&&"object"==typeof ze){let ce=ze,qe=Ve;if("number"==typeof ce.offset){let qe=this.fromOffset(ce.offset);ze=qe.line,Ve=qe.col}else ze=ce.line,Ve=ce.column;if("number"==typeof qe.offset){let ce=this.fromOffset(qe.offset);We=ce.line,Xe=ce.col}else We=qe.line,Xe=qe.column}else if(!Ve){let ce=this.fromOffset(ze);ze=ce.line,Ve=ce.col}let ot=this.origin(ze,Ve,We,Xe);return Ye=ot?new gt(ce,void 0===ot.endLine?ot.line:{column:ot.column,line:ot.line},void 0===ot.endLine?ot.column:{column:ot.endColumn,line:ot.endLine},ot.source,ot.file,qe.plugin):new gt(ce,void 0===We?ze:{column:Ve,line:ze},void 0===We?Ve:{column:Xe,line:We},this.css,this.file,qe.plugin),Ye.input={column:Ve,endColumn:Xe,endLine:We,line:ze,source:this.css},this.file&&(Qe&&(Ye.input.url=Qe(this.file).toString()),Ye.input.file=this.file),Ye}fromOffset(ce){let ze,Ve;if(this[bt])Ve=this[bt];else{let ce=this.css.split("\n");Ve=new Array(ce.length);let ze=0;for(let qe=0,Ye=ce.length;qe=ze)qe=Ve.length-1;else{let ze,Ye=Ve.length-2;for(;qe>1),ce=Ve[ze+1])){qe=ze;break}qe=ze+1}}return{col:ce-Ve[qe]+1,line:qe+1}}mapResolve(ce){return/^\w+:\/\//.test(ce)?ce:ot(this.map.consumer().sourceRoot||this.map.root||".",ce)}origin(ce,ze,Ve,qe){if(!this.map)return!1;let Ye,ot,st=this.map.consumer(),mt=st.originalPositionFor({column:ze,line:ce});if(!mt.source)return!1;"number"==typeof Ve&&(Ye=st.originalPositionFor({column:qe,line:Ve})),ot=Xe(mt.source)?Qe(mt.source):new URL(mt.source,this.map.consumer().sourceRoot||Qe(this.map.mapFile));let gt={column:mt.column,endColumn:Ye&&Ye.column,endLine:Ye&&Ye.line,line:mt.line,url:ot.toString()};if("file:"===ot.protocol){if(!We)throw new Error("file: protocol is not available in this PostCSS build");gt.file=We(ot)}let yt=st.sourceContentFor(mt.source);return yt&&(gt.source=yt),gt}toJSON(){let ce={};for(let ze of["hasBOM","css","file","id"])null!=this[ze]&&(ce[ze]=this[ze]);return this.map&&(ce.map={...this.map},ce.map.consumerCache&&(ce.map.consumerCache=void 0)),ce}get from(){return this.file||this.id}}ce.exports=Ct,Ct.default=Ct,mt&&mt.registerInput&&mt.registerInput(Ct)},function(ce,ze,Ve){"use strict";let qe=Ve(496);class Ye extends qe{constructor(ce){super(ce),this.type="comment"}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ht}));var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(1),Pt=Ve(22),Tt=Ve.n(Pt),Lt=Ve(78),Ft=Ve(238),Bt=Ve(49),Vt=Ve(378);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ht=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce,ze,Ve,qe,Pt,Tt,Ht){_initializerDefineProperty(this,"items",Ye,this),_initializerDefineProperty(this,"itemsLoading",We,this),_initializerDefineProperty(this,"categoriesLoading",Qe,this),_initializerDefineProperty(this,"dataSourceLoading",Xe,this),_initializerDefineProperty(this,"dataSource",ot,this),_initializerDefineProperty(this,"includeSubElements",st,this),_initializerDefineProperty(this,"categories",mt,this),_initializerDefineProperty(this,"categoryOperator",gt,this),_initializerDefineProperty(this,"tags",yt,this),_initializerDefineProperty(this,"tagOperator",bt,this),_initializerDefineProperty(this,"types",vt,this),_initializerDefineProperty(this,"audienceTargeting",wt,this),_initializerDefineProperty(this,"sortBy",Ct,this),_initializerDefineProperty(this,"sortOrder",Dt,this),_initializerDefineProperty(this,"presentation",kt,this),_initializerDefineProperty(this,"limit",St,this),_initializerDefineProperty(this,"excludedIds",xt,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),Lt.a.get(Ft.a.endpoints.items+Object(Vt.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(Et.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=qe,this.id=Pt,this.params=Tt,this.webspaceKey=Ht,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,Bt.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(Et.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,Bt.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(Et.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(Et.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(Et.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){Tt()(Object(Et.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(Et.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(Et.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"itemsLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_applyDecoratedDescriptor(qe.prototype,"categoriesLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"dataSourceLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=_applyDecoratedDescriptor(qe.prototype,"dataSource",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=_applyDecoratedDescriptor(qe.prototype,"includeSubElements",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mt=_applyDecoratedDescriptor(qe.prototype,"categories",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gt=_applyDecoratedDescriptor(qe.prototype,"categoryOperator",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yt=_applyDecoratedDescriptor(qe.prototype,"tags",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(qe.prototype,"tagOperator",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vt=_applyDecoratedDescriptor(qe.prototype,"types",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=_applyDecoratedDescriptor(qe.prototype,"audienceTargeting",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=_applyDecoratedDescriptor(qe.prototype,"sortBy",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(qe.prototype,"sortOrder",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(qe.prototype,"presentation",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),St=_applyDecoratedDescriptor(qe.prototype,"limit",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(qe.prototype,"excludedIds",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(qe.prototype,"setItems",[Et.action],Object.getOwnPropertyDescriptor(qe.prototype,"setItems"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setItemsLoading",[Et.action],Object.getOwnPropertyDescriptor(qe.prototype,"setItemsLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setExcludedIds",[Et.action],Object.getOwnPropertyDescriptor(qe.prototype,"setExcludedIds"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loading",[Et.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"filterCriteria",[Et.computed],Object.getOwnPropertyDescriptor(qe.prototype,"filterCriteria"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt=Ve(1),Ct=Ve(9),Dt=Ve.n(Ct),kt=Ve(28),St=Ve.n(kt),xt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=(qe=class ce{constructor(ce,ze){var Ve=this;let qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},kt=arguments.length>4?arguments[4]:void 0,St=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_initializerDefineProperty(this,"id",Ye,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"loading",Qe,this),_initializerDefineProperty(this,"saving",Xe,this),_initializerDefineProperty(this,"deleting",ot,this),_initializerDefineProperty(this,"moving",st,this),_initializerDefineProperty(this,"data",mt,this),_initializerDefineProperty(this,"dirty",gt,this),_initializerDefineProperty(this,"forbidden",yt,this),this.loadOptions={},this.load=()=>{const{id:ce,observableOptions:{locale:ze}}=this;ze&&!ze.get()||(this.preventLoadingOnce?this.preventLoadingOnce=!1:ce?(Dt.a.info('ResourceStore loads "'+this.resourceKey+'" data with the ID "'+ce+'"'),this.setLoading(!0),this.setForbidden(!1),this.requestRemoteData().then(Object(wt.action)((ce=>{this.idQueryParameter?(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce)):this.setMultiple(ce),this.initialized=!0,this.setLoading(!1),this.dirty=!1}))).catch(Object(wt.action)((ce=>{403===ce.status&&this.setForbidden(!0)})))):this.initialized=!0)},this.requestRemoteData=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:ze,observableOptions:{locale:qe}}=Ve;return qe&&(ce.locale=qe.get()),Ve.idQueryParameter?xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,[Ve.idQueryParameter]:ze}):xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,id:ze})},_initializerDefineProperty(this,"reload",bt,this),_initializerDefineProperty(this,"move",vt,this),this.resourceKey=ce,this.id=ze,this.observableOptions=qe,this.loadOptions=Ct,this.idQueryParameter=kt,this.preventLoadingOnce=St,this.disposer=Object(wt.autorun)(this.load)}setLoading(ce){this.loading=ce}setForbidden(ce){this.forbidden=ce}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),this.idQueryParameter||!this.id?this.create(ce):this.update(ce)}create(ce){this.saving=!0;const ze=ce;return this.idQueryParameter&&(ze[this.idQueryParameter]=this.id),xt.a.post(this.resourceKey,this.data,ze).then(Object(wt.action)((ce=>(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}update(ce){if(!this.id)throw new Error('Can not save resource with an undefined "id"');return this.saving=!0,xt.a.put(this.resourceKey,this.data,{...ce,id:this.id}).then(Object(wt.action)((ce=>(this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}delete(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.data.id)throw new Error('Cannot delete resource with an undefined "id"');const{locale:ze}=this.observableOptions;if(ce.deleteLocale&&!ze)throw new Error('Cannot delete a localized resource with an undefined "locale"');this.deleting=!0;const Ve=ce;return ze&&(Ve.locale=ze.get()),xt.a.delete(this.resourceKey,{...Ve,id:this.data.id}).then(Object(wt.action)((ce=>{this.id=void 0,this.setMultiple(ce),this.deleting=!1,this.dirty=!1,this.destroy()}))).catch(Object(wt.action)((ce=>{throw this.deleting=!1,ce})))}copyFromLocale(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.id)throw new Error("Copying from another locale does not work for new objects!");if(!this.locale)throw new Error("Copying from another locale does only work for objects with locales!");const Ve=this.locale.get();return xt.a.post(this.resourceKey,{},{...ze,action:"copy-locale",dest:Ve,id:this.id,locale:Ve,src:ce}).then(Object(wt.action)((ce=>(this.setMultiple(ce),ce))))}set(ce,ze){const Ve=ce.startsWith("/")?ce.substring(1):ce;"id"!==Ve||"string"!=typeof ze&&"number"!=typeof ze||(this.id=ze),St.a.set(this.data,"/"+Ve,ze)}setMultiple(ce){ce.id&&(this.id=ce.id),Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])})),Object(wt.set)(this.data,this.data),Dt.a.info('ResourceStore changed "'+this.resourceKey+'" data with the ID "'+(this.id||"undefined")+'"',this.data)}change(ce,ze){this.set(ce,ze),this.dirty=!0}changeMultiple(ce){this.setMultiple(ce),this.dirty=!0}clone(){const ze=new ce(this.resourceKey,this.id,this.observableOptions,this.loadOptions,void 0,!0);return ze.loading=this.loading,Object(wt.when)((()=>!this.loading),(()=>{ze.data=Object(wt.toJS)(this.data),ze.loading=!1})),ze}get locale(){return this.observableOptions.locale}destroy(){this.disposer()}handleIdQueryParameterResponse(ce){ce.id&&(this.idQueryParameter=void 0,this.id=ce.id,this.preventLoadingOnce=!0)}},Ye=_applyDecoratedDescriptor(qe.prototype,"id",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"initialized",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"saving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"deleting",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"moving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"data",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gt=_applyDecoratedDescriptor(qe.prototype,"dirty",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(qe.prototype,"forbidden",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(qe.prototype,"reload",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.load()}}}),_applyDecoratedDescriptor(qe.prototype,"setLoading",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForbidden",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"save",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"save"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"create",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"create"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"update",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"update"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"delete",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"delete"),qe.prototype),vt=_applyDecoratedDescriptor(qe.prototype,"move",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.id)throw new Error("Moving does not work for new objects!");this.moving=!0;const{locale:ze}=this.observableOptions,Ve={action:"move",destination:ce,locale:ze?ze.get():void 0};return xt.a.post(this.resourceKey,void 0,{...Ve,id:this.id}).then(Object(wt.action)((()=>{this.moving=!1}))).catch(Object(wt.action)((ce=>{throw this.moving=!1,ce})))}}}),_applyDecoratedDescriptor(qe.prototype,"set",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"change",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"change"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeMultiple",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"changeMultiple"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clone",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clone"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"handleIdQueryParameterResponse",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"handleIdQueryParameterResponse"),qe.prototype),qe);ze.a=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(3),ot=Ve(1),st=Ve(385),mt=(Ve(96),Ve(27)),gt=Ve(352);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let yt=Object(Xe.b)((Ye=class extends Qe.a.Component{constructor(){super(...arguments),this.handleNavigationItemClick=ce=>{const ze=gt.default.get(ce).view;ze&&(this.props.router.navigate(ze),this.props.onNavigate(ze))},this.handleProfileEditClick=()=>{this.props.onProfileClick()},this.handlePinToggle=()=>{this.props.onPinToggle()},this.isItemActive=ce=>{const{router:ze}=this.props;return!!ze.route&&(ce.view&&ze.route.name===ce.view||ce.childViews&&ce.childViews.includes(ze.route.name))}}get username(){return mt.a.loggedIn&&mt.a.contact?mt.a.contact.fullName:""}get userImage(){if(mt.a.loggedIn&&mt.a.contact&&mt.a.contact.avatar)return mt.a.contact.avatar.thumbnails["sulu-50x50"]}render(){const{appVersion:ce,suluVersion:ze}=this.props,Ve=gt.default.getAll();return Qe.a.createElement(st.a,{appVersion:ce,onItemClick:this.handleNavigationItemClick,onLogoutClick:this.props.onLogout,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.props.pinned,suluVersion:ze,suluVersionLink:"https://github.com/sulu/sulu/releases",title:"Sulu",userImage:this.userImage,username:this.username},Ve.filter((ce=>ce.visible)).map((ce=>Qe.a.createElement(st.a.Item,{active:this.isItemActive(ce),icon:ce.icon,key:ce.id,title:ce.label,value:ce.id},Object(ot.isArrayLike)(ce.items)&&ce.items.filter((ce=>ce.visible)).map((ce=>Qe.a.createElement(st.a.Item,{active:this.isItemActive(ce),key:ce.id,title:ce.label,value:ce.id})))))))}},_applyDecoratedDescriptor(Ye.prototype,"username",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"username"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"userImage",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"userImage"),Ye.prototype),qe=Ye))||qe;ze.default=yt},function(ce,ze,Ve){"use strict";var qe=Ve(590);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(215),mt=Ve(647);let gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,metadataOptions:Ye,options:We,preSelectedItem:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe);const gt=[];Qe&>.push(Qe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,Ye,gt),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural}),this.selectionDisposer=Object(Xe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},qe=Ye))||qe;ze.default=gt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(65),vt=Ve(33);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let wt=Object(gt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleButtonClick",Qe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Xe,this)}render(){const{children:ce,className:ze,icon:Ve,label:qe,skin:Ye}=this.props,We=mt.a.createElement(vt.default,{className:ze,icon:Ve,onClick:this.handleButtonClick,showDropdownIcon:!0,skin:Ye},qe);return mt.a.createElement(bt.a,{anchorElement:We,onClose:this.handleArrowMenuClose,open:this.open,refProp:"buttonRef"},mt.a.createElement(bt.a.Section,null,ce))}},ot.defaultProps={skin:"secondary"},ot.Item=bt.a.Action,We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleButtonClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuClose",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;ze.default=wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(22),bt=Ve.n(yt),vt=Ve(87),wt=Ve(191),Ct=Ve(47);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Dt=Object(gt.b)(((Xe=class extends st.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"resourceListStore",We,this),_initializerDefineProperty(this,"createResourceListStore",Qe,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{disabled:ce,onChange:this.handleChange,values:qe},this.resourceListStore.data.map(((ce,qe)=>st.a.createElement(vt.b,{key:qe,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new wt.a(ce,ze)}}}),qe=Ye))||qe;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(215),mt=Ve(647);let gt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.page=Xe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,options:Ye,preloadSelectedItems:We,preSelectedItems:Qe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,Ye,void 0,We?Qe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Xe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Xe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,onClose:Xe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Qe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Xe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},qe=Ye))||qe;ze.default=gt},function(ce,ze,Ve){"use strict";var qe=Ve(609);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(510);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(38);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("mailto:"+ce)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.default,{disabled:Ve,icon:"su-envelope",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,onIconClick:Xe&&Xe.length>1&&ze?this.handleIconClick:void 0,placeholder:Qe,type:"email",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0},ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(38);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,inputContainerRef:this.props.inputContainerRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return Ye.a.createElement(We.default,ce)}}Qe.defaultProps={alignment:"left",disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";var qe=Ve(513);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(38);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("tel:"+ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,onBlur:Xe,onChange:ot,value:st}=this.props;return Ye.a.createElement(We.default,{disabled:Ve,icon:"su-phone",id:ce,name:qe,onBlur:Xe,onChange:ot,onIconClick:st&&st.length>1?this.handleIconClick:void 0,placeholder:Qe,type:"tel",valid:ze,value:st})}}Qe.defaultProps={disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";var qe=Ve(611);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(204),Qe=Ve(15);class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(Ye.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Xe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Qe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:qe,skin:Qe}=this.props;return Ye.a.createElement(We.default,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:qe,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Qe},ce)}}Xe.defaultProps={disabled:!1,skin:"default",values:[]},Xe.Action=We.default.Action,Xe.Option=We.default.Option,Xe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";var qe=Ve(612);ze.a=qe.default},function(ce,ze,Ve){"use strict";ze.a=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(435);class Qe extends Ye.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.default.get(ce);return Ye.a.createElement(Ve,ze)}}Qe.defaultProps={disabled:!1}},function(ce,ze,Ve){"use strict";function setDataInElement(ce,ze){ce instanceof HTMLTextAreaElement&&(ce.value=ze),ce.innerHTML=ze}Ve.d(ze,"a",(function(){return setDataInElement}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return scrollViewportToShowTarget}));var qe=Ve(334),Ye=Ve(55),We=Ve(104);function scrollViewportToShowTarget(ce){let{target:ze,viewportOffset:Ve=0}=ce;const qe=getWindow(ze);let Ye=qe,We=null;for(;Ye;){let ce;ce=getParentElement(Ye==qe?ze:We),scrollAncestorsToShowRect(ce,(()=>getRectRelativeToWindow(ze,Ye)));const Qe=getRectRelativeToWindow(ze,Ye);if(scrollWindowToShowRect(Ye,Qe,Ve),Ye.parent!=Ye){if(We=Ye.frameElement,Ye=Ye.parent,!We)return}else Ye=null}}function scrollWindowToShowRect(ce,ze,Ve){const qe=ze.clone().moveBy(0,Ve),We=ze.clone().moveBy(0,-Ve),Qe=new Ye.a(ce).excludeScrollbarsAndBorders();if(![We,qe].every((ce=>Qe.contains(ce)))){let{scrollX:Ye,scrollY:Xe}=ce;isAbove(We,Qe)?Xe-=Qe.top-ze.top+Ve:isBelow(qe,Qe)&&(Xe+=ze.bottom-Qe.bottom+Ve),isLeftOf(ze,Qe)?Ye-=Qe.left-ze.left+Ve:isRightOf(ze,Qe)&&(Ye+=ze.right-Qe.right+Ve),ce.scrollTo(Ye,Xe)}}function scrollAncestorsToShowRect(ce,ze){const Ve=getWindow(ce);let qe,We;for(;ce!=Ve.document.body;)We=ze(),qe=new Ye.a(ce).excludeScrollbarsAndBorders(),qe.contains(We)||(isAbove(We,qe)?ce.scrollTop-=qe.top-We.top:isBelow(We,qe)&&(ce.scrollTop+=We.bottom-qe.bottom),isLeftOf(We,qe)?ce.scrollLeft-=qe.left-We.left:isRightOf(We,qe)&&(ce.scrollLeft+=We.right-qe.right)),ce=ce.parentNode}function isBelow(ce,ze){return ce.bottom>ze.bottom}function isAbove(ce,ze){return ce.topze.right}function getWindow(ce){return Object(qe.a)(ce)?ce.startContainer.ownerDocument.defaultView:ce.ownerDocument.defaultView}function getParentElement(ce){if(Object(qe.a)(ce)){let ze=ce.commonAncestorContainer;return Object(We.a)(ze)&&(ze=ze.parentNode),ze}return ce.parentNode}function getRectRelativeToWindow(ce,ze){const Ve=getWindow(ce),qe=new Ye.a(ce);if(Ve===ze)return qe;{let ce=Ve;for(;ce!=ze;){const ze=ce.frameElement,Ve=new Ye.a(ze).excludeScrollbarsAndBorders();qe.moveBy(Ve.left,Ve.top),ce=ce.parent}}return qe}Object.assign({},{scrollViewportToShowTarget:scrollViewportToShowTarget,scrollAncestorsToShowTarget:function scrollAncestorsToShowTarget(ce){scrollAncestorsToShowRect(getParentElement(ce),(()=>new Ye.a(ce)))}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(8),Ye=Ve(309),We=Ve(182),Qe=Ve(91);class Xe{constructor(ce,ze){this._helpers=new Map,this._downcast=Object(Qe.a)(ce),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Object(Qe.a)(ze),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(ce,ze){const Ve=this._downcast.includes(ze);if(!this._upcast.includes(ze)&&!Ve)throw new qe.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:ce,dispatchers:[ze],isDowncast:Ve})}for(ce){if(!this._helpers.has(ce))throw new qe.a("conversion-for-unknown-group",this);return this._helpers.get(ce)}elementToElement(ce){this.for("downcast").elementToElement(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").elementToElement({model:ze,view:Ve,converterPriority:ce.converterPriority})}attributeToElement(ce){this.for("downcast").attributeToElement(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").elementToAttribute({view:Ve,model:ze,converterPriority:ce.converterPriority})}attributeToAttribute(ce){this.for("downcast").attributeToAttribute(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").attributeToAttribute({view:Ve,model:ze})}_createConversionHelpers(ce){let{name:ze,dispatchers:Ve,isDowncast:Qe}=ce;if(this._helpers.has(ze))throw new qe.a("conversion-group-exists",this);const Xe=Qe?new We.d(Ve):new Ye.d(Ve);this._helpers.set(ze,Xe)}}function*_getAllUpcastDefinitions(ce){if(ce.model.values)for(const ze of ce.model.values){const Ve={key:ce.model.key,value:ze},qe=ce.view[ze],Ye=ce.upcastAlso?ce.upcastAlso[ze]:void 0;yield*_getUpcastDefinition(Ve,qe,Ye)}else yield*_getUpcastDefinition(ce.model,ce.view,ce.upcastAlso)}function*_getUpcastDefinition(ce,ze,Ve){if(yield{model:ce,view:ze},Ve)for(const ze of Object(Qe.a)(Ve))yield{model:ce,view:ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(229);class Ye{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(ce){this._operations.length&&ce>this._version+1&&this._gaps.set(this._version,ce),this._version=ce}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(ce){if(ce.baseVersion!==this.version)throw new qe.a("model-document-history-addoperation-incorrect-version",this,{operation:ce,historyVersion:this.version});this._operations.push(ce),this._version++,this._baseVersionToOperationIndex.set(ce.baseVersion,this._operations.length-1)}getOperations(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.version;if(!this._operations.length)return[];const Ve=this._operations[0];void 0===ce&&(ce=Ve.baseVersion);let qe=ze-1;for(const[ze,Ve]of this._gaps)ce>ze&&ceze&&qethis.lastOperation.baseVersion)return[];let Ye=this._baseVersionToOperationIndex.get(ce);void 0===Ye&&(Ye=0);let We=this._baseVersionToOperationIndex.get(qe);return void 0===We&&(We=this._operations.length-1),this._operations.slice(Ye,We+1)}getOperation(ce){const ze=this._baseVersionToOperationIndex.get(ce);if(void 0!==ze)return this._operations[ze]}setOperationAsUndone(ce,ze){this._undoPairs.set(ze,ce),this._undoneOperations.add(ce)}isUndoingOperation(ce){return this._undoPairs.has(ce)}isUndoneOperation(ce){return this._undoneOperations.has(ce)}getUndoneOperation(ce){return this._undoPairs.get(ce)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var qe=Ve(110),Ye=Ve(109),We=Ve(142),Qe=Ve(67),Xe=Ve(125),ot=Ve(100),st=Ve(167),mt=Ve(310),gt=Ve(75),yt=Ve(95);const bt={};bt[qe.a.className]=qe.a,bt[Ye.a.className]=Ye.a,bt[We.a.className]=We.a,bt[Qe.a.className]=Qe.a,bt[Xe.a.className]=Xe.a,bt[ot.a.className]=ot.a,bt[st.a.className]=st.a,bt[mt.a.className]=mt.a,bt[gt.a.className]=gt.a,bt[yt.a.className]=yt.a;class vt{static fromJSON(ce,ze){return bt[ce.__className].fromJSON(ce,ze)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformSets}));var qe=Ve(109),Ye=Ve(110),We=Ve(167),Qe=Ve(142),Xe=Ve(67),ot=Ve(310),st=Ve(95),mt=Ve(75),gt=Ve(125),yt=Ve(16),bt=Ve(20),vt=Ve(92);const wt=new Map;function setTransformation(ce,ze,Ve){let qe=wt.get(ce);qe||(qe=new Map,wt.set(ce,qe)),qe.set(ze,Ve)}function getTransformation(ce,ze){const Ve=wt.get(ce);return Ve&&Ve.has(ze)?Ve.get(ze):noUpdateTransformation}function noUpdateTransformation(ce){return[ce]}function transform(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=getTransformation(ce.constructor,ze.constructor);try{return qe(ce=ce.clone(),ze,Ve)}catch(ce){throw ce}}function transformSets(ce,ze,Ve){ce=ce.slice(),ze=ze.slice();const qe=new Ct(Ve.document,Ve.useRelations,Ve.forceWeakRemove);qe.setOriginalOperations(ce),qe.setOriginalOperations(ze);const Ye=qe.originalOperations;if(0==ce.length||0==ze.length)return{operationsA:ce,operationsB:ze,originalOperations:Ye};const We=new WeakMap;for(const ze of ce)We.set(ze,0);const Qe={nextBaseVersionA:ce[ce.length-1].baseVersion+1,nextBaseVersionB:ze[ze.length-1].baseVersion+1,originalOperationsACount:ce.length,originalOperationsBCount:ze.length};let Xe=0;for(;Xe2&&void 0!==arguments[2]&&arguments[2];this.originalOperations=new Map,this._history=ce.history,this._useRelations=ze,this._forceWeakRemove=!!Ve,this._relations=new Map}setOriginalOperations(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=ze?this.originalOperations.get(ze):null;for(const ze of ce)this.originalOperations.set(ze,Ve||ze)}updateRelation(ce,ze){switch(ce.constructor){case Xe.a:switch(ze.constructor){case st.a:ce.targetPosition.isEqual(ze.sourcePosition)||ze.movedRange.containsPosition(ce.targetPosition)?this._setRelation(ce,ze,"insertAtSource"):ce.targetPosition.isEqual(ze.deletionPosition)?this._setRelation(ce,ze,"insertBetween"):ce.targetPosition.isAfter(ze.sourcePosition)&&this._setRelation(ce,ze,"moveTargetAfter");break;case Xe.a:ce.targetPosition.isEqual(ze.sourcePosition)||ce.targetPosition.isBefore(ze.sourcePosition)?this._setRelation(ce,ze,"insertBefore"):this._setRelation(ce,ze,"insertAfter")}break;case mt.a:switch(ze.constructor){case st.a:ce.splitPosition.isBefore(ze.sourcePosition)&&this._setRelation(ce,ze,"splitBefore");break;case Xe.a:if(ce.splitPosition.isEqual(ze.sourcePosition)||ce.splitPosition.isBefore(ze.sourcePosition))this._setRelation(ce,ze,"splitBefore");else{const Ve=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);if(ce.splitPosition.hasSameParentAs(ze.sourcePosition)&&Ve.containsPosition(ce.splitPosition)){const qe=Ve.end.offset-ce.splitPosition.offset,Ye=ce.splitPosition.offset-Ve.start.offset;this._setRelation(ce,ze,{howMany:qe,offset:Ye})}}}break;case st.a:switch(ze.constructor){case st.a:ce.targetPosition.isEqual(ze.sourcePosition)||this._setRelation(ce,ze,"mergeTargetNotMoved"),ce.sourcePosition.isEqual(ze.targetPosition)&&this._setRelation(ce,ze,"mergeSourceNotMoved"),ce.sourcePosition.isEqual(ze.sourcePosition)&&this._setRelation(ce,ze,"mergeSameElement");break;case mt.a:ce.sourcePosition.isEqual(ze.splitPosition)&&this._setRelation(ce,ze,"splitAtSource")}break;case Qe.a:{const Ve=ce.newRange;if(!Ve)return;switch(ze.constructor){case Xe.a:{const qe=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany),Ye=qe.containsPosition(Ve.start)||qe.start.isEqual(Ve.start),We=qe.containsPosition(Ve.end)||qe.end.isEqual(Ve.end);!Ye&&!We||qe.containsRange(Ve)||this._setRelation(ce,ze,{side:Ye?"left":"right",path:Ye?Ve.start.path.slice():Ve.end.path.slice()});break}case st.a:{const qe=Ve.start.isEqual(ze.targetPosition),Ye=Ve.start.isEqual(ze.deletionPosition),We=Ve.end.isEqual(ze.deletionPosition),Qe=Ve.end.isEqual(ze.sourcePosition);(qe||Ye||We||Qe)&&this._setRelation(ce,ze,{wasInLeftElement:qe,wasStartBeforeMergedElement:Ye,wasEndBeforeMergedElement:We,wasInRightElement:Qe});break}}break}}}getContext(ce,ze,Ve){return{aIsStrong:Ve,aWasUndone:this._wasUndone(ce),bWasUndone:this._wasUndone(ze),abRelation:this._useRelations?this._getRelation(ce,ze):null,baRelation:this._useRelations?this._getRelation(ze,ce):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(ce){const ze=this.originalOperations.get(ce);return ze.wasUndone||this._history.isUndoneOperation(ze)}_getRelation(ce,ze){const Ve=this.originalOperations.get(ze),qe=this._history.getUndoneOperation(Ve);if(!qe)return null;const Ye=this.originalOperations.get(ce),We=this._relations.get(Ye);return We&&We.get(qe)||null}_setRelation(ce,ze,Ve){const qe=this.originalOperations.get(ce),Ye=this.originalOperations.get(ze);let We=this._relations.get(qe);We||(We=new Map,this._relations.set(qe,We)),We.set(Ye,Ve)}}function updateBaseVersions(ce,ze){for(const Ve of ce)Ve.baseVersion=ze++}function padWithNoOps(ce,ze){for(let Ve=0;Ve{if(ce.key===ze.key&&ce.range.start.hasSameParentAs(ze.range.start)){const qe=ce.range.getDifference(ze.range).map((ze=>new Ye.a(ze,ce.key,ce.oldValue,ce.newValue,0))),We=ce.range.getIntersection(ze.range);return We&&Ve.aIsStrong&&qe.push(new Ye.a(We,ze.key,ze.newValue,ce.newValue,0)),0==qe.length?[new gt.a(0)]:qe}return[ce]})),setTransformation(Ye.a,qe.a,((ce,ze)=>{if(ce.range.start.hasSameParentAs(ze.position)&&ce.range.containsPosition(ze.position)){const Ve=ce.range._getTransformedByInsertion(ze.position,ze.howMany,!ze.shouldReceiveAttributes).map((ze=>new Ye.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion)));if(ze.shouldReceiveAttributes){const qe=_getComplementaryAttributeOperations(ze,ce.key,ce.oldValue);qe&&Ve.unshift(qe)}return Ve}return ce.range=ce.range._getTransformedByInsertion(ze.position,ze.howMany,!1)[0],[ce]})),setTransformation(Ye.a,st.a,((ce,ze)=>{const Ve=[];ce.range.start.hasSameParentAs(ze.deletionPosition)&&(ce.range.containsPosition(ze.deletionPosition)||ce.range.start.isEqual(ze.deletionPosition))&&Ve.push(yt.a._createFromPositionAndShift(ze.graveyardPosition,1));const qe=ce.range._getTransformedByMergeOperation(ze);return qe.isCollapsed||Ve.push(qe),Ve.map((ze=>new Ye.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion)))})),setTransformation(Ye.a,Xe.a,((ce,ze)=>_breakRangeByMoveOperation(ce.range,ze).map((ze=>new Ye.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion))))),setTransformation(Ye.a,mt.a,((ce,ze)=>{if(ce.range.end.isEqual(ze.insertionPosition))return ze.graveyardPosition||ce.range.end.offset++,[ce];if(ce.range.start.hasSameParentAs(ze.splitPosition)&&ce.range.containsPosition(ze.splitPosition)){const Ve=ce.clone();return Ve.range=new yt.a(ze.moveTargetPosition.clone(),ce.range.end._getCombined(ze.splitPosition,ze.moveTargetPosition)),ce.range.end=ze.splitPosition.clone(),ce.range.end.stickiness="toPrevious",[ce,Ve]}return ce.range=ce.range._getTransformedBySplitOperation(ze),[ce]})),setTransformation(qe.a,Ye.a,((ce,ze)=>{const Ve=[ce];if(ce.shouldReceiveAttributes&&ce.position.hasSameParentAs(ze.range.start)&&ze.range.containsPosition(ce.position)){const qe=_getComplementaryAttributeOperations(ce,ze.key,ze.newValue);qe&&Ve.push(qe)}return Ve})),setTransformation(qe.a,qe.a,((ce,ze,Ve)=>(ce.position.isEqual(ze.position)&&Ve.aIsStrong||(ce.position=ce.position._getTransformedByInsertOperation(ze)),[ce]))),setTransformation(qe.a,Xe.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMoveOperation(ze),[ce]))),setTransformation(qe.a,mt.a,((ce,ze)=>(ce.position=ce.position._getTransformedBySplitOperation(ze),[ce]))),setTransformation(qe.a,st.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMergeOperation(ze),[ce]))),setTransformation(Qe.a,qe.a,((ce,ze)=>(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedByInsertOperation(ze)[0]),ce.newRange&&(ce.newRange=ce.newRange._getTransformedByInsertOperation(ze)[0]),[ce]))),setTransformation(Qe.a,Qe.a,((ce,ze,Ve)=>{if(ce.name==ze.name){if(!Ve.aIsStrong)return[new gt.a(0)];ce.oldRange=ze.newRange?ze.newRange.clone():null}return[ce]})),setTransformation(Qe.a,st.a,((ce,ze)=>(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedByMergeOperation(ze)),ce.newRange&&(ce.newRange=ce.newRange._getTransformedByMergeOperation(ze)),[ce]))),setTransformation(Qe.a,Xe.a,((ce,ze,Ve)=>{if(ce.oldRange&&(ce.oldRange=yt.a._createFromRanges(ce.oldRange._getTransformedByMoveOperation(ze))),ce.newRange){if(Ve.abRelation){const qe=yt.a._createFromRanges(ce.newRange._getTransformedByMoveOperation(ze));if("left"==Ve.abRelation.side&&ze.targetPosition.isEqual(ce.newRange.start))return ce.newRange.start.path=Ve.abRelation.path,ce.newRange.end=qe.end,[ce];if("right"==Ve.abRelation.side&&ze.targetPosition.isEqual(ce.newRange.end))return ce.newRange.start=qe.start,ce.newRange.end.path=Ve.abRelation.path,[ce]}ce.newRange=yt.a._createFromRanges(ce.newRange._getTransformedByMoveOperation(ze))}return[ce]})),setTransformation(Qe.a,mt.a,((ce,ze,Ve)=>{if(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedBySplitOperation(ze)),ce.newRange){if(Ve.abRelation){const qe=ce.newRange._getTransformedBySplitOperation(ze);return ce.newRange.start.isEqual(ze.splitPosition)&&Ve.abRelation.wasStartBeforeMergedElement?ce.newRange.start=bt.a._createAt(ze.insertionPosition):ce.newRange.start.isEqual(ze.splitPosition)&&!Ve.abRelation.wasInLeftElement&&(ce.newRange.start=bt.a._createAt(ze.moveTargetPosition)),ce.newRange.end.isEqual(ze.splitPosition)&&Ve.abRelation.wasInRightElement?ce.newRange.end=bt.a._createAt(ze.moveTargetPosition):ce.newRange.end.isEqual(ze.splitPosition)&&Ve.abRelation.wasEndBeforeMergedElement?ce.newRange.end=bt.a._createAt(ze.insertionPosition):ce.newRange.end=qe.end,[ce]}ce.newRange=ce.newRange._getTransformedBySplitOperation(ze)}return[ce]})),setTransformation(st.a,qe.a,((ce,ze)=>(ce.sourcePosition.hasSameParentAs(ze.position)&&(ce.howMany+=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByInsertOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByInsertOperation(ze),[ce]))),setTransformation(st.a,st.a,((ce,ze,Ve)=>{if(ce.sourcePosition.isEqual(ze.sourcePosition)&&ce.targetPosition.isEqual(ze.targetPosition)){if(Ve.bWasUndone){const Ve=ze.graveyardPosition.path.slice();return Ve.push(0),ce.sourcePosition=new bt.a(ze.graveyardPosition.root,Ve),ce.howMany=0,[ce]}return[new gt.a(0)]}if(ce.sourcePosition.isEqual(ze.sourcePosition)&&!ce.targetPosition.isEqual(ze.targetPosition)&&!Ve.bWasUndone&&"splitAtSource"!=Ve.abRelation){const qe="$graveyard"==ce.targetPosition.root.rootName,Ye="$graveyard"==ze.targetPosition.root.rootName;if(Ye&&!qe||!(qe&&!Ye)&&Ve.aIsStrong){const Ve=ze.targetPosition._getTransformedByMergeOperation(ze),qe=ce.targetPosition._getTransformedByMergeOperation(ze);return[new Xe.a(Ve,ce.howMany,qe,0)]}return[new gt.a(0)]}return ce.sourcePosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByMergeOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),ce.graveyardPosition.isEqual(ze.graveyardPosition)&&Ve.aIsStrong||(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMergeOperation(ze)),[ce]})),setTransformation(st.a,Xe.a,((ce,ze,Ve)=>{const qe=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);return"remove"==ze.type&&!Ve.bWasUndone&&!Ve.forceWeakRemove&&ce.deletionPosition.hasSameParentAs(ze.sourcePosition)&&qe.containsPosition(ce.sourcePosition)?[new gt.a(0)]:(ce.sourcePosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.sourcePosition.hasSameParentAs(ze.sourcePosition)&&(ce.howMany-=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByMoveOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByMoveOperation(ze),ce.graveyardPosition.isEqual(ze.targetPosition)||(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMoveOperation(ze)),[ce])})),setTransformation(st.a,mt.a,((ce,ze,Ve)=>{if(ze.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedByDeletion(ze.graveyardPosition,1),ce.deletionPosition.isEqual(ze.graveyardPosition)&&(ce.howMany=ze.howMany)),ce.targetPosition.isEqual(ze.splitPosition)){const qe=0!=ze.howMany,Ye=ze.graveyardPosition&&ce.deletionPosition.isEqual(ze.graveyardPosition);if(qe||Ye||"mergeTargetNotMoved"==Ve.abRelation)return ce.sourcePosition=ce.sourcePosition._getTransformedBySplitOperation(ze),[ce]}if(ce.sourcePosition.isEqual(ze.splitPosition)){if("mergeSourceNotMoved"==Ve.abRelation)return ce.howMany=0,ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce];if("mergeSameElement"==Ve.abRelation||ce.sourcePosition.offset>0)return ce.sourcePosition=ze.moveTargetPosition.clone(),ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce]}return ce.sourcePosition.hasSameParentAs(ze.splitPosition)&&(ce.howMany=ze.splitPosition.offset),ce.sourcePosition=ce.sourcePosition._getTransformedBySplitOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce]})),setTransformation(Xe.a,qe.a,((ce,ze)=>{const Ve=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany)._getTransformedByInsertOperation(ze,!1)[0];return ce.sourcePosition=Ve.start,ce.howMany=Ve.end.offset-Ve.start.offset,ce.targetPosition.isEqual(ze.position)||(ce.targetPosition=ce.targetPosition._getTransformedByInsertOperation(ze)),[ce]})),setTransformation(Xe.a,Xe.a,((ce,ze,Ve)=>{const qe=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany),Ye=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);let We,Qe=Ve.aIsStrong,Xe=!Ve.aIsStrong;if("insertBefore"==Ve.abRelation||"insertAfter"==Ve.baRelation?Xe=!0:"insertAfter"!=Ve.abRelation&&"insertBefore"!=Ve.baRelation||(Xe=!1),We=ce.targetPosition.isEqual(ze.targetPosition)&&Xe?ce.targetPosition._getTransformedByDeletion(ze.sourcePosition,ze.howMany):ce.targetPosition._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_moveTargetIntoMovedRange(ce,ze)&&_moveTargetIntoMovedRange(ze,ce))return[ze.getReversed()];if(qe.containsPosition(ze.targetPosition)&&qe.containsRange(Ye,!0))return qe.start=qe.start._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),qe.end=qe.end._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_makeMoveOperationsFromRanges([qe],We);if(Ye.containsPosition(ce.targetPosition)&&Ye.containsRange(qe,!0))return qe.start=qe.start._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),qe.end=qe.end._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),_makeMoveOperationsFromRanges([qe],We);const ot=Object(vt.a)(ce.sourcePosition.getParentPath(),ze.sourcePosition.getParentPath());if("prefix"==ot||"extension"==ot)return qe.start=qe.start._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),qe.end=qe.end._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_makeMoveOperationsFromRanges([qe],We);"remove"!=ce.type||"remove"==ze.type||Ve.aWasUndone||Ve.forceWeakRemove?"remove"==ce.type||"remove"!=ze.type||Ve.bWasUndone||Ve.forceWeakRemove||(Qe=!1):Qe=!0;const st=[],mt=qe.getDifference(Ye);for(const ce of mt){ce.start=ce.start._getTransformedByDeletion(ze.sourcePosition,ze.howMany),ce.end=ce.end._getTransformedByDeletion(ze.sourcePosition,ze.howMany);const Ve="same"==Object(vt.a)(ce.start.getParentPath(),ze.getMovedRangeStart().getParentPath()),qe=ce._getTransformedByInsertion(ze.getMovedRangeStart(),ze.howMany,Ve);st.push(...qe)}const bt=qe.getIntersection(Ye);return null!==bt&&Qe&&(bt.start=bt.start._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),bt.end=bt.end._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),0===st.length?st.push(bt):1==st.length?Ye.start.isBefore(qe.start)||Ye.start.isEqual(qe.start)?st.unshift(bt):st.push(bt):st.splice(1,0,bt)),0===st.length?[new gt.a(ce.baseVersion)]:_makeMoveOperationsFromRanges(st,We)})),setTransformation(Xe.a,mt.a,((ce,ze,Ve)=>{let qe=ce.targetPosition.clone();ce.targetPosition.isEqual(ze.insertionPosition)&&ze.graveyardPosition&&"moveTargetAfter"!=Ve.abRelation||(qe=ce.targetPosition._getTransformedBySplitOperation(ze));const Ye=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany);if(Ye.end.isEqual(ze.insertionPosition))return ze.graveyardPosition||ce.howMany++,ce.targetPosition=qe,[ce];if(Ye.start.hasSameParentAs(ze.splitPosition)&&Ye.containsPosition(ze.splitPosition)){let ce=new yt.a(ze.splitPosition,Ye.end);ce=ce._getTransformedBySplitOperation(ze);return _makeMoveOperationsFromRanges([new yt.a(Ye.start,ze.splitPosition),ce],qe)}ce.targetPosition.isEqual(ze.splitPosition)&&"insertAtSource"==Ve.abRelation&&(qe=ze.moveTargetPosition),ce.targetPosition.isEqual(ze.insertionPosition)&&"insertBetween"==Ve.abRelation&&(qe=ce.targetPosition);const We=[Ye._getTransformedBySplitOperation(ze)];if(ze.graveyardPosition){const qe=Ye.start.isEqual(ze.graveyardPosition)||Ye.containsPosition(ze.graveyardPosition);ce.howMany>1&&qe&&!Ve.aWasUndone&&We.push(yt.a._createFromPositionAndShift(ze.insertionPosition,1))}return _makeMoveOperationsFromRanges(We,qe)})),setTransformation(Xe.a,st.a,((ce,ze,Ve)=>{const qe=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany);if(ze.deletionPosition.hasSameParentAs(ce.sourcePosition)&&qe.containsPosition(ze.sourcePosition))if("remove"!=ce.type||Ve.forceWeakRemove){if(1==ce.howMany)return Ve.bWasUndone?(ce.sourcePosition=ze.graveyardPosition.clone(),ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),[ce]):[new gt.a(0)]}else if(!Ve.aWasUndone){const Ve=[];let qe=ze.graveyardPosition.clone(),Ye=ze.targetPosition._getTransformedByMergeOperation(ze);ce.howMany>1&&(Ve.push(new Xe.a(ce.sourcePosition,ce.howMany-1,ce.targetPosition,0)),qe=qe._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany-1),Ye=Ye._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany-1));const We=ze.deletionPosition._getCombined(ce.sourcePosition,ce.targetPosition),Qe=new Xe.a(qe,1,We,0),ot=Qe.getMovedRangeStart().path.slice();ot.push(0);const st=new bt.a(Qe.targetPosition.root,ot);Ye=Ye._getTransformedByMove(qe,We,1);const mt=new Xe.a(Ye,ze.howMany,st,0);return Ve.push(Qe),Ve.push(mt),Ve}const Ye=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany)._getTransformedByMergeOperation(ze);return ce.sourcePosition=Ye.start,ce.howMany=Ye.end.offset-Ye.start.offset,ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),[ce]})),setTransformation(We.a,qe.a,((ce,ze)=>(ce.position=ce.position._getTransformedByInsertOperation(ze),[ce]))),setTransformation(We.a,st.a,((ce,ze)=>ce.position.isEqual(ze.deletionPosition)?(ce.position=ze.graveyardPosition.clone(),ce.position.stickiness="toNext",[ce]):(ce.position=ce.position._getTransformedByMergeOperation(ze),[ce]))),setTransformation(We.a,Xe.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMoveOperation(ze),[ce]))),setTransformation(We.a,We.a,((ce,ze,Ve)=>{if(ce.position.isEqual(ze.position)){if(!Ve.aIsStrong)return[new gt.a(0)];ce.oldName=ze.newName}return[ce]})),setTransformation(We.a,mt.a,((ce,ze)=>{const Ve=ce.position.path,qe=ze.splitPosition.getParentPath();if("same"==Object(vt.a)(Ve,qe)&&!ze.graveyardPosition){const ze=new We.a(ce.position.getShiftedBy(1),ce.oldName,ce.newName,0);return[ce,ze]}return ce.position=ce.position._getTransformedBySplitOperation(ze),[ce]})),setTransformation(ot.a,ot.a,((ce,ze,Ve)=>{if(ce.root===ze.root&&ce.key===ze.key){if(!Ve.aIsStrong||ce.newValue===ze.newValue)return[new gt.a(0)];ce.oldValue=ze.newValue}return[ce]})),setTransformation(mt.a,qe.a,((ce,ze)=>(ce.splitPosition.hasSameParentAs(ze.position)&&ce.splitPosition.offset{if(!ce.graveyardPosition&&!Ve.bWasUndone&&ce.splitPosition.hasSameParentAs(ze.sourcePosition)){const Ve=ze.graveyardPosition.path.slice();Ve.push(0);const qe=new bt.a(ze.graveyardPosition.root,Ve),Ye=mt.a.getInsertionPosition(new bt.a(ze.graveyardPosition.root,Ve)),We=new mt.a(qe,0,Ye,null,0);return ce.splitPosition=ce.splitPosition._getTransformedByMergeOperation(ze),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),ce.graveyardPosition=We.insertionPosition.clone(),ce.graveyardPosition.stickiness="toNext",[We,ce]}return ce.splitPosition.hasSameParentAs(ze.deletionPosition)&&!ce.splitPosition.isAfter(ze.deletionPosition)&&ce.howMany--,ce.splitPosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.splitPosition=ce.splitPosition._getTransformedByMergeOperation(ze),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),ce.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMergeOperation(ze)),[ce]})),setTransformation(mt.a,Xe.a,((ce,ze,Ve)=>{const qe=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);if(ce.graveyardPosition){const Ye=qe.start.isEqual(ce.graveyardPosition)||qe.containsPosition(ce.graveyardPosition);if(!Ve.bWasUndone&&Ye){const Ve=ce.splitPosition._getTransformedByMoveOperation(ze),qe=ce.graveyardPosition._getTransformedByMoveOperation(ze),Ye=qe.path.slice();Ye.push(0);const We=new bt.a(qe.root,Ye);return[new Xe.a(Ve,ce.howMany,We,0)]}ce.graveyardPosition=ce.graveyardPosition._getTransformedByMoveOperation(ze)}const Ye=ce.splitPosition.isEqual(ze.targetPosition);if(Ye&&("insertAtSource"==Ve.baRelation||"splitBefore"==Ve.abRelation))return ce.howMany+=ze.howMany,ce.splitPosition=ce.splitPosition._getTransformedByDeletion(ze.sourcePosition,ze.howMany),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),[ce];if(Ye&&Ve.abRelation&&Ve.abRelation.howMany){const{howMany:ze,offset:qe}=Ve.abRelation;return ce.howMany+=ze,ce.splitPosition=ce.splitPosition.getShiftedBy(qe),[ce]}if(ce.splitPosition.hasSameParentAs(ze.sourcePosition)&&qe.containsPosition(ce.splitPosition)){const Ve=ze.howMany-(ce.splitPosition.offset-ze.sourcePosition.offset);return ce.howMany-=Ve,ce.splitPosition.hasSameParentAs(ze.targetPosition)&&ce.splitPosition.offset{if(ce.splitPosition.isEqual(ze.splitPosition)){if(!ce.graveyardPosition&&!ze.graveyardPosition)return[new gt.a(0)];if(ce.graveyardPosition&&ze.graveyardPosition&&ce.graveyardPosition.isEqual(ze.graveyardPosition))return[new gt.a(0)];if("splitBefore"==Ve.abRelation)return ce.howMany=0,ce.graveyardPosition=ce.graveyardPosition._getTransformedBySplitOperation(ze),[ce]}if(ce.graveyardPosition&&ze.graveyardPosition&&ce.graveyardPosition.isEqual(ze.graveyardPosition)){const qe="$graveyard"==ce.splitPosition.root.rootName,Ye="$graveyard"==ze.splitPosition.root.rootName;if(Ye&&!qe||!(qe&&!Ye)&&Ve.aIsStrong){const Ve=[];return ze.howMany&&Ve.push(new Xe.a(ze.moveTargetPosition,ze.howMany,ze.splitPosition,0)),ce.howMany&&Ve.push(new Xe.a(ce.splitPosition,ce.howMany,ce.moveTargetPosition,0)),Ve}return[new gt.a(0)]}if(ce.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedBySplitOperation(ze)),ce.splitPosition.isEqual(ze.insertionPosition)&&"splitBefore"==Ve.abRelation)return ce.howMany++,[ce];if(ze.splitPosition.isEqual(ce.insertionPosition)&&"splitBefore"==Ve.baRelation){const Ve=ze.insertionPosition.path.slice();Ve.push(0);const qe=new bt.a(ze.insertionPosition.root,Ve);return[ce,new Xe.a(ce.insertionPosition,1,qe,0)]}return ce.splitPosition.hasSameParentAs(ze.splitPosition)&&ce.splitPosition.offset{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe,accept:Xe}=this.props;return Ye.a.createElement(We.a,{accept:Xe,onDrop:this.handleDrop,style:{}},(We=>{let{getInputProps:Xe,getRootProps:ot}=We;return Ye.a.createElement("div",ot(),Ye.a.createElement(Qe.default,{disabled:ze,icon:Ve,skin:qe},ce),Ye.a.createElement("input",Xe()))}))}}Xe.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0}},function(ce,ze,Ve){"use strict";var qe=Ve(542);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=(Ve(34),Ve(314));let mt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.collectionId=Xe.observable.box(),this.handleConfirm=()=>{if(this.mediaListStore.selections.length>1)throw new Error("The SingleMediaSelectionOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.mediaListStore.selections[0])};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,this.props.locale,this.props.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,this.props.locale),this.mediaSelectionDisposer=Object(Xe.autorun)((()=>{const{selections:ce}=this.mediaListStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.mediaListStore.clearSelection(),this.mediaListStore.select(ze))}))}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer(),this.mediaSelectionDisposer()}render(){const{onClose:ce,open:ze,locale:Ve}=this.props;return Qe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,locale:Ve,mediaListStore:this.mediaListStore,onClose:ce,onConfirm:this.handleConfirm,open:ze})}}).defaultProps={excludedIds:[],types:[]},qe=Ye))||qe;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=(Ve(34),Ve(314));let mt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.collectionId=Xe.observable.box();const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:qe,locale:Ye}=this.props;return Qe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:Ye,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:qe})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},qe=Ye))||qe;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Ri}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(17),ot=Ve(47),st={light:"light--RlWM5NSS-U",active:"active--KeNoYGQKds",dark:"dark--C2Im7zZLsa",button:"button--V+xZsHKyYX",small:"small--PcUjah8LCm","dropdown-icon":"dropdown-icon--Y7uc9Z0hv0",dropdownIcon:"dropdown-icon--Y7uc9Z0hv0",primary:"primary--Jn43Vsblhy",success:"success--diwhEqIyOt",icon:"icon--ceCe2Gi73l",label:"label--ZktA6sjT+v",loader:"loader--z2ucGsHrnq"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:qe,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Qe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return Ye.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},qe&&Ye.a.createElement(ot.a,{className:st.loader,size:20}),mt&&Ye.a.createElement(Xe.default,{className:st.icon,name:mt}),Dt&&bt&&Ye.a.createElement("span",{className:st.label},Dt),We&&Ye.a.createElement(Xe.default,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--4EMi2VW-WS",grow:"grow--w4vxGm9yga"};class yt extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>{if(ce)return Ye.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,qe=Qe()(gt.controls,gt[Ve],{[gt.grow]:ze});return Ye.a.createElement("div",{className:qe},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(115),Lt={popover:"popover--b48he05fCH","content-container":"content-container--A2p7SeCG21",contentContainer:"content-container--A2p7SeCG21",light:"light--3-2q6T2JGz",dark:"dark--R27tTjGo0N"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ft=Object(Et.b)((xt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:qe,skin:We,label:Xe,disabled:ot,loading:st,showText:gt}=this.props,yt=Qe()(ze,Lt.popover,{[Lt[qe]]:qe});return Ye.a.createElement("div",{className:yt},Ye.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Xe:void 0,loading:st,onClick:this.handleButtonClick,size:qe,skin:We}),Ye.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>Ye.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},Ye.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Vt={light:"light--pfGO9UO4u9",dark:"dark--LLjZXfMP9P",option:"option--1+2J0uR+ey","is-selected":"is-selected--BoWs4PVIZk",isSelected:"is-selected--BoWs4PVIZk",small:"small--+hHC3-Nc+T","selected-icon":"selected-icon--JGOgvZh-iG",selectedIcon:"selected-icon--JGOgvZh-iG"};class Ht extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:qe,disabled:We}=this.props,ot=Qe()(Vt.option,Vt[ce],{[Vt[ze]]:ze,[Vt.isSelected]:qe});return Ye.a.createElement("li",{className:ot},Ye.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},qe&&Ye.a.createElement(Xe.default,{className:Vt.selectedIcon,name:"su-check"}),Ve))}}var Ut,Wt,Jt={light:"light--NR1zTte7mu",dark:"dark---8NLXntZTC","option-list":"option-list--Kt2Hk4px+q",optionList:"option-list--Kt2Hk4px+q","is-open":"is-open--8bcKr2FlXo",isOpen:"is-open--8bcKr2FlXo",small:"small--x1qAtIX+G0"};class Qt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:qe}=this.props,We=Qe()(Jt.optionList,Jt[qe],{[Jt[ce]]:ce});return Ye.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Qe=!!Ve.value&&Ve.value===ze;return Ye.a.createElement(Ht,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Qe,size:ce,skin:qe,value:Ve})})))}}let en=Object(Et.b)((Wt=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:qe,options:We,disabled:Qe,loading:Xe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return Ye.a.createElement(Bt,{disabled:Qe||st,icon:ce,label:ot?qe:void 0,loading:Xe,size:ze,skin:Ve},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Wt.defaultProps={showText:!0},Ut=Wt))||Ut;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(51),En=Ve.n(Sn),Tn={light:"light--SR-6YDnCbf",dark:"dark--fDE3tqu8Zx","items-container":"items-container--tS7sXB+nqe",itemsContainer:"items-container--tS7sXB+nqe",items:"items--XKvcDe-5BO"};function Items_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ln=Object(Et.b)((wn=class extends Ye.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Tn.items,Tn[ce]);return Ye.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},Ye.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&Ye.a.Children.map(ze,((ze,Ve)=>ze&&Ye.a.createElement("li",{key:Ve},Ye.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--3N4jj1g8-Y",light:"light--KfGP2y2UTW",dark:"dark--BYCjm3o9yl",controls:"controls--7b9MBVKVZD",icons:"icons--CNkRj+Hk23",icon:"icon--zH-1jvsvLh"};class Un extends Ye.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Qe()(Yn.icons,Yn[ce]);return Ye.a.createElement("div",{className:Ve},Ye.a.Children.map(ze,(ce=>Ye.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Gn,Kn,Jn,Zn=Ve(150);class Xn extends Ye.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:qe,skin:We,value:Qe}=this.props;return Ye.a.createElement(mt,{disabled:ce,loading:Ve,onClick:qe,skin:We},Ye.a.createElement(Zn.default,{checked:Qe,onChange:qe},ze))}}let ei=Object(Et.b)((Jn=class extends Ye.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:qe,loading:We,options:Qe,showText:Xe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:qe;return Ye.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Xe?gt:void 0,loading:We,size:ot,skin:st},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Qe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Kn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Kn.prototype,"selectedOption"),Kn.prototype),Gn=Kn))||Gn;var si=ei,_i={toolbar:"toolbar--Gb3BCeBmFq",light:"light--sNFN8bDZn3",dark:"dark--EkQS9wrF+1",controls:"controls--7wzmI2S0uj"};class Ri extends Ye.a.PureComponent{static createChildren(ce,ze){return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Qe()(_i.toolbar,_i[ze]);return Ye.a.createElement("nav",{className:Ve},Ri.createChildren(ce,ze))}}Ri.defaultProps={skin:"light"},Ri.Button=mt,Ri.Controls=yt,Ri.Dropdown=Cn,Ri.Icons=Un,Ri.Items=Fn,Ri.Popover=Bt,Ri.Select=si,Ri.Toggler=Xn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return go}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(9),Qe=Ve.n(We),Xe=Ve(693),ot=Ve(698),st=Ve(699),mt=Ve(688),gt=Ve(690),yt=Ve(700),bt=Ve(691),vt=Ve(372),wt=Ve(701),Ct=Ve(702),Dt=Ve(703),kt=Ve(704),St=Ve(694),xt=Ve(687),Et=Ve(713),Pt=Ve(15),Tt=Ve(3),Lt=Ve(1),Ft=Ve(31),Bt=Ve(52),Vt=Ve(138),Ht=Ve(219),Ut=Ve(44),Wt=Ve(12);function addLinkConversion(ce,ze,Ve,qe){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[qe]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(qe)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:Ye}=Ve;return Ye.createAttributeElement(ze,{[qe]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(29);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"link"),Ve.push(qe);const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"unlink"),Ve.push(Ye),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(80);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const qe=ce[this.attributeMap[Ve]];return qe?(ze[Ve]=qe,ze):ze}),{});Ve.provider=ce.provider;const{selection:qe}=ce,Ye=qe?qe.getFirstPosition():void 0,We=Ye?Ye.textNode||Ye.nodeBefore:void 0;if(qe&&!qe.isCollapsed)for(const ce of qe.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const qe=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(qe)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(653);var mn=Ve(97),gn=Ve(72),bn=Ve(38),wn=Ve(35);Ye.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn=Ve(150),Zn=Ve(665),Xn=Ve(359);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ei,si,_i,Ri,Ci,Di,Ei,Oi,Ti,er,tr,nr,rr=Object(Tt.b)((Sn=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:qe,href:Ye}=this;if(!Ye)return void ze(void 0);const We=new URLSearchParams;Ye.startsWith("mailto:")&&(ce&&ce("_self"),qe&&We.set("subject",qe),Ve&&We.set("body",Ve)),ze(Ye+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Gn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Kn,this),this.handleRelNoFollowChange=ce=>{const{onRelChange:ze,rel:Ve}=this.props;if(!ze)return;let qe=(Ve||"").toLowerCase().trim().split(" ").map((ce=>ce.trim())).filter((ce=>!!ce));ce&&!qe.includes("nofollow")?qe=[...qe,"nofollow"]:!ce&&qe.includes("nofollow")&&(qe=qe.filter((ce=>"nofollow"!==ce)));const Ye=qe.join(" ")||void 0;Ve!==Ye&&ze(Ye)},this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),qe=Ve.get("subject"),Ye=Ve.get("body");return this.href=ze[0],this.mailSubject=qe||void 0,void(this.mailBody=Ye||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}get isRelNoFollow(){const{rel:ce}=this.props;return!!ce&&ce.toLowerCase().includes("nofollow")}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,onRelChange:Qe,open:Xe,target:ot,title:st,href:mt}=this.props;return Ye.a.createElement(mn.a,{cancelText:Object(Wt.d)("sulu_admin.cancel"),confirmDisabled:!mt,confirmText:Object(Wt.d)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Wt.d)("sulu_admin.link")},Ye.a.createElement(gn.a,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.d)("sulu_admin.link_url"),required:!0},Ye.a.createElement(Xn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.d)("sulu_admin.link_target"),required:!0},Ye.a.createElement(wn.a,{onChange:Ve,value:ot},Ye.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),Ye.a.createElement(wn.a.Option,{value:"_self"},"_self"),Ye.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),Ye.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(gn.a.Field,{label:Object(Wt.d)("sulu_admin.mail_subject")},Ye.a.createElement(bn.default,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),Ye.a.createElement(gn.a.Field,{label:Object(Wt.d)("sulu_admin.mail_body")},Ye.a.createElement(Zn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&Ye.a.createElement(gn.a.Field,{label:Object(Wt.d)("sulu_admin.link_title")},Ye.a.createElement(bn.default,{onChange:We,value:st})),Qe&&Ye.a.createElement(gn.a.Field,null,Ye.a.createElement(Jn.default,{checked:this.isRelNoFollow,onChange:this.handleRelNoFollowChange},Object(Wt.d)("sulu_admin.no_follow")))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),_applyDecoratedDescriptor(Sn.prototype,"isRelNoFollow",[Lt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"isRelNoFollow"),Sn.prototype),Cn=Sn))||Cn,ar=Ve(157);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const sr="_self",lr="target",dr="title",ur="url",pr="rel",vr="externalLinkHref",_r="externalLinkTarget",Rr="externalLinkTitle",Cr="externalLinkRel",Dr="a";let Er=(ei=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",si,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",_i,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",Ri,this),ExternalLinkPlugin_initializerDefineProperty(this,"rel",Ci,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",Di,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Ei,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Oi,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Ti,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleRelChange",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",nr,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(_r),this.title=ce.getAttribute(Rr),this.url=ce.getAttribute(vr),this.rel=ce.getAttribute(Cr),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(rr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onRelChange:this.handleRelChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,rel:this.rel,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[vr]:ur,[_r]:lr,[Rr]:dr,[Cr]:"rel"},ur)),this.editor.commands.add("externalUnlink",new ln(this.editor,[vr,_r,Rr,Cr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Wt.d)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=sr,this.title=void 0,this.url=void 0,this.rel=void 0}))),ze})),addLinkConversion(this.editor,Dr,_r,"target"),addLinkConversion(this.editor,Dr,vr,"href"),addLinkConversion(this.editor,Dr,Rr,"title"),addLinkConversion(this.editor,Dr,Cr,"rel");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Dr);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},si=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return sr}}),Ri=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ci=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"rel",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Di=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[lr]:this.target,[dr]:this.title,[ur]:this.url,[pr]:this.rel}),this.open=!1}}}),Oi=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ti=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),er=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleRelChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.rel=ce}}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(ei.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),ei);var Tr,Ar,Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr,Yr,Ur,Wr=Er,$r=Ve(295),Gr=Ve(287),Kr=Ve(195);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Jr="_self",Zr="target",ga="href",ya="provider",ba="title",va="defaultText",_a="internalLinkHref",wa="internalLinkTarget",ka="internalLinkProvider",xa="internalLinkTitle",Aa="validationState",Ba="sulu-link";let Ja=(Tr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",Ar,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Mr,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Lr,this),InternalLinkPlugin_initializerDefineProperty(this,"title",jr,this),InternalLinkPlugin_initializerDefineProperty(this,"query",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleQueryChange",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",Ur,this)}get internalLinkTypes(){return ar.a.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,query:ze,anchor:Ve}=this;if(!ce)return null;let qe="";return ze&&(qe+="?"+ze.replace(/^\?+/g,"")),Ve&&(qe+="#"+Ve.replace(/^#+/g,"")),ce+qe}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Vt.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{var ce;this.selection=this.editor.model.document.selection;const ze=findModelItemInSelection(this.editor);let Ve=ze.getAttribute(_a).split("#",2);const qe=Ve[1]||null;Ve=null===(ce=Ve[0])||void 0===ce?void 0:ce.split("?",2);const Ye=Ve[0]||null,We=Ve[1]||null;this.id=isNaN(Ye)?Ye:parseInt(Ye),this.anchor=qe,this.query=We,this.target=ze.getAttribute(wa),this.title=ze.getAttribute(xa),this.openOverlay=ze.getAttribute(ka),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Ut.render)(Ye.a.createElement(Tt.a,null,(()=>Ye.a.createElement(qe.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=ar.a.getOverlay(ze);return Ye.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onQueryChange:this.handleQueryChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:ar.a.getOptions(ze),query:this.query,target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[_a]:ga,[wa]:Zr,[xa]:ba,[ka]:ya},va)),this.editor.commands.add("internalUnlink",new ln(this.editor,[wa,xa,_a,Aa,ka])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Kr.c)(ce),Ve=new $r.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Wt.d)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const qe=new Bt.a(ce);qe.set({class:"ck-link-button",label:ar.a.getTitle(ze),withText:!0});const Ye=new Gr.a(ce);Ye.children.add(qe),qe.delegate("execute").to(Ye),qe.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=Jr,this.title=void 0,this.id=void 0,this.query=void 0,this.anchor=void 0}))),Ve.items.add(Ye)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,Ba,Aa,"sulu-validation-state"),addLinkConversion(this.editor,Ba,ka,"provider"),addLinkConversion(this.editor,Ba,wa,"target"),addLinkConversion(this.editor,Ba,xa,"title"),addLinkConversion(this.editor,Ba,_a,"href");const ze=this.editor.editing.view;ze.addObserver(Ht.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Ut.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},Ar=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Jr}}),Lr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),jr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"query",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"internalLinkTypes"),Tr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"href"),Tr.prototype),Br=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[ga]:this.href,[ya]:this.openOverlay,selection:this.selection,[Zr]:this.target,[ba]:this.title,[va]:this.defaultText}),this.openOverlay=void 0}}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleQueryChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Tr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Tr);var io=Ja,po=Ve(525),ho=Ve(526);class go extends Ye.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;ze?(this.editorInstance.ui.element.classList.add("disabled"),this.editorInstance.enableReadOnlyMode("disabled")):(this.editorInstance.ui.element.classList.remove("disabled"),this.editorInstance.disableReadOnlyMode("disabled"));const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Xe.a,ot.a,mt.a,Wr,gt.a,io,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ho.a.plugins],...po.a.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:qe}=this.props,{model:{document:Ye},editing:{view:{document:We}}}=this.editorInstance;ze&&(this.editorInstance.enableReadOnlyMode("disabled"),this.editorInstance.ui.element.classList.add("disabled")),Ve&&We.on("blur",(()=>{Ve()})),qe&&Ye.on("change",(()=>{Ye.differ.getChanges().length>0&&qe(this.getEditorData())}))})).catch((ce=>{Qe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return Ye.a.createElement("div",{ref:this.setContainerRef})}}go.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(5),vt=Ve.n(bt),wt=Ve(3),Ct=Ve(1),Dt=Ve(9),kt=Ve.n(Dt),St=Ve(17),xt=Ve(35),Et=Ve(12),Pt="block--N-s4-cy2Ll",Tt="expanded--9Uv8k3lGCn",Lt="children--7CyPGqGxg3",Ft="header--MV0GfEblf4",Bt="icons--6xwVzkUEhZ",Vt="selected--qjEa0Ftwzt",Ht="handle--rOMjWh0s64",Ut="content--xnSiW+4WPv",Wt="types--s9wJ4JVSr1",Jt="type--jJkUHtblos",Qt="icon-buttons--SyjnKLnXij",en=(Ve(65),Ve(217),Ve(560).default,Ve(33),Ve(356),Ve(87),Ve(547).default,Ve(624).default,Ve(194),Ve(328),Ve(97),Ve(503),Ve(773),Ve(509),Ve(527).default,Ve(72),Ve(357),Ve(163),Ve(508),Ve(625).default,Ve(626).default,Ve(38),Ve(47),Ve(627).default,Ve(550).default,Ve(278)),rn=(Ve(299),Ve(197),Ve(385),Ve(358),Ve(128),Ve(512),Ve(115)),ln=(Ve(172),Ve(514),Ve(528),Ve(516),Ve(93),Ve(548).default,Ve(150),Ve(144),Ve(359),Ve(291),"icon--mSV1zuA5Hz"),mn="action--l1Mms4MZ3g";class gn extends yt.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{icon:ce,index:ze,label:Ve}=this.props;return yt.a.createElement("li",{key:ze},yt.a.createElement("button",{className:mn,onClick:this.handleClick,type:"button"},yt.a.createElement(St.default,{className:ln,name:ce}),Ve))}}class bn extends yt.a.PureComponent{constructor(){super(...arguments),this.handleActionClick=ce=>{const{actions:ze,onClose:Ve}=this.props,qe=ze[ce];if("divider"===qe.type)throw new Error("Divider actions cannot be clicked! This should not happen and is likely a bug.");qe.onClick(),Ve()}}render(){const{open:ce,onClose:ze,anchorElement:Ve}=this.props;return yt.a.createElement(rn.a,{anchorElement:Ve,onClose:ze,open:ce,verticalOffset:5},((ce,ze)=>yt.a.createElement(en.default,{menuRef:ce,style:ze},this.props.actions.map(((ce,ze)=>"divider"===ce.type?yt.a.createElement(en.default.Divider,{key:ze}):yt.a.createElement(gn,{icon:ce.icon,index:ze,key:ze,label:ce.label,onClick:this.handleActionClick}))))))}}function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let wn=Object(wt.b)((mt=class extends yt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"actionsButtonRef",We,this),_initializerDefineProperty(this,"showActionsPopover",Qe,this),_initializerDefineProperty(this,"setActionsButtonRef",Xe,this),_initializerDefineProperty(this,"handleActionsButtonClick",ot,this),_initializerDefineProperty(this,"handleActionsPopoverClose",st,this),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}get actions(){const{onRemove:ce,actions:ze}=this.props;return ce?(kt.a.warn('The "onRemove" prop of the "Block" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(Et.d)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{activeType:ce,children:ze,handle:Ve,icons:qe,onCollapse:Ye,onExpand:We,onSettingsClick:Qe,selected:Xe,types:ot}=this.props,st=this.props.expanded||!Ye&&!We,mt=vt()(Pt,{[Tt]:st,[Vt]:Xe});return yt.a.createElement("section",{className:mt,onClick:this.handleExpand,role:"switch"},Ve&&yt.a.createElement("div",{className:Ht},Ve),yt.a.createElement("div",{className:Ut},yt.a.createElement("header",{className:Ft},st?yt.a.createElement(gt.Fragment,null,ot&&Object.keys(ot).length>1&&yt.a.createElement("div",{className:Wt},yt.a.createElement(xt.a,{onChange:this.handleTypeChange,value:ce},Object.keys(ot).map((ce=>yt.a.createElement(xt.a.Option,{key:ce,value:ce},ot[ce]))))),qe&&yt.a.createElement("div",{className:Bt},qe.map((ce=>yt.a.createElement(St.default,{key:ce,name:ce})))),yt.a.createElement("div",{className:Qt},this.actions.length>0&&yt.a.createElement("button",{onClick:this.handleActionsButtonClick,ref:this.setActionsButtonRef,type:"button"},yt.a.createElement(St.default,{name:"su-more-circle"})),Qe&&yt.a.createElement("button",{onClick:Qe,type:"button"},yt.a.createElement(St.default,{name:"su-cog"})),Ye&&We&&yt.a.createElement("button",{onClick:this.handleCollapse,type:"button"},yt.a.createElement(St.default,{name:"su-collapse-vertical"}))),yt.a.createElement(bn,{actions:this.actions,anchorElement:this.actionsButtonRef,onClose:this.handleActionsPopoverClose,open:this.showActionsPopover})):yt.a.createElement(gt.Fragment,null,qe&&yt.a.createElement("div",{className:Bt},qe.map((ce=>yt.a.createElement(St.default,{key:ce,name:ce})))),ot&&ce&&yt.a.createElement("div",{className:Jt},ot[ce]),Ye&&We&&yt.a.createElement(St.default,{name:"su-expand-vertical"}))),yt.a.createElement("article",{className:Lt},ze)))}},mt.defaultProps={actions:[],expanded:!1,selected:!1},We=_applyDecoratedDescriptor((Ye=mt).prototype,"actionsButtonRef",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showActionsPopover",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"actions",[Ct.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"actions"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"setActionsButtonRef",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.actionsButtonRef=ce}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleActionsButtonClick",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!0}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleActionsPopoverClose",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showActionsPopover=!1}}}),qe=Ye))||qe;ze.default=wn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Gn}));var qe=Ve(8);class Ye{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof ce&&(ce="transparent"===ce?{isUndoable:!1}:{},Object(qe.b)("batch-constructor-deprecated-string-type"));const{isUndoable:ze=!0,isLocal:Ve=!0,isUndo:Ye=!1,isTyping:We=!1}=ce;this.operations=[],this.isUndoable=ze,this.isLocal=Ve,this.isUndo=Ye,this.isTyping=We}get type(){return Object(qe.b)("batch-type-deprecated"),"default"}get baseVersion(){for(const ce of this.operations)if(null!==ce.baseVersion)return ce.baseVersion;return null}addOperation(ce){return ce.batch=this,this.operations.push(ce),ce}}var We=Ve(110),Qe=Ve(100),Xe=Ve(16),ot=Ve(135);class st extends Qe.a{constructor(ce,ze){super(null),this.sourcePosition=ce.clone(),this.howMany=ze}get type(){return"detach"}toJSON(){const ce=super.toJSON();return ce.sourcePosition=this.sourcePosition.toJSON(),ce}_validate(){if(this.sourcePosition.root.document)throw new qe.a("detach-operation-on-document-node",this)}_execute(){Object(ot.d)(Xe.a._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}var mt=Ve(109),gt=Ve(142),yt=Ve(67),bt=Ve(167),vt=Ve(310),wt=Ve(75),Ct=Ve(95),Dt=Ve(203),kt=Ve(64),St=Ve(57);class xt extends St.a{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";super(ze),this._document=ce,this.rootName=Ve}get document(){return this._document}is(ce,ze){return ze?ze===this.name&&("rootElement"===ce||"model:rootElement"===ce||"element"===ce||"model:element"===ce):"rootElement"===ce||"model:rootElement"===ce||"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}toJSON(){return this.rootName}}var Et=Ve(20),Pt=Ve(119),Tt=Ve(165);class Lt{constructor(ce,ze){this.model=ce,this.batch=ze}createText(ce,ze){return new kt.a(ce,ze)}createElement(ce,ze){return new St.a(ce,ze)}createDocumentFragment(){return new Dt.a}cloneElement(ce){let ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce._clone(ze)}insert(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),ce instanceof kt.a&&""==ce.data)return;const Ye=Et.a._createAt(ze,Ve);if(ce.parent){if(isSameTree(ce.root,Ye.root))return void this.move(Xe.a._createOn(ce),Ye);if(ce.root.document)throw new qe.a("model-writer-insert-forbidden-move",this);this.remove(ce)}const We=Ye.root.document?Ye.root.document.version:null,Qe=new mt.a(Ye,ce,We);if(ce instanceof kt.a&&(Qe.shouldReceiveAttributes=!0),this.batch.addOperation(Qe),this.model.applyOperation(Qe),ce instanceof Dt.a)for(const[ze,Ve]of ce.markers){const ce=Et.a._createAt(Ve.root,0),qe={range:new Xe.a(Ve.start._getCombined(ce,Ye),Ve.end._getCombined(ce,Ye)),usingOperation:!0,affectsData:!0};this.model.markers.has(ze)?this.updateMarker(ze,qe):this.addMarker(ze,qe)}}insertText(ce,ze,Ve,qe){ze instanceof Dt.a||ze instanceof St.a||ze instanceof Et.a?this.insert(this.createText(ce),ze,Ve):this.insert(this.createText(ce,ze),Ve,qe)}insertElement(ce,ze,Ve,qe){ze instanceof Dt.a||ze instanceof St.a||ze instanceof Et.a?this.insert(this.createElement(ce),ze,Ve):this.insert(this.createElement(ce,ze),Ve,qe)}append(ce,ze){this.insert(ce,ze,"end")}appendText(ce,ze,Ve){ze instanceof Dt.a||ze instanceof St.a?this.insert(this.createText(ce),ze,"end"):this.insert(this.createText(ce,ze),Ve,"end")}appendElement(ce,ze,Ve){ze instanceof Dt.a||ze instanceof St.a?this.insert(this.createElement(ce),ze,"end"):this.insert(this.createElement(ce,ze),Ve,"end")}setAttribute(ce,ze,Ve){if(this._assertWriterUsedCorrectly(),Ve instanceof Xe.a){const qe=Ve.getMinimalFlatRanges();for(const Ve of qe)setAttributeOnRange(this,ce,ze,Ve)}else setAttributeOnItem(this,ce,ze,Ve)}setAttributes(ce,ze){for(const[Ve,qe]of Object(Tt.a)(ce))this.setAttribute(Ve,qe,ze)}removeAttribute(ce,ze){if(this._assertWriterUsedCorrectly(),ze instanceof Xe.a){const Ve=ze.getMinimalFlatRanges();for(const ze of Ve)setAttributeOnRange(this,ce,null,ze)}else setAttributeOnItem(this,ce,null,ze)}clearAttributes(ce){this._assertWriterUsedCorrectly();const removeAttributesFromItem=ce=>{for(const ze of ce.getAttributeKeys())this.removeAttribute(ze,ce)};if(ce instanceof Xe.a)for(const ze of ce.getItems())removeAttributesFromItem(ze);else removeAttributesFromItem(ce)}move(ce,ze,Ve){if(this._assertWriterUsedCorrectly(),!(ce instanceof Xe.a))throw new qe.a("writer-move-invalid-range",this);if(!ce.isFlat)throw new qe.a("writer-move-range-not-flat",this);const Ye=Et.a._createAt(ze,Ve);if(Ye.isEqual(ce.start))return;if(this._addOperationForAffectedMarkers("move",ce),!isSameTree(ce.root,Ye.root))throw new qe.a("writer-move-different-document",this);const We=ce.root.document?ce.root.document.version:null,Qe=new yt.a(ce.start,ce.end.offset-ce.start.offset,Ye,We);this.batch.addOperation(Qe),this.model.applyOperation(Qe)}remove(ce){this._assertWriterUsedCorrectly();const ze=(ce instanceof Xe.a?ce:Xe.a._createOn(ce)).getMinimalFlatRanges().reverse();for(const ce of ze)this._addOperationForAffectedMarkers("move",ce),applyRemoveOperation(ce.start,ce.end.offset-ce.start.offset,this.batch,this.model)}merge(ce){this._assertWriterUsedCorrectly();const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(this._addOperationForAffectedMarkers("merge",ce),!(ze instanceof St.a))throw new qe.a("writer-merge-no-element-before",this);if(!(Ve instanceof St.a))throw new qe.a("writer-merge-no-element-after",this);ce.root.document?this._merge(ce):this._mergeDetached(ce)}createPositionFromPath(ce,ze,Ve){return this.model.createPositionFromPath(ce,ze,Ve)}createPositionAt(ce,ze){return this.model.createPositionAt(ce,ze)}createPositionAfter(ce){return this.model.createPositionAfter(ce)}createPositionBefore(ce){return this.model.createPositionBefore(ce)}createRange(ce,ze){return this.model.createRange(ce,ze)}createRangeIn(ce){return this.model.createRangeIn(ce)}createRangeOn(ce){return this.model.createRangeOn(ce)}createSelection(ce,ze,Ve){return this.model.createSelection(ce,ze,Ve)}_mergeDetached(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;this.move(Xe.a._createIn(Ve),Et.a._createAt(ze,"end")),this.remove(Ve)}_merge(ce){const ze=Et.a._createAt(ce.nodeBefore,"end"),Ve=Et.a._createAt(ce.nodeAfter,0),qe=ce.root.document.graveyard,Ye=new Et.a(qe,[0]),We=ce.root.document.version,Qe=new Ct.a(Ve,ce.nodeAfter.maxOffset,ze,Ye,We);this.batch.addOperation(Qe),this.model.applyOperation(Qe)}rename(ce,ze){if(this._assertWriterUsedCorrectly(),!(ce instanceof St.a))throw new qe.a("writer-rename-not-element-instance",this);const Ve=ce.root.document?ce.root.document.version:null,Ye=new bt.a(Et.a._createBefore(ce),ce.name,ze,Ve);this.batch.addOperation(Ye),this.model.applyOperation(Ye)}split(ce,ze){this._assertWriterUsedCorrectly();let Ve,Ye,We=ce.parent;if(!We.parent)throw new qe.a("writer-split-element-no-parent",this);if(ze||(ze=We.parent),!ce.parent.getAncestors({includeSelf:!0}).includes(ze))throw new qe.a("writer-split-invalid-limit-element",this);do{const ze=We.root.document?We.root.document.version:null,qe=We.maxOffset-ce.offset,Qe=wt.a.getInsertionPosition(ce),Xe=new wt.a(ce,qe,Qe,null,ze);this.batch.addOperation(Xe),this.model.applyOperation(Xe),Ve||Ye||(Ve=We,Ye=ce.parent.nextSibling),We=(ce=this.createPositionAfter(ce.parent)).parent}while(We!==ze);return{position:ce,range:new Xe.a(Et.a._createAt(Ve,"end"),Et.a._createAt(Ye,0))}}wrap(ce,ze){if(this._assertWriterUsedCorrectly(),!ce.isFlat)throw new qe.a("writer-wrap-range-not-flat",this);const Ve=ze instanceof St.a?ze:new St.a(ze);if(Ve.childCount>0)throw new qe.a("writer-wrap-element-not-empty",this);if(null!==Ve.parent)throw new qe.a("writer-wrap-element-attached",this);this.insert(Ve,ce.start);const Ye=new Xe.a(ce.start.getShiftedBy(1),ce.end.getShiftedBy(1));this.move(Ye,Et.a._createAt(Ve,0))}unwrap(ce){if(this._assertWriterUsedCorrectly(),null===ce.parent)throw new qe.a("writer-unwrap-element-no-parent",this);this.move(Xe.a._createIn(ce),this.createPositionAfter(ce)),this.remove(ce)}addMarker(ce,ze){if(this._assertWriterUsedCorrectly(),!ze||"boolean"!=typeof ze.usingOperation)throw new qe.a("writer-addmarker-no-usingoperation",this);const Ve=ze.usingOperation,Ye=ze.range,We=void 0!==ze.affectsData&&ze.affectsData;if(this.model.markers.has(ce))throw new qe.a("writer-addmarker-marker-exists",this);if(!Ye)throw new qe.a("writer-addmarker-no-range",this);return Ve?(applyMarkerOperation(this,ce,null,Ye,We),this.model.markers.get(ce)):this.model.markers._set(ce,Ye,Ve,We)}updateMarker(ce,ze){this._assertWriterUsedCorrectly();const Ve="string"==typeof ce?ce:ce.name,Ye=this.model.markers.get(Ve);if(!Ye)throw new qe.a("writer-updatemarker-marker-not-exists",this);if(!ze)return Object(qe.b)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:Ve}),void this.model.markers._refresh(Ye);const We="boolean"==typeof ze.usingOperation,Qe="boolean"==typeof ze.affectsData,Xe=Qe?ze.affectsData:Ye.affectsData;if(!We&&!ze.range&&!Qe)throw new qe.a("writer-updatemarker-wrong-options",this);const ot=Ye.getRange(),st=ze.range?ze.range:ot;We&&ze.usingOperation!==Ye.managedUsingOperations?ze.usingOperation?applyMarkerOperation(this,Ve,null,st,Xe):(applyMarkerOperation(this,Ve,ot,null,Xe),this.model.markers._set(Ve,st,void 0,Xe)):Ye.managedUsingOperations?applyMarkerOperation(this,Ve,ot,st,Xe):this.model.markers._set(Ve,st,void 0,Xe)}removeMarker(ce){this._assertWriterUsedCorrectly();const ze="string"==typeof ce?ce:ce.name;if(!this.model.markers.has(ze))throw new qe.a("writer-removemarker-no-marker",this);const Ve=this.model.markers.get(ze);if(!Ve.managedUsingOperations)return void this.model.markers._remove(ze);applyMarkerOperation(this,ze,Ve.getRange(),null,Ve.affectsData)}setSelection(ce,ze,Ve){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(ce,ze)}setSelectionAttribute(ce,ze){if(this._assertWriterUsedCorrectly(),"string"==typeof ce)this._setSelectionAttribute(ce,ze);else for(const[ze,Ve]of Object(Tt.a)(ce))this._setSelectionAttribute(ze,Ve)}removeSelectionAttribute(ce){if(this._assertWriterUsedCorrectly(),"string"==typeof ce)this._removeSelectionAttribute(ce);else for(const ze of ce)this._removeSelectionAttribute(ze)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(ce){this.model.document.selection._restoreGravity(ce)}_setSelectionAttribute(ce,ze){const Ve=this.model.document.selection;if(Ve.isCollapsed&&Ve.anchor.parent.isEmpty){const qe=Pt.a._getStoreAttributeKey(ce);this.setAttribute(qe,ze,Ve.anchor.parent)}Ve._setAttribute(ce,ze)}_removeSelectionAttribute(ce){const ze=this.model.document.selection;if(ze.isCollapsed&&ze.anchor.parent.isEmpty){const Ve=Pt.a._getStoreAttributeKey(ce);this.removeAttribute(Ve,ze.anchor.parent)}ze._removeAttribute(ce)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new qe.a("writer-incorrect-use",this)}_addOperationForAffectedMarkers(ce,ze){for(const Ve of this.model.markers){if(!Ve.managedUsingOperations)continue;const qe=Ve.getRange();let Ye=!1;if("move"===ce)Ye=ze.containsPosition(qe.start)||ze.start.isEqual(qe.start)||ze.containsPosition(qe.end)||ze.end.isEqual(qe.end);else{const ce=ze.nodeBefore,Ve=ze.nodeAfter,We=qe.start.parent==ce&&qe.start.isAtEnd,Qe=qe.end.parent==Ve&&0==qe.end.offset,Xe=qe.end.nodeAfter==Ve,ot=qe.start.nodeAfter==Ve;Ye=We||Qe||Xe||ot}Ye&&this.updateMarker(Ve.name,{range:qe})}}}function setAttributeOnRange(ce,ze,Ve,qe){const Ye=ce.model,Qe=Ye.document;let ot,st,mt,gt=qe.start;for(const ce of qe.getWalker({shallow:!0}))mt=ce.item.getAttribute(ze),ot&&st!=mt&&(st!=Ve&&addOperation(),gt=ot),ot=ce.nextPosition,st=mt;function addOperation(){const qe=new Xe.a(gt,ot),mt=qe.root.document?Qe.version:null,yt=new We.a(qe,ze,st,Ve,mt);ce.batch.addOperation(yt),Ye.applyOperation(yt)}ot instanceof Et.a&&ot!=gt&&st!=Ve&&addOperation()}function setAttributeOnItem(ce,ze,Ve,qe){const Ye=ce.model,Qe=Ye.document,ot=qe.getAttribute(ze);let st,mt;if(ot!=Ve){if(qe.root===qe){const ce=qe.document?Qe.version:null;mt=new vt.a(qe,ze,ot,Ve,ce)}else{st=new Xe.a(Et.a._createBefore(qe),ce.createPositionAfter(qe));const Ye=st.root.document?Qe.version:null;mt=new We.a(st,ze,ot,Ve,Ye)}ce.batch.addOperation(mt),Ye.applyOperation(mt)}}function applyMarkerOperation(ce,ze,Ve,qe,Ye){const We=ce.model,Qe=We.document,Xe=new gt.a(ze,Ve,qe,We.markers,Ye,Qe.version);ce.batch.addOperation(Xe),We.applyOperation(Xe)}function applyRemoveOperation(ce,ze,Ve,qe){let Ye;if(ce.root.document){const Ve=qe.document,We=new Et.a(Ve.graveyard,[0]);Ye=new yt.a(ce,ze,We,Ve.version)}else Ye=new st(ce,ze);Ve.addOperation(Ye),qe.applyOperation(Ye)}function isSameTree(ce,ze){return ce===ze||ce instanceof xt&&ze instanceof xt}var Ft=Ve(675);class Bt{constructor(ce){this._markerCollection=ce,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(ce){switch(ce.type){case"insert":if(this._isInInsertedElement(ce.position.parent))return;this._markInsert(ce.position.parent,ce.position.offset,ce.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const ze of ce.range.getItems({shallow:!0}))this._isInInsertedElement(ze.parent)||this._markAttribute(ze);break;case"remove":case"move":case"reinsert":{if(ce.sourcePosition.isEqual(ce.targetPosition)||ce.sourcePosition.getShiftedBy(ce.howMany).isEqual(ce.targetPosition))return;const ze=this._isInInsertedElement(ce.sourcePosition.parent),Ve=this._isInInsertedElement(ce.targetPosition.parent);ze||this._markRemove(ce.sourcePosition.parent,ce.sourcePosition.offset,ce.howMany),Ve||this._markInsert(ce.targetPosition.parent,ce.getMovedRangeStart().offset,ce.howMany);break}case"rename":{if(this._isInInsertedElement(ce.position.parent))return;this._markRemove(ce.position.parent,ce.position.offset,1),this._markInsert(ce.position.parent,ce.position.offset,1);const ze=Xe.a._createFromPositionAndShift(ce.position,1);for(const ce of this._markerCollection.getMarkersIntersectingRange(ze)){const ze=ce.getData();this.bufferMarkerChange(ce.name,ze,ze)}break}case"split":{const ze=ce.splitPosition.parent;this._isInInsertedElement(ze)||this._markRemove(ze,ce.splitPosition.offset,ce.howMany),this._isInInsertedElement(ce.insertionPosition.parent)||this._markInsert(ce.insertionPosition.parent,ce.insertionPosition.offset,1),ce.graveyardPosition&&this._markRemove(ce.graveyardPosition.parent,ce.graveyardPosition.offset,1);break}case"merge":{const ze=ce.sourcePosition.parent;this._isInInsertedElement(ze.parent)||this._markRemove(ze.parent,ze.startOffset,1);const Ve=ce.graveyardPosition.parent;this._markInsert(Ve,ce.graveyardPosition.offset,1);const qe=ce.targetPosition.parent;this._isInInsertedElement(qe)||this._markInsert(qe,ce.targetPosition.offset,ze.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(ce,ze,Ve){const qe=this._changedMarkers.get(ce);qe?(qe.newMarkerData=Ve,null==qe.oldMarkerData.range&&null==Ve.range&&this._changedMarkers.delete(ce)):this._changedMarkers.set(ce,{newMarkerData:Ve,oldMarkerData:ze})}getMarkersToRemove(){const ce=[];for(const[ze,Ve]of this._changedMarkers)null!=Ve.oldMarkerData.range&&ce.push({name:ze,range:Ve.oldMarkerData.range});return ce}getMarkersToAdd(){const ce=[];for(const[ze,Ve]of this._changedMarkers)null!=Ve.newMarkerData.range&&ce.push({name:ze,range:Ve.newMarkerData.range});return ce}getChangedMarkers(){return Array.from(this._changedMarkers).map((ce=>{let[ze,Ve]=ce;return{name:ze,data:{oldRange:Ve.oldMarkerData.range,newRange:Ve.newMarkerData.range}}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:ce,oldMarkerData:ze}of this._changedMarkers.values()){if(ce.affectsData!==ze.affectsData)return!0;if(ce.affectsData){const Ve=ce.range&&!ze.range,qe=!ce.range&&ze.range,Ye=ce.range&&ze.range&&!ce.range.isEqual(ze.range);if(Ve||qe||Ye)return!0}}return!1}getChanges(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return ce.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let ze=[];for(const ce of this._changesInElement.keys()){const Ve=this._changesInElement.get(ce).sort(((ce,ze)=>ce.offset===ze.offset?ce.type!=ze.type?"remove"==ce.type?-1:1:0:ce.offsetce.position.root!=ze.position.root?ce.position.root.rootNamece));for(const ce of ze)delete ce.changeCount,"attribute"==ce.type&&(delete ce.position,delete ce.length);return this._changeCount=0,this._cachedChangesWithGraveyard=ze,this._cachedChanges=ze.filter(_changesInGraveyardFilter),ce.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(ce){if(this._isInInsertedElement(ce.parent))return;this._markRemove(ce.parent,ce.startOffset,ce.offsetSize),this._markInsert(ce.parent,ce.startOffset,ce.offsetSize),this._refreshedItems.add(ce);const ze=Xe.a._createOn(ce);for(const ce of this._markerCollection.getMarkersIntersectingRange(ze)){const ze=ce.getData();this.bufferMarkerChange(ce.name,ze,ze)}this._cachedChanges=null}_markInsert(ce,ze,Ve){const qe={type:"insert",offset:ze,howMany:Ve,count:this._changeCount++};this._markChange(ce,qe)}_markRemove(ce,ze,Ve){const qe={type:"remove",offset:ze,howMany:Ve,count:this._changeCount++};this._markChange(ce,qe),this._removeAllNestedChanges(ce,ze,Ve)}_markAttribute(ce){const ze={type:"attribute",offset:ce.startOffset,howMany:ce.offsetSize,count:this._changeCount++};this._markChange(ce.parent,ze)}_markChange(ce,ze){this._makeSnapshot(ce);const Ve=this._getChangesForElement(ce);this._handleChange(ze,Ve),Ve.push(ze);for(let ce=0;ceVe.offset){if(qe>Ye){const ce={type:"attribute",offset:Ye,howMany:qe-Ye,count:this._changeCount++};this._handleChange(ce,ze),ze.push(ce)}ce.nodesToHandle=Ve.offset-ce.offset,ce.howMany=ce.nodesToHandle}else ce.offset>=Ve.offset&&ce.offsetYe?(ce.nodesToHandle=qe-Ye,ce.offset=Ye):ce.nodesToHandle=0);if("remove"==Ve.type&&ce.offsetVe.offset){const Ye={type:"attribute",offset:Ve.offset,howMany:qe-Ve.offset,count:this._changeCount++};this._handleChange(Ye,ze),ze.push(Ye),ce.nodesToHandle=Ve.offset-ce.offset,ce.howMany=ce.nodesToHandle}"attribute"==Ve.type&&(ce.offset>=Ve.offset&&qe<=Ye?(ce.nodesToHandle=0,ce.howMany=0,ce.offset=0):ce.offset<=Ve.offset&&qe>=Ye&&(Ve.howMany=0))}}ce.howMany=ce.nodesToHandle,delete ce.nodesToHandle}_getInsertDiff(ce,ze,Ve){return{type:"insert",position:Et.a._createAt(ce,ze),name:Ve.name,attributes:new Map(Ve.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(ce,ze,Ve){return{type:"remove",position:Et.a._createAt(ce,ze),name:Ve.name,attributes:new Map(Ve.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(ce,ze,Ve){const qe=[];Ve=new Map(Ve);for(const[Ye,We]of ze){const ze=Ve.has(Ye)?Ve.get(Ye):null;ze!==We&&qe.push({type:"attribute",position:ce.start,range:ce.clone(),length:1,attributeKey:Ye,attributeOldValue:We,attributeNewValue:ze,changeCount:this._changeCount++}),Ve.delete(Ye)}for(const[ze,Ye]of Ve)qe.push({type:"attribute",position:ce.start,range:ce.clone(),length:1,attributeKey:ze,attributeOldValue:null,attributeNewValue:Ye,changeCount:this._changeCount++});return qe}_isInInsertedElement(ce){const ze=ce.parent;if(!ze)return!1;const Ve=this._changesInElement.get(ze),qe=ce.startOffset;if(Ve)for(const ce of Ve)if("insert"==ce.type&&qe>=ce.offset&&qeqe){for(let ze=0;zece.source)).join("|")+")";return new RegExp(`${ce}|${ze}(?:‍${ze})*`,"ug")}();function isInsideEmojiSequence(ce,ze){const Ve=String(ce).matchAll(Jt);return Array.from(Ve).some((ce=>ce.index{const Ve=ze[0];Ve.isDocumentOperation&&this.differ.bufferOperation(Ve)}),{priority:"high"}),this.listenTo(ce,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&this.history.addOperation(Ve)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(ce.markers,"update",((ce,ze,Ve,qe,Ye)=>{const We={...ze.getData(),range:qe};this.differ.bufferMarkerChange(ze.name,Ye,We),null===Ve&&ze.on("change",((ce,Ve)=>{const qe=ze.getData();this.differ.bufferMarkerChange(ze.name,{...qe,range:Ve},qe)}))}))}get version(){return this.history.version}set version(ce){this.history.version=ce}get graveyard(){return this.getRoot(en)}createRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(ze))throw new qe.a("model-document-createroot-name-exists",this,{name:ze});const Ve=new xt(this,ce,ze);return this.roots.add(Ve),Ve}destroy(){this.selection.destroy(),this.stopListening()}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}getRootNames(){return Array.from(this.roots,(ce=>ce.rootName)).filter((ce=>ce!=en))}registerPostFixer(ce){this._postFixers.add(ce)}toJSON(){const ce=Object(Qt.a)(this);return ce.selection="[engine.model.DocumentSelection]",ce.model="[engine.model.Model]",ce}_handleChangeBlock(ce){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(ce),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",ce.batch):this.fire("change",ce.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const ce of this.roots)if(ce!==this.graveyard)return ce;return this.graveyard}_getDefaultRange(){const ce=this._getDefaultRoot(),ze=this.model,Ve=ze.schema,qe=ze.createPositionFromPath(ce,[0]);return Ve.getNearestSelectionRange(qe)||ze.createRange(qe)}_validateSelectionRange(ce){return validateTextNodePosition(ce.start)&&validateTextNodePosition(ce.end)}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(this.selection.refresh(),ze=Ve(ce),ze)break}while(ze)}}function validateTextNodePosition(ce){const ze=ce.textNode;if(ze){const Ve=ze.data,qe=ce.offset-ze.startOffset;return!isInsideSurrogatePair(Ve,qe)&&!isInsideCombinedSymbol(Ve,qe)}return!0}Object(Wt.a)(rn,Ut.c);var ln=Ve(226);class mn{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(ce){const ze=ce instanceof gn?ce.name:ce;return this._markers.has(ze)}get(ce){return this._markers.get(ce)||null}_set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ye=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const We=ce instanceof gn?ce.name:ce;if(We.includes(","))throw new qe.a("markercollection-incorrect-marker-name",this);const Qe=this._markers.get(We);if(Qe){const ce=Qe.getData(),qe=Qe.getRange();let Xe=!1;return qe.isEqual(ze)||(Qe._attachLiveRange(ln.a.fromRange(ze)),Xe=!0),Ve!=Qe.managedUsingOperations&&(Qe._managedUsingOperations=Ve,Xe=!0),"boolean"==typeof Ye&&Ye!=Qe.affectsData&&(Qe._affectsData=Ye,Xe=!0),Xe&&this.fire("update:"+We,Qe,qe,ze,ce),Qe}const Xe=ln.a.fromRange(ze),ot=new gn(We,Xe,Ve,Ye);return this._markers.set(We,ot),this.fire("update:"+We,ot,null,ze,{...ot.getData(),range:null}),ot}_remove(ce){const ze=ce instanceof gn?ce.name:ce,Ve=this._markers.get(ze);return!!Ve&&(this._markers.delete(ze),this.fire("update:"+ze,Ve,Ve.getRange(),null,Ve.getData()),this._destroyMarker(Ve),!0)}_refresh(ce){const ze=ce instanceof gn?ce.name:ce,Ve=this._markers.get(ze);if(!Ve)throw new qe.a("markercollection-refresh-marker-not-exists",this);const Ye=Ve.getRange();this.fire("update:"+ze,Ve,Ye,Ye,Ve.getData())}*getMarkersAtPosition(ce){for(const ze of this)ze.getRange().containsPosition(ce)&&(yield ze)}*getMarkersIntersectingRange(ce){for(const ze of this)null!==ze.getRange().getIntersection(ce)&&(yield ze)}destroy(){for(const ce of this._markers.values())this._destroyMarker(ce);this._markers=null,this.stopListening()}*getMarkersGroup(ce){for(const ze of this._markers.values())ze.name.startsWith(ce+":")&&(yield ze)}_destroyMarker(ce){ce.stopListening(),ce._detachLiveRange()}}Object(Wt.a)(mn,Ut.c);class gn{constructor(ce,ze,Ve,qe){this.name=ce,this._liveRange=this._attachLiveRange(ze),this._managedUsingOperations=Ve,this._affectsData=qe}get managedUsingOperations(){if(!this._liveRange)throw new qe.a("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new qe.a("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new qe.a("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new qe.a("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new qe.a("marker-destroyed",this);return this._liveRange.toRange()}is(ce){return"marker"===ce||"model:marker"===ce}_attachLiveRange(ce){return this._liveRange&&this._detachLiveRange(),ce.delegate("change:range").to(this),ce.delegate("change:content").to(this),this._liveRange=ce,ce}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Object(Wt.a)(gn,Ut.c);var bn=Ve(42),wn=Ve(234),Cn=Ve(523),Sn=Ve(124);function insertContent(ce,ze,Ve,qe){return ce.change((Ye=>{let We;We=Ve?Ve instanceof wn.a||Ve instanceof Pt.a?Ve:Ye.createSelection(Ve,qe):ce.document.selection,We.isCollapsed||ce.deleteContent(We,{doNotAutoparagraph:!0});const Qe=new En(ce,Ye,We.anchor);let Xe;Xe=ze.is("documentFragment")?ze.getChildren():[ze],Qe.handleNodes(Xe);const ot=Qe.getSelectionRange();ot&&(We instanceof Pt.a?Ye.setSelection(ot):We.setTo(ot));const st=Qe.getAffectedRange()||ce.createRange(We.anchor);return Qe.destroy(),st}))}class En{constructor(ce,ze,Ve){this.model=ce,this.writer=ze,this.position=Ve,this.canMergeWith=new Set([this.position.parent]),this.schema=ce.schema,this._documentFragment=ze.createDocumentFragment(),this._documentFragmentPosition=ze.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(ce){for(const ze of Array.from(ce))this._handleNode(ze);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(ce){const ze=this.writer.createPositionAfter(this._lastNode),Ve=this.writer.createPositionAfter(ce);if(Ve.isAfter(ze)){if(this._lastNode=ce,this.position.parent!=ce||!this.position.isAtEnd)throw new qe.a("insertcontent-invalid-insertion-position",this);this.position=Ve,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?Xe.a._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Xe.a(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(ce){if(this.schema.isObject(ce))return void this._handleObject(ce);let ze=this._checkAndAutoParagraphToAllowedPosition(ce);ze||(ze=this._checkAndSplitToAllowedPosition(ce),ze)?(this._appendToFragment(ce),this._firstNode||(this._firstNode=ce),this._lastNode=ce):this._handleDisallowedNode(ce)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const ce=Sn.a.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=ce.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=ce.toPosition(),ce.detach()}_handleObject(ce){this._checkAndSplitToAllowedPosition(ce)?this._appendToFragment(ce):this._tryAutoparagraphing(ce)}_handleDisallowedNode(ce){ce.is("element")?this.handleNodes(ce.getChildren()):this._tryAutoparagraphing(ce)}_appendToFragment(ce){if(!this.schema.checkChild(this.position,ce))throw new qe.a("insertcontent-wrong-position",this,{node:ce,position:this.position});this.writer.insert(ce,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(ce.offsetSize),this.schema.isObject(ce)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=ce:this.nodeToSelect=null,this._filterAttributesOf.push(ce)}_setAffectedBoundaries(ce){this._affectedStart||(this._affectedStart=Sn.a.fromPosition(ce,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(ce)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Sn.a.fromPosition(ce,"toNext"))}_mergeOnLeft(){const ce=this._firstNode;if(!(ce instanceof St.a))return;if(!this._canMergeLeft(ce))return;const ze=Sn.a._createBefore(ce);ze.stickiness="toNext";const Ve=Sn.a.fromPosition(this.position,"toNext");this._affectedStart.isEqual(ze)&&(this._affectedStart.detach(),this._affectedStart=Sn.a._createAt(ze.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=ze.nodeBefore,this._lastNode=ze.nodeBefore),this.writer.merge(ze),ze.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Sn.a._createAt(ze.nodeBefore,"end","toNext")),this.position=Ve.toPosition(),Ve.detach(),this._filterAttributesOf.push(this.position.parent),ze.detach()}_mergeOnRight(){const ce=this._lastNode;if(!(ce instanceof St.a))return;if(!this._canMergeRight(ce))return;const ze=Sn.a._createAfter(ce);if(ze.stickiness="toNext",!this.position.isEqual(ze))throw new qe.a("insertcontent-invalid-insertion-position",this);this.position=Et.a._createAt(ze.nodeBefore,"end");const Ve=Sn.a.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(ze)&&(this._affectedEnd.detach(),this._affectedEnd=Sn.a._createAt(ze.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=ze.nodeBefore,this._lastNode=ze.nodeBefore),this.writer.merge(ze),ze.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Sn.a._createAt(ze.nodeBefore,0,"toPrevious")),this.position=Ve.toPosition(),Ve.detach(),this._filterAttributesOf.push(this.position.parent),ze.detach()}_canMergeLeft(ce){const ze=ce.previousSibling;return ze instanceof St.a&&this.canMergeWith.has(ze)&&this.model.schema.checkMerge(ze,ce)}_canMergeRight(ce){const ze=ce.nextSibling;return ze instanceof St.a&&this.canMergeWith.has(ze)&&this.model.schema.checkMerge(ce,ze)}_tryAutoparagraphing(ce){const ze=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,ze)&&this.schema.checkChild(ze,ce)&&(ze._appendChild(ce),this._handleNode(ze))}_checkAndAutoParagraphToAllowedPosition(ce){if(this.schema.checkChild(this.position.parent,ce))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",ce))return!1;this._insertPartialFragment();const ze=this.writer.createElement("paragraph");return this.writer.insert(ze,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=ze,this.position=this.writer.createPositionAt(ze,0),!0}_checkAndSplitToAllowedPosition(ce){const ze=this._getAllowedIn(this.position.parent,ce);if(!ze)return!1;for(ze!=this.position.parent&&this._insertPartialFragment();ze!=this.position.parent;)if(this.position.isAtStart){const ce=this.position.parent;this.position=this.writer.createPositionBefore(ce),ce.isEmpty&&ce.parent===ze&&this.writer.remove(ce)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const ce=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=ce,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(ce,ze){return this.schema.checkChild(ce,ze)?ce:this.schema.isLimit(ce)?null:this._getAllowedIn(ce.parent,ze)}}var Tn=Ve(283),Ln=Ve(676);function insertObject(ce,ze,Ve,Ye){let We,Qe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!ce.schema.isObject(ze))throw new qe.a("insertobject-element-not-an-object",ce,{object:ze});We=Ve?Ve.is("selection")?Ve:ce.createSelection(Ve,Ye):ce.document.selection;let Xe=We;Qe.findOptimalPosition&&ce.schema.isBlock(ze)&&(Xe=ce.createSelection(Object(Ln.a)(We,ce,Qe.findOptimalPosition)));const ot=Object(Tn.a)(We.getSelectedBlocks()),st={};return ot&&Object.assign(st,ce.schema.getAttributesWithProperty(ot,"copyOnReplace",!0)),ce.change((Ve=>{Xe.isCollapsed||ce.deleteContent(Xe,{doNotAutoparagraph:!0});let qe=ze;const Ye=Xe.anchor.parent;!ce.schema.checkChild(Ye,ze)&&ce.schema.checkChild(Ye,"paragraph")&&ce.schema.checkChild("paragraph",ze)&&(qe=Ve.createElement("paragraph"),Ve.insert(ze,qe)),ce.schema.setAllowedAttributes(qe,st,Ve);const We=ce.insertContent(qe,Xe);return We.isCollapsed||Qe.setSelection&&updateSelection(Ve,ze,Qe.setSelection,st),We}))}function updateSelection(ce,ze,Ve,Ye){const We=ce.model;if("after"==Ve){let Ve=ze.nextSibling;!(Ve&&We.schema.checkChild(Ve,"$text"))&&We.schema.checkChild(ze.parent,"paragraph")&&(Ve=ce.createElement("paragraph"),We.schema.setAllowedAttributes(Ve,Ye,ce),We.insertContent(Ve,ce.createPositionAfter(ze))),Ve&&ce.setSelection(Ve,0)}else{if("on"!=Ve)throw new qe.a("insertobject-invalid-place-parameter-value",We);ce.setSelection(ze,"on")}}function deleteContent(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze.isCollapsed)return;const qe=ze.getFirstRange();if("$graveyard"==qe.root.rootName)return;const Ye=ce.schema;ce.change((ce=>{if(!Ve.doNotResetEntireContent&&shouldEntireContentBeReplacedWithParagraph(Ye,ze))return void replaceEntireContentWithParagraph(ce,ze);const We={};if(!Ve.doNotAutoparagraph){const ce=ze.getSelectedElement();ce&&Object.assign(We,Ye.getAttributesWithProperty(ce,"copyOnReplace",!0))}const[Qe,Xe]=getLivePositionsForSelectedBlocks(qe);Qe.isTouching(Xe)||ce.remove(ce.createRange(Qe,Xe)),Ve.leaveUnmerged||(mergeBranches(ce,Qe,Xe),Ye.removeDisallowedAttributes(Qe.parent.getChildren(),ce)),collapseSelectionAt(ce,ze,Qe),!Ve.doNotAutoparagraph&&shouldAutoparagraph(Ye,Qe)&&insertParagraph(ce,Qe,ze,We),Qe.detach(),Xe.detach()}))}function getLivePositionsForSelectedBlocks(ce){const ze=ce.root.document.model,Ve=ce.start;let qe=ce.end;if(ze.hasContent(ce,{ignoreMarkers:!0})){const Ve=getParentBlock(qe);if(Ve&&qe.isTouching(ze.createPositionAt(Ve,0))){const Ve=ze.createSelection(ce);ze.modifySelection(Ve,{direction:"backward"});const Ye=Ve.getLastPosition(),We=ze.createRange(Ye,qe);ze.hasContent(We,{ignoreMarkers:!0})||(qe=Ye)}}return[Sn.a.fromPosition(Ve,"toPrevious"),Sn.a.fromPosition(qe,"toNext")]}function getParentBlock(ce){const ze=ce.parent,Ve=ze.root.document.model.schema,qe=ze.getAncestors({parentFirst:!0,includeSelf:!0});for(const ce of qe){if(Ve.isLimit(ce))return null;if(Ve.isBlock(ce))return ce}}function mergeBranches(ce,ze,Ve){const qe=ce.model;if(!checkShouldMerge(ce.model.schema,ze,Ve))return;const[Ye,We]=getAncestorsJustBelowCommonAncestor(ze,Ve);Ye&&We&&(!qe.hasContent(Ye,{ignoreMarkers:!0})&&qe.hasContent(We,{ignoreMarkers:!0})?mergeBranchesRight(ce,ze,Ve,Ye.parent):mergeBranchesLeft(ce,ze,Ve,Ye.parent))}function mergeBranchesLeft(ce,ze,Ve,qe){const Ye=ze.parent,We=Ve.parent;if(Ye!=qe&&We!=qe){for(ze=ce.createPositionAfter(Ye),(Ve=ce.createPositionBefore(We)).isEqual(ze)||ce.insert(We,ze),ce.merge(ze);Ve.parent.isEmpty;){const ze=Ve.parent;Ve=ce.createPositionBefore(ze),ce.remove(ze)}checkShouldMerge(ce.model.schema,ze,Ve)&&mergeBranchesLeft(ce,ze,Ve,qe)}}function mergeBranchesRight(ce,ze,Ve,qe){const Ye=ze.parent,We=Ve.parent;if(Ye!=qe&&We!=qe){for(ze=ce.createPositionAfter(Ye),(Ve=ce.createPositionBefore(We)).isEqual(ze)||ce.insert(Ye,Ve);ze.parent.isEmpty;){const Ve=ze.parent;ze=ce.createPositionBefore(Ve),ce.remove(Ve)}Ve=ce.createPositionBefore(We),mergeRight(ce,Ve),checkShouldMerge(ce.model.schema,ze,Ve)&&mergeBranchesRight(ce,ze,Ve,qe)}}function mergeRight(ce,ze){const Ve=ze.nodeBefore,qe=ze.nodeAfter;Ve.name!=qe.name&&ce.rename(Ve,qe.name),ce.clearAttributes(Ve),ce.setAttributes(Object.fromEntries(qe.getAttributes()),Ve),ce.merge(ze)}function checkShouldMerge(ce,ze,Ve){const qe=ze.parent,Ye=Ve.parent;return qe!=Ye&&(!ce.isLimit(qe)&&!ce.isLimit(Ye)&&isCrossingLimitElement(ze,Ve,ce))}function getAncestorsJustBelowCommonAncestor(ce,ze){const Ve=ce.getAncestors(),qe=ze.getAncestors();let Ye=0;for(;Ve[Ye]&&Ve[Ye]==qe[Ye];)Ye++;return[Ve[Ye],qe[Ye]]}function shouldAutoparagraph(ce,ze){const Ve=ce.checkChild(ze,"$text"),qe=ce.checkChild(ze,"paragraph");return!Ve&&qe}function isCrossingLimitElement(ce,ze,Ve){const qe=new Xe.a(ce,ze);for(const ce of qe.getWalker())if(Ve.isLimit(ce.item))return!1;return!0}function insertParagraph(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=ce.createElement("paragraph");ce.model.schema.setAllowedAttributes(Ye,qe,ce),ce.insert(Ye,ze),collapseSelectionAt(ce,Ve,ce.createPositionAt(Ye,0))}function replaceEntireContentWithParagraph(ce,ze){const Ve=ce.model.schema.getLimitElement(ze);ce.remove(ce.createRangeIn(Ve)),insertParagraph(ce,ce.createPositionAt(Ve,0),ze)}function shouldEntireContentBeReplacedWithParagraph(ce,ze){const Ve=ce.getLimitElement(ze);if(!ze.containsEntireContent(Ve))return!1;const qe=ze.getFirstRange();return qe.start.parent!=qe.end.parent&&ce.checkChild(Ve,"paragraph")}function collapseSelectionAt(ce,ze,Ve){ze instanceof Pt.a?ce.setSelection(Ve):ze.setTo(Ve)}var Fn=Ve(156);const Yn=' ,.?!:;"-()';function modifySelection(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=ce.schema,Ye="backward"!=Ve.direction,We=Ve.unit?Ve.unit:"character",Qe=!!Ve.treatEmojiAsSingleUnit,Xe=ze.focus,ot=new Fn.a({boundaries:getSearchRange(Xe,Ye),singleCharacters:!0,direction:Ye?"forward":"backward"}),st={walker:ot,schema:qe,isForward:Ye,unit:We,treatEmojiAsSingleUnit:Qe};let mt;for(;mt=ot.next();){if(mt.done)return;const Ve=tryExtendingTo(st,mt.value);if(Ve)return void(ze instanceof Pt.a?ce.change((ce=>{ce.setSelectionFocus(Ve)})):ze.setFocus(Ve))}}function tryExtendingTo(ce,ze){const{isForward:Ve,walker:qe,unit:Ye,schema:We,treatEmojiAsSingleUnit:Qe}=ce,{type:Xe,item:ot,nextPosition:st}=ze;if("text"==Xe)return"word"===ce.unit?getCorrectWordBreakPosition(qe,Ve):getCorrectPosition(qe,Ye,Qe);if(Xe==(Ve?"elementStart":"elementEnd")){if(We.isSelectable(ot))return Et.a._createAt(ot,Ve?"after":"before");if(We.checkChild(st,"$text"))return st}else{if(We.isLimit(ot))return void qe.skip((()=>!0));if(We.checkChild(st,"$text"))return st}}function getCorrectPosition(ce,ze,Ve){const qe=ce.position.textNode;if(qe){const Ye=qe.data;let We=ce.position.offset-qe.startOffset;for(;isInsideSurrogatePair(Ye,We)||"character"==ze&&isInsideCombinedSymbol(Ye,We)||Ve&&isInsideEmojiSequence(Ye,We);)ce.next(),We=ce.position.offset-qe.startOffset}return ce.position}function getCorrectWordBreakPosition(ce,ze){let Ve=ce.position.textNode;if(Ve){let qe=ce.position.offset-Ve.startOffset;for(;!isAtWordBoundary(Ve.data,qe,ze)&&!isAtNodeBoundary(Ve,qe,ze);){ce.next();const Ye=ze?ce.position.nodeAfter:ce.position.nodeBefore;if(Ye&&Ye.is("$text")){const qe=Ye.data.charAt(ze?0:Ye.data.length-1);Yn.includes(qe)||(ce.next(),Ve=ce.position.textNode)}qe=ce.position.offset-Ve.startOffset}}return ce.position}function getSearchRange(ce,ze){const Ve=ce.root,qe=Et.a._createAt(Ve,ze?"end":0);return ze?new Xe.a(ce,qe):new Xe.a(qe,ce)}function isAtWordBoundary(ce,ze,Ve){const qe=ze+(Ve?0:-1);return Yn.includes(ce.charAt(qe))}function isAtNodeBoundary(ce,ze,Ve){return ze===(Ve?ce.endOffset:0)}function getSelectedContent(ce,ze){return ce.change((ce=>{const Ve=ce.createDocumentFragment(),qe=ze.getFirstRange();if(!qe||qe.isCollapsed)return Ve;const Ye=qe.start.root,We=qe.start.getCommonPath(qe.end),Qe=Ye.getNodeByPath(We);let Xe;Xe=qe.start.parent==qe.end.parent?qe:ce.createRange(ce.createPositionAt(Qe,qe.start.path[We.length]),ce.createPositionAt(Qe,qe.end.path[We.length]+1));const ot=Xe.end.offset-Xe.start.offset;for(const ze of Xe.getItems({shallow:!0}))ze.is("$textProxy")?ce.appendText(ze.data,ze.getAttributes(),Ve):ce.append(ce.cloneElement(ze,!0),Ve);if(Xe!=qe){const ze=qe._getTransformedByMove(Xe.start,ce.createPositionAt(Ve,0),ot)[0],Ye=ce.createRange(ce.createPositionAt(Ve,0),ze.start);removeRangeContent(ce.createRange(ze.end,ce.createPositionAt(Ve,"end")),ce),removeRangeContent(Ye,ce)}return Ve}))}function removeRangeContent(ce,ze){const Ve=[];Array.from(ce.getItems({direction:"backward"})).map((ce=>ze.createRangeOn(ce))).filter((ze=>(ze.start.isAfter(ce.start)||ze.start.isEqual(ce.start))&&(ze.end.isBefore(ce.end)||ze.end.isEqual(ce.end)))).forEach((ce=>{Ve.push(ce.start.parent),ze.remove(ce)})),Ve.forEach((ce=>{let Ve=ce;for(;Ve.parent&&Ve.isEmpty;){const ce=ze.createRangeOn(Ve);Ve=Ve.parent,ze.remove(ce)}}))}function selectionPostFixer(ce,ze){const Ve=ze.document.selection,qe=ze.schema,Ye=[];let We=!1;for(const ce of Ve.getRanges()){const ze=tryFixingRange(ce,qe);ze&&!ze.isEqual(ce)?(Ye.push(ze),We=!0):Ye.push(ce)}We&&ce.setSelection(mergeIntersectingRanges(Ye),{backward:Ve.isBackward})}function tryFixingRange(ce,ze){return ce.isCollapsed?tryFixingCollapsedRange(ce,ze):tryFixingNonCollapsedRage(ce,ze)}function tryFixingCollapsedRange(ce,ze){const Ve=ce.start,qe=ze.getNearestSelectionRange(Ve);if(!qe){const ce=Ve.getAncestors().reverse().find((ce=>ze.isObject(ce)));return ce?Xe.a._createOn(ce):null}if(!qe.isCollapsed)return qe;const Ye=qe.start;return Ve.isEqual(Ye)?null:new Xe.a(Ye)}function tryFixingNonCollapsedRage(ce,ze){const{start:Ve,end:qe}=ce,Ye=ze.checkChild(Ve,"$text"),We=ze.checkChild(qe,"$text"),Qe=ze.getLimitElement(Ve),ot=ze.getLimitElement(qe);if(Qe===ot){if(Ye&&We)return null;if(checkSelectionOnNonLimitElements(Ve,qe,ze)){const ce=Ve.nodeAfter&&ze.isSelectable(Ve.nodeAfter)?null:ze.getNearestSelectionRange(Ve,"forward"),Ye=qe.nodeBefore&&ze.isSelectable(qe.nodeBefore)?null:ze.getNearestSelectionRange(qe,"backward"),We=ce?ce.start:Ve,Qe=Ye?Ye.end:qe;return new Xe.a(We,Qe)}}const st=Qe&&!Qe.is("rootElement"),mt=ot&&!ot.is("rootElement");if(st||mt){const ce=Ve.nodeAfter&&qe.nodeBefore&&Ve.nodeAfter.parent===qe.nodeBefore.parent,Ye=st&&(!ce||!isSelectable(Ve.nodeAfter,ze)),We=mt&&(!ce||!isSelectable(qe.nodeBefore,ze));let gt=Ve,yt=qe;return Ye&&(gt=Et.a._createBefore(findOutermostLimitAncestor(Qe,ze))),We&&(yt=Et.a._createAfter(findOutermostLimitAncestor(ot,ze))),new Xe.a(gt,yt)}return null}function findOutermostLimitAncestor(ce,ze){let Ve=ce,qe=Ve;for(;ze.isLimit(qe)&&qe.parent;)Ve=qe,qe=qe.parent;return Ve}function checkSelectionOnNonLimitElements(ce,ze,Ve){const qe=ce.nodeAfter&&!Ve.isLimit(ce.nodeAfter)||Ve.checkChild(ce,"$text"),Ye=ze.nodeBefore&&!Ve.isLimit(ze.nodeBefore)||Ve.checkChild(ze,"$text");return qe||Ye}function mergeIntersectingRanges(ce){const ze=[...ce],Ve=new Set;let qe=1;for(;qe!Ve.has(ze)))}function isSelectable(ce,ze){return ce&&ze.isSelectable(ce)}var Un=Ve(235);class Gn{constructor(){var ce;this.markers=new mn,this.document=new rn(this),this.schema=new Ft.b,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((ce=>this.decorate(ce))),this.on("applyOperation",((ce,ze)=>{ze[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((ce,ze)=>{if("$marker"===ze.name)return!0})),(ce=this).document.registerPostFixer((ze=>selectionPostFixer(ze,ce))),this.document.registerPostFixer(Un.a)}change(ce){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Ye,callback:ce}),this._runPendingChanges()[0]):ce(this._currentWriter)}catch(ce){qe.a.rethrowUnexpectedError(ce,this)}}enqueueChange(ce,ze){try{ce?"function"==typeof ce?(ze=ce,ce=new Ye):ce instanceof Ye||(ce=new Ye(ce)):ce=new Ye,this._pendingChanges.push({batch:ce,callback:ze}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(ce){qe.a.rethrowUnexpectedError(ce,this)}}applyOperation(ce){ce._execute()}insertContent(ce,ze,Ve){return insertContent(this,ce,ze,Ve)}insertObject(ce,ze,Ve,qe){return insertObject(this,ce,ze,Ve,qe)}deleteContent(ce,ze){deleteContent(this,ce,ze)}modifySelection(ce,ze){modifySelection(this,ce,ze)}getSelectedContent(ce){return getSelectedContent(this,ce)}hasContent(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=ce instanceof St.a?Xe.a._createIn(ce):ce;if(Ve.isCollapsed)return!1;const{ignoreWhitespaces:qe=!1,ignoreMarkers:Ye=!1}=ze;if(!Ye)for(const ce of this.markers.getMarkersIntersectingRange(Ve))if(ce.affectsData)return!0;for(const ce of Ve.getItems())if(this.schema.isContent(ce)){if(!ce.is("$textProxy"))return!0;if(!qe)return!0;if(-1!==ce.data.search(/\S/))return!0}return!1}createPositionFromPath(ce,ze,Ve){return new Et.a(ce,ze,Ve)}createPositionAt(ce,ze){return Et.a._createAt(ce,ze)}createPositionAfter(ce){return Et.a._createAfter(ce)}createPositionBefore(ce){return Et.a._createBefore(ce)}createRange(ce,ze){return new Xe.a(ce,ze)}createRangeIn(ce){return Xe.a._createIn(ce)}createRangeOn(ce){return Xe.a._createOn(ce)}createSelection(ce,ze,Ve){return new wn.a(ce,ze,Ve)}createBatch(ce){return new Ye(ce)}createOperationFromJSON(ce){return Cn.a.fromJSON(ce,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const ce=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const ze=this._pendingChanges[0].batch;this._currentWriter=new Lt(this,ze);const Ve=this._pendingChanges[0].callback(this._currentWriter);ce.push(Ve),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),ce}}Object(Wt.a)(Gn,bn.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(3),Ye=Ve(1),We=Ve(0),Qe=Ve.n(We),Xe=Ve(22),ot=Ve.n(Xe),st=Ve(5),mt=Ve.n(st),gt=Ve(90),yt=Ve.n(gt),bt=Ve(65),vt=Ve(33),wt=Ve(97),Ct=Ve(47),Dt=Ve(646),kt=Ve(27),St=Ve(333),xt=Ve(12),Et=Ve(794).default,Pt=Ve(797).default;Ve(215);var Tt=Ve(298),Lt=(Ve(214),Ve(356));class Ft extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Qe.a.createElement(Lt.a,null,ze.map(((ze,Ve)=>{const qe=Tt.a.get(ze);return Qe.a.createElement(vt.default,{active:ze===ce,icon:qe.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Bt,Vt,Ht,Ut,Wt=Ve(371),Jt=Ve(15);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Qt=Object(qe.b)((Vt=class extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Ht,this),_initializerDefineProperty(this,"value",Ut,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Qe.a.createElement("label",{"aria-label":Object(Jt.b)("sulu_admin.list_search_placeholder")},Qe.a.createElement(Wt.default,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(Jt.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value}))}},Ht=_applyDecoratedDescriptor(Vt.prototype,"collapsed",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ut=_applyDecoratedDescriptor(Vt.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Vt.prototype,"setCollapsed",[Ye.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setCollapsed"),Vt.prototype),_applyDecoratedDescriptor(Vt.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(Vt.prototype,"setValue"),Vt.prototype),Bt=Vt))||Bt;var en=Qt,rn="list-container--fnvVcJlkuk",ln="list--ZhDArzzcJ8",mn="disabled--0gk+zrDrJ0",gn="loader--vvV8cCMZgz",bn="toolbar--ootfwGUgGv",wn="toolbar-left--L0ZSo09SIF",Cn="toolbar-right--ROOmqwe2uS",Sn=Ve(62),En=Ve(128),Tn=Ve(17),Ln="overlay--nJrxJXF0ue",Fn="sorting--HPjTJf+Yoi",Yn="column-option--b6ZaKVF1Jc",Un="drag-handle--6TAKKoMapW",Gn="label--I3fLhlBk37",Kn="icon--212efz+HIv",Jn="dragging--j-M273OiiD",Zn="column-option-disabled--RUElOQKlIn";const Xn=Object(Sn.c)((()=>Qe.a.createElement("span",{className:Un},Qe.a.createElement(Tn.default,{name:"su-more"}))));class ei extends Qe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Yn,{[Zn]:"no"===ze});return Qe.a.createElement("div",{className:Ve},Qe.a.createElement(Xn,null),Qe.a.createElement("span",{className:Gn},ce),"always"!==ze&&Qe.a.createElement(Tn.default,{className:Kn,name:"su-eye",onClick:this.handleIconClick}))}}var si,_i,Ri,Ci,Di,Ei,Oi,Ti;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const er=Object(Sn.b)(ei),tr=Object(Sn.a)((ce=>{let{children:ze,className:Ve}=ce;return Qe.a.createElement("div",{className:Ve},ze)}));let nr=Object(qe.b)((_i=class extends Qe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",Ri,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",Ci,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",Di,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",Ei,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",Oi,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",Ti,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Ln,{[Fn]:this.sorting});return Qe.a.createElement(En.a,{confirmText:Object(xt.d)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.d)("sulu_admin.column_options")},Qe.a.createElement(tr,{axis:"y",className:Ve,helperClass:Jn,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Qe.a.createElement(er,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},Ri=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"columnOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ci=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"sorting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Di=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"handleColumnOptionChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),Ei=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"setColumnOptions",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const qe={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:qe})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(_i.prototype,"componentDidMount"),_i.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(_i.prototype,"componentDidUpdate"),_i.prototype),Oi=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"handleItemsSortStart",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),Ti=ColumnOptionsOverlay_applyDecoratedDescriptor(_i.prototype,"handleItemsSortEnd",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Sn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),si=_i))||si;var rr,ar,sr,lr,dr,ur,pr=nr,vr=Ve(26),_r=Ve.n(vr),Rr=Ve(648),Cr=(Ve(127),Ve(440)),Dr="field-filter-item--v7ZkK++uEu",Er="button-container--91Qr54-ULg";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Tr="esc",Ar="enter";var Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr=Object(qe.b)((ar=class extends Qe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",sr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",lr,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",dr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",ur,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:qe,open:We,value:Qe}=this.props;if(this.value=Qe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(Cr.a.get(ze))(this.handleFieldFilterTypeChange,Ve,Qe,Cr.a.getOptions(ze)),this.valueDisposer=Object(Ye.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(Ye.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(Ye.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(_r.a.bind(Tr,qe),_r.a.bind(Ar,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:qe}=this.props;!1===ce.open&&!0===Ve&&(this.value=qe),ce.open!==Ve&&(Ve?(_r.a.bind(Tr,ze),_r.a.bind(Ar,this.handleButtonClick)):(_r.a.unbind(Tr),_r.a.unbind(Ar)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(_r.a.unbind(Tr),_r.a.unbind(Ar))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:qe,onDelete:Ye,open:We}=this.props;return Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("span",{className:Dr},Qe.a.createElement(Rr.a,{onClick:Ve,onDelete:Ye,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Qe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:qe,open:We},Qe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Qe.a.createElement("div",{className:Er},Qe.a.createElement(vt.default,{onClick:this.handleButtonClick,skin:"link"},Object(Jt.b)("sulu_admin.ok")))))}},sr=FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lr=FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"valueNodeLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),dr=FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"valueNode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"propValue",[Ye.computed],Object.getOwnPropertyDescriptor(ar.prototype,"propValue"),ar.prototype),FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(ar.prototype,"componentDidUpdate"),ar.prototype),FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"setValueNodeLoading",[Ye.action],Object.getOwnPropertyDescriptor(ar.prototype,"setValueNodeLoading"),ar.prototype),FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"setValueNode",[Ye.action],Object.getOwnPropertyDescriptor(ar.prototype,"setValueNode"),ar.prototype),ur=FieldFilterItem_applyDecoratedDescriptor(ar.prototype,"handleFieldFilterTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),rr=ar))||rr,Yr="field-filter--GC6ALnHk5Z",Ur="filter-button--RH2qRPg2B0";function FieldFilter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Wr=Object(qe.b)((Lr=class extends Qe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",jr,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",Ir,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",zr,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Br,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",Nr,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Vr,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Hr,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Qe.a.createElement("div",{className:Yr},Object.keys(ce).length>0&&Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",{className:Ur},Qe.a.createElement(vt.default,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Qe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Qe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Qe.a.createElement(qr,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},jr=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"filterMenuOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ir=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"filterChipOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Lr.prototype,"filteredFields",[Ye.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"filteredFields"),Lr.prototype),zr=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"handleFilterMenuButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Br=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"handleFilterMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),Nr=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"openFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Vr=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"closeFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Hr=FieldFilter_applyDecoratedDescriptor(Lr.prototype,"handleFilterItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:qe,...Ye}=Ve;ze(Ye)}}}),Mr=Lr))||Mr;var $r,Gr,Kr,Jr,Zr,ga,ya,ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Vo,Ho,Uo,Wo,$o,es,ts,ns,rs,os,ss=Wr;function List_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ls="sulu_admin.list",cs="adapter";let ds=Object(qe.b)(((os=class ce extends Qe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ls,ce,ze,cs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const qe=[ls,ce,ze,cs].join(".");kt.a.setPersistentSetting(qe,Ve)}get currentAdapter(){return Tt.a.get(this.currentAdapterKey)}get currentAdapterOptions(){return Tt.a.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",Kr,this),List_initializerDefineProperty(this,"showCopyOverlay",Jr,this),List_initializerDefineProperty(this,"showDeleteDialog",Zr,this),List_initializerDefineProperty(this,"showMoveOverlay",ga,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",ya,this),List_initializerDefineProperty(this,"allowConflictDeletion",ba,this),List_initializerDefineProperty(this,"showOrderDialog",va,this),List_initializerDefineProperty(this,"adapterOptionsOpen",_a,this),List_initializerDefineProperty(this,"columnOptionsOpen",wa,this),List_initializerDefineProperty(this,"referencingResourcesData",ka,this),List_initializerDefineProperty(this,"dependantResourcesData",xa,this),List_initializerDefineProperty(this,"movingRestrictedTarget",Aa,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Ba,this),List_initializerDefineProperty(this,"requestSelectionDelete",Ja,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",io,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",ho,this),List_initializerDefineProperty(this,"closeAllDialogs",go,this),List_initializerDefineProperty(this,"handleDeleteResponseError",_o,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Co,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",ko,this),List_initializerDefineProperty(this,"handleRequestItemMove",Oo,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Po,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",To,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ao,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",jo,this),List_initializerDefineProperty(this,"handleRequestItemCopy",Fo,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",Bo,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",Vo,this),List_initializerDefineProperty(this,"handleRequestItemOrder",Ho,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",Uo,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",Wo,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,qe=Ve.findById(ce);qe&&(ze?Ve.select(qe):Ve.deselect(qe))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",$o,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",es,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ts,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",ns,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",rs,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(Ye.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:qe}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&qe})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Tt.a.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Qe.a.createElement(Et,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Qe.a.createElement(Pt,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:qe,disabled:Ye,header:Xe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Bt}=this.props,{filterableFields:Vt,loading:Ht,schemaLoading:Ut,userSchema:Wt}=Lt,Jt=this.currentAdapter,Qt=mt()(ln,{[mn]:Ye}),Sn=mt()(bn,Bt),En=this.props.searchable&&Jt.searchable,Tn=this.props.filterable&&Vt&&Object.keys(Vt).length>0,Ln=En||Tn||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Qe.a.createElement(Dt.a,null):Qe.a.createElement("div",{className:rn},Xe,!Ut&&Ln&&Qe.a.createElement("div",{className:Sn},Qe.a.createElement("div",{className:wn},En&&Qe.a.createElement(en,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),Tn&&Qe.a.createElement(ss,{fields:Vt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Qe.a.createElement("div",{className:Cn},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Qe.a.createElement(vt.default,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(bt.a,{anchorElement:Qe.a.createElement("div",null,Qe.a.createElement(vt.default,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Qe.a.createElement(bt.a.Section,null,Qe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.d)("sulu_admin.column_options")))),Qe.a.createElement(pr,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Wt})),Qe.a.createElement(Ft,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Qe.a.createElement("div",{className:Qt},Ht&&0===Lt.pageCount?Qe.a.createElement(Ct.a,{className:gn}):Qe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Ht,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:qe?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Qe.a.createElement(wt.a,{cancelText:Object(xt.d)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.d)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.d)("sulu_admin.delete_warning_title")},Object(xt.d)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),qe&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(wt.a,{cancelText:Object(xt.d)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.d)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.d)("sulu_admin.delete_warning_title")},Object(xt.d)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Qe.a.createElement(We.Fragment,null,Qe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.d)("sulu_admin.move_copy_overlay_title")}),Qe.a.createElement(wt.a,{cancelText:Object(xt.d)("sulu_admin.cancel"),confirmText:Object(xt.d)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.d)("sulu_security.move_permission_title")},Object(xt.d)("sulu_security.move_permission_warning"))),Ve&&Qe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.d)("sulu_admin.move_copy_overlay_title")}),Et&&Qe.a.createElement(wt.a,{cancelText:Object(xt.d)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.d)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.d)("sulu_admin.order_warning_title")},Object(xt.d)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},Kr=List_applyDecoratedDescriptor((Gr=os).prototype,"currentAdapterKey",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jr=List_applyDecoratedDescriptor(Gr.prototype,"showCopyOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zr=List_applyDecoratedDescriptor(Gr.prototype,"showDeleteDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ga=List_applyDecoratedDescriptor(Gr.prototype,"showMoveOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ya=List_applyDecoratedDescriptor(Gr.prototype,"showDeleteSelectionDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ba=List_applyDecoratedDescriptor(Gr.prototype,"allowConflictDeletion",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),va=List_applyDecoratedDescriptor(Gr.prototype,"showOrderDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_a=List_applyDecoratedDescriptor(Gr.prototype,"adapterOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wa=List_applyDecoratedDescriptor(Gr.prototype,"columnOptionsOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(Gr.prototype,"referencingResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xa=List_applyDecoratedDescriptor(Gr.prototype,"dependantResourcesData",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Aa=List_applyDecoratedDescriptor(Gr.prototype,"movingRestrictedTarget",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(Gr.prototype,"currentAdapter",[Ye.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"currentAdapter"),Gr.prototype),List_applyDecoratedDescriptor(Gr.prototype,"currentAdapterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"currentAdapterOptions"),Gr.prototype),List_applyDecoratedDescriptor(Gr.prototype,"disabledIds",[Ye.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"disabledIds"),Gr.prototype),List_applyDecoratedDescriptor(Gr.prototype,"showColumnOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"showColumnOptions"),Gr.prototype),Ba=List_applyDecoratedDescriptor(Gr.prototype,"setCurrentAdapterKey",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),Ja=List_applyDecoratedDescriptor(Gr.prototype,"requestSelectionDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),io=List_applyDecoratedDescriptor(Gr.prototype,"handleSelectionDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(Ye.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),po=List_applyDecoratedDescriptor(Gr.prototype,"handleSelectionDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),ho=List_applyDecoratedDescriptor(Gr.prototype,"handleRequestItemDelete",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(Ye.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(Ye.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),go=List_applyDecoratedDescriptor(Gr.prototype,"closeAllDialogs",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),_o=List_applyDecoratedDescriptor(Gr.prototype,"handleDeleteResponseError",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(Ye.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||1106!==Ve.code)if(409!==ce.status||1105!==Ve.code)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(Ye.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Co=List_applyDecoratedDescriptor(Gr.prototype,"handleDeleteDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),ko=List_applyDecoratedDescriptor(Gr.prototype,"handleDeleteDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Oo=List_applyDecoratedDescriptor(Gr.prototype,"handleRequestItemMove",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(Ye.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(Ye.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Po=List_applyDecoratedDescriptor(Gr.prototype,"handleMoveOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),To=List_applyDecoratedDescriptor(Gr.prototype,"handleMoveOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Ao=List_applyDecoratedDescriptor(Gr.prototype,"handleMovePermissionWarningConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),jo=List_applyDecoratedDescriptor(Gr.prototype,"handleMovePermissionWarningCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),Fo=List_applyDecoratedDescriptor(Gr.prototype,"handleRequestItemCopy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(Ye.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(Ye.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),Bo=List_applyDecoratedDescriptor(Gr.prototype,"handleCopyOverlayConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),Vo=List_applyDecoratedDescriptor(Gr.prototype,"handleCopyOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),Ho=List_applyDecoratedDescriptor(Gr.prototype,"handleRequestItemOrder",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(Ye.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(Ye.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),Uo=List_applyDecoratedDescriptor(Gr.prototype,"handleOrderDialogConfirmClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),Wo=List_applyDecoratedDescriptor(Gr.prototype,"handleOrderDialogCancelClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),$o=List_applyDecoratedDescriptor(Gr.prototype,"handleAdapterOptionsButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),es=List_applyDecoratedDescriptor(Gr.prototype,"handleAdapterOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ts=List_applyDecoratedDescriptor(Gr.prototype,"handleColumnOptionsOpen",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),ns=List_applyDecoratedDescriptor(Gr.prototype,"handleColumnOptionsClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),rs=List_applyDecoratedDescriptor(Gr.prototype,"handleColumnOptionsChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(Gr.prototype,"deleteDependantResourcesDialogRequestOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"deleteDependantResourcesDialogRequestOptions"),Gr.prototype),$r=Gr))||$r;ze.default=ds},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var qe=Ve(398);const Ye=Symbol("rootName");class We extends qe.a{constructor(ce,ze){super(ce,ze),this.rootName="main"}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rootElement"===ce||"view:rootElement"===ce||"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"rootElement"===ce||"view:rootElement"===ce||"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}get rootName(){return this.getCustomProperty(Ye)}set rootName(ce){this._setCustomProperty(Ye,ce)}set _name(ce){this.name=ce}}var Qe=Ve(383),Xe=Ve(361),ot=Ve(563),st=Ve(294),mt=Ve(24),gt=Ve(41),yt=Ve(139),bt=Ve(116),vt=Ve(60),wt=Ve(304);var Ct=function isEqualWith(ce,ze,Ve){var qe=(Ve="function"==typeof Ve?Ve:void 0)?Ve(ce,ze):void 0;return void 0===qe?Object(wt.a)(ce,ze,void 0,Ve):!!qe};class Dt extends bt.a{constructor(ce){super(ce),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=ce.domConverter,this.renderer=ce._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(ce){this._domElements.push(ce),this.isEnabled&&this._mutationObserver.observe(ce,this._config)}enable(){super.enable();for(const ce of this._domElements)this._mutationObserver.observe(ce,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(ce){if(0===ce.length)return;const ze=this.domConverter,Ve=new Map,qe=new Set;for(const Ve of ce)if("childList"===Ve.type){const ce=ze.mapDomToView(Ve.target);if(ce&&(ce.is("uiElement")||ce.is("rawElement")))continue;ce&&!this._isBogusBrMutation(Ve)&&qe.add(ce)}for(const Ye of ce){const ce=ze.mapDomToView(Ye.target);if((!ce||!ce.is("uiElement")&&!ce.is("rawElement"))&&"characterData"===Ye.type){const ce=ze.findCorrespondingViewText(Ye.target);ce&&!qe.has(ce.parent)?Ve.set(ce,{type:"text",oldText:ce.data,newText:Object(vt.f)(Ye.target),node:ce}):!ce&&Object(vt.i)(Ye.target)&&qe.add(ze.mapDomToView(Ye.target.parentNode))}}const Ye=[];for(const ce of Ve.values())this.renderer.markToSync("text",ce.node),Ye.push(ce);for(const ce of qe){const Ve=ze.mapViewToDom(ce),qe=Array.from(ce.getChildren()),We=Array.from(ze.domChildrenToView(Ve,{withChildren:!1}));Ct(qe,We,sameNodes)||(this.renderer.markToSync("children",ce),Ye.push({type:"children",oldChildren:qe,newChildren:We,node:ce}))}const We=ce[0].target.ownerDocument.getSelection();let Qe=null;if(We&&We.anchorNode){const ce=ze.domPositionToView(We.anchorNode,We.anchorOffset),Ve=ze.domPositionToView(We.focusNode,We.focusOffset);ce&&Ve&&(Qe=new yt.a(ce),Qe.setFocus(Ve))}function sameNodes(ce,ze){if(!Array.isArray(ce))return ce===ze||!(!ce.is("$text")||!ze.is("$text"))&&ce.data===ze.data}Ye.length&&(this.document.fire("mutations",Ye,Qe),this.view.forceRender())}_isBogusBrMutation(ce){let ze=null;return null===ce.nextSibling&&0===ce.removedNodes.length&&1==ce.addedNodes.length&&(ze=this.domConverter.domToView(ce.addedNodes[0],{withChildren:!1})),ze&&ze.is("element","br")}}var kt=Ve(130),St=Ve(37);class xt extends kt.a{constructor(ce){super(ce),this.domEventType=["keydown","keyup"]}onDomEvent(ce){this.fire(ce.type,ce,{keyCode:ce.keyCode,altKey:ce.altKey,ctrlKey:ce.ctrlKey,shiftKey:ce.shiftKey,metaKey:ce.metaKey,get keystroke(){return Object(St.a)(this)}})}}var Et=Ve(695);class Pt extends bt.a{constructor(ce){super(ce),this._fireSelectionChangeDoneDebounced=Object(Et.a)((ce=>this.document.fire("selectionChangeDone",ce)),200)}observe(){const ce=this.document;ce.on("arrowKey",((ze,Ve)=>{ce.selection.isFake&&this.isEnabled&&Ve.preventDefault()}),{context:"$capture"}),ce.on("arrowKey",((ze,Ve)=>{ce.selection.isFake&&this.isEnabled&&this._handleSelectionMove(Ve.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(ce){const ze=this.document.selection,Ve=new yt.a(ze.getRanges(),{backward:ze.isBackward,fake:!1});ce!=St.f.arrowleft&&ce!=St.f.arrowup||Ve.setTo(Ve.getFirstPosition()),ce!=St.f.arrowright&&ce!=St.f.arrowdown||Ve.setTo(Ve.getLastPosition());const qe={oldSelection:ze,newSelection:Ve,domSelection:null};this.document.fire("selectionChange",qe),this._fireSelectionChangeDoneDebounced(qe)}}class Tt extends bt.a{constructor(ce){super(ce),this.mutationObserver=ce.getObserver(Dt),this.selection=this.document.selection,this.domConverter=ce.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Object(Et.a)((ce=>this.document.fire("selectionChangeDone",ce)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Object(Et.a)((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(ce){const ze=ce.ownerDocument,endDocumentIsSelecting=()=>{this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(ce,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(ce,"keydown",endDocumentIsSelecting,{priority:"highest"}),this.listenTo(ce,"keyup",endDocumentIsSelecting,{priority:"highest"}),this._documents.has(ze)||(this.listenTo(ze,"mouseup",endDocumentIsSelecting,{priority:"highest"}),this.listenTo(ze,"selectionchange",((ce,Ve)=>{this._handleSelectionChange(Ve,ze),this._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(ze))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(ce,ze){if(!this.isEnabled)return;const Ve=ze.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(Ve.anchorNode))return;this.mutationObserver.flush();const qe=this.domConverter.domSelectionToView(Ve);if(0!=qe.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(qe)&&this.domConverter.isDomSelectionCorrect(Ve)||++this._loopbackCounter>60))if(this.selection.isSimilar(qe))this.view.forceRender();else{const ce={oldSelection:this.selection,newSelection:qe,domSelection:Ve};this.document.fire("selectionChange",ce),this._fireSelectionChangeDoneDebounced(ce)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Lt extends kt.a{constructor(ce){super(ce),this.domEventType=["focus","blur"],this.useCapture=!0;const ze=this.document;ze.on("focus",(()=>{ze.isFocused=!0,this._renderTimeoutId=setTimeout((()=>ce.change((()=>{}))),50)})),ze.on("blur",((Ve,qe)=>{const Ye=ze.selection.editableElement;null!==Ye&&Ye!==qe.target||(ze.isFocused=!1,ce.change((()=>{})))}))}onDomEvent(ce){this.fire(ce.type,ce)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Ft extends kt.a{constructor(ce){super(ce),this.domEventType=["compositionstart","compositionupdate","compositionend"];const ze=this.document;ze.on("compositionstart",(()=>{ze.isComposing=!0})),ze.on("compositionend",(()=>{ze.isComposing=!1}))}onDomEvent(ce){this.fire(ce.type,ce)}}class Bt extends kt.a{constructor(ce){super(ce),this.domEventType=["beforeinput"]}onDomEvent(ce){this.fire(ce.type,ce)}}var Vt=Ve(224),Ht=Ve(229);class Ut extends bt.a{constructor(ce){super(ce),this.document.on("keydown",((ce,ze)=>{if(this.isEnabled&&Object(Ht.i)(ze.keyCode)){const Ve=new Vt.a(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(Ve,ze),Ve.stop.called&&ce.stop()}}))}observe(){}}class Wt extends bt.a{constructor(ce){super(ce);const ze=this.document;ze.on("keydown",((ce,Ve)=>{if(!this.isEnabled||Ve.keyCode!=St.f.tab||Ve.ctrlKey)return;const qe=new Vt.a(ze,"tab",ze.selection.getFirstRange());ze.fire(qe,Ve),qe.stop.called&&ce.stop()}))}observe(){}}var Jt=Ve(42),Qt=Ve(25),en=Ve(520),rn=Ve(253),ln=Ve(8),mn=Ve(58);class gn{constructor(ce){this.document=new Qe.a(ce),this.domConverter=new st.a(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ot.a(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Xe.a(this.document),this.addObserver(Dt),this.addObserver(Tt),this.addObserver(Lt),this.addObserver(xt),this.addObserver(Pt),this.addObserver(Ft),this.addObserver(Ut),this.addObserver(Wt),mn.a.isAndroid&&this.addObserver(Bt),Object(vt.g)(this),Object(rn.b)(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";const Ve=this.document.getRoot(ze);Ve._name=ce.tagName.toLowerCase();const qe={};for(const{name:ze,value:Ye}of Array.from(ce.attributes))qe[ze]=Ye,"class"===ze?this._writer.addClass(Ye.split(" "),Ve):this._writer.setAttribute(ze,Ye,Ve);this._initialDomRootAttributes.set(ce,qe);const updateContenteditableAttribute=()=>{this._writer.setAttribute("contenteditable",!Ve.isReadOnly,Ve),Ve.isReadOnly?this._writer.addClass("ck-read-only",Ve):this._writer.removeClass("ck-read-only",Ve)};updateContenteditableAttribute(),this.domRoots.set(ze,ce),this.domConverter.bindElements(ce,Ve),this._renderer.markToSync("children",Ve),this._renderer.markToSync("attributes",Ve),this._renderer.domDocuments.add(ce.ownerDocument),Ve.on("change:children",((ce,ze)=>this._renderer.markToSync("children",ze))),Ve.on("change:attributes",((ce,ze)=>this._renderer.markToSync("attributes",ze))),Ve.on("change:text",((ce,ze)=>this._renderer.markToSync("text",ze))),Ve.on("change:isReadOnly",(()=>this.change(updateContenteditableAttribute))),Ve.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const Ve of this._observers.values())Ve.observe(ce,ze)}detachDomRoot(ce){const ze=this.domRoots.get(ce);Array.from(ze.attributes).forEach((ce=>{let{name:Ve}=ce;return ze.removeAttribute(Ve)}));const Ve=this._initialDomRootAttributes.get(ze);for(const ce in Ve)ze.setAttribute(ce,Ve[ce]);this.domRoots.delete(ce),this.domConverter.unbindDomElement(ze)}getDomRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(ce)}addObserver(ce){let ze=this._observers.get(ce);if(ze)return ze;ze=new ce(this),this._observers.set(ce,ze);for(const[ce,Ve]of this.domRoots)ze.observe(Ve,ce);return ze.enable(),ze}getObserver(ce){return this._observers.get(ce)}disableObservers(){for(const ce of this._observers.values())ce.disable()}enableObservers(){for(const ce of this._observers.values())ce.enable()}scrollToTheSelection(){const ce=this.document.selection.getFirstRange();ce&&Object(en.a)({target:this.domConverter.viewRangeToDom(ce),viewportOffset:20})}focus(){if(!this.document.isFocused){const ce=this.document.selection.editableElement;ce&&(this.domConverter.focus(ce),this.forceRender())}}change(ce){if(this.isRenderingInProgress||this._postFixersInProgress)throw new ln.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return ce(this._writer);this._ongoingChange=!0;const ze=ce(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),ze}catch(ce){ln.a.rethrowUnexpectedError(ce,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const ce of this._observers.values())ce.destroy();this.document.destroy(),this.stopListening()}createPositionAt(ce,ze){return mt.a._createAt(ce,ze)}createPositionAfter(ce){return mt.a._createAfter(ce)}createPositionBefore(ce){return mt.a._createBefore(ce)}createRange(ce,ze){return new gt.a(ce,ze)}createRangeOn(ce){return gt.a._createOn(ce)}createRangeIn(ce){return gt.a._createIn(ce)}createSelection(ce,ze,Ve){return new yt.a(ce,ze,Ve)}_disableRendering(ce){this._renderingDisabled=ce,0==ce&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Object(Qt.a)(gn,Jt.a);var bn=Ve(673),wn=Ve(721),Cn=Ve(182),Sn=Ve(309);class En{constructor(ce,ze){this.model=ce,this.view=new gn(ze),this.mapper=new bn.a,this.downcastDispatcher=new wn.a({mapper:this.mapper,schema:ce.schema});const Ve=this.model.document,qe=Ve.selection,Ye=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(Ve,"change",(()=>{this.view.change((ce=>{this.downcastDispatcher.convertChanges(Ve.differ,Ye,ce),this.downcastDispatcher.convertSelection(qe,Ye,ce)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",Object(Sn.a)(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",Object(Cn.f)(),{priority:"lowest"}),this.downcastDispatcher.on("insert",Object(Cn.e)(),{priority:"lowest"}),this.downcastDispatcher.on("remove",Object(Cn.g)(),{priority:"low"}),this.downcastDispatcher.on("selection",Object(Cn.a)(),{priority:"high"}),this.downcastDispatcher.on("selection",Object(Cn.c)(),{priority:"low"}),this.downcastDispatcher.on("selection",Object(Cn.b)(),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((ce=>{if("$graveyard"==ce.rootName)return null;const ze=new We(this.view.document,ce.name);return ze.rootName=ce.rootName,this.mapper.bindElements(ce,ze),ze}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(ce){const ze="string"==typeof ce?ce:ce.name,Ve=this.model.markers.get(ze);if(!Ve)throw new ln.a("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:ze});this.model.change((()=>{this.model.markers._refresh(Ve)}))}reconvertItem(ce){this.model.change((()=>{this.model.document.differ._refreshItem(ce)}))}}Object(Qt.a)(En,Jt.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(3),st=Ve(1),mt=Ve(0),gt=Ve.n(mt),yt=Ve(5),bt=Ve.n(yt),vt=Ve(47),wt=Ve(38),Ct=Ve(194),Dt=Ve(17),kt="item--ymZaB017+M",St="text--7wKyjFpzM4",xt="active--x2A5H8STyR",Et="disabled--v2bCTglUza",Pt="order-field-shown--gwzRkqmCC6",Tt="children--xD1rmlxeLX",Lt="button--ymmyyMpiFj",Ft="visible--Ei2o54qNSp",Bt="buttons--pTcMKALE4T",Vt="selected--c4UO9k13sN",Ht="indicator---2fd0Smr6T",Ut="order-input--epPdkVfvIp";class Wt extends gt.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=bt()({[Lt]:!0,[Ft]:ze});return gt.a.createElement(Dt.default,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},_initializerDefineProperty(this,"handleOrderChange",Qe,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(st.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`button-${Ve}`;return gt.a.createElement(Wt,_extends({},ce,{id:ze,key:qe}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:qe,indicators:Ye,showOrderField:We,selected:Qe}=this.props,Xe=bt()(kt,{[xt]:ce,[Et]:Ve,[Vt]:Qe,[Pt]:We});return gt.a.createElement("div",{className:Xe,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&>.a.createElement("span",{className:Bt},this.renderButtons()),We&>.a.createElement("div",{className:Ut},gt.a.createElement(wt.default,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),gt.a.createElement("span",{className:St},gt.a.createElement(Ct.a,null,ze)),Ye&&Ye.map(((ce,ze)=>gt.a.createElement("span",{className:Ht,key:ze},ce))),gt.a.createElement("span",{className:Tt},qe&>.a.createElement(Dt.default,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"order",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleOrderChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),qe=Ye))||qe,Qt="column--wEOJibRYUI",en="scrolling--uGHBZk9Soc",rn="loader--a+2EGk5M4r";class ln extends gt.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return gt.a.Children.map(ce,(ce=>gt.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,qe=bt()(Qt,{[en]:Ve});return gt.a.createElement("div",{className:qe,onMouseEnter:this.handleMouseEnter,role:"button"},ze?gt.a.createElement("div",{className:rn},gt.a.createElement(vt.a,null)):this.cloneItems(ce))}}ln.defaultProps={loading:!1,scrolling:!1};var mn,gn,bn,wn,Cn,Sn,En=Ve(65),Tn={toolbar:"toolbar--BZ34gWRUMI",item:"item--as96riDumw",primary:"primary--JE-7p8DMJ8",secondary:"secondary--Ot+yGH23Hl"},Ln="button-arrow-icon--x069t3AwMG";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Fn=Object(ot.b)((Sn=class extends gt.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",bn,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",wn,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Cn,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=bt()(Tn.item,Tn[ze]);return gt.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},gt.a.createElement(Dt.default,{name:ce}),gt.a.createElement(Dt.default,{className:Ln,name:"su-angle-down"}))}render(){return gt.a.createElement(mt.Fragment,null,gt.a.createElement(En.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},gt.a.createElement(En.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:qe,onClick:Ye}=ce;return gt.a.createElement(En.a.Action,{disabled:Ve,key:ze,onClick:Ye},qe)})))))}},Sn.defaultProps={skin:"primary"},bn=ToolbarDropdown_applyDecoratedDescriptor((gn=Sn).prototype,"open",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wn=ToolbarDropdown_applyDecoratedDescriptor(gn.prototype,"handleClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Cn=ToolbarDropdown_applyDecoratedDescriptor(gn.prototype,"handleMenuClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mn=gn))||mn;var Yn,Un,Gn,Kn,Jn,Zn=Fn;class Xn extends gt.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=bt()(Tn.item,Tn[ze]);return gt.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},gt.a.createElement(Dt.default,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return gt.a.createElement(Zn,Toolbar_extends({},ce,{key:ze}));case"button":return gt.a.createElement(Xn,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return gt.a.createElement("div",{className:Tn.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Jn.defaultProps={toolbarItems:[]},Gn=Toolbar_applyDecoratedDescriptor((Un=Jn).prototype,"toolbar",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=Toolbar_applyDecoratedDescriptor(Un.prototype,"setToolbarRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),Yn=Un))||Yn;var si,_i,Ri,Ci,Di,Ei,Oi,Ti=ei,er="300px",tr="column-list-toolbar-container--JWjFq2uPdv",nr="toolbar-container---J5yiCp36b",rr="column-list-container--i0cNTKoQQe",ar="first-visible-column-active--KpUhIC35xi",sr="last-visible-column-active--RMTG3Yhv-S",lr="column-list--kBA1W3+XRy";function ColumnList_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let dr=Object(ot.b)((Oi=class extends gt.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",Ri,this),ColumnList_initializerDefineProperty(this,"scrollPosition",Ci,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",Di,this),ColumnList_initializerDefineProperty(this,"handleActive",Ei,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,qe=this.containerScrolling;return gt.a.Children.map(ce,((ce,Ye)=>gt.a.cloneElement(ce,{index:Ye,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:qe})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=gt.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(gt.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(er);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),qe=this.props.toolbarItemsProvider(this.activeColumnIndex);return gt.a.createElement("div",{className:tr},!!qe&>.a.createElement("div",{className:nr,style:{marginLeft:ze}},!!qe.length&>.a.createElement(Ti,{toolbarItems:qe,toolbarRef:this.setToolbarRef})),gt.a.createElement("div",{className:Ve,ref:this.setContainerRef},gt.a.createElement("div",{className:lr},this.cloneColumns(ce))))}},Oi.Column=ln,Oi.Item=Jt,Ri=ColumnList_applyDecoratedDescriptor((_i=Oi).prototype,"activeColumnIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ci=ColumnList_applyDecoratedDescriptor(_i.prototype,"scrollPosition",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(_i.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(_i.prototype,"componentDidUpdate"),_i.prototype),Di=ColumnList_applyDecoratedDescriptor(_i.prototype,"handleScroll",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),Ei=ColumnList_applyDecoratedDescriptor(_i.prototype,"handleActive",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),si=_i))||si;ze.default=dr},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(12),mt=Ve(33),gt=Ve(568).default,yt=Ve(17),bt=Ve(795),vt=Ve(62),wt=Ve(9),Ct=Ve.n(wt),Dt=Ve(533).default,kt="sortableHandle--MSpBQiMR5k",St=Object(vt.c)((()=>Ye.a.createElement(yt.default,{className:kt,name:"su-more"}))),xt=Ve(87),Et="container--bzSeE6NaaP";class Pt extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=()=>{const{onChange:ce}=this.props;ce&&ce()},this.handleContainerClick=ce=>{ce.stopPropagation(),this.handleChange()}}render(){const{checked:ce}=this.props;return Ye.a.createElement("div",{className:Et,onClick:this.handleContainerClick},Ye.a.createElement(xt.b,{checked:ce,onChange:this.handleChange,skin:ce?"light":"dark"}))}}var Tt,Lt,Ft,Bt=Pt;let Vt=Object(Qe.b)(((Ft=class extends Ye.a.Component{constructor(ce){super(ce),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelectionChanged=()=>{const{sortIndex:ce,onSelect:ze,onUnselect:Ve,selected:qe}=this.props;qe&&Ve&&Ve(ce),!qe&&ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.renderHandle=()=>{const{mode:ce,movable:ze,selected:Ve}=this.props;return"sortable"===ce&&!1!==ze?Ye.a.createElement(St,null):"selectable"===ce?Ye.a.createElement(Bt,{checked:Ve,onChange:this.handleSelectionChanged}):null},!1===ce.movable&&Ct.a.warn('The "movable" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get actions(){const{onRemove:ce,actions:ze,sortIndex:Ve}=this.props,qe=ze.map((ce=>"divider"!==ce.type?{...ce,onClick:()=>ce.onClick(Ve)}:ce));return ce?(Ct.a.warn('The "onRemove" prop of the "SortableBlock" component is deprecated since 2.5 and will be removed. Use the "actions" prop with an appropriate callback instead.'),[...qe,{type:"button",icon:"su-trash-alt",label:Object(st.d)("sulu_admin.delete"),onClick:()=>ce(Ve)}]):qe}render(){const{activeType:ce,expanded:ze,icons:Ve,onCollapse:qe,onExpand:We,onSettingsClick:Qe,renderBlockContent:Xe,selected:ot,sortIndex:st,types:mt,value:gt}=this.props;return Ye.a.createElement(Dt,{actions:this.actions,activeType:ce,expanded:ze,handle:this.renderHandle(),icons:Ve,onCollapse:qe?this.handleCollapse:void 0,onExpand:We?this.handleExpand:void 0,onSettingsClick:Qe&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,selected:ot,types:mt},Xe(gt,ce,st,ze))}}).defaultProps={actions:[],mode:"sortable",movable:!0,selected:!1},function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Lt=Ft).prototype,"actions",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"actions"),Lt.prototype),Tt=Lt))||Tt;var Ht,Ut,Wt,Jt=Object(vt.b)(Vt),Qt="sortableBlockList--GPzoe7NoIf",en="disabled--KuOx0I1jln";let rn=Object(Qe.b)(((Wt=class extends Ye.a.Component{constructor(ce){super(ce),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleSelect=ce=>{const{onSelect:ze}=this.props;ze&&ze(ce)},this.handleUnselect=ce=>{const{onUnselect:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)},!1===ce.movable&&Ct.a.warn('The "movable" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "mode" prop with "static" or "sortable" instead.')}get blockActions(){const{onRemove:ce,blockActions:ze}=this.props;return ce?(Ct.a.warn('The "onRemove" prop of the "SortableBlockList" component is deprecated since 2.5 and will be removed. Use the "blockActions" prop with an appropriate callback instead.'),[...ze,{type:"button",icon:"su-trash-alt",label:Object(st.d)("sulu_admin.delete"),onClick:ce}]):ze}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:We,mode:Qe,movable:Xe,onCollapse:st,onExpand:mt,onSelect:gt,onSettingsClick:yt,onUnselect:bt,renderBlockContent:vt,renderDivider:wt,selectedBlocks:Ct,types:Dt,value:kt}=this.props,St=ot()(Qt,{[en]:ce});return Ye.a.createElement("div",{className:St},kt&&kt.map(((ot,St)=>Ye.a.createElement(qe.Fragment,{key:St},Ye.a.createElement(Jt,{actions:this.blockActions,activeType:ot.type,expanded:!ce&&ze[St],icons:We&&We[St],index:St,key:Ve[St],mode:"sortable"===Qe&&!1!==Xe?"sortable":Qe,onCollapse:st?this.handleCollapse:void 0,onExpand:mt?this.handleExpand:void 0,onSelect:gt?this.handleSelect:void 0,onSettingsClick:yt?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,onUnselect:bt?this.handleUnselect:void 0,renderBlockContent:vt,selected:Ct[St],sortIndex:St,types:Dt,value:ot}),wt&&St{const{collapsable:ze,defaultType:Ve,onChange:qe,minOccurs:Ye,value:We}=this.props,{expandedBlocks:Qe,generatedBlockIds:Xe,selectedBlocks:ot}=this;if(!We)return;Qe.length>We.length&&Qe.splice(We.length),ot.length>We.length&&ot.splice(We.length),Xe.length>We.length&&Xe.splice(We.length);const st=!ze;Qe.push(...new Array(We.length-Qe.length).fill(st)),ot.push(...new Array(We.length-ot.length).fill(!1)),Xe.push(...new Array(We.length-Xe.length).fill(!1).map((()=>++ce.idCounter))),Ye&&We.length++ce.idCounter))),qe([...We,...Array.from({length:Ye-We.length},(()=>({type:Ve})))]))},_initializerDefineProperty(this,"handleAddBlock",En,this),_initializerDefineProperty(this,"handlePasteBlocks",Tn,this),this.handleRemoveBlock=ce=>{this.removeBlocks([ce])},this.handleRemoveSelectedBlocks=()=>{this.removeBlocks(this.selectedBlockIndexes)},_initializerDefineProperty(this,"removeBlocks",Ln,this),this.handleDuplicateSelectedBlocks=()=>{const{value:ce}=this.props;this.duplicateBlocks(this.selectedBlockIndexes,ce.length)},this.handleDuplicateBlock=ce=>{this.duplicateBlocks([ce],ce)},_initializerDefineProperty(this,"duplicateBlocks",Fn,this),this.handleCopySelectedBlocks=()=>{this.copyBlocks(this.selectedBlockIndexes)},this.handleCopyBlock=ce=>{this.copyBlocks([ce])},this.copyBlocks=function(ce){let ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onDisplaySnackbar:qe,value:Ye}=Ve.props;if(!Ye)return;const Qe=[];ce.forEach((ce=>{Qe.push({...Object(We.toJS)(Ye[ce])})})),st.b.set(sr,Qe),ze&&qe&&qe({type:"info",text:Object(st.d)("sulu_admin.%count%_blocks_copied",{count:ce.length}),icon:"su-copy"})},this.handleCutSelectedBlocks=()=>{this.cutBlocks(this.selectedBlockIndexes)},this.handleCutBlock=ce=>{this.cutBlocks([ce])},this.cutBlocks=ce=>{const{onDisplaySnackbar:ze}=this.props;this.copyBlocks(ce,!1),this.removeBlocks(ce,!1),ze&&ze({type:"info",text:Object(st.d)("sulu_admin.%count%_blocks_cut",{count:ce.length}),icon:"su-cut"})},_initializerDefineProperty(this,"handleSortEnd",Yn,this),_initializerDefineProperty(this,"handleCollapse",Un,this),_initializerDefineProperty(this,"handleExpand",Gn,this),_initializerDefineProperty(this,"handleSelect",Kn,this),_initializerDefineProperty(this,"handleUnselect",Jn,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},_initializerDefineProperty(this,"handleTypeChange",Zn,this),this.renderAddButton=ce=>{const{addButtonText:ze,pasteButtonText:Ve,disabled:qe,value:We}=this.props,Qe=ce0&&Ye.a.createElement(mt.default,{className:Ti,disabled:qe||this.hasMaximumReached,icon:"su-copy",onClick:this.handlePasteBlocks,skin:"secondary",value:ce+1},Ve||Object(st.d)("sulu_admin.paste_blocks",{count:this.pasteableBlocks.length})))},_initializerDefineProperty(this,"handleBlockToolbarCancel",Xn,this),_initializerDefineProperty(this,"handleClickSelectMultiple",ei,this),_initializerDefineProperty(this,"handleBlockToolbarSelectAll",si,this),_initializerDefineProperty(this,"handleBlockToolbarUnselectAll",_i,this),this.renderBlockToolbar=ce=>{const{value:ze}=this.props,Ve=this.selectedBlocks.filter((ce=>ce)).length;return Ye.a.createElement(gt,{actions:[{label:Object(st.d)("sulu_admin.copy"),icon:"su-copy",handleClick:this.handleCopySelectedBlocks},{label:Object(st.d)("sulu_admin.duplicate"),icon:"su-duplicate",handleClick:this.handleDuplicateSelectedBlocks},{label:Object(st.d)("sulu_admin.cut"),icon:"su-cut",handleClick:this.handleCutSelectedBlocks},{label:Object(st.d)("sulu_admin.delete"),icon:"su-trash-alt",handleClick:this.handleRemoveSelectedBlocks}],allSelected:Ve===ze.length,mode:ce?"sticky":"static",onCancel:this.handleBlockToolbarCancel,onSelectAll:this.handleBlockToolbarSelectAll,onUnselectAll:this.handleBlockToolbarUnselectAll,selectedCount:Ve})},this.renderBlockToolbarButton=()=>Ye.a.createElement("div",{className:tr},Ye.a.createElement("button",{className:nr,onClick:this.handleClickSelectMultiple,type:"button"},Ye.a.createElement(yt.default,{"aria-hidden":!0,className:rr,name:"su-check-circle"}),Ye.a.createElement("span",{className:ar},Object(st.d)("sulu_admin.select_multiple_blocks")))),this.fillArraysDisposer=Object(We.reaction)((()=>this.props.value.length),this.fillArrays,{fireImmediately:!0}),this.setPasteableBlocksDisposer=st.b.observe(sr,Object(We.action)((ce=>{this.pasteableBlocks=ce||[]})),!0),!1===ze.movable&&(this.mode="static")}componentWillUnmount(){var ce,ze;null===(ce=this.fillArraysDisposer)||void 0===ce||ce.call(this),null===(ze=this.setPasteableBlocksDisposer)||void 0===ze||ze.call(this)}get selectedBlockIndexes(){const ce=[];return this.selectedBlocks.forEach(((ze,Ve)=>{ze&&ce.push(Ve)})),ce}get hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}get hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}get blockActions(){const ce=[];return ce.push({type:"button",icon:"su-copy",label:Object(st.d)("sulu_admin.copy"),onClick:this.handleCopyBlock}),this.hasMinimumReached||ce.push({type:"button",icon:"su-scissors",label:Object(st.d)("sulu_admin.cut"),onClick:this.handleCutBlock}),this.hasMaximumReached||ce.push({type:"button",icon:"su-duplicate",label:Object(st.d)("sulu_admin.duplicate"),onClick:this.handleDuplicateBlock}),this.hasMinimumReached||(ce.length>0&&ce.push({type:"divider"}),ce.push({type:"button",icon:"su-trash-alt",label:Object(st.d)("sulu_admin.delete"),onClick:this.handleRemoveBlock})),ce}render(){const{collapsable:ce,disabled:ze,icons:Ve,onSettingsClick:qe,renderBlockContent:We,types:Qe,value:Xe}=this.props;return Ye.a.createElement("section",{className:Di},Xe.length>1?"selectable"===this.mode?Ye.a.createElement(bt.default,{top:10},this.renderBlockToolbar):this.renderBlockToolbarButton():null,Ye.a.createElement("div",{className:Ei}),Ye.a.createElement(Ci,{blockActions:this.blockActions,disabled:ze,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ve,lockAxis:"y",mode:this.mode,onCollapse:ce?this.handleCollapse:void 0,onExpand:ce?this.handleExpand:void 0,onSelect:this.handleSelect,onSettingsClick:qe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,onUnselect:this.handleUnselect,renderBlockContent:We,renderDivider:this.renderAddButton,selectedBlocks:this.selectedBlocks,types:Qe,useDragHandle:!0,value:Xe}),this.renderAddButton(Xe.length-1))}},Ri.idCounter=0,Ri.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},gn=BlockCollection_applyDecoratedDescriptor((mn=Ri).prototype,"pasteableBlocks",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"generatedBlockIds",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"expandedBlocks",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Cn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"selectedBlocks",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Sn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"mode",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"sortable"}}),BlockCollection_applyDecoratedDescriptor(mn.prototype,"selectedBlockIndexes",[We.computed],Object.getOwnPropertyDescriptor(mn.prototype,"selectedBlockIndexes"),mn.prototype),En=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleAddBlock",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{defaultType:ze,onChange:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(qe){this.expandedBlocks.splice(ce,0,!0),this.selectedBlocks.splice(ce,0,!1),this.generatedBlockIds.splice(ce,0,++lr.idCounter);Ve([...qe.slice(0,ce),{type:ze},...qe.slice(ce)])}}}}),Tn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handlePasteBlocks",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onDisplaySnackbar:Ve,value:qe}=this.props;if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");if(!qe)return;this.expandedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!0))),this.selectedBlocks.splice(ce,0,...this.pasteableBlocks.map((()=>!1))),this.generatedBlockIds.splice(ce,0,...this.pasteableBlocks.map((()=>++lr.idCounter)));const Ye=this.pasteableBlocks.map((ce=>{var ze;return null!==(ze=this.props.types)&&void 0!==ze&&ze[ce.type]?ce:{...ce,type:this.props.defaultType}})),We=qe.slice(0,ce),Qe=qe.slice(ce);ze([...We,...Ye,...Qe]),st.b.set(sr,void 0),Ve&&Ve({type:"info",text:Object(st.d)("sulu_admin.%count%_blocks_pasted",{count:Ye.length}),icon:"su-copy"})}}}),Ln=BlockCollection_applyDecoratedDescriptor(mn.prototype,"removeBlocks",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{onChange:qe,onDisplaySnackbar:Ye,movable:We,value:Qe}=ce.props;Qe&&(ze.forEach(((ze,Ve)=>{if(ce.hasMinimumReached)throw new Error("The minimum amount of blocks has already been reached!");const qe=ze-Ve;ce.expandedBlocks.splice(qe,1),ce.selectedBlocks.splice(qe,1),ce.generatedBlockIds.splice(qe,1)})),ce.generatedBlockIds.length<2&&"selectable"===ce.mode&&(ce.mode=We?"sortable":"static"),qe(Qe.filter(((ce,Ve)=>-1===ze.indexOf(Ve)))),Ve&&Ye&&Ye({type:"info",text:Object(st.d)("sulu_admin.%count%_blocks_removed",{count:ze.length}),icon:"su-trash-alt"}))}}}),Fn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"duplicateBlocks",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,onDisplaySnackbar:qe,value:Ye}=this.props;if(!Ye)return;let Qe=[...Ye];ce.forEach(((ce,Ve)=>{if(this.hasMaximumReached)throw new Error("The maximum amount of blocks has already been reached!");const qe=ze+Ve;this.expandedBlocks.splice(qe,0,!0),this.selectedBlocks.splice(qe,0,!1),this.generatedBlockIds.splice(qe,0,++lr.idCounter);const Ye=Qe.slice(0,qe),Xe=Qe.slice(qe);Qe=[...Ye,{...Object(We.toJS)(Qe[ce])},...Xe]})),Ve(Qe),qe&&qe({type:"info",text:Object(st.d)("sulu_admin.%count%_blocks_duplicated",{count:ce.length}),icon:"su-duplicate"})}}}),Yn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleSortEnd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:qe,onSortEnd:Ye,value:We}=this.props;this.expandedBlocks=Object(st.a)(this.expandedBlocks,Ve,ze),this.selectedBlocks=Object(st.a)(this.selectedBlocks,Ve,ze),this.generatedBlockIds=Object(st.a)(this.generatedBlockIds,Ve,ze),qe(Object(st.a)(We,Ve,ze)),Ye&&Ye(Ve,ze)}}}),Un=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleCollapse",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Gn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleExpand",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),Kn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleSelect",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!0}}}),Jn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleUnselect",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedBlocks[ce]=!1}}}),Zn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleTypeChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(We.toJS)(qe);Ye[ze].type=ce,Ve(Ye)}}}),BlockCollection_applyDecoratedDescriptor(mn.prototype,"hasMaximumReached",[We.computed],Object.getOwnPropertyDescriptor(mn.prototype,"hasMaximumReached"),mn.prototype),BlockCollection_applyDecoratedDescriptor(mn.prototype,"hasMinimumReached",[We.computed],Object.getOwnPropertyDescriptor(mn.prototype,"hasMinimumReached"),mn.prototype),BlockCollection_applyDecoratedDescriptor(mn.prototype,"blockActions",[We.computed],Object.getOwnPropertyDescriptor(mn.prototype,"blockActions"),mn.prototype),Xn=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleBlockToolbarCancel",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{movable:ce}=this.props;this.mode=ce?"sortable":"static",this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),ei=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleClickSelectMultiple",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mode="selectable"}}}),si=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleBlockToolbarSelectAll",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!0}))}}}),_i=BlockCollection_applyDecoratedDescriptor(mn.prototype,"handleBlockToolbarUnselectAll",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.selectedBlocks.forEach(((ce,ze)=>{this.selectedBlocks[ze]=!1}))}}}),ln=mn))||ln;ze.default=lr},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(17),ot=Ve(12),st=Ve(222),mt=(Ve(96),Ve(27)),gt=Ve(33),yt=Ve(38),bt=Ve(5),vt=Ve.n(bt),wt="header--POOv2uW7fp",Ct="small--VdwOei3LOT";class Dt extends Ye.a.Component{render(){const{children:ce,small:ze}=this.props,Ve=vt()(wt,{[Ct]:ze});return Ye.a.createElement("div",{className:Ve},ce)}}Dt.defaultProps={small:!1};var kt,St,xt,Et,Pt,Tt,Lt,Ft="form--znVBQpbWp4",Bt="buttons--JoQJrhCUhr",Vt="input-field--XDSj-BEyK4",Ht="error--VKQDERczvZ",Ut="label-text--Z87yjcZa8o";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Wt=Object(Qe.b)((Lt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputRef",xt,this),_initializerDefineProperty(this,"user",Et,this),_initializerDefineProperty(this,"setInputRef",Pt,this),_initializerDefineProperty(this,"handleUserChange",Tt,this),this.handleSubmit=ce=>{if(ce.preventDefault(),!this.user)return;const{onSubmit:ze}=this.props;ze({user:this.user})}}get submitButtonDisabled(){return!this.user}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const{success:ce}=this.props;return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Dt,{small:ce},Object(ot.d)(ce?"sulu_admin.forgot_password_success":"sulu_admin.forgot_password")),Ye.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},Ye.a.createElement("fieldset",null,Ye.a.createElement("label",{className:Vt},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.username_or_email")),Ye.a.createElement(yt.default,{autocomplete:"username",icon:"su-user",inputRef:this.setInputRef,onChange:this.handleUserChange,value:this.user})),Ye.a.createElement("div",{className:Bt},Ye.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.d)("sulu_admin.back_to_login")),Ye.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},this.props.success?Object(ot.d)("sulu_admin.reset_resend"):Object(ot.d)("sulu_admin.reset"))))))}},Lt.defaultProps={loading:!1,success:!1},xt=_applyDecoratedDescriptor((St=Lt).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Et=_applyDecoratedDescriptor(St.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(St.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(St.prototype,"submitButtonDisabled"),St.prototype),Pt=_applyDecoratedDescriptor(St.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Tt=_applyDecoratedDescriptor(St.prototype,"handleUserChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.user=ce}}}),kt=St))||kt;var Jt,Qt,en,rn,ln,mn,gn,bn,wn,Cn,Sn=Wt;function LoginForm_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function LoginForm_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let En=Object(Qe.b)((Cn=class extends Ye.a.Component{constructor(){super(...arguments),LoginForm_initializerDefineProperty(this,"inputRef",en,this),LoginForm_initializerDefineProperty(this,"user",rn,this),LoginForm_initializerDefineProperty(this,"password",ln,this),LoginForm_initializerDefineProperty(this,"setInputRef",mn,this),LoginForm_initializerDefineProperty(this,"handleUserChange",gn,this),LoginForm_initializerDefineProperty(this,"handlePasswordChange",bn,this),LoginForm_initializerDefineProperty(this,"handleSubmit",wn,this)}get submitButtonDisabled(){return!(this.user&&this.password)}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const{error:ce}=this.props,ze=vt()(Vt,{[Ht]:ce});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Dt,{small:ce},Object(ot.d)(ce?"sulu_admin.login_error":"sulu_admin.welcome")),Ye.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},Ye.a.createElement("fieldset",null,Ye.a.createElement("label",{className:ze},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.username_or_email")),Ye.a.createElement(yt.default,{autocomplete:"username",icon:"su-user",inputRef:this.setInputRef,onChange:this.handleUserChange,valid:!this.props.error,value:this.user})),Ye.a.createElement("label",{className:ze},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.password")),Ye.a.createElement(yt.default,{autocomplete:"current-password",icon:"su-lock",onChange:this.handlePasswordChange,type:"password",valid:!this.props.error,value:this.password})),Ye.a.createElement("div",{className:Bt},Ye.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.d)("sulu_admin.forgot_password")),Ye.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},Object(ot.d)("sulu_admin.login"))))))}},Cn.defaultProps={error:!1,loading:!1},en=LoginForm_applyDecoratedDescriptor((Qt=Cn).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=LoginForm_applyDecoratedDescriptor(Qt.prototype,"password",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LoginForm_applyDecoratedDescriptor(Qt.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"submitButtonDisabled"),Qt.prototype),mn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),gn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handleUserChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.user=ce}}}),bn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handlePasswordChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password=ce}}}),wn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handleSubmit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(ce.preventDefault(),!this.user||!this.password)return;const{onSubmit:ze}=this.props;ze({username:this.user,password:this.password})}}}),Jt=Qt))||Jt;var Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn,Zn,Xn,ei,si=En,_i=Ve(85),Ri=Ve(183);Ve(632),Ve(190),Ve(191),Ve(351),Ve(326);function ResetPasswordForm_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResetPasswordForm_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ci=Object(Qe.b)((ei=class extends Ye.a.Component{constructor(){super(...arguments),ResetPasswordForm_initializerDefineProperty(this,"inputRef",Fn,this),ResetPasswordForm_initializerDefineProperty(this,"errorMessage",Yn,this),ResetPasswordForm_initializerDefineProperty(this,"password1",Un,this),ResetPasswordForm_initializerDefineProperty(this,"password2",Gn,this),ResetPasswordForm_initializerDefineProperty(this,"setInputRef",Kn,this),ResetPasswordForm_initializerDefineProperty(this,"handlePassword1Change",Jn,this),ResetPasswordForm_initializerDefineProperty(this,"handlePassword2Change",Zn,this),ResetPasswordForm_initializerDefineProperty(this,"handleSubmit",Xn,this)}get submitButtonDisabled(){return!(this.password1&&this.password2)}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const ce=vt()(Vt,{[Ht]:null!==this.errorMessage});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Dt,{small:null!==this.errorMessage},Object(ot.d)(this.errorMessage||"sulu_admin.reset_password")),Ye.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},Ye.a.createElement("fieldset",null,Ye.a.createElement("label",{className:ce},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.password")),Ye.a.createElement(yt.default,{autocomplete:"new-password",icon:"su-lock",inputRef:this.setInputRef,onChange:this.handlePassword1Change,type:"password",valid:!this.errorMessage,value:this.password1})),Ye.a.createElement("label",{className:ce},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.repeat_password")),Ye.a.createElement(yt.default,{autocomplete:"new-password",icon:"su-lock",onChange:this.handlePassword2Change,type:"password",valid:!this.errorMessage,value:this.password2})),_i.a.passwordInfoTranslationKey&&Ye.a.createElement("label",{className:Ri.a.descriptionLabel},Object(ot.d)(_i.a.passwordInfoTranslationKey)),Ye.a.createElement("div",{className:Bt},Ye.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.d)("sulu_admin.back_to_login")),Ye.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},Object(ot.d)("sulu_admin.reset_password"))))))}},ei.defaultProps={loading:!1},Fn=ResetPasswordForm_applyDecoratedDescriptor((Ln=ei).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"errorMessage",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Un=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"password1",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"password2",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(Ln.prototype,"submitButtonDisabled"),Ln.prototype),Kn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Jn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handlePassword1Change",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password1=ce,this.errorMessage=null}}}),Zn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handlePassword2Change",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password2=ce,this.errorMessage=null}}}),Xn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handleSubmit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(ce.preventDefault(),!this.password1||!this.password2||this.password1!==this.password2)return void(this.errorMessage="sulu_admin.reset_password_error");if(!mt.a.validatePassword(this.password1||""))return void(this.errorMessage="sulu_admin.reset_password_pattern_error");this.errorMessage=null;const{onSubmit:ze}=this.props;ze({password:this.password1||""})}}}),Tn=Ln))||Tn;var Di,Ei,Oi,Ti,er,tr,nr,rr,ar,sr=Ci,lr="login--zZ3pfGnkxR",dr="login-container--GGjh18ZjLK",ur="logo-container--ZESdCwk5ia",pr="loader-container--kS6BG0vviZ",vr="form-container--p6M1LbOMHr",_r="back-link-container--p0dPH83DPu",Rr="back-link--IHQpWLzisq",Cr="back-link-icon--lBniBkY70C",Dr=Ve(87);function TwoFactorForm_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TwoFactorForm_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Er=Object(Qe.b)((ar=class extends Ye.a.Component{constructor(){super(...arguments),TwoFactorForm_initializerDefineProperty(this,"inputRef",Oi,this),TwoFactorForm_initializerDefineProperty(this,"authCode",Ti,this),TwoFactorForm_initializerDefineProperty(this,"trustedDevice",er,this),TwoFactorForm_initializerDefineProperty(this,"setInputRef",tr,this),TwoFactorForm_initializerDefineProperty(this,"handleAuthCodeChange",nr,this),TwoFactorForm_initializerDefineProperty(this,"handleTrustedDeviceChange",rr,this),this.handleSubmit=ce=>{if(ce.preventDefault(),!this.authCode)return;const{onSubmit:ze}=this.props;ze({_auth_code:this.authCode,_trusted:this.trustedDevice})}}get submitButtonDisabled(){return!this.authCode}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const{error:ce,methods:ze}=this.props,Ve=vt()(Vt,{[Ht]:ce});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Dt,{small:ce},Object(ot.d)(ce?"sulu_admin.two_factor_authentication_failed":"sulu_admin.two_factor_authentication")),Ye.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},Ye.a.createElement("fieldset",null,Ye.a.createElement("label",{className:Ve},Ye.a.createElement("div",{className:Ut},Object(ot.d)("sulu_admin.two_factor_verification_code")),Ye.a.createElement(yt.default,{autocomplete:"one-time-code",icon:"su-lock",inputRef:this.setInputRef,onChange:this.handleAuthCodeChange,valid:!ce,value:this.authCode})),ze.includes("trusted_devices")&&Ye.a.createElement(Dr.b,{checked:this.trustedDevice,onChange:this.handleTrustedDeviceChange,size:"small"},Object(ot.d)("sulu_admin.two_factor_trust_device")),Ye.a.createElement("div",{className:Bt},Ye.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.d)("sulu_admin.back_to_login")),Ye.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},Object(ot.d)("sulu_admin.verify"))))))}},ar.defaultProps={error:!1,loading:!1,methods:[]},Oi=TwoFactorForm_applyDecoratedDescriptor((Ei=ar).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ti=TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"authCode",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),er=TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"trustedDevice",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(Ei.prototype,"submitButtonDisabled"),Ei.prototype),tr=TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),nr=TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"handleAuthCodeChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.authCode=ce}}}),rr=TwoFactorForm_applyDecoratedDescriptor(Ei.prototype,"handleTrustedDeviceChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.trustedDevice=ce}}}),Di=Ei))||Di;var Tr,Ar,Mr,Lr,jr,Ir,zr,Br=Er;function Login_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Login_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Nr=Object(Qe.b)((zr=class extends Ye.a.Component{constructor(){super(...arguments),Login_initializerDefineProperty(this,"visibleForm",Mr,this),Login_initializerDefineProperty(this,"clearState",Lr,this),Login_initializerDefineProperty(this,"handleChangeToLoginForm",jr,this),Login_initializerDefineProperty(this,"handleChangeToForgotPasswordForm",Ir,this),this.handleLoginFormSubmit=ce=>{mt.a.login(ce).then((()=>{mt.a.twoFactorMethods&&mt.a.twoFactorMethods.length>0?Object(We.action)((()=>{this.visibleForm="two-factor"}))():this.props.onLoginSuccess()}))},this.handleForgotPasswordFormSubmit=ce=>{mt.a.forgotPassword(ce).then((()=>{this.props.onLoginSuccess()}))},this.handleTwoFactorFormSubmit=ce=>{mt.a.twoFactorLogin(ce).then((()=>{this.props.onLoginSuccess()}))},this.handleResetPasswordFormSubmit=ce=>{const{onLoginSuccess:ze,router:Ve}=this.props,{forgotPasswordToken:qe}=Ve.attributes;if("string"!=typeof qe)throw new Error('The "forgotPasswordToken" router attribute must be a string!');mt.a.resetPassword({...ce,token:qe}).then((()=>{Ve.reset(),ze()}))}}get loginFormVisible(){return"login"===this.visibleForm}get forgotPasswordFormVisible(){return"forgot-password"===this.visibleForm}get resetPasswordFormVisible(){return"reset-password"===this.visibleForm}get twoFactorVisible(){return"two-factor"===this.visibleForm}render(){const{backLink:ce,initialized:ze}=this.props;return Ye.a.createElement("div",{className:lr},Ye.a.createElement("div",{className:dr},Ye.a.createElement("div",{className:vr},Ye.a.createElement("div",{className:ur},Ye.a.createElement(Xe.default,{name:"su-sulu"})),!ze&&Ye.a.createElement("div",{className:pr},Ye.a.createElement(st.default,{size:20})),ze&&this.loginFormVisible&&Ye.a.createElement(si,{error:mt.a.loginError,loading:mt.a.loading,onChangeForm:this.handleChangeToForgotPasswordForm,onSubmit:this.handleLoginFormSubmit}),ze&&this.forgotPasswordFormVisible&&Ye.a.createElement(Sn,{loading:mt.a.loading,onChangeForm:this.handleChangeToLoginForm,onSubmit:this.handleForgotPasswordFormSubmit,success:mt.a.forgotPasswordSuccess}),ze&&this.resetPasswordFormVisible&&Ye.a.createElement(sr,{loading:mt.a.loading,onChangeForm:this.handleChangeToLoginForm,onSubmit:this.handleResetPasswordFormSubmit}),ze&&this.twoFactorVisible&&Ye.a.createElement(Br,{error:mt.a.twoFactorError,loading:mt.a.loading,methods:mt.a.twoFactorMethods,onChangeForm:this.handleChangeToLoginForm,onSubmit:this.handleTwoFactorFormSubmit})),Ye.a.createElement("div",{className:_r},ze&&Ye.a.createElement("a",{className:Rr,href:ce},Ye.a.createElement(Xe.default,{className:Cr,name:"su-angle-left"}),Object(ot.d)("sulu_admin.back_to_website")))))}},zr.defaultProps={backLink:"/",initialized:!1},Mr=Login_applyDecoratedDescriptor((Ar=zr).prototype,"visibleForm",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.router.attributes.forgotPasswordToken?"reset-password":"login"}}),Login_applyDecoratedDescriptor(Ar.prototype,"loginFormVisible",[We.computed],Object.getOwnPropertyDescriptor(Ar.prototype,"loginFormVisible"),Ar.prototype),Login_applyDecoratedDescriptor(Ar.prototype,"forgotPasswordFormVisible",[We.computed],Object.getOwnPropertyDescriptor(Ar.prototype,"forgotPasswordFormVisible"),Ar.prototype),Login_applyDecoratedDescriptor(Ar.prototype,"resetPasswordFormVisible",[We.computed],Object.getOwnPropertyDescriptor(Ar.prototype,"resetPasswordFormVisible"),Ar.prototype),Login_applyDecoratedDescriptor(Ar.prototype,"twoFactorVisible",[We.computed],Object.getOwnPropertyDescriptor(Ar.prototype,"twoFactorVisible"),Ar.prototype),Lr=Login_applyDecoratedDescriptor(Ar.prototype,"clearState",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.loginFormVisible?mt.a.setLoginError(!1):this.forgotPasswordFormVisible?mt.a.setForgotPasswordSuccess(!1):this.twoFactorVisible&&(mt.a.setTwoFactorMethods([]),mt.a.setTwoFactorError(!1))}}}),jr=Login_applyDecoratedDescriptor(Ar.prototype,"handleChangeToLoginForm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.router.reset(),this.visibleForm="login"}}}),Ir=Login_applyDecoratedDescriptor(Ar.prototype,"handleChangeToForgotPasswordForm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.visibleForm="forgot-password"}}}),Tr=Ar))||Tr;ze.default=Nr},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(115),mt=Ve(17),gt="item--+K7ECCWpv3",yt="active--IttgB+rF7t",bt="icon--kSDneYyORQ";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:qe}=this.props,We=ot()(gt,{[yt]:ze});return Ye.a.createElement("button",{className:We,disabled:qe,onClick:this.handleButtonClick,type:"button"},Ye.a.createElement("span",{className:bt},Ve&&ze&&Ye.a.createElement(mt.default,{className:bt,name:Ve})),Ye.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--8xR4zjO60a",Ct="children--HuG2RV-7+D",Dt="title--ZfeY6dyHvy";class kt extends Ye.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return Ye.a.createElement("div",{className:wt},ze&&Ye.a.createElement("div",{className:Dt},ze),Ye.a.createElement("div",{className:Ct},ce))}}class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return Ye.a.Children.map(ce,(ce=>ce?Ye.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return Ye.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--AwuvRf+HZD",Et="icon--Wv7rOOZQdm";class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return Ye.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&Ye.a.createElement(mt.default,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Vt,Ht="arrowMenuContainer--yrBVKg09uk",Ut="arrowMenu--bcMAYqbiTV",Wt="arrow--MJPWcp-SoE",Jt="right--Vy0oN1dO7H",Qt="left--TX9YO1aoyU",en="top--GSVTOaSCe1",rn="bottom--oShSZ9MS3n";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ln=Object(Qe.b)((Vt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>Ye.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return Ye.a.Children.map(ce,(ce=>ce?ce.type===kt?Ye.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?Ye.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return Ye.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return Ye.a.createElement(qe.Fragment,null,We,Ye.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,qe)=>{const Ye="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,Ye,qe)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Qe=this.cloneChildren(We),Xe=ot()(Wt,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===qe,[Jt]:"right"===qe});return Ye.a.createElement("div",{className:Ht,ref:ce,style:ze},Ye.a.createElement("div",{className:Xe}),Ye.a.createElement("div",{className:Ut},Qe))}},Vt.defaultProps={refProp:"ref"},Vt.Section=kt,Vt.SingleItemSection=St,Vt.Item=vt,Vt.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Vt).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;ze.default=ln},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(3),Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(5),Xe=Ve.n(Qe),ot=Ve(17),st=Ve(87),mt={table:"table--CtMJpm47fT",header:"header--il6JmELQIE","header-cell":"header-cell--RaGvGPK-0J",headerCell:"header-cell--RaGvGPK-0J",cell:"cell--1TqY+QKI+d","button-cell":"button-cell--Z15OX0v-1E",buttonCell:"button-cell--Z15OX0v-1E",clickable:"clickable--4hGfgoMed+",shrink:"shrink--QdhXNS5Yu-","cell-content":"cell-content--ZnWCzKdd22",cellContent:"cell-content--ZnWCzKdd22","toggle-icon":"toggle-icon--whihPaK8lT",toggleIcon:"toggle-icon--whihPaK8lT","cell-select":"cell-select--QlcQEEm6CA",cellSelect:"cell-select--QlcQEEm6CA","header-cell-sort-icon":"header-cell-sort-icon--yWd0llnr0J",headerCellSortIcon:"header-cell-sort-icon--yWd0llnr0J","header-button-cell":"header-button-cell--avfu-+h6jU",headerButtonCell:"header-button-cell--avfu-+h6jU",row:"row--dypP6K31p0",disabled:"disabled--Q+DV15brME","table-placeholder-area":"table-placeholder-area--g25n7DkDmH",tablePlaceholderArea:"table-placeholder-area--g25n7DkDmH","table-placeholder-icon":"table-placeholder-icon--PafoDIQwv9",tablePlaceholderIcon:"table-placeholder-icon--PafoDIQwv9","table-placeholder-text":"table-placeholder-text--S0qNpjfmu8",tablePlaceholderText:"table-placeholder-text--S0qNpjfmu8",dark:"dark--eftObj01Wc",light:"light--pXbAVqiSXW",flat:"flat--3CDul5y2cY","has-buttons":"has-buttons--EFAmY7L7gj",hasButtons:"has-buttons--EFAmY7L7gj"};class gt extends We.a.PureComponent{constructor(){super(...arguments),this.getSortOrderIcon=()=>{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.default,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.default,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:qe}=this.props,Ye=Xe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[qe]]:"auto"!==qe});return We.a.createElement("th",{className:Ye},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[],Ye=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&qe.push(...ce)}return Ve||(this.isMultipleSelect()?qe.push(this.createCheckboxCell()):this.isSingleSelect()&&qe.push(this.createEmptyCell())),Ye.unshift(...qe),Ye},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:qe}=ce;let{children:Ye}=qe;return 0===ze&&(Ye=this.createFirstCell(Ye)),We.a.cloneElement(ce,{...qe,key:Ve,children:Ye})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:qe,skin:Qe}=this.props;return Ve&&this.isMultipleSelect()&&qe?We.a.createElement(Ye.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Qe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.default,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(434),vt=(Ve(783),Ve(370)),wt=Ve(222);class Ct extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:qe,width:Ye}=this.props,Qe=Xe()(Ve,mt.cell,{[mt[Ye]]:"auto"!==Ye}),ot={};return qe&&(ot.paddingLeft=25*qe+"px"),We.a.createElement("td",{className:Qe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}Ct.defaultProps={width:"auto"};class Dt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(Ct,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.default,{name:ze})))}}Dt.defaultProps={disabled:!1};class kt extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,qe=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&qe.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&qe.push(We.a.createElement(Ct,{key:"choice",width:"shrink"},ce))}const Ye=this.cloneCells(ce);return Ye.unshift(qe),Ye},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:qe}=ce,Ye=0===ze,{depth:Qe}=this.props;let{children:Xe}=qe;return Ye&&(Xe=this.createFirstCell(Xe)),We.a.cloneElement(ce,{...qe,key:Ve,children:Xe,depth:Ye&&Qe?Qe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:qe}=this.props;return We.a.createElement(Ye.Fragment,null,Ve&&qe&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(wt.default,{size:10}):We.a.createElement(vt.default,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(bt.default,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const qe=`control-${ze}-${Ve}`,{disabled:Ye,icon:Qe,onClick:Xe}=ce;return We.a.createElement(Dt,{disabled:Ye,icon:Qe,key:qe,onClick:Xe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Xe()(mt.row,{[mt.disabled]:ze}),qe=this.createCells(ce);return We.a.createElement("tr",{className:Ve},qe)}}kt.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class St extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,qe)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${qe}`,rowIndex:qe,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var xt,Et;St.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Pt=Object(qe.b)((Et=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:qe,selectMode:Ye,selectInFirstCell:Qe,skin:Xe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:qe?this.handleAllSelectionChange:void 0,selectMode:Ye,selectInFirstCell:Qe,skin:Xe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.default,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let qe,Ye;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:Ye=ce;break;case St:qe=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,St.name].join(", "))}}));const Qe=this.cloneBody(qe),ot=Qe&&0===We.a.Children.count(Qe.props.children),st=!(!Qe||ot)&&this.checkAllRowsSelected(Qe),gt=this.cloneHeader(Ye,st),bt=Xe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Qe),ot&&this.createTablePlaceholderArea())}},Et.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Et.Header=yt,Et.Body=St,Et.Row=kt,Et.Cell=Ct,Et.HeaderCell=gt,xt=Et))||xt;ze.default=Pt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Ln}));var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(3),Ct=Ve(1),Dt=Ve(291),kt=Ve(5),St=Ve.n(kt),xt=Ve(15),Et="rectangle--2b2nhw-nSR",Pt="disabled--33TO2+huBM",Tt="has-backdrop--1PQbJrLw9z",Lt="backdrop--8A+wbXoDwa",Ft="label--Ek2csOlk5G",Bt="resize-handle--pUZ66aHddN",Vt="min-size-notification--zJ4fbr-uAF";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ht=Object(wt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"moveMode",We,this),_initializerDefineProperty(this,"resizeMode",Qe,this),_initializerDefineProperty(this,"clickAnchor",Xe,this),_initializerDefineProperty(this,"handleMoveMouseDown",ot,this),_initializerDefineProperty(this,"handleResizeMouseDown",st,this),_initializerDefineProperty(this,"handleMouseUp",mt,this),_initializerDefineProperty(this,"handleMouseMove",gt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:qe,left:Ye,minSizeReached:We,top:Qe,width:Xe}=this.props,ot=St()(Et,{[Pt]:ze,[Tt]:!!ce});return vt.a.createElement(bt.Fragment,null,vt.a.createElement("div",{className:ot,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:Ye+"px",top:Qe+"px",width:Xe+"px",height:Ve+"px"}},!!ce&&vt.a.createElement("div",{className:Lt,style:{outlineWidth:ce+"px"}}),!!qe&&vt.a.createElement("div",{className:Ft,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},qe),!ze&&vt.a.createElement("div",{className:Bt,onMouseDown:this.handleResizeMouseDown,role:"slider"})),We&&vt.a.createElement("div",{className:Vt,style:{left:Ye+"px",top:Qe+Ve+"px",width:Xe+"px"}},Object(xt.b)("sulu_media.min_size_notification")))}},yt.defaultProps={backdropSize:0,left:0,top:0},We=_applyDecoratedDescriptor((Ye=yt).prototype,"moveMode",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"resizeMode",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"clickAnchor",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),_applyDecoratedDescriptor(Ye.prototype,"setClickAnchor",[Ct.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setClickAnchor"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleMoveMouseDown",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleResizeMouseDown",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleMouseUp",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handleMouseMove",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,qe=0,Ye=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:qe,width:Ye,height:We}))}}}),qe=Ye))||qe;var Ut=Ht;class Wt{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class Jt{constructor(ce,ze,Ve,qe){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze,Ve=ce.height;const qe=Ve*(this.minWidth/this.minHeight);return qe>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=qe,{...ce,width:ze,height:Ve}}}class Qt{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class en{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=qe}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}var rn=Ve(230);function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ln,mn,gn,bn="container--ZrPYj0c7pr",wn="selection--mruLU4roc7";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cn=Object(wt.b)((gn=class ce extends vt.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:qe,minHeight:Ye,round:We}=ce;if(!ze||!Ve)return[];const Qe=[new en(ze,Ve,qe,Ye)];return qe&&Ye&&Qe.push(new Jt(ze,Ve,qe,Ye)),Qe.push(new Wt(ze,Ve)),We&&Qe.push(new Qt),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:qe}=this.props;ze(ce?{...ce,left:ce.left/qe,top:ce.top/Ve,width:ce.width/qe,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return vt.a.createElement(ce,ze)}},qe.defaultProps={minHeight:void 0,minWidth:void 0},withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMinHeight",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(rn.a)("withPercentageValues",ce),Ye}(Cn);class En extends vt.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?vt.a.createElement(Sn,this.props):vt.a.createElement(Cn,this.props)}}const Tn=Object(Dt.a)(En,bn);class Ln extends vt.a.Component{render(){const{children:ce}=this.props;return ce?vt.a.createElement(Tn,this.props):vt.a.createElement(En,this.props)}}Ln.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(34),bt=Ve(11),vt=(Ve(800),Ve(551).default),wt=Ve(76),Ct=Ve(6),Dt=Ve(401),kt=Ve(335),St="overlay--QHkUd6i5zi";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt="collection_details";var Et,Pt,Tt=Object(mt.b)((Ye=class extends ot.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"title",We,this),_initializerDefineProperty(this,"formStore",Qe,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=yt.j.createFromResourceStore(ze,xt)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(Ct.translate)("sulu_media.add_collection"):Object(Ct.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=yt.j.createFromResourceStore(this.props.resourceStore,xt))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,qe="create"===ce||"update"===ce,Ye=Object(Ct.translate)("sulu_admin.ok"),We=Object(Ct.translate)("sulu_admin.cancel"),Qe=ot.a.createElement(yt.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?ot.a.createElement(gt.Dialog,{cancelText:We,confirmLoading:Ve.saving,confirmText:Ye,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},Qe):ot.a.createElement(gt.Overlay,{confirmLoading:Ve.saving,confirmText:Ye,onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},ot.a.createElement("div",{className:St},Qe))}},We=_applyDecoratedDescriptor(Ye.prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),qe=Ye))||qe;let Lt=Object(mt.b)((Pt=class ce extends ot.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:qe}}=Ve,Ye=ce.getCurrentCollectionItem(Ve);return qe?[...qe,Ye]:[Ye]}render(){const ce=gt.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(Ct.translate)("sulu_media.all_media");if(!ze||!ze.length)return ot.a.createElement(gt.Breadcrumb,null,ot.a.createElement(ce,null,Ve));if(1===ze.length){const qe=ze[0];return ot.a.createElement(gt.Breadcrumb,{onItemClick:this.handleNavigate},ot.a.createElement(ce,null,Ve),ot.a.createElement(ce,null,qe.title))}const qe=ze[ze.length-1],Ye=ze[ze.length-2];return ot.a.createElement(gt.Breadcrumb,{onItemClick:this.handleNavigate},ot.a.createElement(ce,null,Ve),ot.a.createElement(ce,{value:Ye.id},"..."),ot.a.createElement(ce,null,qe.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Pt.prototype,"breadcrumb",[st.computed],Object.getOwnPropertyDescriptor(Pt.prototype,"breadcrumb"),Pt.prototype),Et=Pt))||Et;var Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln=Lt,mn="overlay--xgl-7MKbSj";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const gn={resourceKey:"media"};var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Object(mt.b)((Bt=class extends ot.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Vt,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Ht,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Ut,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Wt,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Jt,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Qt,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...gn}).then((()=>ze())).catch((ce=>{ce.json().then(Object(st.action)((ce=>{const ze=ce.detail||ce.title||Object(Ct.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",en,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",rn,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new wt.c("permissions",ce,{},gn),this.formStore=yt.j.createFromResourceStore(this.resourceStore,"permission_details",gn),this.inheritDialogFormStore=yt.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.Overlay,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(Ct.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(Ct.translate)("sulu_security.permissions")},ot.a.createElement("div",{className:mn},ot.a.createElement(yt.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmText:Object(Ct.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(Ct.translate)("sulu_security.inherit_permissions_title")},ot.a.createElement(yt.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Vt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"showInheritDialog",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ht=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"error",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Bt.prototype,"componentDidUpdate"),Bt.prototype),Ut=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Wt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleConfirmInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Jt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleSubmitInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Qt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleCancelInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),en=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleSnackbarCloseClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),rn=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),Ft=Bt))||Ft,Gn="collection-section--vd38iOnzww",Kn="left--MDfYyYWha-",Jn="right--4eon3tAoGc";function CollectionSection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Zn="collections";let Xn=Object(mt.b)((wn=class extends ot.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Cn,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",Sn,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",En,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,qe=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(qe)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(st.action)((Ve=>{409!==ze.status||Ve.code!==kt.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",Tn,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ln,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",Fn,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Yn,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(st.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const qe=new wt.c(Zn,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&qe.set("parent",this.collectionId),qe}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?ot.a.createElement(Dt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:qe,locale:Ye,overlayType:We,resourceStore:Qe,securable:Xe}=this.props,st=this.openedCollectionOperationOverlayType;return ot.a.createElement("div",null,!Qe.loading&&ot.a.createElement("div",{className:Gn},ot.a.createElement("div",{className:Kn},ot.a.createElement(ln,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Qe})),ot.a.createElement("div",{className:Jn},ot.a.createElement(gt.ButtonGroup,null,ce&&ot.a.createElement(gt.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(Ct.translate)("sulu_media.add_collection")),!!Qe.id&&(Ve||ze||Ve||Xe)&&ot.a.createElement(gt.DropdownButton,{icon:"su-cog"},Ve&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(Ct.translate)("sulu_admin.edit")),ze&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(Ct.translate)("sulu_admin.delete")),Ve&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(Ct.translate)("sulu_admin.move")),Xe&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(Ct.translate)("sulu_security.permissions")))))),ot.a.createElement(yt.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:qe}),ot.a.createElement(Tt,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:st,overlayType:We,resourceStore:this.resourceStoreByOperationType}),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmLoading:Qe.deleting,confirmText:Object(Ct.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===st,title:Object(Ct.translate)("sulu_media.remove_collection")},Object(Ct.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),ot.a.createElement(Un,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===st}),ot.a.createElement(yt.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Qe.moving,disabledIds:Qe.id?[Qe.id]:[],itemDisabledCondition:"!!locked",listKey:Zn,locale:Ye,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===st,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:Zn,title:Object(Ct.translate)("sulu_media.move_collection")}),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmText:Object(Ct.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(Ct.translate)("sulu_security.move_permission_title")},Object(Ct.translate)("sulu_security.move_permission_warning")))}},Cn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"openedCollectionOperationOverlayType",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"movingRestrictedTargetCollection",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CollectionSection_applyDecoratedDescriptor(wn.prototype,"dependantResourcesData",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(wn.prototype,"openCollectionOperationOverlay",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"openCollectionOperationOverlay"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"closeCollectionOperationOverlay",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeCollectionOperationOverlay"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"collectionId",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"collectionId"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"hasChildren",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"hasChildren"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"resourceStoreByOperationType",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"resourceStoreByOperationType"),wn.prototype),Tn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMoveCollectionConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Ln=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMovePermissionWarningConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),Fn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMovePermissionWarningCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Yn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"closeDeleteDependantResourcesDialog",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(wn.prototype,"deleteDependantResourcesDialogRequestOptions",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"deleteDependantResourcesDialogRequestOptions"),wn.prototype),bn=wn))||bn;var ei,si,_i,Ri,Ci,Di=Xn;function MediaCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ei=Object(mt.b)((Ci=class ce extends ot.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",_i,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",Ri,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:qe,collectionStore:Ye,hideUploadAction:We,locale:Qe,overlayType:Xe,mediaListAdapters:st,mediaListRef:mt,mediaListStore:wt,onMediaNavigate:Ct,onUploadOverlayClose:Dt,onUploadOverlayOpen:kt,uploadOverlayOpen:St}=this.props,{locked:xt,permissions:Et}=Ye,Pt=[],Tt=!xt&&(void 0!==Et.add?Et.add:ce.addable),Lt=!xt&&(void 0!==Et.edit?Et.edit:ce.editable),Ft=!xt&&(void 0!==Et.delete?Et.delete:ce.deletable),Bt=!xt&&(void 0!==Et.security?Et.security:ce.securable);return Tt&&!We&&Pt.push({disabled:Ye.loading,icon:"su-upload",label:Object(bt.b)("sulu_media.upload_file"),onClick:kt}),ot.a.createElement(vt,{className:Ve,collectionId:Ye.id,disabled:Ye.loading||!Tt,locale:Qe,onClose:Dt,onOpen:kt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:St},ot.a.createElement(Di,{addable:Tt,deletable:Ft,editable:Lt,listStore:qe,locale:Qe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:Xe,resourceStore:Ye.resourceStore,securable:Bt}),ot.a.createElement(gt.Divider,null),ot.a.createElement(yt.b,{actions:Pt,adapters:st,onDeleteError:ze,onItemClick:Ct,ref:mt,store:wt}))}},Ci.defaultProps={hideUploadAction:!1,overlayType:"overlay"},Ci.addable=!0,Ci.deletable=!0,Ci.editable=!0,Ci.securable=!0,_i=MediaCollection_applyDecoratedDescriptor((si=Ci).prototype,"handleUpload",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(st.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),Ri=MediaCollection_applyDecoratedDescriptor(si.prototype,"handleUploadError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),ei=si))||ei;ze.default=Ei},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return vt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe={colSpan:"colSpan--CfJLmGRgTL","colSpan-1":"colSpan-1---HkP33+47y",colSpan1:"colSpan-1---HkP33+47y","colSpan-2":"colSpan-2--mf9VYf2W8f",colSpan2:"colSpan-2--mf9VYf2W8f","colSpan-3":"colSpan-3--uFnQEJ+Sr+",colSpan3:"colSpan-3--uFnQEJ+Sr+","colSpan-4":"colSpan-4--wgQ+pXfvfO",colSpan4:"colSpan-4--wgQ+pXfvfO","colSpan-5":"colSpan-5--H12tD+31rw",colSpan5:"colSpan-5--H12tD+31rw","colSpan-6":"colSpan-6--xDYlokI3LA",colSpan6:"colSpan-6--xDYlokI3LA","colSpan-7":"colSpan-7--l1wwJTZy3V",colSpan7:"colSpan-7--l1wwJTZy3V","colSpan-8":"colSpan-8--OvoTbyMtwb",colSpan8:"colSpan-8--OvoTbyMtwb","colSpan-9":"colSpan-9--PTIgFaLo2Q",colSpan9:"colSpan-9--PTIgFaLo2Q","colSpan-10":"colSpan-10--gyUfLd98dx",colSpan10:"colSpan-10--gyUfLd98dx","colSpan-11":"colSpan-11--RjuGTR4AvK",colSpan11:"colSpan-11--RjuGTR4AvK","colSpan-12":"colSpan-12--5xlzhP6ri3",colSpan12:"colSpan-12--5xlzhP6ri3","space-before-1":"space-before-1--g2RiLaOibQ",spaceBefore1:"space-before-1--g2RiLaOibQ","space-before-2":"space-before-2--eAi+v7ruKF",spaceBefore2:"space-before-2--eAi+v7ruKF","space-before-3":"space-before-3--jOuRs3vlHl",spaceBefore3:"space-before-3--jOuRs3vlHl","space-before-4":"space-before-4--zPNS5Ee9aW",spaceBefore4:"space-before-4--zPNS5Ee9aW","space-before-5":"space-before-5--OZs+hr0iOr",spaceBefore5:"space-before-5--OZs+hr0iOr","space-before-6":"space-before-6--DwTRfr2UgZ",spaceBefore6:"space-before-6--DwTRfr2UgZ","space-before-7":"space-before-7--ZYv5YZJf+H",spaceBefore7:"space-before-7--ZYv5YZJf+H","space-before-8":"space-before-8--U7NDcNZv3B",spaceBefore8:"space-before-8--U7NDcNZv3B","space-before-9":"space-before-9--bMGd1bg+ow",spaceBefore9:"space-before-9--bMGd1bg+ow","space-before-10":"space-before-10--y-lLWYVPXH",spaceBefore10:"space-before-10--y-lLWYVPXH","space-before-11":"space-before-11--Qr-kJaYaXr",spaceBefore11:"space-before-11--Qr-kJaYaXr","space-before-12":"space-before-12--M6H2uGfjSH",spaceBefore12:"space-before-12--M6H2uGfjSH","space-after-1":"space-after-1--2mDfPKz8Ja",spaceAfter1:"space-after-1--2mDfPKz8Ja","space-after-2":"space-after-2--eXO7YA8fC+",spaceAfter2:"space-after-2--eXO7YA8fC+","space-after-3":"space-after-3--NLRCPXEb2t",spaceAfter3:"space-after-3--NLRCPXEb2t","space-after-4":"space-after-4--U-ks7sEBxM",spaceAfter4:"space-after-4--U-ks7sEBxM","space-after-5":"space-after-5--lAa50t3b5V",spaceAfter5:"space-after-5--lAa50t3b5V","space-after-6":"space-after-6--rv+E0L2VTS",spaceAfter6:"space-after-6--rv+E0L2VTS","space-after-7":"space-after-7--0k0nfxdYoZ",spaceAfter7:"space-after-7--0k0nfxdYoZ","space-after-8":"space-after-8--9A1F-LxFWY",spaceAfter8:"space-after-8--9A1F-LxFWY","space-after-9":"space-after-9--M3yUF0k+aN",spaceAfter9:"space-after-9--M3yUF0k+aN","space-after-10":"space-after-10--9C2-Y09ma6",spaceAfter10:"space-after-10--9C2-Y09ma6","space-after-11":"space-after-11--2spz7fP8w4",spaceAfter11:"space-after-11--2spz7fP8w4","space-after-12":"space-after-12--Pe-8vJKU+a",spaceAfter12:"space-after-12--Pe-8vJKU+a"};class ot extends Ye.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:qe,spaceBefore:We}=this.props,ot=Qe()(Ve,Xe.colSpan,Xe["colSpan-"+ce],Xe["space-before-"+We],Xe["space-after-"+qe]);return Ye.a.createElement("div",{className:ot},ze)}}var st="item--GnJZpTPFc9";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove},Ye.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(17),Dt=Ve(87),kt={option:"option--WJKFZlxl6x",selected:"selected--75t-0ZXYcZ",icon:"icon--zz1b9S+wI0",checkbox:"checkbox--4tltkbgtVD",input:"input--IHg1svObH1"};class St extends Ye.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?Ye.a.createElement(Ct.default,{className:kt.icon,name:"su-check"}):null:Ye.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:qe,selectedVisualization:We}=this.props,Qe=wt()(kt.option,kt[We],{[kt.selected]:ze});return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},Ye.a.createElement("button",{className:Qe,disabled:qe,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(194),Et={displayValue:"displayValue--u9ml+hNrbW",flat:"flat--nKY+CDE1A5",dark:"dark--Nly6sKjv0l",default:"default--FLS9QAAwX7","has-icon":"has-icon--sfGOor0uPD",hasIcon:"has-icon--sfGOor0uPD","front-icon":"front-icon--UAV5suhflY",frontIcon:"front-icon--UAV5suhflY",toggle:"toggle--ipjf9aAOAh"};class Pt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:qe}=this.props,We=wt()(Et.displayValue,Et[qe],{[Et.hasIcon]:!!Ve});return Ye.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&Ye.a.createElement(Ct.default,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?Ye.a.createElement(xt.a,null,String(ce)):ce,Ye.a.createElement(Ct.default,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--1I+a3ehhjZ";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Cn=Object(Qe.b)((bn=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Vt,this),_initializerDefineProperty(this,"searchText",Ht,this),_initializerDefineProperty(this,"focusedElementIndex",Ut,this),_initializerDefineProperty(this,"open",Wt,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,qe]=ze;return ce.set(Ve,qe.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return Ye.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return Ye.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return Ye.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return Ye.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:qe}=this.props,We=this.cloneChildren();return Ye.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},Ye.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:qe},Ve),Ye.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>Ye.a.createElement(gt.default,{menuRef:ce,style:ze},Ye.a.Children.count(We)>0?We:Ye.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.default.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ht=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;ze.default=Cn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(62),yt=Ve(5),bt=Ve.n(yt),vt=Ve(47),wt=Ve(1),Ct=Ve(3),Dt=Ve(65),kt=Ve(17),St={button:"button--JmtNK0YSh3",left:"left--2UdVcSBjvt",right:"right--yQZhrzHdfU","has-options":"has-options--rqv2m0FYEP",hasOptions:"has-options--rqv2m0FYEP",icon:"icon--Oe-XCyD0Ld","has-label":"has-label--3+56ezguKn",hasLabel:"has-label--3+56ezguKn",label:"label--f+Dcyb7bNK"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let xt=Object(Ct.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:qe,options:Ye}=this.props,We=bt()(St.button,St[qe],{[St.hasLabel]:Ve,[St.hasOptions]:Ye}),Qe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.default,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),Ye&&mt.a.createElement(kt.default,{name:"su-angle-down"}));return Ye?mt.a.createElement(Dt.a,{anchorElement:Qe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,Ye.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Qe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Et=xt,Pt="header--pu7NgL6kM-",Tt="disabled--C6IKmjvTp7",Lt="empty-list--FhDVzTj-n9",Ft="label--wrv-a0YDyu",Bt="loader--GCWJVd2VIe";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:qe,onClick:Ye,onEdit:We,onRemove:Qe,sortable:Xe}=this.props,ot=this.createDragHandle(),st=bt()(Ht,{[Ut]:Ve}),gt=bt()(Jt,{[Qt]:Ye}),yt=bt()(Wt,{[ln]:Xe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Xe&&mt.a.createElement(kt.default,{name:"su-more"}),mt.a.createElement("span",{className:mn},qe)),Ye?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.default,{name:"su-pen"})),Qe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.default,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass--K5cWhgXjp7",wn="disabled--JZiA0-vIwg",Cn="list--Qb6xFJPtEC",Sn="list-element--L2rSJagTo5",En="dragging--ZyH-6bunCC";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const qe=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:qe},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:qe}=this.props;qe&&qe(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:qe,loading:Ye,rightButton:We,onItemClick:Qe,onItemEdit:Xe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Vt,{disabled:ce,emptyList:gt,label:Ve,leftButton:qe?{disabled:ce,...qe}:void 0,loading:Ye,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Qe||ze.props.onClick,onEdit:Xe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;ze.default=Fn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Sn}));var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt=Ve(0),wt=Ve.n(vt),Ct=Ve(3),Dt=Ve(1),kt=Ve(291),St=Ve(5),xt=Ve.n(St),Et="circle--pB93ohb+bq",Pt="disabled--xZWHnM9-Rl",Tt="filled--9Vbj6RgZjr",Lt="label--OjyDTn1VuR",Ft="resize-handle--cN8j668e1G";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Bt=Object(Ct.b)((bt=class extends wt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"moveMode",We,this),_initializerDefineProperty(this,"resizeMode",Qe,this),_initializerDefineProperty(this,"resizeAngle",Xe,this),_initializerDefineProperty(this,"clickAnchor",ot,this),this.setCircleRef=ce=>{this.circleRef=ce},_initializerDefineProperty(this,"handleMoveMouseDown",st,this),_initializerDefineProperty(this,"handleResizeMouseDown",mt,this),_initializerDefineProperty(this,"handleMouseUp",gt,this),_initializerDefineProperty(this,"handleMouseMove",yt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:qe,left:Ye,skin:We,top:Qe}=this.props,Xe=ze||0!==qe?2*qe:30,ot=0===qe?14:5*Math.sqrt(qe),st=xt()(Et,{[Pt]:ce,[Tt]:"filled"===We});return wt.a.createElement("div",{className:st,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:Ye+"px",top:Qe+"px",width:Xe+"px",height:Xe+"px"}},!!Ve&&wt.a.createElement("div",{className:Lt,style:{fontSize:`${ot}px`}},Ve),!!ze&&!ce&&wt.a.createElement("div",{className:Ft,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*qe}px) 50%`,transform:`translate(calc(-50% + ${qe}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},bt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},We=_applyDecoratedDescriptor((Ye=bt).prototype,"moveMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"resizeMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"resizeAngle",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ot=_applyDecoratedDescriptor(Ye.prototype,"clickAnchor",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),_applyDecoratedDescriptor(Ye.prototype,"setClickAnchor",[Dt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setClickAnchor"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"handleMoveMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleResizeMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handleMouseUp",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleMouseMove",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let qe=0,Ye=0,We=0;if(this.moveMode&&(qe=ce.pageX-this.clickAnchor.pageX,Ye=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),qe=ze.left+ze.width/2,Ye=ze.top+ze.height/2,{clientX:Qe,clientY:Xe}=ce,ot=Qe-qe,st=Xe-Ye;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:qe,top:Ye,radius:We})}}}),qe=Ye))||qe;var Vt=Bt;class Ht{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Ut{normalize(ce){const{left:ze,top:Ve,radius:qe=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(qe)}}}class Wt{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(qe,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const qe=Math.sqrt(ze**2+Ve**2);return void 0===ce?qe:Math.min(ce,qe)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}var Jt=Ve(230);function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Qt,en,rn,ln="container--y7zDvdvUN-",mn="selection--s96zcJRqvv";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let gn=Object(Ct.b)((rn=class ce extends wt.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:qe}=this.props;ce&&ze&&(qe||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:qe,minRadius:Ye,round:We,resizable:Qe}=ce;if(!ze||!Ve)return[];const Xe=[new Ht(ze,Ve)];return Qe&&Xe.push(new Wt(ze,Ve,qe,Ye)),We&&Xe.push(new Ut),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:qe}=this.props,Ye=Ve?Math.min(ce,ze)/2:qe&&qe.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:Ye}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:qe,resizable:Ye,skin:We}=this.props,{left:Qe,top:Xe,radius:ot}=this.value,st=wt.a.createElement(Vt,{disabled:ze,label:Ve,left:Qe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:qe,radius:ot,resizable:Ye,skin:We,top:Xe});return ce?wt.a.createElement("div",{className:mn},ce,st):st}},rn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((en=rn).prototype,"value",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"value"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"normalizers",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"normalizers"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"maximumSelection",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"maximumSelection"),en.prototype),Qt=en))||Qt;const bn=function withPercentageValues(ce){var ze,Ve,qe;let Ye=Object(Ct.b)((qe=class extends wt.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:qe}=this.props;qe(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return wt.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return wt.a.createElement(ce,Ve)}},qe.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=qe).prototype,"transformedMaxRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return Ye.displayName=Object(Jt.a)("withPercentageValues",ce),Ye}(gn);class wn extends wt.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?wt.a.createElement(bn,this.props):wt.a.createElement(gn,this.props)}}const Cn=Object(kt.a)(wn,ln);class Sn extends wt.a.Component{render(){const{children:ce}=this.props;return ce?wt.a.createElement(Cn,this.props):wt.a.createElement(wn,this.props)}}Sn.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(51),mt=Ve.n(st),gt=Ve(115),yt=Ve(17),bt={tab:"tab--y+WqYK1GnT",selected:"selected--9zAKVXhVp3",hidden:"hidden--7CDISXFe4q",inline:"inline--tj0XBTChJt",badges:"badges--cnh8eDJF3h"};class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:qe,selected:We}=this.props,Qe=ot()(bt.tab,bt[qe],{[bt.hidden]:Ve,[bt.selected]:We});return Ye.a.createElement("li",{className:Qe,ref:this.setTabRef},Ye.a.createElement("button",{disabled:We,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Ye.a.createElement("div",{className:bt.badges},ce)))}}vt.defaultProps={badges:[],hidden:!1,selected:!1};var wt=vt,Ct="collapsed-tab--lPwR2bOBDk";class Dt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Ye.a.createElement("li",{className:Ct},Ye.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var kt={"collapsed-tab-list":"collapsed-tab-list--EGPtVCJy0G",collapsedTabList:"collapsed-tab-list--EGPtVCJy0G",root:"root--TZtfkeV7ls",inline:"inline--zGgAfErov9"};class St extends Ye.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ot()(kt.collapsedTabList,kt[ze]);return Ye.a.createElement("ul",{className:Ve},ce)}}var xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln,mn,gn,bn={tabs:"tabs--V7-0O-5i2S",inline:"inline--M66JihQTfe",nested:"nested--Jv61TKIIbs","tabs-container-wrapper":"tabs-container-wrapper--Gzt3FOraF8",tabsContainerWrapper:"tabs-container-wrapper--Gzt3FOraF8",button:"button--BRmefwATPo","tabs-container":"tabs-container--As+6R49jeN",tabsContainer:"tabs-container--As+6R49jeN"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let wn=Object(Qe.b)((gn=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"tabsWidth",Pt,this),_initializerDefineProperty(this,"tabsContainerWrapperWidth",Tt,this),_initializerDefineProperty(this,"tabsContainerWidth",Lt,this),_initializerDefineProperty(this,"tabWidths",Ft,this),_initializerDefineProperty(this,"tabRefs",Bt,this),_initializerDefineProperty(this,"dropdownOpen",Vt,this),_initializerDefineProperty(this,"lastSelectedIndex",Ht,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},_initializerDefineProperty(this,"setTabsWidth",Ut,this),_initializerDefineProperty(this,"setTabsContainerWrapperWidth",Wt,this),_initializerDefineProperty(this,"setTabsContainerWidth",Jt,this),_initializerDefineProperty(this,"updateTabWidths",Qt,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},_initializerDefineProperty(this,"setTabRef",en,this),_initializerDefineProperty(this,"handleDropdownToggle",rn,this),_initializerDefineProperty(this,"handleDropdownClose",ln,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},_initializerDefineProperty(this,"handleCollapsedTabClick",mn,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Ye.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Ye.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(Ye.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(mt()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return Ye.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const qe=this.childIndices;qe.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of qe){const qe=this.tabWidths.get(ce);if(void 0===qe){if(Ve.length>0)break;return this.childIndices}if(ze+qe>this.tabsContainerWrapperWidth)break;ze+=qe,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:qe}=this.props;return Ye.a.Children.map(ce,((ce,We)=>{const Qe=ze[We];if(!ce)return null;const Xe=this.isSelected(Qe);return Ye.a.cloneElement(ce,{...ce.props,hidden:Ve,index:Qe,selected:Xe,type:qe,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Ye.a.Children.map(ce,((ce,Ve)=>{const qe=ze[Ve];return ce?Ye.a.createElement(Dt,{index:qe,key:qe,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ot()(bn.tabs,bn[ce],ze);return Ye.a.createElement("div",{className:Ve,ref:this.setTabsRef},Ye.a.createElement("div",{className:bn.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Ye.a.createElement("ul",{className:bn.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Ye.a.createElement(Ye.a.Fragment,null,Ye.a.createElement("button",{className:bn.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Ye.a.createElement(yt.default,{name:"su-more-horizontal"})),Ye.a.createElement(gt.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Ye.a.createElement("div",{ref:ze,style:Ve},Ye.a.createElement(St,{type:ce},this.createCollapsedTabs()))))))}},gn.Tab=wt,Pt=_applyDecoratedDescriptor((Et=gn).prototype,"tabsWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWrapperWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Lt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ft=_applyDecoratedDescriptor(Et.prototype,"tabWidths",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Bt=_applyDecoratedDescriptor(Et.prototype,"tabRefs",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Vt=_applyDecoratedDescriptor(Et.prototype,"dropdownOpen",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ht=_applyDecoratedDescriptor(Et.prototype,"lastSelectedIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=_applyDecoratedDescriptor(Et.prototype,"setTabsWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),Wt=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWrapperWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),Jt=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),Qt=_applyDecoratedDescriptor(Et.prototype,"updateTabWidths",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),en=_applyDecoratedDescriptor(Et.prototype,"setTabRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),rn=_applyDecoratedDescriptor(Et.prototype,"handleDropdownToggle",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),ln=_applyDecoratedDescriptor(Et.prototype,"handleDropdownClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),mn=_applyDecoratedDescriptor(Et.prototype,"handleCollapsedTabClick",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),_applyDecoratedDescriptor(Et.prototype,"visibleTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"visibleTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"collapsedTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"collapsedTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"hasCollapsedTabs",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"hasCollapsedTabs"),Et.prototype),xt=Et))||xt;ze.default=wn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(3),Qe=Ve(1),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(17),mt="item--x6fuS70Jnq",gt="active--cWVkvDopVy",yt="title--qlAeFs3Kvk",bt="icon--94ZflgoVt-",vt="text--8df2S79t3K",wt="children-indicator--mEkZzlZZGq";class Ct extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:qe}=this.props;let{active:We}=this.props;ze&&Ye.a.Children.forEach(ze,(ce=>{ce.props.active&&(We=!0)}));const Qe=ot()(mt,{[gt]:We});return Ye.a.createElement("div",{className:Qe},Ye.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},qe&&Ye.a.createElement(st.default,{className:bt,name:qe}),Ye.a.createElement("span",{className:vt},ce),ze&&Ye.a.createElement(st.default,{className:wt,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Ye.a.createElement("div",null,ze))}}var Dt,kt,St,xt,Et,Pt="navigation--3vW7mTldU9",Tt="header--1CgLW1mIer",Lt="logo--8StDI8YPIf",Ft="pin--KxNqeJduGc",Bt="active--f6ty4fwubU",Vt="pin-icon--Z0WO2Ds74F",Ht="items--Okk6V63Vix",Ut="footer--EY9vQG-1Qq",Wt=Ve(33),Jt=Ve(12),Qt="user-section--3Fr9CRUYSV",en="button--MVvkrImFKA",rn="active--wPtPvHuXvD",ln="user-image--rRpruTHHjP",mn="image--AzRiszRBZZ",gn="placeholder--pFAQWH5VJS",bn="username--OB8QCo1p-4",wn="menu--+t5n-dpfN2",Cn="open--rIRbZKLGeh",Sn="menu-button--ra+jFKo0Pj";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let En=Object(We.b)((kt=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",St,this),_initializerDefineProperty(this,"handleButtonClick",xt,this),_initializerDefineProperty(this,"close",Et,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ot()(wn,this.open&&Cn),qe=ot()(en,this.open&&rn);return Ye.a.createElement("div",{className:Qt},Ye.a.createElement("button",{className:qe,onClick:this.handleButtonClick,type:"button"},Ye.a.createElement("div",{className:ln},ze&&Ye.a.createElement("img",{alt:ce,className:mn,src:ze,title:ce}),!ze&&Ye.a.createElement(st.default,{className:gn,name:"su-user"})),Ye.a.createElement("span",{className:bn},ce),Ye.a.createElement(st.default,{name:this.open?"su-angle-down":"su-angle-up"})),Ye.a.createElement("div",{className:Ve,hidden:!this.open},Ye.a.createElement(Wt.default,{className:Sn,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(Jt.d)("sulu_admin.edit_profile")),Ye.a.createElement(Wt.default,{className:Sn,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(Jt.d)("sulu_admin.logout"))))}},St=_applyDecoratedDescriptor(kt.prototype,"open",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(kt.prototype,"handleButtonClick",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Et=_applyDecoratedDescriptor(kt.prototype,"close",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Dt=kt))||Dt;var Tn,Ln,Fn,Yn,Un=En;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Gn=Object(We.b)(((Yn=class extends Ye.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,qe,We;super(ce),ze=this,Ve="expandedChild",We=this,(qe=Fn)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;Ye.a.Children.forEach(ce,(ce=>{ce.props.children&&Ye.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return Ye.a.Children.map(this.props.children,(ce=>Ye.a.cloneElement(ce,{children:ce.props.children?Ye.a.Children.map(ce.props.children,(ce=>{if(ce)return Ye.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:qe,onProfileClick:We,suluVersion:Qe,onPinToggle:Xe}=this.props,mt=ot()(Ft,{[Bt]:ce});return Ye.a.createElement("div",{className:Pt},Ye.a.createElement("div",{className:Tt},Ye.a.createElement("span",{className:Lt,title:Qe},Ye.a.createElement(st.default,{name:"su-sulu-logo"})),Xe&&Ye.a.createElement("button",{className:mt,onClick:this.handlePinToggle,type:"button"},Ye.a.createElement(st.default,{className:Vt,name:"su-stick-right"}))),Ye.a.createElement("div",{className:Ht},this.cloneChildren()),Ye.a.createElement("div",{className:Ut},Ye.a.createElement(Un,{onLogoutClick:qe,onProfileClick:We,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},Yn.Item=Ct,Fn=Navigation_applyDecoratedDescriptor((Ln=Yn).prototype,"expandedChild",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(Ln.prototype,"setExpandedChild",[Qe.action],Object.getOwnPropertyDescriptor(Ln.prototype,"setExpandedChild"),Ln.prototype),Tn=Ln))||Tn;ze.default=Gn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Bt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(3),ot=Ve(1),st=Ve(12),mt=Ve(17),gt="item--D5ph-pLAy8",yt="selected--6W3pBpm2Wn",bt="disabled--ZZYAfZp8o8";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:qe,value:We}=this.props,Xe=Qe()(gt,{[yt]:We,[bt]:ce}),ot=qe||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Ye.a.createElement("button",{className:Xe,onClick:ce?void 0:this.handleClick,title:ot,type:"button"},Ye.a.createElement(mt.default,{name:ze}))}}vt.defaultProps={disabled:!1,value:!1};var wt,Ct,Dt,kt="row--U3XWakFF-t",St="name--SGO-aJZVUU",xt="items--4CdCjZW2M4",Et="row-button--f-6oknnArc";let Pt=Object(Xe.b)((Dt=class extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe,values:Ye}=this.props;if(!qe)return;const We={...Ye};We[ce]=ze,qe(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return Ye.a.Children.map(ce,((ce,qe)=>Ye.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${qe}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const qe={};Ye.a.Children.map(ce,(ce=>{qe[ce.props.name]=this.allItemsDeactivated})),Ve(ze,qe)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return Ye.a.createElement("button",{className:Et,onClick:this.handleAllButtonClick,type:"button"},Object(st.d)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:qe}=this.props;return Ye.a.createElement("tr",{className:kt},Ye.a.createElement("td",{className:St},qe||Ve),Ye.a.createElement("td",{className:xt},this.cloneItems(ze),!ce&&this.renderAllButton()))}},Dt.defaultProps={disabled:!1,values:{}},function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Ct=Dt).prototype,"allItemsDeactivated",[ot.computed],Object.getOwnPropertyDescriptor(Ct.prototype,"allItemsDeactivated"),Ct.prototype),wt=Ct))||wt;var Tt=Pt,Lt="matrix--OftHp3kF3E",Ft="disabled--6gFWmSKCRb";class Bt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:qe}=this.props,Ye={...qe};Ye[ce]=ze,Ve(Ye)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return Ye.a.Children.map(ce,((ce,qe)=>Ye.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${qe}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,qe=Qe()(Lt,ze,{[Ft]:Ve});return Ye.a.createElement("table",{className:qe},Ye.a.createElement("tbody",null,this.cloneRows(ce)))}}Bt.defaultProps={disabled:!1,values:{}},Bt.Row=Tt,Bt.Item=vt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(3),Xe=Ve(1),ot=Ve(227),st=Ve(34),mt=Ve(11),gt=Ve(5),yt=Ve.n(gt),bt=Ve(377),vt=Ve(7),wt="media-item--dCI+MAmDwx",Ct="progressbar-container--DJnHPLN4Bc";var Dt,kt,St=Object(Qe.b)(qe=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:wt},ce.uploading&&We.a.createElement("div",{className:Ct},We.a.createElement(vt.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||qe,xt=Ve(26),Et=Ve.n(xt),Pt=Ve(2138),Tt=Ve(6),Lt="dropzone-overlay--oVhCB0QEXw",Ft="close-icon--hOnXEy3z+2",Bt="drop-area--byukv3s3HM",Vt="upload-info-container--6dUvjh7hEd",Ht="upload-info--jONBozbxXo",Ut="upload-info-headline--GK4fumBneV",Wt="upload-info-subline--DXXpxbIBH5",Jt="upload-icon--zHGtPhthA-",Qt="media-items--f3M0R9SQR+";const en="esc";var rn,ln,mn,gn,bn,wn,Cn,Sn,En=Object(Qe.b)(((kt=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&Et.a.bind(en,ze)}componentWillUnmount(){this.props.open&&Et.a.unbind(en)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?Et.a.bind(en,ze):Et.a.unbind(en))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(Pt.a,null,We.a.createElement("div",{className:Lt,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Bt,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Vt},Ve&&We.a.createElement("div",{className:Ht},We.a.createElement(vt.Icon,{className:Jt,name:"su-upload"}),We.a.createElement("div",{className:Ut},Object(Tt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Wt},Object(Tt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Qt},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(vt.Icon,{className:Ft,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Dt=kt))||Dt,Tn="dropzone--E9gPRZ6bX6";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ln="collections";let Fn=Object(Qe.b)((Sn=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"filesScheduledForUpload",mn,this),_initializerDefineProperty(this,"mediaUploadStores",gn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:qe,onUpload:Ye,onUploadError:We}=this.props,Qe=[];return ce.forEach((ce=>{const qe=new bt.a(void 0,Ve),Ye=qe.create(ze,ce);Qe.push(Ye),this.addMediaUploadStore(qe)})),Promise.allSettled(Qe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?Ye(ze):We(Ve),setTimeout((()=>{qe(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleDrop",bn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",wn,this),_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",Cn,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(St,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:qe,locale:Ye,open:Xe}=this.props,gt=yt()(Tn,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(ot.a,{accept:ce,disabled:qe,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:qe}=ce;return We.a.createElement(Qe.a,null,(()=>We.a.createElement("div",qe({className:gt}),ze,We.a.createElement("input",Ve()),We.a.createElement(En,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Xe},this.createMediaItems()))))})),We.a.createElement(st.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:Ln,locale:Ye,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:Ln,title:Object(mt.b)("sulu_media.select_collection_for_upload")}))}},Sn.defaultProps={accept:void 0,disabled:!1},mn=_applyDecoratedDescriptor((ln=Sn).prototype,"filesScheduledForUpload",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gn=_applyDecoratedDescriptor(ln.prototype,"mediaUploadStores",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(ln.prototype,"addMediaUploadStore",[Xe.action],Object.getOwnPropertyDescriptor(ln.prototype,"addMediaUploadStore"),ln.prototype),_applyDecoratedDescriptor(ln.prototype,"destroyMediaUploadStores",[Xe.action],Object.getOwnPropertyDescriptor(ln.prototype,"destroyMediaUploadStores"),ln.prototype),bn=_applyDecoratedDescriptor(ln.prototype,"handleDrop",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),wn=_applyDecoratedDescriptor(ln.prototype,"handleSelectCollectionOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),Cn=_applyDecoratedDescriptor(ln.prototype,"handleSelectCollectionOverlayConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),rn=ln))||rn;ze.default=Fn},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(193),ot=Ve(54),st=Ve(32),mt=Ve(11),gt=Ve(40),yt=Ve(131),bt=Ve(48),vt="edit-line--j1HSF66U1y",wt="icon--jqyo5FELzK";class Ct extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{id:ze,onChange:Ve}=this.props;Ve(ze,ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze(ce)}}render(){const{inputRef:ce,value:ze}=this.props;return Ye.a.createElement("div",{className:vt},Ye.a.createElement(bt.a,{inputRef:ce,onChange:this.handleChange,value:ze}),Ye.a.createElement(gt.a,{className:wt,icon:"su-trash-alt",onClick:this.handleRemove,skin:"icon"}))}}var Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft="overlay--iAuDX5Bw2S";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Bt,Vt,Ht,Ut,Wt,Jt,Qt=Object(Qe.b)((kt=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"data",St,this),this.setInputRef=ce=>{ce&&ce.focus()},_initializerDefineProperty(this,"updateData",xt,this),_initializerDefineProperty(this,"handleEditLineChange",Et,this),_initializerDefineProperty(this,"handleEditLineRemove",Pt,this),_initializerDefineProperty(this,"handleEditLineAdd",Tt,this),_initializerDefineProperty(this,"handleConfirm",Lt,this),this.updateDataDisposer=Object(We.autorun)((()=>this.updateData(this.props.resourceListStore.data)))}componentWillUnmount(){this.updateDataDisposer()}render(){const{displayProperty:ce,onClose:ze,open:Ve,resourceListStore:qe,title:We}=this.props;return Ye.a.createElement(yt.a,{confirmLoading:qe.loading,confirmText:Object(mt.b)("sulu_admin.ok"),onClose:ze,onConfirm:this.handleConfirm,open:Ve,size:"small",title:We||Object(mt.b)("sulu_admin.edit_entries")},Ye.a.createElement("div",{className:Ft},this.data.map(((ze,Ve)=>Ye.a.createElement(Ct,{id:Ve,inputRef:this.setInputRef,key:Ve,onChange:this.handleEditLineChange,onRemove:this.handleEditLineRemove,value:ze[ce]}))),Ye.a.createElement(gt.a,{icon:"su-plus",onClick:this.handleEditLineAdd,skin:"secondary"},Object(mt.b)("sulu_admin.add"))))}},St=_applyDecoratedDescriptor(kt.prototype,"data",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(kt.prototype,"updateData",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data=Object(We.toJS)(ce)}}}),Et=_applyDecoratedDescriptor(kt.prototype,"handleEditLineChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{displayProperty:Ve}=this.props;this.data[ce][Ve]=ze}}}),Pt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineRemove",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data.splice(ce,1)}}}),Tt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineAdd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce}=this.props;this.data.push({[ce]:void 0})}}}),Lt=_applyDecoratedDescriptor(kt.prototype,"handleConfirm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce,idProperty:ze,onClose:Ve,resourceListStore:qe}=this.props,{data:Ye}=this,We=Ye.filter(((ze,Ve)=>Ye.findIndex((Ve=>Ve[ce]==ze[ce]))===Ve)).filter((ce=>!ce[ze])),Qe=qe.data.filter((ce=>!Ye.some((Ve=>Ve[ze]===ce[ze])))),Xe=Ye.filter((Ve=>{const Ye=qe.data.find((ce=>Ve[ze]===ce[ze]));return Ye&&Ye[ce]!==Ve[ce]}));if(Qe.length>0&&qe.deleteList(Qe.map((ce=>ce[ze]))),We.length>0||Xe.length>0){const ze=[...We,...Xe].filter((ze=>ze[ce]));qe.patchList(ze)}Ve()}}}),Dt=kt))||Dt;function ResourceSingleSelect_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceSingleSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var en=Object(Qe.b)(((Jt=class extends Ye.a.Component{get data(){const{displayProperty:ce}=this.props;return this.resourceListStore.data.concat().sort(((ze,Ve)=>ze[ce]{const{onChange:ce}=this.props;ce(void 0)},ResourceSingleSelect_initializerDefineProperty(this,"handleEdit",Ut,this),ResourceSingleSelect_initializerDefineProperty(this,"handleEditOverlayClose",Wt,this);const{idProperty:ze,resourceKey:Ve,requestParameters:qe}=this.props,Ye={limit:"",...qe};this.resourceListStore=new Xe.a(Ve,Ye,ze)}render(){const{disabled:ce,displayProperty:ze,editable:Ve,idProperty:We,onChange:Qe,overlayTitle:Xe,value:gt}=this.props;return this.resourceListStore.loading?Ye.a.createElement(ot.a,{size:30}):Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(st.a,{disabled:ce,onChange:Qe,value:gt},Ye.a.createElement(st.a.Action,{onClick:this.handleReset},Object(mt.b)("sulu_admin.please_choose")),this.data.map(((ce,Ve)=>Ye.a.createElement(st.a.Option,{key:Ve,value:ce[We]},ce[ze]))),Ve&&Ye.a.createElement(st.a.Divider,null),Ve&&Ye.a.createElement(st.a.Action,{onClick:this.handleEdit},Object(mt.b)("sulu_admin.edit"))),Ve&&Ye.a.createElement(Qt,{displayProperty:ze,idProperty:We,onClose:this.handleEditOverlayClose,open:this.showEditOverlay,resourceListStore:this.resourceListStore,title:Xe}))}}).defaultProps={disabled:!1,editable:!1,requestParameters:{}},Ht=ResourceSingleSelect_applyDecoratedDescriptor((Vt=Jt).prototype,"showEditOverlay",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"data",[We.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"data"),Vt.prototype),Ut=ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"handleEdit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!0}}}),Wt=ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"handleEditOverlayClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!1}}}),Bt=Vt))||Bt;ze.a=en},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(191),ot=Ve(47),st=Ve(35),mt=Ve(15),gt=Ve(33),yt=Ve(128),bt=Ve(38),vt="edit-line--a9kuOsxTiG",wt="icon--uDfxbYKu2J";class Ct extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{id:ze,onChange:Ve}=this.props;Ve(ze,ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze(ce)}}render(){const{inputRef:ce,value:ze}=this.props;return Ye.a.createElement("div",{className:vt},Ye.a.createElement(bt.default,{inputRef:ce,onChange:this.handleChange,value:ze}),Ye.a.createElement(gt.default,{className:wt,icon:"su-trash-alt",onClick:this.handleRemove,skin:"icon"}))}}var Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft="overlay--QcbSZSjEj0";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Bt,Vt,Ht,Ut,Wt,Jt,Qt=Object(Qe.b)((kt=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"data",St,this),this.setInputRef=ce=>{ce&&ce.focus()},_initializerDefineProperty(this,"updateData",xt,this),_initializerDefineProperty(this,"handleEditLineChange",Et,this),_initializerDefineProperty(this,"handleEditLineRemove",Pt,this),_initializerDefineProperty(this,"handleEditLineAdd",Tt,this),_initializerDefineProperty(this,"handleConfirm",Lt,this),this.updateDataDisposer=Object(We.autorun)((()=>this.updateData(this.props.resourceListStore.data)))}componentWillUnmount(){this.updateDataDisposer()}render(){const{displayProperty:ce,onClose:ze,open:Ve,resourceListStore:qe,title:We}=this.props;return Ye.a.createElement(yt.a,{confirmLoading:qe.loading,confirmText:Object(mt.b)("sulu_admin.ok"),onClose:ze,onConfirm:this.handleConfirm,open:Ve,size:"small",title:We||Object(mt.b)("sulu_admin.edit_entries")},Ye.a.createElement("div",{className:Ft},this.data.map(((ze,Ve)=>Ye.a.createElement(Ct,{id:Ve,inputRef:this.setInputRef,key:Ve,onChange:this.handleEditLineChange,onRemove:this.handleEditLineRemove,value:ze[ce]}))),Ye.a.createElement(gt.default,{icon:"su-plus",onClick:this.handleEditLineAdd,skin:"secondary"},Object(mt.b)("sulu_admin.add"))))}},St=_applyDecoratedDescriptor(kt.prototype,"data",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(kt.prototype,"updateData",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data=Object(We.toJS)(ce)}}}),Et=_applyDecoratedDescriptor(kt.prototype,"handleEditLineChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{displayProperty:Ve}=this.props;this.data[ce][Ve]=ze}}}),Pt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineRemove",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data.splice(ce,1)}}}),Tt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineAdd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce}=this.props;this.data.push({[ce]:void 0})}}}),Lt=_applyDecoratedDescriptor(kt.prototype,"handleConfirm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce,idProperty:ze,onClose:Ve,resourceListStore:qe}=this.props,{data:Ye}=this,We=Ye.filter(((ze,Ve)=>Ye.findIndex((Ve=>Ve[ce]==ze[ce]))===Ve)).filter((ce=>!ce[ze])),Qe=qe.data.filter((ce=>!Ye.some((Ve=>Ve[ze]===ce[ze])))),Xe=Ye.filter((Ve=>{const Ye=qe.data.find((ce=>Ve[ze]===ce[ze]));return Ye&&Ye[ce]!==Ve[ce]}));if(Qe.length>0&&qe.deleteList(Qe.map((ce=>ce[ze]))),We.length>0||Xe.length>0){const ze=[...We,...Xe].filter((ze=>ze[ce]));qe.patchList(ze)}Ve()}}}),Dt=kt))||Dt;function ResourceSingleSelect_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ResourceSingleSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let en=Object(Qe.b)(((Jt=class extends Ye.a.Component{get data(){const{displayProperty:ce}=this.props;return this.resourceListStore.data.concat().sort(((ze,Ve)=>ze[ce]{const{onChange:ce}=this.props;ce(void 0)},ResourceSingleSelect_initializerDefineProperty(this,"handleEdit",Ut,this),ResourceSingleSelect_initializerDefineProperty(this,"handleEditOverlayClose",Wt,this);const{idProperty:ze,resourceKey:Ve,requestParameters:qe}=this.props,Ye={limit:"",...qe};this.resourceListStore=new Xe.a(Ve,Ye,ze)}render(){const{disabled:ce,displayProperty:ze,editable:Ve,idProperty:We,onChange:Qe,overlayTitle:Xe,value:gt}=this.props;return this.resourceListStore.loading?Ye.a.createElement(ot.a,{size:30}):Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(st.a,{disabled:ce,onChange:Qe,value:gt},Ye.a.createElement(st.a.Action,{onClick:this.handleReset},Object(mt.b)("sulu_admin.please_choose")),this.data.map(((ce,Ve)=>Ye.a.createElement(st.a.Option,{key:Ve,value:ce[We]},ce[ze]))),Ve&&Ye.a.createElement(st.a.Divider,null),Ve&&Ye.a.createElement(st.a.Action,{onClick:this.handleEdit},Object(mt.b)("sulu_admin.edit"))),Ve&&Ye.a.createElement(Qt,{displayProperty:ze,idProperty:We,onClose:this.handleEditOverlayClose,open:this.showEditOverlay,resourceListStore:this.resourceListStore,title:Xe}))}}).defaultProps={disabled:!1,editable:!1,requestParameters:{}},Ht=ResourceSingleSelect_applyDecoratedDescriptor((Vt=Jt).prototype,"showEditOverlay",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"data",[We.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"data"),Vt.prototype),Ut=ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"handleEdit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!0}}}),Wt=ResourceSingleSelect_applyDecoratedDescriptor(Vt.prototype,"handleEditOverlayClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!1}}}),Bt=Vt))||Bt;ze.default=en},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(3),Ct=Ve(22),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(51),xt=Ve.n(St),Et=Ve(48),Pt=Ve(697),Tt="single-auto-complete--p73sKwWRy8";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=Object(wt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputContainerRef",We,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",Xe,this),this.overrideValue=!1,_initializerDefineProperty(this,"setInputContainerRef",ot,this),_initializerDefineProperty(this,"search",st,this),this.debouncedSearch=xt()(this.search,300),this.handlePopoverSelect=ce=>{const{displayProperty:ze,onChange:Ve}=this.props;this.setInputValue(ce?ce[ze]:void 0),Ve(ce)},this.handleInputChange=ce=>{ce||this.props.onChange(void 0),this.setInputValue(ce),this.debouncedSearch(this.inputValue)},_initializerDefineProperty(this,"handleInputFocus",mt,this),_initializerDefineProperty(this,"handlePopoverClose",gt,this)}componentDidUpdate(ce){const{displayProperty:ze,value:Ve}=this.props;Dt()(Object(kt.toJS)(ce.value),Object(kt.toJS)(Ve))||this.setInputValue(Ve?Ve[ze]:void 0)}componentWillUnmount(){this.debouncedSearch.clear()}setInputValue(ce){this.inputValue=ce}get popoverMinWidth(){return this.inputContainerRef?this.inputContainerRef.scrollWidth-10:0}render(){const{disabled:ce,id:ze,loading:Ve,onFinish:qe,placeholder:Ye,searchProperties:We,suggestions:Qe}=this.props,{inputValue:Xe}=this;return vt.a.createElement("div",{className:Tt},vt.a.createElement(Et.a,{autocomplete:"off",disabled:ce,icon:"su-search",id:ze,inputClass:"mousetrap",inputContainerRef:this.setInputContainerRef,loading:Ve,onBlur:qe,onChange:this.handleInputChange,onFocus:this.handleInputFocus,placeholder:Ye,value:Xe}),vt.a.createElement(Pt.a,{anchorElement:this.inputContainerRef,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handlePopoverSelect,open:!ce&&this.displaySuggestions&&Qe.length>0,query:Xe,searchProperties:We,suggestions:Qe}))}},yt.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=yt).prototype,"inputContainerRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.value?this.props.value[this.props.displayProperty]:void 0}}),_applyDecoratedDescriptor(Ye.prototype,"setInputValue",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInputValue"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"setInputContainerRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.inputContainerRef=ce)}}}),_applyDecoratedDescriptor(Ye.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"popoverMinWidth"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleInputFocus",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.search(this.inputValue||"")}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),qe=Ye))||qe;var Ft,Bt,Vt=Lt,Ht=Ve(719);Ve(161);var Ut=Object(wt.b)(((Bt=class extends vt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{this.searchStore.search(ce)};const{options:ze,selectionStore:Ve,searchProperties:qe}=this.props;this.searchStore=new Ht.a(Ve.resourceKey,qe,ze,Ve.locale)}render(){const{disabled:ce,displayProperty:ze,id:Ve,searchProperties:qe,selectionStore:Ye}=this.props;return vt.a.createElement(Vt,{disabled:ce,displayProperty:ze,id:Ve,loading:this.searchStore.loading||Ye.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:qe,suggestions:this.searchStore.searchResults,value:Ye.item})}}).defaultProps={disabled:!1,options:{}},Ft=Bt))||Ft;ze.a=Ut},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(5),Ye=Ve.n(qe),We=Ve(26),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2138),yt=Ve(17),bt=Ve(33),vt=Ve(262),wt=Ve(217),Ct=Ve(255),Dt="actions--FZulIZfz++";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.default,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--t6e9MD-iUw",overlay:"overlay--92lGjqbC+N",small:"small--Ti3bM5mB1i",large:"large--oatkARug8e","is-down":"is-down--vUY1gr9MMk",isDown:"is-down--vUY1gr9MMk",content:"content--MLDy+XAodB",header:"header--WxFIgbhcpp",article:"article--QuOaz0EcUJ",footer:"footer--ScCfnNWR8n",icon:"icon--B9UYtuyVvB",snackbar:"snackbar--V+anaY3Aov"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Bt="esc";let Vt=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Qe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Qe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Qe.a.bind(Bt,this.close):Qe.a.unbind(Bt),Object(vt.a)(Object(Xe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:qe,confirmText:We,onConfirm:Qe,onSnackbarClick:Xe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=Ye()(Ft.container,{[Ft.isDown]:Et}),Lt=Ye()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.default,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.default,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Xe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.default=Vt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Ht}));var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(163),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(65),kt=Ve(17),St=Ve(183),xt="grid--JK0QXrRyYy",Et="grid-section--WRhn7z2ln5",Pt="divider-container--y-oQDHngz1",Tt="grid-item--slnlSySG7s";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Qe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Xe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.a.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.a.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.default,{className:St.a.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:qe,id:Ye,label:We,required:Qe,skin:Xe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Xe]]:!!Xe,[St.a.error]:!!qe});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.a.label,htmlFor:Ye},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Qe&&" *"),ce,Ve&>.a.createElement("div",{className:St.a.descriptionLabel},Ve),gt.a.createElement("div",{className:St.a.errorLabel},qe)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((Ye=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"selectedType"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),qe=Ye))||qe;var Ft=Lt,Bt=Ve(503);class Vt extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,qe=gt.a.Children.toArray(ce);return(ze||12===Ve)&&qe.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:qe.length},gt.a.createElement(Bt.a,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},qe)}}Vt.defaultProps={colSpan:12};class Ht extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Ht.Field=Ft,Ht.Section=Vt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var qe=Ve(0),Ye=Ve.n(qe),We="divider--Gzr90GW36Y";class Qe extends Ye.a.PureComponent{render(){return Ye.a.createElement("li",{className:We})}}var Xe="menu--cg9T8jaYbd";class ot extends Ye.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return Ye.a.createElement("ul",{className:Xe,ref:this.setRef,style:ce},ze)}}ot.Divider=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return St}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(26),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(278),st=Ve(115),mt=Ve(17),gt="suggestion-item--Fvf2PcfAa3",yt="suggestion--g7pblzNWjl",bt="icon--yifhsXGBf6";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.highlightMatchingTextPart=ce=>{if(!ce)return null;if(!this.props.query)return ce;let ze,Ve,qe=[];try{ze=new RegExp(this.props.query,"gi"),Ve=ce.split(ze),qe=ce.match(ze)}catch(ze){Ve=ce.split(this.props.query),qe=[];for(let ce=0;ceYe.a.createElement(Ye.a.Fragment,null,ce,qe&&qe[ze]?Ye.a.createElement("strong",null,qe[ze]):null))))},this.handleClick=()=>{const{value:ce,onSelect:ze}=this.props;ze&&ze(ce)}}render(){const{minWidth:ce,icon:ze,children:Ve}=this.props;return Ye.a.createElement("li",{className:gt,style:{minWidth:ce+"px"}},Ye.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},ze&&Ye.a.createElement(mt.default,{className:bt,name:ze}),"string"==typeof Ve&&this.highlightMatchingTextPart(Ve),"function"==typeof Ve&&Ve(this.highlightMatchingTextPart)))}}vt.defaultProps={minWidth:0,query:""};var wt,Ct,Dt,kt="column--8fxoHzawrp";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let St=(Dt=class extends Ye.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="suggestionsRef",qe=this,(Ve=Ct)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.setSuggestionsRef=ce=>{this.suggestionsRef=ce},this.handlePopoverClose=()=>{this.props.onClose&&this.props.onClose()},this.handleUp=()=>{const ce=this.buttons[this.activeButtonIndex-1];ce&&ce.focus()},this.handleDown=()=>{const ce=this.buttons[this.activeButtonIndex+1];ce&&ce.focus()}}get buttons(){return this.suggestionsRef?Array.from(this.suggestionsRef.getElementsByTagName("button")):[]}get activeButtonIndex(){return this.buttons.findIndex((ce=>ce===document.activeElement))}componentDidMount(){!0===this.props.open&&(Qe.a.bind("up",this.handleUp),Qe.a.bind("down",this.handleDown))}componentDidUpdate(ce){!0===this.props.open&&!1===ce.open&&(Qe.a.bind("up",this.handleUp),Qe.a.bind("down",this.handleDown)),!1===this.props.open&&!0===ce.open&&(Qe.a.unbind("up"),Qe.a.unbind("down"))}render(){const{anchorElement:ce,idProperty:ze,minWidth:Ve,onSelect:qe,open:We,query:Qe,searchProperties:Xe,suggestions:mt}=this.props;return Ye.a.createElement(st.a,{anchorElement:ce,horizontalOffset:5,onClose:this.handlePopoverClose,open:We,popoverChildRef:this.setSuggestionsRef,verticalOffset:-2},((ce,We)=>Ye.a.createElement(ot.default,{menuRef:ce,style:We},mt.map((ce=>Ye.a.createElement(vt,{key:ce[ze],minWidth:Ve,onSelect:qe,query:Qe,value:ce},(ze=>Xe.map((Ve=>Ye.a.createElement("span",{className:kt,key:Ve},ze(ce[Ve])))))))))))}},Dt.defaultProps={idProperty:"id",minWidth:0},Ct=_applyDecoratedDescriptor((wt=Dt).prototype,"suggestionsRef",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"buttons",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"buttons"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"activeButtonIndex",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"activeButtonIndex"),wt.prototype),wt)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Wt}));var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(17),vt=Ve(222),wt="single-item-selection--kt1bhqkYWI",Ct="item-container--LnuMUvvRfg",Dt="item--z5nndfjH8o",kt="clickable--97A7y+yXeR",St="empty--sjD67Spx22",xt="remove-button--MO44tI-hYI",Et="loader--EWX5fXRMTN",Pt="error--RMCGBQ7MIn",Tt="disabled--FtWfC3mgik",Lt=Ve(1),Ft=Ve(3),Bt=Ve(65),Vt={button:"button--AqGOXE9wXI",left:"left--h+OAy+FPDE",right:"right--iMM+im53e2","has-options":"has-options--TfJkYbg4bw",hasOptions:"has-options--TfJkYbg4bw",icon:"icon--uUplV8PRZD"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ht=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Qe,this),_initializerDefineProperty(this,"handleClose",Xe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:qe}=this.props,Ye=yt()(Vt.button,Vt[Ve],{[Vt.hasOptions]:qe}),We=mt.a.createElement("button",{className:Ye,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.default,{className:Vt.icon,name:ze}),qe&&mt.a.createElement(bt.default,{name:"su-angle-down"}));return qe?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,qe.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Ut=Ht;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:qe,itemDisabled:Ye,emptyText:We,leftButton:Qe,loading:Xe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:qe||Ye}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Ut,_extends({},Qe,{disabled:qe||Ye,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Xe?"…":We)),st&&!Xe&&!qe&&(!Ye||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.default,{name:"su-trash-alt"})),Xe&&mt.a.createElement(vt.default,{className:Et,size:14})),gt&&mt.a.createElement(Ut,_extends({},gt,{disabled:qe||Ye,location:"right"})))}}Wt.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(17),Qe="item--EHi3nk-6JX";class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return Ye.a.createElement("button",{className:Qe,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var ot="breadcrumb--jlgvgKmFur",st="arrow--iUp5GRsECl";class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Ye.a.Children.count(ce);return Ye.a.Children.map(ce,((ce,Ve)=>{const qe=Ve===ze-1;return Ye.a.createElement("li",null,Ye.a.cloneElement(ce,{value:ce.props.value,onClick:qe?void 0:this.handleItemClick}),!qe&&Ye.a.createElement(We.default,{className:st,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Ye.a.createElement("ul",{className:ot},ze)}}mt.Item=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Qe=Ve(3),Xe=Ve(7),ot=Ve(5),st=Ve.n(ot),mt="image-focus-point-cell--sOnUhOWz2p",gt="active--IoWPVPgT03";class yt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}static getDirectionInDegrees(ce){switch(ce){case"left":return-90;case"top-left":return-45;case"top":return 0;case"top-right":return 45;case"right":return 90;case"bottom-right":return 125;case"bottom":return 180;case"bottom-left":return 225}throw new Error(`Direction with the name "${ce}" is undefined.`)}render(){const{size:ce,active:ze,arrowDirection:Ve}=this.props,qe={width:`${ce}%`,height:`${ce}%`},We=st()(mt,{[gt]:ze}),Qe=Ve?{transform:`rotate(${yt.getDirectionInDegrees(Ve)}deg)`}:{};return Ye.a.createElement("button",{className:We,disabled:ze,onClick:this.handleClick,style:qe,type:"button"},!!Ve&&!ze&&Ye.a.createElement("div",{style:Qe},Ye.a.createElement(Xe.Icon,{name:"su-angle-up"})))}}yt.defaultProps={active:!1};var bt,vt,wt,Ct,Dt="image-focus-point--sd2o2EwnCa",kt="focus-points--Mv+Y7EbGs0",St="image--T1YLwqzeMI";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.props.onChange(ce)},this.setImageRef=ce=>{this.imageRef=ce},this.handleImageLoad=()=>{this.updateImageDimension()},_initializerDefineProperty(this,"updateImageDimension",Ct,this)}componentDidMount(){window.addEventListener("resize",this.updateImageDimension)}componentWillUnmount(){window.removeEventListener("resize",this.updateImageDimension)}createFocusPoints(ce){const ze=[];for(let Ve=0;Ve<3;Ve++)for(let qe=0;qe<3;qe++)ze.push(this.createFocusPoint(ce,qe,Ve));return ze}createFocusPoint(ce,ze,Ve){const qe=`${ze}-${Ve}`,We={size:100/3,value:{x:ze,y:Ve},onClick:this.handleFocusPointClick};return ce.x===ze&&ce.y===Ve?Ye.a.createElement(yt,_extends({key:qe},We,{active:!0})):this.isLeftOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"left"})):this.isRightOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"right"})):this.isAboveOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"top"})):this.isBeneathOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"bottom"})):this.isAboveRightOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"top-right"})):this.isAboveLeftOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"top-left"})):this.isBeneathRightOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"bottom-right"})):this.isBeneathLeftOfSelectedPoint(ce,Ve,ze)?Ye.a.createElement(yt,_extends({key:qe},We,{arrowDirection:"bottom-left"})):Ye.a.createElement(yt,_extends({key:qe},We))}isLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y===ze}isRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y===ze}isAboveOfSelectedPoint(ce,ze,Ve){return ce.x===Ve&&ce.y-1===ze}isAboveLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y-1===ze}isAboveRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y-1===ze}isBeneathOfSelectedPoint(ce,ze,Ve){return ce.x===Ve&&ce.y+1===ze}isBeneathRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y+1===ze}isBeneathLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y+1===ze}render(){const{image:ce,value:ze}=this.props;return Ye.a.createElement("div",{className:Dt},this.imageDimension?Ye.a.createElement("div",{className:kt,style:{height:this.imageDimension.height,width:this.imageDimension.width}},this.createFocusPoints(ze)):Ye.a.createElement(Xe.Loader,null),Ye.a.createElement("img",{className:St,onLoad:this.handleImageLoad,ref:this.setImageRef,src:ce}))}},wt=_applyDecoratedDescriptor(vt.prototype,"imageDimension",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=_applyDecoratedDescriptor(vt.prototype,"updateImageDimension",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageRef&&(this.imageDimension=this.imageRef.getBoundingClientRect())}}}),bt=vt))||bt;ze.default=xt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(28),yt=Ve.n(gt),bt=Ve(72),vt=(Ve(96),Ve(9)),wt=Ve.n(vt),Ct=Ve(90),Dt=Ve.n(Ct),kt=Ve(12),St=Ve(353),xt=Ve(354),Et="field-container--1Bw4+LBARX",Pt="field--ipudR8Lj5+",Tt="field-exception--eXtvRF33Pc";Ve(213);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=(qe=st.computed.struct,Object(mt.b)((Qe=class extends ot.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:qe}=this.props;this.disabled||qe(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:qe,schemaPath:Ye}=this.props;ce&&ze&&qe(ce,ze),qe(Ve,Ye)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return St.a.getAll().reduce((function(ce,qe){return{...ce,...qe(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&Dt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||Dt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(st.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:qe,name:Ye,onSuccess:We,router:Qe,schema:Xe,schemaPath:st,showAllErrors:mt,value:gt}=this.props,{defaultType:yt,description:vt,label:Ct,maxOccurs:Dt,minOccurs:St,onInvalid:Lt,options:Ft={},required:Bt,type:Vt}=Xe;let Ht;try{Ht=xt.default.get(Vt)}catch(ce){return"ignore"===Lt?null:(wt.a.error(ce),ot.a.createElement(bt.a.Field,{colSpan:Xe.colSpan,spaceAfter:Xe.spaceAfter},ot.a.createElement("div",{className:Et},ot.a.createElement("div",{className:Pt},ot.a.createElement("div",{className:Tt},ot.a.createElement("h4",null,"Error while rendering field!"),ot.a.createElement("p",null,ot.a.createElement("b",null,"Name:")," ",Ye,ot.a.createElement("br",null),ot.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Ut=xt.default.getOptions(Vt),Wt=this.findErrorKeyword(Ve);return ot.a.createElement(bt.a.Field,{colSpan:Xe.colSpan,description:vt,error:Wt?Object(kt.d)("sulu_admin.error_"+Wt.toLowerCase()):void 0,id:ze,label:Ct,required:Bt,spaceAfter:Xe.spaceAfter},ot.a.createElement("div",{className:Et},ot.a.createElement("div",{className:Pt},ot.a.createElement(Ht,{data:ce,dataPath:ze,defaultType:yt,disabled:this.disabled,error:Ve,fieldTypeOptions:Ut,formInspector:qe,label:Ct||Ye,maxOccurs:Dt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Qe,schemaOptions:Ft,schemaPath:st,showAllErrors:mt,types:this.types,value:gt}))))}},Qe.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((We=Qe).prototype,"conditionData",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"conditionData"),We.prototype),_applyDecoratedDescriptor(We.prototype,"disabled",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"disabled"),We.prototype),_applyDecoratedDescriptor(We.prototype,"visible",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"visible"),We.prototype),_applyDecoratedDescriptor(We.prototype,"types",[qe],Object.getOwnPropertyDescriptor(We.prototype,"types"),We.prototype),Ye=We))||Ye);var Ft,Bt,Vt=Lt;function Section_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ht,Ut,Wt,Jt,Qt=Object(mt.b)((Section_applyDecoratedDescriptor((Bt=class extends ot.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return St.a.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||Dt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:qe,label:Ye}=Ve;return ot.a.createElement(bt.a.Section,{colSpan:qe,key:ze,label:Ye},ce)}}).prototype,"conditionData",[st.computed],Object.getOwnPropertyDescriptor(Bt.prototype,"conditionData"),Bt.prototype),Section_applyDecoratedDescriptor(Bt.prototype,"visible",[st.computed],Object.getOwnPropertyDescriptor(Bt.prototype,"visible"),Bt.prototype),Ft=Bt))||Ft;let en=Object(mt.b)((Jt=class extends ot.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="handleFieldFinish",qe=this,(Ve=Wt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}renderSection(ce,ze,Ve){const{data:qe,formInspector:Ye}=this.props,{items:We}=ce;return ot.a.createElement(Qt,{data:qe,formInspector:Ye,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:qe,dataPath:Ye,errors:We,formInspector:Qe,onChange:Xe,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=Ye+"/"+ze,wt=(gt||Qe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return ot.a.createElement(Vt,{data:qe,dataPath:vt,error:wt,formInspector:Qe,key:ze+"_"+ce.type,name:ze,onChange:Xe,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return ot.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},Jt.defaultProps={showAllErrors:!1},Wt=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((Ut=Jt).prototype,"handleFieldFinish",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Ht=Ut))||Ht;ze.a=en},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var qe=Ve(63),Ye=Ve(24),We=Ve(60),Qe=Ve(25),Xe=Ve(199);function insertAt(ce,ze,Ve){ce.insertBefore(Ve,ce.childNodes[ze]||null)}function remove(ce){const ze=ce.parentNode;ze&&ze.removeChild(ce)}var ot=Ve(42),st=Ve(8),mt=Ve(104),gt=Ve(313),yt=Ve(266),bt=Ve(671),vt=Ve(58);class wt{constructor(ce,ze){this.domDocuments=new Set,this.domConverter=ce,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=ze,this.set("isFocused",!1),this.set("isSelecting",!1),vt.a.isBlink&&!vt.a.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(ce,ze){if("text"===ce)this.domConverter.mapViewToDom(ze.parent)&&this.markedTexts.add(ze);else{if(!this.domConverter.mapViewToDom(ze))return;if("attributes"===ce)this.markedAttributes.add(ze);else{if("children"!==ce)throw new st.a("view-renderer-unknown-type",this);this.markedChildren.add(ze)}}}render(){let ce;const ze=!(vt.a.isBlink&&!vt.a.isAndroid)||!this.isSelecting;for(const ce of this.markedChildren)this._updateChildrenMappings(ce);ze?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?ce=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(ce=this.selection.getFirstPosition(),this.markedChildren.add(ce.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(ce=this.domConverter.domPositionToView(this._inlineFiller),ce.parent.is("$text")&&(ce=Ye.a._createBefore(ce.parent)));for(const ce of this.markedAttributes)this._updateAttrs(ce);for(const ze of this.markedChildren)this._updateChildren(ze,{inlineFillerPosition:ce});for(const ze of this.markedTexts)!this.markedChildren.has(ze.parent)&&this.domConverter.mapViewToDom(ze.parent)&&this._updateText(ze,{inlineFillerPosition:ce});if(ze)if(ce){const ze=this.domConverter.viewPositionToDom(ce),Ve=ze.parent.ownerDocument;Object(We.i)(ze.parent)?this._inlineFiller=ze.parent:this._inlineFiller=addInlineFiller(Ve,ze.parent,ze.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(ce){const ze=this.domConverter.mapViewToDom(ce);if(!ze)return;const Ve=Array.from(this.domConverter.mapViewToDom(ce).childNodes),qe=Array.from(this.domConverter.viewChildrenToDom(ce,ze.ownerDocument,{withChildren:!1})),Ye=this._diffNodeLists(Ve,qe),We=this._findReplaceActions(Ye,Ve,qe);if(-1!==We.indexOf("replace")){const ze={equal:0,insert:0,delete:0};for(const Ye of We)if("replace"===Ye){const Ye=ze.equal+ze.insert,We=ze.equal+ze.delete,Qe=ce.getChild(Ye);!Qe||Qe.is("uiElement")||Qe.is("rawElement")||this._updateElementMappings(Qe,Ve[We]),remove(qe[Ye]),ze.equal++}else ze[Ye]++}}_updateElementMappings(ce,ze){this.domConverter.unbindDomElement(ze),this.domConverter.bindElements(ze,ce),this.markedChildren.add(ce),this.markedAttributes.add(ce)}_getInlineFillerPosition(){const ce=this.selection.getFirstPosition();return ce.parent.is("$text")?Ye.a._createBefore(this.selection.getFirstPosition().parent):ce}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const ce=this.selection.getFirstPosition(),ze=this.domConverter.viewPositionToDom(ce);return!!(ze&&Object(mt.a)(ze.parent)&&Object(We.i)(ze.parent))}_removeInlineFiller(){const ce=this._inlineFiller;if(!Object(We.i)(ce))throw new st.a("view-renderer-filler-was-lost",this);Object(We.h)(ce)?ce.remove():ce.data=ce.data.substr(We.c),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const ce=this.selection.getFirstPosition(),ze=ce.parent,Ve=ce.offset;if(!this.domConverter.mapViewToDom(ze.root))return!1;if(!ze.is("element"))return!1;if(!isEditable(ze))return!1;if(Ve===ze.getFillerOffset())return!1;const Ye=ce.nodeBefore,We=ce.nodeAfter;return!(Ye instanceof qe.a||We instanceof qe.a)}_updateText(ce,ze){const Ve=this.domConverter.findCorrespondingDomText(ce),qe=this.domConverter.viewToDom(ce,Ve.ownerDocument),Ye=Ve.data;let Qe=qe.data;const Xe=ze.inlineFillerPosition;if(Xe&&Xe.parent==ce.parent&&Xe.offset==ce.index&&(Qe=We.b+Qe),Ye!=Qe){const ce=Object(bt.a)(Ye,Qe);for(const ze of ce)"insert"===ze.type?Ve.insertData(ze.index,ze.values.join("")):Ve.deleteData(ze.index,ze.howMany)}}_updateAttrs(ce){const ze=this.domConverter.mapViewToDom(ce);if(!ze)return;const Ve=Array.from(ze.attributes).map((ce=>ce.name)),qe=ce.getAttributeKeys();for(const Ve of qe)this.domConverter.setDomElementAttribute(ze,Ve,ce.getAttribute(Ve),ce);for(const qe of Ve)ce.hasAttribute(qe)||this.domConverter.removeDomElementAttribute(ze,qe)}_updateChildren(ce,ze){const Ve=this.domConverter.mapViewToDom(ce);if(!Ve)return;const qe=ze.inlineFillerPosition,Ye=this.domConverter.mapViewToDom(ce).childNodes,We=Array.from(this.domConverter.viewChildrenToDom(ce,Ve.ownerDocument,{bind:!0}));qe&&qe.parent===ce&&addInlineFiller(Ve.ownerDocument,We,qe.offset);const Qe=this._diffNodeLists(Ye,We);let Xe=0;const ot=new Set;for(const ce of Qe)"delete"===ce?(ot.add(Ye[Xe]),remove(Ye[Xe])):"equal"===ce&&Xe++;Xe=0;for(const ce of Qe)"insert"===ce?(insertAt(Ve,Xe,We[Xe]),Xe++):"equal"===ce&&(this._markDescendantTextToSync(this.domConverter.domToView(We[Xe])),Xe++);for(const ce of ot)ce.parentNode||this.domConverter.unbindDomElement(ce)}_diffNodeLists(ce,ze){return ce=filterOutFakeSelectionContainer(ce,this._fakeSelectionContainer),Object(Xe.a)(ce,ze,sameNodes.bind(null,this.domConverter))}_findReplaceActions(ce,ze,Ve){if(-1===ce.indexOf("insert")||-1===ce.indexOf("delete"))return ce;let qe=[],Ye=[],We=[];const Qe={equal:0,insert:0,delete:0};for(const ot of ce)"insert"===ot?We.push(Ve[Qe.equal+Qe.insert]):"delete"===ot?Ye.push(ze[Qe.equal+Qe.delete]):(qe=qe.concat(Object(Xe.a)(Ye,We,areSimilar).map((ce=>"equal"===ce?"replace":ce))),qe.push("equal"),Ye=[],We=[]),Qe[ot]++;return qe.concat(Object(Xe.a)(Ye,We,areSimilar).map((ce=>"equal"===ce?"replace":ce)))}_markDescendantTextToSync(ce){if(ce)if(ce.is("$text"))this.markedTexts.add(ce);else if(ce.is("element"))for(const ze of ce.getChildren())this._markDescendantTextToSync(ze)}_updateSelection(){if(vt.a.isBlink&&!vt.a.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const ce=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&ce&&(this.selection.isFake?this._updateFakeSelection(ce):(this._removeFakeSelection(),this._updateDomSelection(ce)))}_updateFakeSelection(ce){const ze=ce.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=createFakeSelectionContainer(ze));const Ve=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(Ve,this.selection),!this._fakeSelectionNeedsUpdate(ce))return;Ve.parentElement&&Ve.parentElement==ce||ce.appendChild(Ve),Ve.textContent=this.selection.fakeSelectionLabel||" ";const qe=ze.getSelection(),Ye=ze.createRange();qe.removeAllRanges(),Ye.selectNodeContents(Ve),qe.addRange(Ye)}_updateDomSelection(ce){const ze=ce.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(ze))return;const Ve=this.domConverter.viewPositionToDom(this.selection.anchor),qe=this.domConverter.viewPositionToDom(this.selection.focus);ze.collapse(Ve.parent,Ve.offset),ze.extend(qe.parent,qe.offset),vt.a.isGecko&&fixGeckoSelectionAfterBr(qe,ze)}_domSelectionNeedsUpdate(ce){if(!this.domConverter.isDomSelectionCorrect(ce))return!0;const ze=ce&&this.domConverter.domSelectionToView(ce);return(!ze||!this.selection.isEqual(ze))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(ze))}_fakeSelectionNeedsUpdate(ce){const ze=this._fakeSelectionContainer,Ve=ce.ownerDocument.getSelection();return!ze||ze.parentElement!==ce||(Ve.anchorNode!==ze&&!ze.contains(Ve.anchorNode)||ze.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const ce of this.domDocuments){if(ce.getSelection().rangeCount){const ze=ce.activeElement,Ve=this.domConverter.mapDomToView(ze);ze&&Ve&&ce.getSelection().removeAllRanges()}}}_removeFakeSelection(){const ce=this._fakeSelectionContainer;ce&&ce.remove()}_updateFocus(){if(this.isFocused){const ce=this.selection.editableElement;ce&&this.domConverter.focus(ce)}}}function isEditable(ce){if("false"==ce.getAttribute("contenteditable"))return!1;const ze=ce.findAncestor((ce=>ce.hasAttribute("contenteditable")));return!ze||"true"==ze.getAttribute("contenteditable")}function addInlineFiller(ce,ze,Ve){const qe=ze instanceof Array?ze:ze.childNodes,Ye=qe[Ve];if(Object(mt.a)(Ye))return Ye.data=We.b+Ye.data,Ye;{const Ye=ce.createTextNode(We.b);return Array.isArray(ze)?qe.splice(Ve,0,Ye):insertAt(ze,Ve,Ye),Ye}}function areSimilar(ce,ze){return Object(yt.a)(ce)&&Object(yt.a)(ze)&&!Object(mt.a)(ce)&&!Object(mt.a)(ze)&&!Object(gt.a)(ce)&&!Object(gt.a)(ze)&&ce.tagName.toLowerCase()===ze.tagName.toLowerCase()}function sameNodes(ce,ze,Ve){return ze===Ve||(Object(mt.a)(ze)&&Object(mt.a)(Ve)?ze.data===Ve.data:!(!ce.isBlockFiller(ze)||!ce.isBlockFiller(Ve)))}function fixGeckoSelectionAfterBr(ce,ze){const Ve=ce.parent;if(Ve.nodeType!=Node.ELEMENT_NODE||ce.offset!=Ve.childNodes.length-1)return;const qe=Ve.childNodes[ce.offset];qe&&"BR"==qe.tagName&&ze.addRange(ze.getRangeAt(0))}function filterOutFakeSelectionContainer(ce,ze){const Ve=Array.from(ce);if(0==Ve.length||!ze)return Ve;return Ve[Ve.length-1]==ze&&Ve.pop(),Ve}function createFakeSelectionContainer(ce){const ze=ce.createElement("div");return ze.className="ck-fake-selection-container",Object.assign(ze.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),ze.textContent=" ",ze}Object(Qe.a)(wt,ot.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(47),vt=Ve(646),wt=(Ve(96),Ve(562)),Ct=Ve(213),Dt=Ve(97),kt=Ve(72),St=Ve(35),xt=Ve(15);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Et,Pt,Tt,Lt,Ft=Object(ot.b)((Ye=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedLocale",We,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},_initializerDefineProperty(this,"handleLocaleChange",Qe,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return mt.a.createElement(Dt.a,{align:"left",cancelText:Object(xt.b)("sulu_admin.no"),confirmText:Object(xt.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(xt.b)("sulu_admin.ghost_dialog_title")},mt.a.createElement("p",null,Object(xt.b)("sulu_admin.ghost_dialog_description")),mt.a.createElement(kt.a,null,mt.a.createElement(kt.a.Field,{colSpan:6,label:Object(xt.b)("sulu_admin.choose_language")},mt.a.createElement(St.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>mt.a.createElement(St.a.Option,{key:ce,value:ce},ce)))))))}},We=_applyDecoratedDescriptor(Ye.prototype,"selectedLocale",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleLocaleChange",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),qe=Ye))||qe;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Bt=Object(ot.b)((Pt=class extends mt.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Tt,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Lt,this)}render(){const{open:ce,types:ze}=this.props;return mt.a.createElement(Dt.a,{align:"left",cancelText:Object(xt.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(xt.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(xt.b)("sulu_admin.missing_type_dialog_title")},mt.a.createElement("p",null,Object(xt.b)("sulu_admin.missing_type_dialog_description")),mt.a.createElement(kt.a,null,mt.a.createElement(kt.a.Field,{colSpan:6},mt.a.createElement(St.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>mt.a.createElement(St.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Tt=MissingTypeDialog_applyDecoratedDescriptor(Pt.prototype,"selectedType",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=MissingTypeDialog_applyDecoratedDescriptor(Pt.prototype,"handleTypeChange",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Et=Pt))||Et;var Vt,Ht,Ut,Wt,Jt,Qt,en,rn,ln,mn=Bt;function Form_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let gn=Object(ot.b)((Ht=class extends mt.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",Ut,this),Form_initializerDefineProperty(this,"displayGhostDialog",Wt,this),Form_initializerDefineProperty(this,"submit",Jt,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",Qt,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",en,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",rn,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",ln,this),this.handleFieldFinish=(ce,ze)=>{yt.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(Xe.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(Xe.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:qe}=ce;Ve?this.hideGhostDialog():ze&&qe&&!ze.includes(qe.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Ct.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:qe}}=Ve;return Ve.forbidden?mt.a.createElement(vt.a,null):Ve.loading?mt.a.createElement(bt.a,null):mt.a.createElement(st.Fragment,null,Ve.id&&qe&&mt.a.createElement(Ft,{locales:qe,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),mt.a.createElement(mn,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&mt.a.createElement(wt.a,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},Ut=Form_applyDecoratedDescriptor(Ht.prototype,"showAllErrors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wt=Form_applyDecoratedDescriptor(Ht.prototype,"displayGhostDialog",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Ht.prototype,"formInspector",[Xe.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"formInspector"),Ht.prototype),Jt=Form_applyDecoratedDescriptor(Ht.prototype,"submit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&yt.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:qe}=this.props;if(this.showAllErrors=!0,qe.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(qe.errors)}}}),Form_applyDecoratedDescriptor(Ht.prototype,"showGhostDialog",[Xe.action],Object.getOwnPropertyDescriptor(Ht.prototype,"showGhostDialog"),Ht.prototype),Form_applyDecoratedDescriptor(Ht.prototype,"hideGhostDialog",[Xe.action],Object.getOwnPropertyDescriptor(Ht.prototype,"hideGhostDialog"),Ht.prototype),Qt=Form_applyDecoratedDescriptor(Ht.prototype,"handleGhostDialogCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),en=Form_applyDecoratedDescriptor(Ht.prototype,"handleGhostDialogConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),rn=Form_applyDecoratedDescriptor(Ht.prototype,"handleMissingTypeDialogConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),ln=Form_applyDecoratedDescriptor(Ht.prototype,"handleMissingTypeDialogCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Vt=Ht))||Vt;ze.default=gn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2138),Qe=Ve(3),Xe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(262),gt=Ve(217);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,qe,Ye,We,Qe,Xe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Xe-ot,left:qe+Qe,height:ze,scrollTop:0};st?vt.top=Ve+Xe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Xe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Xe:Ve+We-ze-Xe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,qe,Ye)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let qe=!1,Ye=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,Ye=!0),{dimensions:Ve,touchesTopBorder:qe,touchesBottomBorder:Ye}}static cropHorizontalDimensions(ce,ze,Ve,qe,Ye){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=qe+Ye-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--nr9yLM0ZdI";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="esc";let Tt=Object(Qe.b)(((xt=class extends Ye.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:qe,scrollHeight:Ye,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+qe-ze,Ye+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalAnchorMode:Ve,horizontalOffset:qe,centerChildElement:Ye}=this.props,{top:We=0,left:Qe=0,width:Xe=0,height:ot=0}=ce.getBoundingClientRect(),st=Ye?Ye.offsetTop:0,mt=!Ye,gt="center"===Ve?(Xe-this.popoverWidth)/2:0;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,We,Qe,Xe,ot,gt+qe,ze,st,mt)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Qe}=this.props;if(!ce||!Ve)return null;const Xe=this.dimensions,ot={...bt.dimensionsToStyle(Xe),position:"fixed",pointerEvents:"auto"},st=Xe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Xe.left===Ve.getBoundingClientRect().left?"left":"right";return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(We.a,null,Qe&&Ye.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),Ye.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalAnchorMode:"left",horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(15),Qe=Ve(33),Xe=Ve(593).default,ot="cards--dl+VIG2muA",st="card--7AOfqYfHF0",mt="add-button-container--7Lo6S1Vo3Z";class gt extends Ye.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:Xe}=this.props;return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("section",{className:ot},ce&&Ye.a.Children.map(ce,((ce,ze)=>Ye.a.createElement("div",{className:st,key:ze},Ye.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:Xe}))))),Ye.a.createElement("div",{className:mt},Ye.a.createElement(Qe.default,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(We.b)("sulu_admin.add"))))}}gt.Card=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(685),Ct=Ve(3),Dt=Ve(1),kt=Ve(38),St=Ve(115),xt="icon--qyCXzqtclJ";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=Object(Ct.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"value",We,this),_initializerDefineProperty(this,"showError",Qe,this),_initializerDefineProperty(this,"popoverOpen",Xe,this),_initializerDefineProperty(this,"popoverAnchorElement",ot,this),_initializerDefineProperty(this,"handlePopoverOpen",st,this),_initializerDefineProperty(this,"handlePopoverClose",mt,this),_initializerDefineProperty(this,"setRef",gt,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:qe,valid:Ye}=this.props,We={color:this.isValidValue?this.value:"transparent"};return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.default,{disabled:ce,icon:"su-square",iconClassName:xt,iconStyle:We,id:ze,inputContainerRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:qe,valid:Ye&&!this.showError,value:this.value}),vt.a.createElement(St.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>vt.a.createElement("div",{ref:ce,style:ze},vt.a.createElement(wt.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},yt.defaultProps={disabled:!1,valid:!0},We=_applyDecoratedDescriptor((Ye=yt).prototype,"value",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showError",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"popoverOpen",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"popoverAnchorElement",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverOpen",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"setRef",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),_applyDecoratedDescriptor(Ye.prototype,"setValue",[Dt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setShowError",[Dt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setShowError"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"isValidValue",[Dt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"isValidValue"),Ye.prototype),qe=Ye))||qe;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(87),ot=Ve(12),st=Ve(17),mt=Ve(622).default,gt={container:"container--xsaIPD2NqO",sticky:"sticky--8qpcrhIN0z",divide:"divide--O+7dly94wP",selected:"selected--TAQzHCTC--",cancelButton:"cancelButton--tn4XJxTa4y",cancelButtonIcon:"cancelButtonIcon--QdySm6u8DD",actionList:"actionList--03gqVaRDVE",actionButton:"actionButton--oVEQGXbXtd",actionButtonDisabled:"actionButtonDisabled--ms8OhPrd3a",actionButtonIcon:"actionButtonIcon--4p2slxlJkW"};class yt extends Ye.a.Component{constructor(ce){super(ce),this.handleChangeSelectAll=()=>{const{onSelectAll:ce,onUnselectAll:ze,allSelected:Ve}=this.props;ce&&!Ve?ce():ze&&Ve&&ze()},this.handleCancel=()=>{const{onCancel:ce}=this.props;ce&&ce()}}render(){const{actions:ce,allSelected:ze,selectedCount:Ve,mode:qe}=this.props;return Ye.a.createElement("section",{className:Qe()(gt.container,gt[qe])},Ye.a.createElement("div",{className:gt.divide},Ye.a.createElement("div",{className:gt.selected},Object(ot.d)("sulu_admin.%count%_selected",{count:Ve})),Ye.a.createElement("div",null,Ye.a.createElement(Xe.b,{checked:ze,onChange:this.handleChangeSelectAll,size:"small"},Object(ot.d)("sulu_admin.select_all")))),Ye.a.createElement("div",{className:gt.divide},Ye.a.createElement("div",{className:gt.actionList},ce.map((ce=>Ye.a.createElement(mt,{key:ce.label,label:ce.label},Ye.a.createElement("button",{"aria-label":ce.label,className:Qe()(gt.actionButton,{[gt.actionButtonDisabled]:0===Ve}),disabled:0===Ve,onClick:ce.handleClick,type:"button"},Ye.a.createElement(st.default,{className:gt.actionButtonIcon,name:ce.icon})))))),Ye.a.createElement("div",null,Ye.a.createElement("button",{className:gt.cancelButton,onClick:this.handleCancel,type:"button"},Ye.a.createElement(st.default,{className:gt.cancelButtonIcon,name:"su-cancel"}),Object(ot.d)("sulu_admin.cancel")))))}}yt.defaultProps={actions:[],allSelected:!1,mode:"static",selectedCount:0};ze.default=yt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(3),mt=Ve(1),gt=Ve(402),yt=Ve(11),bt=Ve(161),vt=Ve(316),wt=Ve(529).default,Ct=Ve(303),Dt="media-item--J8jBaNhbLQ",kt="thumbnail-image--TjvsJUalhx",St="media-title--3LTcWRCfN+";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt="sulu-25x25";let Et=Object(st.b)(((Qe=class extends ot.a.Component{constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="overlayOpen",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleRemove=()=>{this.singleMediaSelectionStore.clear()},this.handleOverlayOpen=()=>{this.openOverlay()},this.handleOverlayClose=()=>{this.closeOverlay()},this.handleOverlayConfirm=ce=>{this.singleMediaSelectionStore.set(ce),this.closeOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Qe,value:Xe}=this.props;this.singleMediaSelectionStore=new bt.a("media",Xe.id,Qe),this.changeDisposer=Object(mt.reaction)((()=>this.singleMediaSelectionStore.item?this.singleMediaSelectionStore.item.id:void 0),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve.id!==ce&&ze({...Ve,id:ce},this.singleMediaSelectionStore.item)}))}componentDidUpdate(ce){const ze=Object(mt.toJS)(this.props.value.id),Ve=Object(mt.toJS)(ce.value.id),qe=this.singleMediaSelectionStore.item?this.singleMediaSelectionStore.item.id:void 0;Ve!==ze&&qe!==ze&&this.singleMediaSelectionStore.loadItem(ze)}componentWillUnmount(){this.changeDisposer()}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{className:ce,disabled:ze,displayOptions:Ve,locale:qe,types:Ye,valid:We,value:Qe}=this.props,{loading:st,item:mt}=this.singleMediaSelectionStore,bt=Ve.length>0?{icon:Object(vt.a)(Qe.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(vt.a)(ce),label:Object(vt.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.a,{className:ce,disabled:ze,emptyText:Object(yt.b)("sulu_media.select_media_singular"),id:mt&&mt.id,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:st,onItemClick:this.handleItemClick,onRemove:mt?this.handleRemove:void 0,rightButton:bt,valid:We,value:mt},mt&&ot.a.createElement("div",{className:Dt},mt.thumbnails&&mt.thumbnails[xt]?ot.a.createElement("img",{alt:mt.title,className:kt,src:mt.thumbnails[xt]}):ot.a.createElement(Ct.a,{height:19,iconSize:14,mimeType:mt.mimeType,width:19}),ot.a.createElement("div",{className:St},mt.title))),ot.a.createElement(wt,{excludedIds:mt?[mt.id]:[],locale:qe,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:Ye}))}}).defaultProps={disabled:!1,displayOptions:[],types:[],valid:!0,value:{displayOption:void 0,id:void 0}},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"overlayOpen",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"openOverlay",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"closeOverlay",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeOverlay"),Ye.prototype),qe=Ye))||qe;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(1),vt=Ve(3),wt=Ve(34),Ct=Ve(7),Dt=Ve(6),kt=Ve(543).default,St=Ve(800),xt="overlay--mle7UOWhVC";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Et="media",Pt="collections",Tt="media_selection_overlay";let Lt=Object(vt.b)(((mt=class extends yt.a.Component{static createCollectionListStore(ce,ze){return new wt.c(Pt,Pt,Tt,{page:bt.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,qe){const Ye={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(bt.isArrayLike)(qe)&&qe.length>0&&(Ye.types=qe.join(",")),new wt.c(Et,Et,Tt,{page:bt.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},Ye)}constructor(ce){super(ce),_initializerDefineProperty(this,"collectionStore",We,this),_initializerDefineProperty(this,"showMediaUploadOverlay",Qe,this),_initializerDefineProperty(this,"handleCollectionNavigate",Xe,this),_initializerDefineProperty(this,"handleUploadOverlayOpen",ot,this),_initializerDefineProperty(this,"handleUploadOverlayClose",st,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(bt.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new St.a(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:qe,locale:Ye}=this.props,We=[{title:Object(Dt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return yt.a.createElement(Ct.Overlay,{actions:We,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:Object(Dt.translate)("sulu_media.select_media_plural")},yt.a.createElement("div",{className:xt},yt.a.createElement(kt,{collectionListStore:ce,collectionStore:this.collectionStore,locale:Ye,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},We=_applyDecoratedDescriptor((Ye=mt).prototype,"collectionStore",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showMediaUploadOverlay",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"updateCollectionStore",[bt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"updateCollectionStore"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleCollectionNavigate",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleUploadOverlayOpen",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleUploadOverlayClose",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),qe=Ye))||qe;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);const Qe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Xe{static get(ce){const ze=ce.split("/")[0];return Qe[ce]?Qe[ce]:Qe[ze]?Qe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--DnYrO-3iW8";class st extends Ye.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:qe}=this.props,{icon:Qe,backgroundColor:st}=Xe.get(qe),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),Ye.a.createElement("div",{className:ot,style:mt},Ye.a.createElement(We.Icon,{name:Qe}))}}st.defaultProps={iconSize:52}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(1),wt=Ve(3),Ct=Ve(7),Dt=Ve(6),kt=Ve(628).default,St=(Ve(377),"buttons--jK0mBe7eK+");function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let xt=Object(wt.b)(((gt=class extends bt.a.Component{get errorMessage(){const ce=this.props.mediaUploadStore.error;if(ce)return ce.detail||ce.title||Object(Dt.translate)("sulu_media.upload_server_error")}constructor(ce){super(ce),_initializerDefineProperty(this,"showDeleteDialog",We,this),_initializerDefineProperty(this,"deleting",Qe,this),this.handleMediaDrop=ce=>{const{collectionId:ze,mediaUploadStore:Ve}=this.props;Ve.id?Ve.update(ce).then(this.callUploadComplete):ze&&Ve.create(ze,ce).then(this.callUploadComplete)},_initializerDefineProperty(this,"handleDownloadMediaClick",Xe,this),_initializerDefineProperty(this,"handleDeleteMediaClick",ot,this),_initializerDefineProperty(this,"handleDeleteDialogCancelClick",st,this),_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",mt,this),this.callUploadComplete=ce=>{const{onUploadComplete:ze}=this.props;ze&&ze(ce)};const{collectionId:ze,mediaUploadStore:Ve}=this.props;if(!Ve.media&&!ze)throw new Error('If a new item is supposed to be uploaded a "collectionId" is required!')}render(){const{deletable:ce,disabled:ze,downloadable:Ve,emptyIcon:qe,mediaUploadStore:Ye,imageSize:We,skin:Qe,uploadText:Xe}=this.props,{mimeType:ot,progress:st,uploading:mt}=Ye;return bt.a.createElement(yt.Fragment,null,bt.a.createElement(kt,{disabled:ze,emptyIcon:qe,errorText:this.errorMessage,image:Ye.getThumbnail(We),mimeType:ot,onDrop:this.handleMediaDrop,progress:st,skin:Qe,uploading:mt,uploadText:Xe}),Ye.id&&!ze&&bt.a.createElement("div",{className:St},Ve&&bt.a.createElement(Ct.Button,{icon:"su-download",onClick:this.handleDownloadMediaClick,skin:"link"},Object(Dt.translate)("sulu_media.download_media")),ce&&bt.a.createElement(Ct.Button,{icon:"su-trash-alt",onClick:this.handleDeleteMediaClick,skin:"link"},Object(Dt.translate)("sulu_media.delete_media"))),bt.a.createElement(Ct.Dialog,{cancelText:Object(Dt.translate)("sulu_admin.cancel"),confirmLoading:this.deleting,confirmText:Object(Dt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(Dt.translate)("sulu_media.delete_media_warning_title")},Object(Dt.translate)("sulu_media.delete_media_warning_text")))}}).defaultProps={deletable:!0,disabled:!1,downloadable:!0,imageSize:"sulu-400x400",skin:"default"},We=_applyDecoratedDescriptor((Ye=gt).prototype,"showDeleteDialog",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"deleting",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"errorMessage",[vt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errorMessage"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleDownloadMediaClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{window.location.assign(this.props.mediaUploadStore.downloadUrl)}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteMediaClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!0}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteDialogCancelClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteDialogConfirmClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deleting=!0,this.props.mediaUploadStore.delete().then(Object(vt.action)((ce=>{this.callUploadComplete(ce),this.deleting=!1,this.showDeleteDialog=!1})))}}}),qe=Ye))||qe;ze.default=xt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We="divider--4fSL4-0Dg8";class Qe extends Ye.a.PureComponent{render(){const{children:ce}=this.props;return Ye.a.createElement("div",{className:We},ce)}}ze.a=Qe},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(19),Qe="line--iycrqEo8M5",Xe="icon--hHrSgkOEZ-",ot="label--02GCea8OnV",st="description--bs1X0wtnpx";class mt extends Ye.a.Component{render(){const{children:ce,description:ze,icon:Ve,label:mt}=this.props;return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("div",{className:Qe},Ve&&Ye.a.createElement(We.a,{className:Xe,name:Ve}),mt&&Ye.a.createElement("div",{className:ot},mt),ce),ze&&Ye.a.createElement("div",{className:st},ze))}}ze.a=mt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(664),Qe=Ve.n(We),Xe=Ve(48),ot="qrcode--psnuRq5Ajk";class st extends Ye.a.PureComponent{render(){return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Xe.a,this.props),Ye.a.createElement(Qe.a,{className:ot,value:this.props.value||"",viewBox:"0 0 256 256"}))}}ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(48),yt="resource-locator--k7xfnETJXV",bt="fixed--vjkfEJy7y-";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const vt=new Map([[/[-]+\//g,"/"],[/\/[-]+/g,"/"],[/^([-])/g,""],[/([/]+)/g,"/"],[/ /g,"-"],[/([-]+)/g,"-"],[/[^a-z0-9-_/]/g,""]]);var wt=Object(mt.b)(((Qe=class extends ot.a.Component{constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="fixed",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleChange=ce=>{const{mode:ze,onChange:Ve,locale:qe}=this.props;if(ce){try{ce=ce.toLocaleLowerCase(qe.get())}catch(ze){ce=ce.toLowerCase()}"leaf"===ze&&(ce=ce.replace(/\//g,"-")),vt.forEach(((ze,Ve)=>{ce&&(ce=ce.replace(Ve,ze))}))}Ve(ce?this.fixed+ce:void 0)},this.handleBlur=()=>{const{onBlur:ce,onChange:ze,value:Ve}=this.props;if(Ve){ze(Ve.replace(/([-])$/g,""))}ce&&ce()},this.splitLeafValue()}componentDidUpdate(ce){this.props.value!==ce.value&&this.splitLeafValue()}splitLeafValue(){const{value:ce,mode:ze}=this.props;if("leaf"===ze&&ce){const ze=ce.split("/");ze.pop(),this.fixed=ze.join("/")+"/"}}get changeableValue(){const{value:ce}=this.props;if(ce)return ce.substring(this.fixed.length)}render(){const{disabled:ce,id:ze}=this.props;return ot.a.createElement("div",{className:yt},ot.a.createElement("span",{className:bt},this.fixed),ot.a.createElement(gt.a,{disabled:ce,id:ze,onBlur:this.handleBlur,onChange:this.handleChange,value:this.changeableValue}))}}).defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"fixed",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeableValue",[st.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"changeableValue"),Ye.prototype),qe=Ye))||qe;ze.a=wt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(22),vt=Ve.n(bt),wt=Ve(90),Ct=Ve.n(wt),Dt=Ve(5),kt=Ve.n(Dt),St=Ve(196),xt=Ve(305),Et=Ve(173),Pt=Ve(192),Tt=Ve(382),Lt="item-container--b9waq1qDk9",Ft="publish-indicator--+0-bD5NjUW",Bt="column-list--zKxOZ26-kf",Vt="item-column--2YalRHq5aE",Ht="disabled--2GPgur-u-Y";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Ut=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Qe,this),_initializerDefineProperty(this,"handleOverlayClose",Xe,this),this.handleOverlayConfirm=ce=>{this.selectionStore.set(ce),this.closeOverlay()},this.handleRemove=ce=>{this.selectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.selectionStore.move(ce,ze)};const{locale:ze,options:Ve,resourceKey:qe,value:Ye}=this.props;this.selectionStore=new Pt.a(qe,Ye,ze,"ids",Ve),this.changeSelectionDisposer=Object(gt.reaction)((()=>this.selectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;vt()(Object(gt.toJS)(Ve),Object(gt.toJS)(ce))||ze(ce)})),this.changeOptionsDisposer=Object(gt.reaction)((()=>this.props.options),(ce=>{this.selectionStore.setRequestParameters(ce),this.selectionStore.loadItems(this.props.value)}),{equals:gt.comparer.structural})}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value),ze=Object(gt.toJS)(this.selectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),vt()(ce,ze)||this.selectionStore.loadItems(ce)}componentWillUnmount(){this.changeSelectionDisposer(),this.changeOptionsDisposer()}closeOverlay(){this.overlayOpen=!1}openOverlay(){this.overlayOpen=!0}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:qe,disabledIds:Ye,displayProperties:We,icon:Qe,itemDisabledCondition:Xe,label:ot,locale:gt,onItemClick:yt,options:bt,overlayTitle:vt,resourceKey:wt,sortable:Dt}=this.props,{items:Pt,loading:Ut}=this.selectionStore,Wt=We.length;return mt.a.createElement(st.Fragment,null,mt.a.createElement(xt.a,{disabled:qe,label:ot,leftButton:{icon:Qe,onClick:this.handleOverlayOpen},loading:Ut,onItemClick:yt,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,sortable:Dt},Pt.map(((ce,Ve)=>{const qe=Ye.includes(ce.id)||!!Xe&&Ct.a.evalSync(Xe,ce),Qe=kt()(Vt,{[Ht]:qe}),{published:ot,publishedState:st}=ce;return mt.a.createElement(xt.a.Item,{allowRemoveWhileDisabled:ze,disabled:qe,id:ce.id,index:Ve+1,key:ce.id,value:ce},mt.a.createElement("div",{className:Lt},(void 0!==st||void 0!==ot)&&!(st&&ot)&&mt.a.createElement("div",{className:Ft},mt.a.createElement(Et.a,{draft:!st,published:!!ot})),mt.a.createElement("div",{className:Bt},We.map((ze=>mt.a.createElement("span",{className:Qe,key:ze,style:{width:100/Wt+"%"}},mt.a.createElement(St.a,null,ce[ze])))))))}))),mt.a.createElement(Tt.a,{adapter:ce,disabledIds:Ye,itemDisabledCondition:Xe,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:bt,preSelectedItems:Pt,resourceKey:wt,title:vt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],displayProperties:[],icon:"su-plus",options:{},sortable:!0,value:[]},We=_applyDecoratedDescriptor((Ye=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openOverlay"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),qe=Ye))||qe;ze.a=Ut},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(1),Ct=Ve(3),Dt=Ve(11),kt=Ve(40),St=Ve(101),xt=Ve(54),Et=Ve(131),Pt=Ve(94),Tt=Ve(193),Lt="resource-locator-history-overlay--X48NlhjdjD",Ft="loader--W2ZpnN5wbR";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Bt=Object(Ct.b)((Ye=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"showDeleteWarning",Qe,this),_initializerDefineProperty(this,"handleButtonClick",Xe,this),_initializerDefineProperty(this,"handleOverlayConfirm",ot,this),_initializerDefineProperty(this,"handleOverlayClose",st,this),_initializerDefineProperty(this,"handleDeleteClick",mt,this),_initializerDefineProperty(this,"handleDeleteCancel",gt,this),_initializerDefineProperty(this,"handleDeleteConfirm",yt,this)}render(){const{resourceListStore:ce,props:ze}=this,{id:Ve}=ze,qe=ce?ce.data:[];return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.a,{disabled:!Ve,icon:"su-process",onClick:this.handleButtonClick,skin:"link"},Object(Dt.b)("sulu_admin.show_history")),vt.a.createElement(Et.a,{confirmText:Object(Dt.b)("sulu_admin.ok"),onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.open,size:"small",title:Object(Dt.b)("sulu_admin.history")},!this.resourceListStore||this.resourceListStore.loading?vt.a.createElement("div",{className:Ft},vt.a.createElement(xt.a,null)):vt.a.createElement("div",{className:Lt},vt.a.createElement(Pt.a,{buttons:[{icon:"su-trash-alt",onClick:this.handleDeleteClick}]},vt.a.createElement(Pt.a.Header,null,vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.url")),vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.created"))),vt.a.createElement(Pt.a.Body,null,qe.map((ce=>vt.a.createElement(Pt.a.Row,{id:ce.id,key:ce.id},vt.a.createElement(Pt.a.Cell,null,ce.resourcelocator),vt.a.createElement(Pt.a.Cell,null,new Date(ce.created).toLocaleString())))))))),vt.a.createElement(St.a,{cancelText:Object(Dt.b)("sulu_admin.cancel"),confirmLoading:!!ce&&ce.deleting,confirmText:Object(Dt.b)("sulu_admin.ok"),onCancel:this.handleDeleteCancel,onConfirm:this.handleDeleteConfirm,open:this.showDeleteWarning,title:Object(Dt.b)("sulu_admin.delete")},Object(Dt.b)("sulu_admin.resource_locator_history_delete_warning")))}},We=_applyDecoratedDescriptor(Ye.prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showDeleteWarning",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleButtonClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{id:ce,options:ze,resourceKey:Ve}=this.props;this.resourceListStore=new Tt.a(Ve,{...ze,id:ce}),this.open=!0}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteWarning=!0,this.deleteId=ce}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteCancel",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteWarning=!1,this.deleteId=void 0}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.deleteId)throw new Error('The "deleteId" has not been set! This should not happen and is likely a bug!');if(!this.resourceListStore)throw new Error("The ResourceListStore has not been initialized yet! This should not happen and is likely a bug.");this.resourceListStore.deleteList([this.deleteId]).then(Object(wt.action)((()=>{this.showDeleteWarning=!1,this.deleteId=void 0})))}}}),qe=Ye))||qe;var Vt=Bt;ze.a=Vt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(31),Ye=Ve(288),We=Ve(580),Qe=Ve(293),Xe=Ve(58),ot=Ve(37),st=Ve(55);function verticalNavigationHandler(ce){const ze=ce.model;return(Ve,qe)=>{const Ye=qe.keyCode==ot.f.arrowup,We=qe.keyCode==ot.f.arrowdown,Qe=qe.shiftKey,Xe=ze.document.selection;if(!Ye&&!We)return;const st=We;if(Qe&&selectionWillShrink(Xe,st))return;const mt=findTextRangeFromSelection(ce,Xe,st);if(mt){if(mt.isCollapsed){if(Xe.isCollapsed)return;if(Qe)return}(mt.isCollapsed||isSingleLineRange(ce,mt,st))&&(ze.change((ce=>{const Ve=st?mt.end:mt.start;if(Qe){const qe=ze.createSelection(Xe.anchor);qe.setFocus(Ve),ce.setSelection(qe)}else ce.setSelection(Ve)})),Ve.stop(),qe.preventDefault(),qe.stopPropagation())}}}function findTextRangeFromSelection(ce,ze,Ve){const qe=ce.model;if(Ve){const ce=ze.isCollapsed?ze.focus:ze.getLastPosition(),Ve=getNearestNonInlineLimit(qe,ce,"forward");if(!Ve)return null;const Ye=qe.createRange(ce,Ve),We=getNearestTextPosition(qe.schema,Ye,"backward");return We?qe.createRange(ce,We):null}{const ce=ze.isCollapsed?ze.focus:ze.getFirstPosition(),Ve=getNearestNonInlineLimit(qe,ce,"backward");if(!Ve)return null;const Ye=qe.createRange(Ve,ce),We=getNearestTextPosition(qe.schema,Ye,"forward");return We?qe.createRange(We,ce):null}}function getNearestNonInlineLimit(ce,ze,Ve){const qe=ce.schema,Ye=ce.createRangeIn(ze.root),We="forward"==Ve?"elementStart":"elementEnd";for(const{previousPosition:ce,item:Qe,type:Xe}of Ye.getWalker({startPosition:ze,direction:Ve})){if(qe.isLimit(Qe)&&!qe.isInline(Qe))return ce;if(Xe==We&&qe.isBlock(Qe))return null}return null}function getNearestTextPosition(ce,ze,Ve){const qe="backward"==Ve?ze.end:ze.start;if(ce.checkChild(qe,"$text"))return qe;for(const{nextPosition:qe}of ze.getWalker({direction:Ve}))if(ce.checkChild(qe,"$text"))return qe;return null}function isSingleLineRange(ce,ze,Ve){const qe=ce.model,Ye=ce.view.domConverter;if(Ve){const ce=qe.createSelection(ze.start);qe.modifySelection(ce),ce.focus.isAtEnd||ze.start.isEqual(ce.focus)||(ze=qe.createRange(ce.focus,ze.end))}const We=ce.mapper.toViewRange(ze),Qe=Ye.viewRangeToDom(We),Xe=st.a.getDomRangeRects(Qe);let ot;for(const ce of Xe)if(void 0!==ot){if(Math.round(ce.top)>=ot)return!1;ot=Math.max(ot,Math.round(ce.bottom))}else ot=Math.round(ce.bottom);return!0}function selectionWillShrink(ce,ze){return!ce.isCollapsed&&ce.isBackward==ze}var mt=Ve(74);class gt extends qe.a{static get pluginName(){return"Widget"}static get requires(){return[We.a,Qe.a]}init(){var ce=this;const ze=this.editor,Ve=ze.editing.view,qe=Ve.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((ce,Ve,qe)=>{const Ye=qe.writer,We=Ve.selection;if(We.isCollapsed)return;const Qe=We.getSelectedElement();if(!Qe)return;const Xe=ze.editing.mapper.toViewElement(Qe);Object(mt.c)(Xe)&&qe.consumable.consume(We,"selection")&&Ye.setSelection(Ye.createRangeOn(Xe),{fake:!0,label:Object(mt.b)(Xe)})})),this.editor.editing.downcastDispatcher.on("selection",((ce,ze,Ve)=>{this._clearPreviouslySelectedWidgets(Ve.writer);const qe=Ve.writer,Ye=qe.document.selection;let We=null;for(const ce of Ye.getRanges())for(const ze of ce){const ce=ze.item;Object(mt.c)(ce)&&!isChild(ce,We)&&(qe.addClass(mt.a,ce),this._previouslySelected.add(ce),We=ce)}}),{priority:"low"}),Ve.addObserver(Ye.a),this.listenTo(qe,"mousedown",(function(){return ce._onMousedown(...arguments)})),this.listenTo(qe,"arrowKey",(function(){ce._handleSelectionChangeOnArrowKeyPress(...arguments)}),{context:[mt.c,"$text"]}),this.listenTo(qe,"arrowKey",(function(){ce._preventDefaultOnArrowKeyPress(...arguments)}),{context:"$root"}),this.listenTo(qe,"arrowKey",verticalNavigationHandler(this.editor.editing),{context:"$text"}),this.listenTo(qe,"delete",((ce,ze)=>{this._handleDelete("forward"==ze.direction)&&(ze.preventDefault(),ce.stop())}),{context:"$root"})}_onMousedown(ce,ze){const Ve=this.editor,qe=Ve.editing.view,Ye=qe.document;let We=ze.target;if(isInsideNestedEditable(We)){if((Xe.a.isSafari||Xe.a.isGecko)&&ze.domEvent.detail>=3){const ce=Ve.editing.mapper,qe=We.is("attributeElement")?We.findAncestor((ce=>!ce.is("attributeElement"))):We,Ye=ce.toModelElement(qe);ze.preventDefault(),this.editor.model.change((ce=>{ce.setSelection(Ye,"in")}))}return}if(!Object(mt.c)(We)&&(We=We.findAncestor(mt.c),!We))return;Xe.a.isAndroid&&ze.preventDefault(),Ye.isFocused||qe.focus();const Qe=Ve.editing.mapper.toModelElement(We);this._setSelectionOverElement(Qe)}_handleSelectionChangeOnArrowKeyPress(ce,ze){const Ve=ze.keyCode,qe=this.editor.model,Ye=qe.schema,We=qe.document.selection,Qe=We.getSelectedElement(),Xe=Object(ot.c)(Ve,this.editor.locale.contentLanguageDirection),st="down"==Xe||"right"==Xe,mt="up"==Xe||"down"==Xe;if(Qe&&Ye.isObject(Qe)){const Ve=st?We.getLastPosition():We.getFirstPosition(),Qe=Ye.getNearestSelectionRange(Ve,st?"forward":"backward");return void(Qe&&(qe.change((ce=>{ce.setSelection(Qe)})),ze.preventDefault(),ce.stop()))}if(!We.isCollapsed&&!ze.shiftKey){const Ve=We.getFirstPosition(),Qe=We.getLastPosition(),Xe=Ve.nodeAfter,ot=Qe.nodeBefore;return void((Xe&&Ye.isObject(Xe)||ot&&Ye.isObject(ot))&&(qe.change((ce=>{ce.setSelection(st?Qe:Ve)})),ze.preventDefault(),ce.stop()))}if(!We.isCollapsed)return;const gt=this._getObjectElementNextToSelection(st);if(gt&&Ye.isObject(gt)){if(Ye.isInline(gt)&&mt)return;this._setSelectionOverElement(gt),ze.preventDefault(),ce.stop()}}_preventDefaultOnArrowKeyPress(ce,ze){const Ve=this.editor.model,qe=Ve.schema,Ye=Ve.document.selection.getSelectedElement();Ye&&qe.isObject(Ye)&&(ze.preventDefault(),ce.stop())}_handleDelete(ce){if(this.editor.isReadOnly)return;const ze=this.editor.model.document.selection;if(!ze.isCollapsed)return;const Ve=this._getObjectElementNextToSelection(ce);return Ve?(this.editor.model.change((ce=>{let qe=ze.anchor.parent;for(;qe.isEmpty;){const ze=qe;qe=ze.parent,ce.remove(ze)}this._setSelectionOverElement(Ve)})),!0):void 0}_setSelectionOverElement(ce){this.editor.model.change((ze=>{ze.setSelection(ze.createRangeOn(ce))}))}_getObjectElementNextToSelection(ce){const ze=this.editor.model,Ve=ze.schema,qe=ze.document.selection,Ye=ze.createSelection(qe);if(ze.modifySelection(Ye,{direction:ce?"forward":"backward"}),Ye.isEqual(qe))return null;const We=ce?Ye.focus.nodeBefore:Ye.focus.nodeAfter;return We&&Ve.isObject(We)?We:null}_clearPreviouslySelectedWidgets(ce){for(const ze of this._previouslySelected)ce.removeClass(mt.a,ze);this._previouslySelected.clear()}}function isInsideNestedEditable(ce){for(;ce;){if(ce.is("editableElement")&&!ce.is("rootElement"))return!0;if(Object(mt.c)(ce))return!1;ce=ce.parent}return!1}function isChild(ce,ze){return!!ze&&Array.from(ce.getAncestors()).includes(ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var qe=Ve(31),Ye=Ve(132),We=Ve(637),Qe=Ve(293),Xe=Ve(37),ot=Ve(83),st=Ve(364),mt=Ve(74);const gt=["before","after"],yt=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,bt="ck-widget__type-around_disabled";class vt extends qe.a{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[We.a,Qe.a]}constructor(ce){super(ce),this._currentFakeCaretModelElement=null}init(){const ce=this.editor,ze=ce.editing.view;this.on("change:isEnabled",((Ve,qe,Ye)=>{ze.change((ce=>{for(const Ve of ze.document.roots)Ye?ce.removeClass(bt,Ve):ce.addClass(bt,Ve)})),Ye||ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(ce,ze){const Ve=this.editor,qe=Ve.editing.view,Ye=Ve.model.schema.getAttributesWithProperty(ce,"copyOnReplace",!0);Ve.execute("insertParagraph",{position:Ve.model.createPositionAt(ce,ze),attributes:Ye}),qe.focus(),qe.scrollToTheSelection()}_listenToIfEnabled(ce,ze,Ve,qe){var Ye=this;this.listenTo(ce,ze,(function(){Ye.isEnabled&&Ve(...arguments)}),qe)}_insertParagraphAccordingToFakeCaretPosition(){const ce=this.editor.model.document.selection,ze=Object(ot.e)(ce);if(!ze)return!1;const Ve=ce.getSelectedElement();return this._insertParagraph(Ve,ze),!0}_enableTypeAroundUIInjection(){const ce=this.editor,ze=ce.model.schema,Ve=ce.locale.t,qe={before:Ve("Insert paragraph before block"),after:Ve("Insert paragraph after block")};ce.editing.downcastDispatcher.on("insert",((ce,Ve,Ye)=>{const We=Ye.mapper.toViewElement(Ve.item);Object(ot.f)(We,Ve.item,ze)&&injectUIIntoWidget(Ye.writer,qe,We)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const ce=this.editor,ze=ce.model,Ve=ze.document.selection,qe=ze.schema,Ye=ce.editing.view;function positionToWidgetCssClass(ce){return`ck-widget_type-around_show-fake-caret_${ce}`}this._listenToIfEnabled(Ye.document,"arrowKey",((ce,ze)=>{this._handleArrowKeyPress(ce,ze)}),{context:[mt.c,"$text"],priority:"high"}),this._listenToIfEnabled(Ve,"change:range",((ze,Ve)=>{Ve.directChange&&ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._listenToIfEnabled(ze.document,"change:data",(()=>{const ze=Ve.getSelectedElement();if(ze){const Ve=ce.editing.mapper.toViewElement(ze);if(Object(ot.f)(Ve,ze,qe))return}ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._listenToIfEnabled(ce.editing.downcastDispatcher,"selection",((ce,ze,Ve)=>{const Ye=Ve.writer;if(this._currentFakeCaretModelElement){const ce=Ve.mapper.toViewElement(this._currentFakeCaretModelElement);ce&&(Ye.removeClass(gt.map(positionToWidgetCssClass),ce),this._currentFakeCaretModelElement=null)}const We=ze.selection.getSelectedElement();if(!We)return;const Qe=Ve.mapper.toViewElement(We);if(!Object(ot.f)(Qe,We,qe))return;const Xe=Object(ot.e)(ze.selection);Xe&&(Ye.addClass(positionToWidgetCssClass(Xe),Qe),this._currentFakeCaretModelElement=We)})),this._listenToIfEnabled(ce.ui.focusTracker,"change:isFocused",((ze,Ve,qe)=>{qe||ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))}))}_handleArrowKeyPress(ce,ze){const Ve=this.editor,qe=Ve.model,Ye=qe.document.selection,We=qe.schema,Qe=Ve.editing.view,st=ze.keyCode,mt=Object(Xe.e)(st,Ve.locale.contentLanguageDirection),gt=Qe.document.selection.getSelectedElement(),yt=Ve.editing.mapper.toModelElement(gt);let bt;Object(ot.f)(gt,yt,We)?bt=this._handleArrowKeyPressOnSelectedWidget(mt):Ye.isCollapsed?bt=this._handleArrowKeyPressWhenSelectionNextToAWidget(mt):ze.shiftKey||(bt=this._handleArrowKeyPressWhenNonCollapsedSelection(mt)),bt&&(ze.preventDefault(),ce.stop())}_handleArrowKeyPressOnSelectedWidget(ce){const ze=this.editor.model,Ve=ze.document.selection,qe=Object(ot.e)(Ve);return ze.change((ze=>{if(!qe)return ze.setSelectionAttribute(ot.a,ce?"after":"before"),!0;if(!(qe===(ce?"after":"before")))return ze.removeSelectionAttribute(ot.a),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(ce){const ze=this.editor,Ve=ze.model,qe=Ve.schema,Ye=ze.plugins.get("Widget"),We=Ye._getObjectElementNextToSelection(ce),Qe=ze.editing.mapper.toViewElement(We);return!!Object(ot.f)(Qe,We,qe)&&(Ve.change((ze=>{Ye._setSelectionOverElement(We),ze.setSelectionAttribute(ot.a,ce?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(ce){const ze=this.editor,Ve=ze.model,qe=Ve.schema,Ye=ze.editing.mapper,We=Ve.document.selection,Qe=ce?We.getLastPosition().nodeBefore:We.getFirstPosition().nodeAfter,Xe=Ye.toViewElement(Qe);return!!Object(ot.f)(Xe,Qe,qe)&&(Ve.change((ze=>{ze.setSelection(Qe,"on"),ze.setSelectionAttribute(ot.a,ce?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const ce=this.editor,ze=ce.editing.view;this._listenToIfEnabled(ze.document,"mousedown",((Ve,qe)=>{const Ye=Object(ot.b)(qe.domTarget);if(!Ye)return;const We=Object(ot.d)(Ye),Qe=Object(ot.c)(Ye,ze.domConverter),Xe=ce.editing.mapper.toModelElement(Qe);this._insertParagraph(Xe,We),qe.preventDefault(),Ve.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.editing.view;this._listenToIfEnabled(Ve.document,"enter",((Ve,qe)=>{if("atTarget"!=Ve.eventPhase)return;const Ye=ze.getSelectedElement(),We=ce.editing.mapper.toViewElement(Ye),Qe=ce.model.schema;let Xe;this._insertParagraphAccordingToFakeCaretPosition()?Xe=!0:Object(ot.f)(We,Ye,Qe)&&(this._insertParagraph(Ye,qe.isSoft?"before":"after"),Xe=!0),Xe&&(qe.preventDefault(),Ve.stop())}),{context:mt.c})}_enableInsertingParagraphsOnTypingKeystroke(){const ce=this.editor.editing.view,ze=[Xe.f.enter,Xe.f.delete,Xe.f.backspace];this._listenToIfEnabled(ce.document,"keydown",((ce,Ve)=>{ze.includes(Ve.keyCode)||Object(st.b)(Ve)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const ce=this.editor,ze=ce.editing.view,Ve=ce.model,qe=Ve.schema;this._listenToIfEnabled(ze.document,"delete",((ze,Ye)=>{if("atTarget"!=ze.eventPhase)return;const We=Object(ot.e)(Ve.document.selection);if(!We)return;const Qe=Ye.direction,Xe=Ve.document.selection.getSelectedElement(),st="forward"==Qe;if("before"===We===st)ce.execute("delete",{selection:Ve.createSelection(Xe,"on")});else{const ze=qe.getNearestSelectionRange(Ve.createPositionAt(Xe,We),Qe);if(ze)if(ze.isCollapsed){const Ye=Ve.createSelection(ze.start);if(Ve.modifySelection(Ye,{direction:Qe}),Ye.focus.isEqual(ze.start)){const ce=getDeepestEmptyElementAncestor(qe,ze.start.parent);Ve.deleteContent(Ve.createSelection(ce,"on"),{doNotAutoparagraph:!0})}else Ve.change((Ve=>{Ve.setSelection(ze),ce.execute(st?"deleteForward":"delete")}))}else Ve.change((Ve=>{Ve.setSelection(ze),ce.execute(st?"deleteForward":"delete")}))}Ye.preventDefault(),ze.stop()}),{context:mt.c})}_enableInsertContentIntegration(){const ce=this.editor,ze=this.editor.model,Ve=ze.document.selection;this._listenToIfEnabled(ce.model,"insertContent",((ce,qe)=>{let[Ye,We]=qe;if(We&&!We.is("documentSelection"))return;const Qe=Object(ot.e)(Ve);return Qe?(ce.stop(),ze.change((ce=>{const qe=Ve.getSelectedElement(),We=ze.createPositionAt(qe,Qe),Xe=ce.createSelection(We),ot=ze.insertContent(Ye,Xe);return ce.setSelection(Xe),ot}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const ce=this.editor,ze=this.editor.model.document.selection;this._listenToIfEnabled(ce.model,"insertObject",((ce,Ve)=>{const[,qe,,Ye={}]=Ve;if(qe&&!qe.is("documentSelection"))return;const We=Object(ot.e)(ze);We&&(Ye.findOptimalPosition=We,Ve[3]=Ye)}),{priority:"high"})}_enableDeleteContentIntegration(){const ce=this.editor,ze=this.editor.model.document.selection;this._listenToIfEnabled(ce.model,"deleteContent",((ce,Ve)=>{let[qe]=Ve;if(qe&&!qe.is("documentSelection"))return;Object(ot.e)(ze)&&ce.stop()}),{priority:"high"})}}function injectUIIntoWidget(ce,ze,Ve){const qe=ce.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(ce){const Ve=this.toDomElement(ce);return injectButtons(Ve,ze),injectFakeCaret(Ve),Ve}));ce.insert(ce.createPositionAt(Ve,"end"),qe)}function injectButtons(ce,ze){for(const Ve of gt){const qe=new Ye.a({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Ve}`],title:ze[Ve]},children:[ce.ownerDocument.importNode(yt,!0)]});ce.appendChild(qe.render())}}function injectFakeCaret(ce){const ze=new Ye.a({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});ce.appendChild(ze.render())}function getDeepestEmptyElementAncestor(ce,ze){let Ve=ze;for(const qe of ze.getAncestors({parentFirst:!0})){if(qe.childCount>1||ce.isLimit(qe))break;Ve=qe}return Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Tt}));var qe=Ve(25),Ye=Ve(42),We=Ve(8),Qe=Ve(673),Xe=Ve(721),ot=Ve(182),st=Ve(82);class mt{constructor(){this._consumables=new Map}add(ce,ze){let Ve;ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!0):(this._consumables.has(ce)?Ve=this._consumables.get(ce):(Ve=new gt(ce),this._consumables.set(ce,Ve)),Ve.add(ze))}test(ce,ze){const Ve=this._consumables.get(ce);return void 0===Ve?null:ce.is("$text")||ce.is("documentFragment")?Ve:Ve.test(ze)}consume(ce,ze){return!!this.test(ce,ze)&&(ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!1):this._consumables.get(ce).consume(ze),!0)}revert(ce,ze){const Ve=this._consumables.get(ce);void 0!==Ve&&(ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!0):Ve.revert(ze))}static consumablesFromElement(ce){const ze={element:ce,name:!0,attributes:[],classes:[],styles:[]},Ve=ce.getAttributeKeys();for(const ce of Ve)"style"!=ce&&"class"!=ce&&ze.attributes.push(ce);const qe=ce.getClassNames();for(const ce of qe)ze.classes.push(ce);const Ye=ce.getStyleNames();for(const ce of Ye)ze.styles.push(ce);return ze}static createFrom(ce,ze){if(ze||(ze=new mt(ce)),ce.is("$text"))return ze.add(ce),ze;ce.is("element")&&ze.add(ce,mt.consumablesFromElement(ce)),ce.is("documentFragment")&&ze.add(ce);for(const Ve of ce.getChildren())ze=mt.createFrom(Ve,ze);return ze}}class gt{constructor(ce){this.element=ce,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(ce){ce.name&&(this._canConsumeName=!0);for(const ze in this._consumables)ze in ce&&this._add(ze,ce[ze])}test(ce){if(ce.name&&!this._canConsumeName)return this._canConsumeName;for(const ze in this._consumables)if(ze in ce){const Ve=this._test(ze,ce[ze]);if(!0!==Ve)return Ve}return!0}consume(ce){ce.name&&(this._canConsumeName=!1);for(const ze in this._consumables)ze in ce&&this._consume(ze,ce[ze])}revert(ce){ce.name&&(this._canConsumeName=!0);for(const ze in this._consumables)ze in ce&&this._revert(ze,ce[ze])}_add(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],qe=this._consumables[ce];for(const ze of Ve){if("attributes"===ce&&("class"===ze||"style"===ze))throw new We.a("viewconsumable-invalid-attribute",this);if(qe.set(ze,!0),"styles"===ce)for(const ce of this.element.document.stylesProcessor.getRelatedStyles(ze))qe.set(ce,!0)}}_test(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],qe=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){const ce=qe.get(ze);if(void 0===ce)return null;if(!ce)return!1}else{const ce="class"==ze?"classes":"styles",Ve=this._test(ce,[...this._consumables[ce].keys()]);if(!0!==Ve)return Ve}return!0}_consume(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],qe=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){if(qe.set(ze,!1),"styles"==ce)for(const ce of this.element.document.stylesProcessor.getRelatedStyles(ze))qe.set(ce,!1)}else{const ce="class"==ze?"classes":"styles";this._consume(ce,[...this._consumables[ce].keys()])}}_revert(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],qe=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){!1===qe.get(ze)&&qe.set(ze,!0)}else{const ce="class"==ze?"classes":"styles";this._revert(ce,[...this._consumables[ce].keys()])}}}var yt=Ve(16),bt=Ve(20),vt=Ve(675),wt=Ve(235),Ct=Ve(39);class Dt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=Object.assign({},ce),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this),this.conversionApi.keepEmptyElement=this._keepEmptyElement.bind(this)}convert(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",ce),this._modelCursor=createContextTree(Ve,ze),this.conversionApi.writer=ze,this.conversionApi.consumable=mt.createFrom(ce),this.conversionApi.store={};const{modelRange:qe}=this._convertItem(ce,this._modelCursor),Ye=ze.createDocumentFragment();if(qe){this._removeEmptyElements();for(const ce of Array.from(this._modelCursor.parent.getChildren()))ze.append(ce,Ye);Ye.markers=extractMarkersFromModelFragment(Ye,ze)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,Ye}_convertItem(ce,ze){const Ve=Object.assign({viewItem:ce,modelCursor:ze,modelRange:null});if(ce.is("element")?this.fire("element:"+ce.name,Ve,this.conversionApi):ce.is("$text")?this.fire("text",Ve,this.conversionApi):this.fire("documentFragment",Ve,this.conversionApi),Ve.modelRange&&!(Ve.modelRange instanceof yt.a))throw new We.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:Ve.modelRange,modelCursor:Ve.modelCursor}}_convertChildren(ce,ze){let Ve=ze.is("position")?ze:bt.a._createAt(ze,0);const qe=new yt.a(Ve);for(const ze of Array.from(ce.getChildren())){const ce=this._convertItem(ze,Ve);ce.modelRange instanceof yt.a&&(qe.end=ce.modelRange.end,Ve=ce.modelCursor)}return{modelRange:qe,modelCursor:Ve}}_safeInsert(ce,ze){const Ve=this._splitToAllowedParent(ce,ze);return!!Ve&&(this.conversionApi.writer.insert(ce,Ve.position),!0)}_updateConversionResult(ce,ze){const Ve=this._getSplitParts(ce),qe=this.conversionApi.writer;ze.modelRange||(ze.modelRange=qe.createRange(qe.createPositionBefore(ce),qe.createPositionAfter(Ve[Ve.length-1])));const Ye=this._cursorParents.get(ce);ze.modelCursor=Ye?qe.createPositionAt(Ye,0):ze.modelRange.end}_splitToAllowedParent(ce,ze){const{schema:Ve,writer:qe}=this.conversionApi;let Ye=Ve.findAllowedParent(ze,ce);if(Ye){if(Ye===ze.parent)return{position:ze};this._modelCursor.parent.getAncestors().includes(Ye)&&(Ye=null)}if(!Ye)return Object(wt.b)(ze,ce,Ve)?{position:Object(wt.c)(ze,qe)}:null;const We=this.conversionApi.writer.split(ze,Ye),Qe=[];for(const ce of We.range.getWalker())if("elementEnd"==ce.type)Qe.push(ce.item);else{const ze=Qe.pop(),Ve=ce.item;this._registerSplitPair(ze,Ve)}const Xe=We.range.end.parent;return this._cursorParents.set(ce,Xe),{position:We.position,cursorParent:Xe}}_registerSplitPair(ce,ze){this._splitParts.has(ce)||this._splitParts.set(ce,[ce]);const Ve=this._splitParts.get(ce);this._splitParts.set(ze,Ve),Ve.push(ze)}_getSplitParts(ce){let ze;return ze=this._splitParts.has(ce)?this._splitParts.get(ce):[ce],ze}_keepEmptyElement(ce){this._emptyElementsToKeep.add(ce)}_removeEmptyElements(){let ce=!1;for(const ze of this._splitParts.keys())ze.isEmpty&&!this._emptyElementsToKeep.has(ze)&&(this.conversionApi.writer.remove(ze),this._splitParts.delete(ze),ce=!0);ce&&this._removeEmptyElements()}}function extractMarkersFromModelFragment(ce,ze){const Ve=new Set,qe=new Map,Ye=yt.a._createIn(ce).getItems();for(const ce of Ye)"$marker"==ce.name&&Ve.add(ce);for(const ce of Ve){const Ve=ce.getAttribute("data-name"),Ye=ze.createPositionBefore(ce);qe.has(Ve)?qe.get(Ve).end=Ye.clone():qe.set(Ve,new yt.a(Ye.clone())),ze.remove(ce)}return qe}function createContextTree(ce,ze){let Ve;for(const qe of new vt.a(ce)){const ce={};for(const ze of qe.getAttributeKeys())ce[ze]=qe.getAttribute(ze);const Ye=ze.createElement(qe.name,ce);Ve&&ze.append(Ye,Ve),Ve=bt.a._createAt(Ye,0)}return Ve}Object(qe.a)(Dt,Ct.c);var kt=Ve(309),St=Ve(178),xt=Ve(383),Et=Ve(361),Pt=Ve(638);class Tt{constructor(ce,ze){this.model=ce,this.mapper=new Qe.a,this.downcastDispatcher=new Xe.a({mapper:this.mapper,schema:ce.schema}),this.downcastDispatcher.on("insert:$text",Object(ot.f)(),{priority:"lowest"}),this.downcastDispatcher.on("insert",Object(ot.e)(),{priority:"lowest"}),this.upcastDispatcher=new Dt({schema:ce.schema}),this.viewDocument=new xt.a(ze),this.stylesProcessor=ze,this.htmlProcessor=new Pt.a(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Et.a(this.viewDocument),this.upcastDispatcher.on("text",Object(kt.b)(),{priority:"lowest"}),this.upcastDispatcher.on("element",Object(kt.c)(),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",Object(kt.c)(),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.decorate("get"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},wt.a)}),{priority:"lowest"})}get(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootName:ze="main",trim:Ve="empty"}=ce;if(!this._checkIfRootsExists([ze]))throw new We.a("datacontroller-get-non-existent-root",this);const qe=this.model.document.getRoot(ze);return"empty"!==Ve||this.model.hasContent(qe,{ignoreWhitespaces:!0})?this.stringify(qe,ce):""}stringify(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.toView(ce,ze);return this.processor.toData(Ve)}toView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.viewDocument,qe=this._viewWriter;this.mapper.clearBindings();const Ye=yt.a._createIn(ce),We=new St.a(Ve);this.mapper.bindElements(ce,We);const Qe=ce.is("documentFragment")?ce.markers:_getMarkersRelativeToElement(ce);return this.downcastDispatcher.convert(Ye,Qe,qe,ze),We}init(ce){if(this.model.document.version)throw new We.a("datacontroller-init-document-not-empty",this);let ze={};if("string"==typeof ce?ze.main=ce:ze=ce,!this._checkIfRootsExists(Object.keys(ze)))throw new We.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(ce=>{for(const Ve of Object.keys(ze)){const qe=this.model.document.getRoot(Ve);ce.insert(this.parse(ze[Ve],qe),qe,0)}})),Promise.resolve()}set(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve={};if("string"==typeof ce?Ve.main=ce:Ve=ce,!this._checkIfRootsExists(Object.keys(Ve)))throw new We.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange(ze.batchType||{},(ce=>{ce.setSelection(null),ce.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const ze of Object.keys(Ve)){const qe=this.model.document.getRoot(ze);ce.remove(ce.createRangeIn(qe)),ce.insert(this.parse(Ve[ze],qe),qe,0)}}))}parse(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";const Ve=this.processor.toView(ce);return this.toModel(Ve,ze)}toModel(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((Ve=>this.upcastDispatcher.convert(ce,Ve,ze)))}addStyleProcessorRules(ce){ce(this.stylesProcessor)}registerRawContentMatcher(ce){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(ce),this.htmlProcessor.registerRawContentMatcher(ce)}destroy(){this.stopListening()}_checkIfRootsExists(ce){for(const ze of ce)if(!this.model.document.getRootNames().includes(ze))return!1;return!0}}function _getMarkersRelativeToElement(ce){const ze=[],Ve=ce.root.document;if(!Ve)return new Map;const qe=yt.a._createIn(ce);for(const ce of Ve.model.markers){const Ve=ce.getRange(),Ye=Ve.isCollapsed,We=Ve.start.isEqual(qe.start)||Ve.end.isEqual(qe.end);if(Ye&&We)ze.push([ce.name,Ve]);else{const Ye=qe.getIntersection(Ve);Ye&&ze.push([ce.name,Ye])}}return ze.sort(((ce,ze)=>{let[Ve,qe]=ce,[Ye,We]=ze;if("after"!==qe.end.compareWith(We.start))return 1;if("before"!==qe.start.compareWith(We.end))return-1;switch(qe.start.compareWith(We.start)){case"before":return 1;case"after":return-1;default:switch(qe.end.compareWith(We.end)){case"before":return 1;case"after":return-1;default:return Ye.localeCompare(Ve)}}})),new Map(ze)}Object(qe.a)(Tt,Ye.a)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(17),ot=Ve(47),st={button:"button--37IOJ862cu",primary:"primary--5zk8eA8ctO",secondary:"secondary--xE-2ITpVyy","button-icon":"button-icon--ESwZ9qIYoW",buttonIcon:"button-icon--ESwZ9qIYoW","dropdown-icon":"dropdown-icon--MM4UtxvBk6",dropdownIcon:"dropdown-icon--MM4UtxvBk6",link:"link--mAVraEGVwQ","button-text":"button-text--t1B2COyVpL",buttonText:"button-text--t1B2COyVpL",text:"text--ANwp3Ns1zW",icon:"icon--GbbiWMTn1I",active:"active--sJDGU0kN6q","has-text":"has-text--hVivVMLAdc",hasText:"has-text--hVivVMLAdc",loader:"loader--ki05+2maRF",loading:"loading--GPUSxiXAp1"};class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:qe,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Qe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!qe,[ze||""]:ce&&ze},We),St=Qe()(st.buttonIcon,yt);return Ye.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&Ye.a.createElement(Xe.default,{className:St,name:gt}),qe&&Ye.a.createElement("span",{className:st.buttonText},qe),wt&&Ye.a.createElement(Xe.default,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&Ye.a.createElement("div",{className:st.loader},Ye.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(5),Ye=Ve.n(qe),We=Ve(0),Qe=Ve.n(We),Xe="backdrop--4h3CfjYzu0",ot="visible--X8CgmBK9jx",st="fixed--R6rdeb8k84";class mt extends Qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=Ye()(Xe,{[ot]:ce,[st]:ze});return Qe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(15),ot="character-counter--kT94E4vN+o",st="exceeded--Ps5GeJW22f";class mt extends Ye.a.Component{render(){const{max:ce,value:ze}=this.props,Ve=ce-(ze?ze.toString().length:0),qe=Qe()(ot,{[st]:Ve&&Ve<0});return Ye.a.createElement("label",{className:qe},Ve+" "+Object(Xe.b)("sulu_admin.characters_left"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(15),ot="segment-counter--rmj2iQjSzd",st="exceeded--JtxtvWR5Ej";class mt extends Ye.a.Component{render(){const{delimiter:ce,max:ze,value:Ve}=this.props,qe=ze-(Ve?Ve.split(ce).length:0),We=Qe()(ot,{[st]:qe&&qe<0});return Ye.a.createElement("label",{className:We},qe," ",Object(Xe.b)("sulu_admin.segments_left"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(17),ot={label:"label--bWHCreWSxA",disabled:"disabled--gsIQskheav",small:"small--cY-reH80th",switch:"switch--k+O7SNkl8y"};class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:qe,checked:We,children:st,className:mt,disabled:gt,size:yt,tabIndex:bt}=this.props,vt=Qe()(ot.label,{[ot.disabled]:gt},"default"!==yt?ot[yt]:null),wt=Qe()(ot.switch,{[ot.disabled]:gt},mt);return Ye.a.createElement("label",{className:vt,onClick:this.handleClick,tabIndex:-1},Ye.a.createElement("span",{className:wt},Ye.a.createElement("input",{checked:We,disabled:gt,name:Ve,onChange:this.handleChange,tabIndex:bt,type:ze,value:qe}),Ye.a.createElement("span",null,ce&&Ye.a.createElement(Xe.default,{name:ce}))),st&&Ye.a.createElement("div",null,st))}}st.defaultProps={checked:!1,disabled:!1,size:"default",type:"checkbox"}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(128),bt=Ve(12),vt=Ve(336),wt="form--JxIQw6uNLN";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ct=Object(gt.b)((Xe=class extends st.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"formErrors",We,this),this.handleOverlayConfirm=()=>{if(!this.formRef)throw new Error("The Form ref has not been set! This should not happen and is likely a bug.");this.formRef.submit()},this.handleFormSubmit=()=>{const{formStore:ce,onConfirm:ze}=this.props;"function"==typeof ce.save?ce.save().then((()=>{ze()})).catch(Object(mt.action)((ce=>{this.formErrors.push(ce.detail||ce.title||Object(bt.d)("sulu_admin.form_save_server_error"))}))):ze()},this.handleFormError=()=>{this.formErrors.push(Object(bt.d)("sulu_admin.form_contains_invalid_values"))},_initializerDefineProperty(this,"handleErrorSnackbarClose",Qe,this),this.setFormRef=ce=>{this.formRef=ce}}get confirmLoading(){const{confirmLoading:ce,formStore:ze}=this.props,Ve="boolean"==typeof ze.saving&&ze.saving;return ce||Ve}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.formErrors=[])}render(){const{confirmDisabled:ce,confirmText:ze,formStore:Ve,onClose:qe,open:Ye,size:We,title:Qe}=this.props;return st.a.createElement(yt.a,{confirmDisabled:ce,confirmLoading:this.confirmLoading,confirmText:ze,onClose:qe,onConfirm:this.handleOverlayConfirm,onSnackbarCloseClick:this.handleErrorSnackbarClose,open:Ye,size:We,snackbarMessage:this.formErrors[this.formErrors.length-1],snackbarType:"error",title:Qe},st.a.createElement("div",{className:wt},st.a.createElement(vt.b,{onError:this.handleFormError,onSubmit:this.handleFormSubmit,ref:this.setFormRef,store:Ve})))}},Xe.defaultProps={confirmDisabled:!1,confirmLoading:!1},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"formErrors",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"confirmLoading",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"confirmLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleErrorSnackbarClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.formErrors.pop()}}}),qe=Ye))||qe;ze.default=Ct},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(1),vt=Ve(3),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(15),kt=Ve(17),St={snackbar:"snackbar--gtfM24nLch",visible:"visible--HjDDadawgY",floating:"floating--MFKsLN6Isd",icon:"icon--lfFyX39+Vd",text:"text--JXR5QYq9Zn","close-icon":"close-icon--3I2Z8iPbU-",closeIcon:"close-icon--3I2Z8iPbU-",clickable:"clickable--ovB+xibpV+",error:"error--NrZfru8TSp","close-button":"close-button--t8Czl9r5Mw",closeButton:"close-button--t8Czl9r5Mw",warning:"warning--rI4vHobMK2",info:"info--8d4F4Uomqb",success:"success--GAptJZAI0P"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const xt={error:"su-exclamation-triangle",warning:"su-bell",info:"su-exclamation-circle",success:"su-check-circle"},Et="error";let Pt=Object(vt.b)((mt=class extends yt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"message",We,this),_initializerDefineProperty(this,"type",Qe,this),_initializerDefineProperty(this,"updateMessage",Xe,this),_initializerDefineProperty(this,"updateType",ot,this),_initializerDefineProperty(this,"handleTransitionEnd",st,this)}componentDidMount(){this.updateMessage(),this.updateType()}componentDidUpdate(ce){const{message:ze,type:Ve,visible:qe}=this.props;qe&&(ce.visible===qe&&ce.message===ze||this.updateMessage(),ce.visible===qe&&ce.type===Ve||this.updateType())}render(){const{icon:ce,onCloseClick:ze,onClick:Ve,skin:qe,visible:Ye}=this.props,We=Ct()(St.snackbar,St[this.type],{[St.clickable]:Ve,[St.floating]:"floating"===qe,[St.visible]:Ye});return yt.a.createElement("div",{className:We,onClick:Ve,onTransitionEnd:this.handleTransitionEnd,role:"button"},yt.a.createElement(kt.default,{className:St.icon,name:ce||xt[this.type]}),yt.a.createElement("div",{className:St.text},"static"===qe?yt.a.createElement(yt.a.Fragment,null,yt.a.createElement("strong",null,Object(Dt.b)("sulu_admin."+this.type))," - "):null,this.message),ze&&yt.a.createElement(kt.default,{className:St.closeIcon,name:"su-times",onClick:ze}))}},mt.defaultProps={skin:"static",visible:!0},We=_applyDecoratedDescriptor((Ye=mt).prototype,"message",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"type",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Et}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"updateMessage",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),qe=Ye))||qe;ze.default=Pt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(15),Qe=Ve(17),Xe="permission-hint--Adwx5AGZmr",ot="permission-icon--WpQRdtA4z1";class st extends Ye.a.Component{render(){return Ye.a.createElement("div",{className:Xe},Ye.a.createElement("div",{className:ot},Ye.a.createElement(Qe.default,{name:"su-lock"})),Object(We.b)("sulu_admin.no_permissions"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var qe=Ve(0),Ye=Ve.n(qe),We="divider--6ADoecBknL";class Qe extends Ye.a.PureComponent{render(){const{children:ce}=this.props;return Ye.a.createElement("div",{className:We},ce)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2138),Ct=Ve(262),Dt=Ve(217),kt=Ve(33),St=Ve(255),xt={"dialog-container":"dialog-container--FkTjh4ck1x",dialogContainer:"dialog-container--FkTjh4ck1x",dialog:"dialog--binSv9gOUe",small:"small--MQpHrvgMEf",large:"large--wHwEyK5uak",open:"open--XRH1zPzpq4",content:"content--GIWLaLcCUz",header:"header--3eOwsy8A34",headerItem:"headerItem--Mu0dW3Puha",footer:"footer--o8tTtADPrZ",snackbar:"snackbar--pUsLi7yf2-",article:"article--oDsDDGT06W",left:"left--O3oMsUvJ0s",center:"center--geiVTBYWxd"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Qe,this),_initializerDefineProperty(this,"handleTransitionEnd",Xe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:qe,confirmLoading:Ye,confirmText:We,onCancel:Qe,onConfirm:Xe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.default,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We),Qe&&qe&&vt.a.createElement(kt.default,{onClick:Qe,skin:"secondary"},qe)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),qe=Ye))||qe;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We="cropped-text--VDGB1ipXXc",Qe="whole--nDt7TWpmh+",Xe="front--Wv-evALzbO",ot="back--MU8hxCJ72h";class st extends Ye.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),qe=ce.substr(ze);return Ye.a.createElement("div",{"aria-label":ce,className:We,title:ce},Ye.a.createElement("div",{"aria-hidden":!0,className:Xe},Ve),Ye.a.createElement("div",{"aria-hidden":!0,className:ot},Ye.a.createElement("span",null,qe)),Ye.a.createElement("div",{className:Qe},ce))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(17),Qe="card--mwly-oNa6I",Xe="icons--+5ruHQoUZR";class ot extends Ye.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return Ye.a.createElement("section",{className:Qe},Ye.a.createElement("div",{className:Xe},ze&&Ye.a.createElement(We.default,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Ye.a.createElement(We.default,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(0),Xe=Ve.n(Qe),ot=Ve(1),st=Ve(3),mt=Ve(5),gt=Ve.n(mt),yt=Ve(22),bt=Ve.n(yt),vt=Ve(97),wt=Ve(128),Ct=Ve(686),Dt=(Ve(215),Ve(12)),kt={list:"list--ZXzFN+iBN2",overlay:"overlay--gK6qqeeDlJ","adapter-container":"adapter-container--zGLJo+8q29",adapterContainer:"adapter-container--zGLJo+8q29",column_list:"column_list--4jAFAwJJcC",columnList:"column_list--4jAFAwJJcC",adapter:"adapter--WLzn-Z2kvs",dialog:"dialog--0n0FpfTJCu"};function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let St=Object(st.b)(((We=class extends Xe.a.Component{get preSelectedItems(){return this.props.preSelectedItems}get listStore(){return this.props.listStore}constructor(ce){super(ce),this.updateSelection=()=>{this.listStore.clearSelection(),this.preSelectedItems.forEach((ce=>{this.listStore.select(ce)}))},this.handleConfirm=()=>{this.props.onConfirm()},this.updateSelectionDisposer=Object(ot.autorun)(this.updateSelection)}componentDidUpdate(ce){const{clearSelectionOnClose:ze,open:Ve,reloadOnOpen:qe}=this.props;!this.listStore.loading&&qe&&!1===ce.open&&!0===Ve&&(this.listStore.reset(),this.listStore.reload()),ze&&!0===ce.open&&!1===Ve&&this.listStore.clearSelection()}componentWillUnmount(){this.updateSelectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,confirmLoading:Ve,disabledIds:qe,itemDisabledCondition:Ye,onClose:We,open:Qe,overlayType:st,preSelectedItems:mt,title:yt}=this.props,St=gt()(kt.adapterContainer,kt[st],kt[ce]),xt=gt()(kt.list,kt.adapter,kt[ce]),Et=Xe.a.createElement("div",{className:St},Xe.a.createElement("div",{className:xt},Xe.a.createElement(Ct.a,{adapters:[ce],allowActivateForDisabledItems:ze,copyable:!1,deletable:!1,disabledIds:qe,itemDisabledCondition:Ye,movable:!1,orderable:!1,searchable:!0,store:this.listStore})));if("overlay"===st)return Xe.a.createElement(wt.a,{confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.d)("sulu_admin.confirm"),onClose:We,onConfirm:this.handleConfirm,open:Qe,size:"large",title:yt},Et);if("dialog"===st)return Xe.a.createElement(vt.a,{cancelText:Object(Dt.d)("sulu_admin.cancel"),confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.d)("sulu_admin.confirm"),onCancel:We,onConfirm:this.handleConfirm,open:Qe,size:"large",title:yt},Et);throw new Error('The "'+st+'" overlayType does not exist in the ListOverlay.')}}).defaultProps={allowActivateForDisabledItems:!0,clearSelectionOnClose:!1,disabledIds:[],overlayType:"overlay",preSelectedItems:[],reloadOnOpen:!1},_applyDecoratedDescriptor((Ye=We).prototype,"preSelectedItems",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"preSelectedItems"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"listStore",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"listStore"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),qe=Ye))||qe;ze.default=St},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe={progressBar:"progressBar--IjUbltz9g1",error:"error--em0IBpH7FW",warning:"warning--q5MTiylKaJ",success:"success--2PDIVgVHXr"};class ot extends Ye.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=Qe()(Xe.progressBar,Xe[ce]);return Ye.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}ot.defaultProps={skin:"progress"};ze.default=ot},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=(Ve(33),Ve(773),"button-group--MRX6-K1imo"),ot="button--Ndl0hRkKqo";class st extends Ye.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return Ye.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Qe()(ot,ce.props.className);return Ye.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return Ye.a.createElement("div",{className:Xe},this.cloneChildren())}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(17),ot={chip:"chip--6IXGxPLpIB",icon:"icon--JQbE-BgJI7",clickable:"clickable--ezuuCcT2Uy",disabled:"disabled--7NIEFUY7AM",primary:"primary--E1cr9IXOjF",secondary:"secondary--mAxxr1Ec+q",small:"small--Svke5Q+Igj",medium:"medium--hMJhgafIaN"};class st extends Ye.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)},this.handleDelete=()=>{const{onDelete:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{children:ce,disabled:ze,onClick:Ve,onDelete:qe,size:We,skin:st}=this.props,mt=Qe()(ot.chip,ot[st],ot[We],{[ot.disabled]:ze,[ot.clickable]:!!Ve});return Ye.a.createElement("button",{className:mt,onClick:this.handleClick,type:"button"},ce,!ze&&qe&&Ye.a.createElement(Xe.default,{className:ot.icon,name:"su-times",onClick:this.handleDelete}))}}st.defaultProps={disabled:!1,size:"small",skin:"secondary"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(386),Qe="toggler--VdnrenhomV";class Xe extends Ye.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Xe,onChange:ot}=this.props;return Ye.a.createElement(We.a,{checked:qe,className:Qe,disabled:ce,name:ze,onChange:ot,value:Ve},Xe)}}Xe.defaultProps={checked:!1,disabled:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(649),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(1036),Ve(10)),xt=Ve.n(St),Et=Ve(38),Pt=Ve(115);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.default,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:qe,valid:Ye}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Qe={placeholder:qe||this.getFormat(),valid:Ye&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Qe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((Ye=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setOpen"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setShowError"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),qe=Ye))||qe;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(3),ot=Ve(601).default,st=Ve(712);Ve(190);let mt=Object(Xe.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:qe}=this.props;this.searchStore=new st.a(qe.resourceKey,Ve,ze,qe.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,searchProperties:Xe,selectionStore:st}=this.props;return Qe.a.createElement(ot,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,loading:this.searchStore.loading||st.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Xe,suggestions:this.searchStore.searchResults,value:st.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},qe=Ye))||qe;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(3),xt=Ve(51),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(17),Vt=Ve(47),Ht=Ve(650),Ut=Ve(648),Wt="multi-auto-complete--nwbpheumh2",Jt="chip--nggFPTGHZk",Qt="input--9+o6pMawcI",en="icon--EW4EIgzzbi",rn="items--n5uEklkBxQ",ln="disabled--M+dkrJjl1Y";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mn=Object(St.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputContainerRef",We,this),_initializerDefineProperty(this,"inputRef",Qe,this),_initializerDefineProperty(this,"displaySuggestions",Xe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setInputContainerRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze(qe.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:qe,value:Ye}=this.props;if(0===this.inputValue.length)return!1;const We=qe.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Qe=Ye.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Qe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.inputContainerRef?this.inputContainerRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:qe,loading:Ye,searchProperties:We,suggestions:Qe,value:Xe}=this.props,ot=Ft()(Wt,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("div",{className:ot,ref:this.setInputContainerRef},Dt.a.createElement("div",{className:en},Ye?Dt.a.createElement(Vt.a,{size:16}):Dt.a.createElement(Bt.default,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Xe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[qe]},Dt.a.createElement(Ut.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Ht.a,{anchorElement:this.inputContainerRef,idProperty:qe,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Qe.length>0,query:this.inputValue,searchProperties:We,suggestions:Qe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((Ye=wt).prototype,"inputContainerRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(Ye.prototype,"setInputContainerRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.inputContainerRef=ce)}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(Ye.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"popoverMinWidth"),Ye.prototype),gt=_applyDecoratedDescriptor(Ye.prototype,"handleInputChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleSelect",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props;ze([...qe,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(Ye.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),qe=Ye))||qe;ze.default=mn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="ghost-indicator--zgluL3CmbP";class ot extends Ye.a.Component{render(){const{className:ce}=this.props,ze=Qe()(Xe,ce);return Ye.a.createElement("span",{className:ze},this.props.locale)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe="publish-indicator--mjpvGDAPXH",ot="published--VpE-qatA2G",st="draft--TgwBHP0Rts";class mt extends Ye.a.Component{render(){const{className:ce,draft:ze,published:Ve}=this.props;if(!ze&&!Ve)return null;const qe=Qe()(Xe,ce);return Ye.a.createElement("div",{className:qe},Ve&&Ye.a.createElement("span",{className:ot}),ze&&Ye.a.createElement("span",{className:st}))}}mt.defaultProps={draft:!1,published:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(33),vt=Ve(356),wt=Ve(38),Ct=Ve(47),Dt=Ve(35),kt=Ve(15),St="pagination--axXKpS1ZOA",xt="loader--FBb+S0oIKQ",Et="display--d-UNujxuIg",Pt="inputContainer--PiHDSWYLwQ";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Tt=[10,20,50,100];let Lt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"currentInputValue",We,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,qe=parseInt(ce);qe!==ze&&Ve(qe)},_initializerDefineProperty(this,"handleInputChange",Qe,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},_initializerDefineProperty(this,"validateAndSubmitInputValue",Xe,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:qe,currentLimit:Ye}=this.props;return mt.a.createElement("section",null,ze,mt.a.createElement("nav",{className:St},mt.a.createElement("span",{className:Et},Object(kt.b)("sulu_admin.per_page"),":"),mt.a.createElement("span",null,mt.a.createElement(Dt.a,{onChange:this.handleLimitChange,skin:"dark",value:Ye},Tt.map((ce=>mt.a.createElement(Dt.a.Option,{key:ce,value:ce},ce))))),mt.a.createElement("div",{className:xt},Ve&&mt.a.createElement(Ct.a,{size:24})),mt.a.createElement("span",null,Object(kt.b)("sulu_admin.page"),":"),mt.a.createElement("span",{className:Pt},mt.a.createElement(wt.default,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),mt.a.createElement("span",{className:Et},Object(kt.b)("sulu_admin.of")," ",qe),mt.a.createElement(vt.a,null,mt.a.createElement(bt.default,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),mt.a.createElement(bt.default,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},ot.defaultProps={loading:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"currentInputValue",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidMount",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidMount"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleInputChange",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"validateAndSubmitInputValue",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let qe=this.currentInputValue;!qe||!Ve||qe<1?qe=1:qe>Ve&&(qe=Ve),qe!==ce&&ze(qe),this.currentInputValue=ce}}}),qe=Ye))||qe;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(439),Qe="folder-list--DdbhuG95MX";class Xe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Ye.a.Children.map(ce,(ce=>Ye.a.createElement("li",null,Ye.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Ye.a.createElement("ul",{className:Qe},ze)}}Xe.Folder=We.default},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(22),vt=Ve.n(bt),wt=Ve(90),Ct=Ve.n(wt),Dt=Ve(5),kt=Ve.n(Dt),St=Ve(194),xt=Ve(299),Et=Ve(172),Pt=Ve(190),Tt=Ve(652),Lt="item-container--1uhe-YyQJ+",Ft="publish-indicator--zm4z0uz8NO",Bt="column-list--lZIIrvP6D0",Vt="item-column--BUPzJYozym",Ht="disabled--RBVLGPr7Dv";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ut=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Qe,this),_initializerDefineProperty(this,"handleOverlayClose",Xe,this),this.handleOverlayConfirm=ce=>{this.selectionStore.set(ce),this.closeOverlay()},this.handleRemove=ce=>{this.selectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.selectionStore.move(ce,ze)};const{locale:ze,options:Ve,resourceKey:qe,value:Ye}=this.props;this.selectionStore=new Pt.a(qe,Ye,ze,"ids",Ve),this.changeSelectionDisposer=Object(gt.reaction)((()=>this.selectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;vt()(Object(gt.toJS)(Ve),Object(gt.toJS)(ce))||ze(ce)})),this.changeOptionsDisposer=Object(gt.reaction)((()=>this.props.options),(ce=>{this.selectionStore.setRequestParameters(ce),this.selectionStore.loadItems(this.props.value)}),{equals:gt.comparer.structural})}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value),ze=Object(gt.toJS)(this.selectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),vt()(ce,ze)||this.selectionStore.loadItems(ce)}componentWillUnmount(){this.changeSelectionDisposer(),this.changeOptionsDisposer()}closeOverlay(){this.overlayOpen=!1}openOverlay(){this.overlayOpen=!0}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:qe,disabledIds:Ye,displayProperties:We,icon:Qe,itemDisabledCondition:Xe,label:ot,locale:gt,onItemClick:yt,options:bt,overlayTitle:vt,resourceKey:wt,sortable:Dt}=this.props,{items:Pt,loading:Ut}=this.selectionStore,Wt=We.length;return mt.a.createElement(st.Fragment,null,mt.a.createElement(xt.a,{disabled:qe,label:ot,leftButton:{icon:Qe,onClick:this.handleOverlayOpen},loading:Ut,onItemClick:yt,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,sortable:Dt},Pt.map(((ce,Ve)=>{const qe=Ye.includes(ce.id)||!!Xe&&Ct.a.evalSync(Xe,ce),Qe=kt()(Vt,{[Ht]:qe}),{published:ot,publishedState:st}=ce;return mt.a.createElement(xt.a.Item,{allowRemoveWhileDisabled:ze,disabled:qe,id:ce.id,index:Ve+1,key:ce.id,value:ce},mt.a.createElement("div",{className:Lt},(void 0!==st||void 0!==ot)&&!(st&&ot)&&mt.a.createElement("div",{className:Ft},mt.a.createElement(Et.a,{draft:!st,published:!!ot})),mt.a.createElement("div",{className:Bt},We.map((ze=>mt.a.createElement("span",{className:Qe,key:ze,style:{width:100/Wt+"%"}},mt.a.createElement(St.a,null,ce[ze])))))))}))),mt.a.createElement(Tt.a,{adapter:ce,disabledIds:Ye,itemDisabledCondition:Xe,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:bt,preSelectedItems:Pt,resourceKey:wt,title:vt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],displayProperties:[],icon:"su-plus",options:{},sortable:!0,value:[]},We=_applyDecoratedDescriptor((Ye=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openOverlay"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),qe=Ye))||qe;ze.default=Ut},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(3),ot=Ve(608).default,st=Ve(712);Ve(326);let mt=Object(Xe.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{this.searchStore.search(ce)};const{options:ze,selectionStore:Ve,searchProperties:qe}=this.props;this.searchStore=new st.a(Ve.resourceKey,qe,ze,Ve.locale)}render(){const{disabled:ce,displayProperty:ze,id:Ve,searchProperties:qe,selectionStore:Ye}=this.props;return Qe.a.createElement(ot,{disabled:ce,displayProperty:ze,id:Ve,loading:this.searchStore.loading||Ye.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:qe,suggestions:this.searchStore.searchResults,value:Ye.item})}}).defaultProps={disabled:!1,options:{}},qe=Ye))||qe;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(22),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=Ve(51),xt=Ve.n(St),Et=Ve(38),Pt=Ve(650),Tt="single-auto-complete--4GKr56l9il";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Lt=Object(Dt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputContainerRef",We,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",Xe,this),this.overrideValue=!1,_initializerDefineProperty(this,"setInputContainerRef",ot,this),_initializerDefineProperty(this,"search",st,this),this.debouncedSearch=xt()(this.search,300),this.handlePopoverSelect=ce=>{const{displayProperty:ze,onChange:Ve}=this.props;this.setInputValue(ce?ce[ze]:void 0),Ve(ce)},this.handleInputChange=ce=>{ce||this.props.onChange(void 0),this.setInputValue(ce),this.debouncedSearch(this.inputValue)},_initializerDefineProperty(this,"handleInputFocus",mt,this),_initializerDefineProperty(this,"handlePopoverClose",gt,this)}componentDidUpdate(ce){const{displayProperty:ze,value:Ve}=this.props;Ct()(Object(kt.toJS)(ce.value),Object(kt.toJS)(Ve))||this.setInputValue(Ve?Ve[ze]:void 0)}componentWillUnmount(){this.debouncedSearch.clear()}setInputValue(ce){this.inputValue=ce}get popoverMinWidth(){return this.inputContainerRef?this.inputContainerRef.scrollWidth-10:0}render(){const{disabled:ce,id:ze,loading:Ve,onFinish:qe,placeholder:Ye,searchProperties:We,suggestions:Qe}=this.props,{inputValue:Xe}=this;return vt.a.createElement("div",{className:Tt},vt.a.createElement(Et.default,{autocomplete:"off",disabled:ce,icon:"su-search",id:ze,inputClass:"mousetrap",inputContainerRef:this.setInputContainerRef,loading:Ve,onBlur:qe,onChange:this.handleInputChange,onFocus:this.handleInputFocus,placeholder:Ye,value:Xe}),vt.a.createElement(Pt.a,{anchorElement:this.inputContainerRef,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handlePopoverSelect,open:!ce&&this.displaySuggestions&&Qe.length>0,query:Xe,searchProperties:We,suggestions:Qe}))}},yt.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=yt).prototype,"inputContainerRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.value?this.props.value[this.props.displayProperty]:void 0}}),_applyDecoratedDescriptor(Ye.prototype,"setInputValue",[kt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInputValue"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"setInputContainerRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.inputContainerRef=ce)}}}),_applyDecoratedDescriptor(Ye.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"popoverMinWidth"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleInputFocus",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.search(this.inputValue||"")}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),qe=Ye))||qe;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(17),Qe="line--CaAyQDG7js",Xe="icon--vvUT+hHK-n",ot="label--MSEftls-nQ",st="description--l7klqxNnnm";class mt extends Ye.a.Component{render(){const{children:ce,description:ze,icon:Ve,label:mt}=this.props;return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("div",{className:Qe},Ve&&Ye.a.createElement(We.default,{className:Xe,name:Ve}),mt&&Ye.a.createElement("div",{className:ot},mt),ce),ze&&Ye.a.createElement("div",{className:st},ze))}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(1),wt=Ve(51),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(38),St=Ve(163),xt="grid--GneNbkC66b",Et="item--mqWpLVj9Tt";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="su-lock",Tt="password";let Lt=Object(Dt.b)((gt=class extends bt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"firstValue",We,this),_initializerDefineProperty(this,"secondValue",Qe,this),_initializerDefineProperty(this,"valid",Xe,this),_initializerDefineProperty(this,"setValidFlag",ot,this),_initializerDefineProperty(this,"handleFirstChange",st,this),_initializerDefineProperty(this,"handleSecondChange",mt,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:qe}}=this;this.handleChangeDebounced(qe&&(!ce||!ze||Ve))},this.handleChangeDebounced=Ct()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(vt.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return bt.a.createElement(St.a,{className:xt},bt.a.createElement(St.a.Item,{colSpan:6},bt.a.createElement(kt.default,{autocomplete:"new-password",disabled:ce,icon:Pt,onChange:this.handleFirstChange,type:Tt,valid:this.valid,value:this.firstValue})),bt.a.createElement(St.a.Item,{className:Et,colSpan:6},bt.a.createElement(kt.default,{autocomplete:"new-password",disabled:ce,icon:Pt,onChange:this.handleSecondChange,type:Tt,valid:this.valid,value:this.secondValue})))}},gt.defaultProps={disabled:!1,valid:!0},We=_applyDecoratedDescriptor((Ye=gt).prototype,"firstValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"secondValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"valid",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ot=_applyDecoratedDescriptor(Ye.prototype,"setValidFlag",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),_applyDecoratedDescriptor(Ye.prototype,"passwordsMatch",[vt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"passwordsMatch"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"handleFirstChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleSecondChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),qe=Ye))||qe;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(664),Qe=Ve.n(We),Xe=Ve(38),ot="qrcode--P-2uczHIPY";class st extends Ye.a.PureComponent{render(){return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Xe.default,this.props),Ye.a.createElement(Qe.a,{className:ot,value:this.props.value||"",viewBox:"0 0 256 256"}))}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(38),yt="resource-locator--MsUXGne1B0",bt="fixed--d8Q3dva8eL";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const vt=new Map([[/[-]+\//g,"/"],[/\/[-]+/g,"/"],[/^([-])/g,""],[/([/]+)/g,"/"],[/ /g,"-"],[/([-]+)/g,"-"],[/[^a-z0-9-_/]/g,""]]);let wt=Object(mt.b)(((Qe=class extends ot.a.Component{constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="fixed",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleChange=ce=>{const{mode:ze,onChange:Ve,locale:qe}=this.props;if(ce){try{ce=ce.toLocaleLowerCase(qe.get())}catch(ze){ce=ce.toLowerCase()}"leaf"===ze&&(ce=ce.replace(/\//g,"-")),vt.forEach(((ze,Ve)=>{ce&&(ce=ce.replace(Ve,ze))}))}Ve(ce?this.fixed+ce:void 0)},this.handleBlur=()=>{const{onBlur:ce,onChange:ze,value:Ve}=this.props;if(Ve){ze(Ve.replace(/([-])$/g,""))}ce&&ce()},this.splitLeafValue()}componentDidUpdate(ce){this.props.value!==ce.value&&this.splitLeafValue()}splitLeafValue(){const{value:ce,mode:ze}=this.props;if("leaf"===ze&&ce){const ze=ce.split("/");ze.pop(),this.fixed=ze.join("/")+"/"}}get changeableValue(){const{value:ce}=this.props;if(ce)return ce.substring(this.fixed.length)}render(){const{disabled:ce,id:ze}=this.props;return ot.a.createElement("div",{className:yt},ot.a.createElement("span",{className:bt},this.fixed),ot.a.createElement(gt.default,{disabled:ce,id:ze,onBlur:this.handleBlur,onChange:this.handleChange,value:this.changeableValue}))}}).defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"fixed",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeableValue",[st.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"changeableValue"),Ye.prototype),qe=Ye))||qe;ze.default=wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(1),Ct=Ve(3),Dt=Ve(15),kt=Ve(33),St=Ve(97),xt=Ve(47),Et=Ve(128),Pt=Ve(93),Tt=Ve(191),Lt="resource-locator-history-overlay--pNCylPMTJo",Ft="loader--KaFYQECVzn";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Bt=Object(Ct.b)((Ye=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"showDeleteWarning",Qe,this),_initializerDefineProperty(this,"handleButtonClick",Xe,this),_initializerDefineProperty(this,"handleOverlayConfirm",ot,this),_initializerDefineProperty(this,"handleOverlayClose",st,this),_initializerDefineProperty(this,"handleDeleteClick",mt,this),_initializerDefineProperty(this,"handleDeleteCancel",gt,this),_initializerDefineProperty(this,"handleDeleteConfirm",yt,this)}render(){const{resourceListStore:ce,props:ze}=this,{id:Ve}=ze,qe=ce?ce.data:[];return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.default,{disabled:!Ve,icon:"su-process",onClick:this.handleButtonClick,skin:"link"},Object(Dt.b)("sulu_admin.show_history")),vt.a.createElement(Et.a,{confirmText:Object(Dt.b)("sulu_admin.ok"),onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.open,size:"small",title:Object(Dt.b)("sulu_admin.history")},!this.resourceListStore||this.resourceListStore.loading?vt.a.createElement("div",{className:Ft},vt.a.createElement(xt.a,null)):vt.a.createElement("div",{className:Lt},vt.a.createElement(Pt.a,{buttons:[{icon:"su-trash-alt",onClick:this.handleDeleteClick}]},vt.a.createElement(Pt.a.Header,null,vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.url")),vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.created"))),vt.a.createElement(Pt.a.Body,null,qe.map((ce=>vt.a.createElement(Pt.a.Row,{id:ce.id,key:ce.id},vt.a.createElement(Pt.a.Cell,null,ce.resourcelocator),vt.a.createElement(Pt.a.Cell,null,new Date(ce.created).toLocaleString())))))))),vt.a.createElement(St.a,{cancelText:Object(Dt.b)("sulu_admin.cancel"),confirmLoading:!!ce&&ce.deleting,confirmText:Object(Dt.b)("sulu_admin.ok"),onCancel:this.handleDeleteCancel,onConfirm:this.handleDeleteConfirm,open:this.showDeleteWarning,title:Object(Dt.b)("sulu_admin.delete")},Object(Dt.b)("sulu_admin.resource_locator_history_delete_warning")))}},We=_applyDecoratedDescriptor(Ye.prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"showDeleteWarning",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleButtonClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{id:ce,options:ze,resourceKey:Ve}=this.props;this.resourceListStore=new Tt.a(Ve,{...ze,id:ce}),this.open=!0}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteWarning=!0,this.deleteId=ce}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteCancel",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteWarning=!1,this.deleteId=void 0}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"handleDeleteConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.deleteId)throw new Error('The "deleteId" has not been set! This should not happen and is likely a bug!');if(!this.resourceListStore)throw new Error("The ResourceListStore has not been initialized yet! This should not happen and is likely a bug.");this.resourceListStore.deleteList([this.deleteId]).then(Object(wt.action)((()=>{this.showDeleteWarning=!1,this.deleteId=void 0})))}}}),qe=Ye))||qe;ze.default=Bt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(644),ot="text-area--GPXIhoev0g",st="error--SbxqREokhT",mt="disabled--oHysa51SZh";class gt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()}}render(){const{id:ce,disabled:ze,maxCharacters:Ve,name:We,placeholder:gt,value:yt,valid:bt}=this.props,vt=Qe()(ot,{[st]:!bt,[mt]:ze});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("textarea",{className:vt,disabled:ze,id:ce,name:We,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:gt,value:yt||""}),Ve&&Ye.a.createElement(Xe.a,{max:Ve,value:yt}))}}gt.defaultProps={disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(297),Et=Ve.n(xt),Pt=Ve(35),Tt="url--GM13hPHj-s",Lt="error--H1tpIlKKED",Ft="protocols--numUNAGptT";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Qe,this),_initializerDefineProperty(this,"validUrl",Xe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:qe}=this.props;if(qe===this.url)return;const Ye=Ve.find((ze=>ce&&ce.startsWith(ze)));Ye||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=Ye||this.selectedProtocol,this.path=ce.substring(Ye?Ye.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(Ye)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:qe}=this.props,Ye=Dt()(Tt,{[Lt]:!qe||!this.validUrl});return bt.a.createElement("div",{className:Ye},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((Ye=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(Ye.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUrl"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"url"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:qe}=this.props;if("string"!=typeof ce||!qe.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+qe.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,qe=ze.find((ce=>Ve.startsWith(ce)));qe&&(this.selectedProtocol=qe,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),qe=Ye))||qe;ze.default=Bt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt=Ve(0),Ht=Ve.n(Vt),Ut=Ve(5),Wt=Ve.n(Ut),Jt=Ve(3),Qt=Ve(1),en=Ve(22),rn=Ve.n(en),ln=Ve(327),mn=Ve(17),gn=Ve(47),bn="link--CbRbtV9eEc",wn="provider--1DxBfyVMFU",Cn="item-container--t5UKUOT0K7",Sn="item--J0cZ4MBtoS",En="clickable--7I-8unHJQE",Tn="remove-button--8ohqkkSUTN",Ln="disabled--OW0iTDyrZ-",Fn="column-list--BTuxGf2tHO",Yn="item-column--QYkuvlGjO3",Un="loader--nCdZwzeXQg",Gn=Ve(85),Kn=Ve(157);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Jn="_self";let Zn=Object(Jt.b)(((Bt=class extends Vt.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"openedOverlayProvider",We,this),_initializerDefineProperty(this,"overlayHref",Qe,this),_initializerDefineProperty(this,"overlayTitle",Xe,this),_initializerDefineProperty(this,"overlayRel",ot,this),_initializerDefineProperty(this,"overlayTarget",st,this),_initializerDefineProperty(this,"overlayAnchor",mt,this),_initializerDefineProperty(this,"overlayQuery",gt,this),_initializerDefineProperty(this,"titleParts",yt,this),_initializerDefineProperty(this,"titleLoading",bt,this),_initializerDefineProperty(this,"load",vt,this),_initializerDefineProperty(this,"handleRemoveClick",wt,this),_initializerDefineProperty(this,"handleTitleClick",Ct,this),_initializerDefineProperty(this,"handleOverlayConfirm",Dt,this),_initializerDefineProperty(this,"handleOverlayClose",kt,this),_initializerDefineProperty(this,"handleProviderChange",St,this),_initializerDefineProperty(this,"handleOverlayAnchorChange",xt,this),_initializerDefineProperty(this,"handleOverlayQueryChange",Et,this),_initializerDefineProperty(this,"handleOverlayTargetChange",Pt,this),_initializerDefineProperty(this,"handleOverlayTitleChange",Tt,this),_initializerDefineProperty(this,"handleOverlayRelChange",Lt,this),_initializerDefineProperty(this,"handleOverlayHrefChange",Ft,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:qe,href:Ye,target:We=Jn,anchor:Qe,query:Xe,rel:ot}=ze||{};this.overlayHref=Ve===ce?Ye:void 0,this.overlayTarget=We,this.overlayTitle=qe,this.overlayAnchor=Qe,this.overlayQuery=Xe,this.overlayRel=ot,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,qe,Ye,We,Qe)=>{const{onChange:Xe,onFinish:ot,enableTarget:st,enableTitle:mt,enableAnchor:gt,enableQuery:yt,enableRel:bt,locale:vt}=this.props;Xe({provider:ce,target:st?qe:void 0,anchor:gt?Ye:void 0,query:yt?We:void 0,href:ze,title:mt?Ve:void 0,rel:bt?Qe:void 0,locale:Object(Qt.toJS)(vt)}),ot()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(Qt.toJS)(ce.value),Ve=Object(Qt.toJS)(this.props.value);rn()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableQuery:qe,enableTarget:Ye,enableTitle:We,enableRel:Qe,types:Xe,excludedTypes:ot,value:st}=this.props,{href:mt,provider:gt}=st||{},yt=Wt()(Sn,{[En]:!ce||!mt,[Ln]:ce});let bt=Kn.a.getKeys().filter((ce=>!ot.includes(ce)));return void 0!==Xe&&Xe.length>0&&(bt=bt.filter((ce=>Xe.length>0&&Xe.includes(ce)))),Ht.a.createElement(Vt.Fragment,null,Ht.a.createElement("div",{className:bn},Ht.a.createElement("div",{className:wn},Ht.a.createElement(ln.default,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:gt},bt.map((ce=>Ht.a.createElement(ln.default.Option,{key:ce,value:ce},Kn.a.getTitle(ce)))))),Ht.a.createElement("div",{className:Cn},Ht.a.createElement("div",{className:yt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&st&&this.titleParts.length>0&&Ht.a.createElement("div",{className:Fn},this.titleParts.map(((ce,ze)=>Ht.a.createElement("span",{className:Yn,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Ht.a.createElement("button",{className:Tn,onClick:this.handleRemoveClick,type:"button"},Ht.a.createElement(mn.default,{name:"su-trash-alt"})),this.titleLoading&&Ht.a.createElement(gn.a,{className:Un,size:14}))),Kn.a.getKeys().map((ce=>{const Xe=Kn.a.getOverlay(ce);return Ht.a.createElement(Xe,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onQueryChange:qe?this.handleOverlayQueryChange:void 0,onRelChange:Qe?this.handleOverlayRelChange:void 0,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:We?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Kn.a.getOptions(ce),query:this.overlayQuery,rel:this.overlayRel,target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableQuery:!1,enableRel:!1,enableTarget:!1,enableTitle:!1,excludedTypes:[],types:[]},We=_applyDecoratedDescriptor((Ye=Bt).prototype,"openedOverlayProvider",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"overlayHref",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"overlayTitle",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=_applyDecoratedDescriptor(Ye.prototype,"overlayRel",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=_applyDecoratedDescriptor(Ye.prototype,"overlayTarget",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Jn}}),mt=_applyDecoratedDescriptor(Ye.prototype,"overlayAnchor",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gt=_applyDecoratedDescriptor(Ye.prototype,"overlayQuery",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yt=_applyDecoratedDescriptor(Ye.prototype,"titleParts",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bt=_applyDecoratedDescriptor(Ye.prototype,"titleLoading",[Qt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vt=_applyDecoratedDescriptor(Ye.prototype,"load",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;if(!ce)return void(this.titleParts=[]);const{href:Ve,provider:qe}=ce;if(!qe)return void(this.titleParts=Ve?[Ve]:[]);const Ye=Kn.a.getOptions(qe);null!=Ye&&null!==(ze=Ye.displayProperties)&&void 0!==ze&&ze.length?(this.titleParts=[],this.titleLoading=!0,Gn.c.get(Ye.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(Qt.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(Ye.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(Qt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=Ve?[Ve]:[]}}}),wt=_applyDecoratedDescriptor(Ye.prototype,"handleRemoveClick",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0,void 0,void 0)}}}),Ct=_applyDecoratedDescriptor(Ye.prototype,"handleTitleClick",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),Dt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayConfirm",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor,this.overlayQuery,this.overlayRel),this.closeOverlay())}}}),kt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayClose",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),St=_applyDecoratedDescriptor(Ye.prototype,"handleProviderChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),xt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayAnchorChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),Et=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayQueryChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayQuery=ce}}}),Pt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayTargetChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),Tt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayTitleChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),Lt=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayRelChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayRel=ce}}}),Ft=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayHrefChange",[Qt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),qe=Ye))||qe;ze.default=Zn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(3),Xe=Ve(5),ot=Ve.n(Xe),st=Ve(202),mt=Ve(441),gt="sidebar--yp6anLN6Wk";let yt=Object(Qe.b)(qe=class extends We.a.Component{render(){if(!st.a.view||mt.a.isDisabled(st.a.view))return null;const ce=mt.a.get(st.a.view),{className:ze}=this.props,Ve=ot()(gt,ze);return We.a.createElement("aside",{className:Ve},We.a.createElement(ce,st.a.props))}})||qe;ze.default=yt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(3),ot=Ve(1),st=Ve(0),mt=Ve.n(st),gt=Ve(144),yt=Ve(255),bt=(Ve(436),Ve(269)),vt="locale--8QwqBmhQz8";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:bt.a;bt.b.hasStore(ce)?ze.toolbarStore=bt.b.getStore(ce):ze.toolbarStore=bt.b.createStore(ce)},Ve=this,qe="handleErrorSnackbarCloseClick",Qe=this,(Ye=We)&&Object.defineProperty(Ve,qe,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(Qe):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:qe,warnings:Ye}=this.toolbarStore,We=this.toolbarStore.getIconsConfig(),Qe=this.toolbarStore.getItemsConfig(),Xe=this.toolbarStore.getLocaleConfig();return mt.a.createElement(st.Fragment,null,mt.a.createElement(yt.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),mt.a.createElement(yt.a,{message:Ye[Ye.length-1],type:"warning",visible:Ye.length>0}),mt.a.createElement(gt.a,null,mt.a.createElement(gt.a.Controls,{grow:!0},!!ce&&mt.a.createElement(gt.a.Button,{disabled:!ce,icon:qe?wt:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:qe}),!!this.backButtonConfig&&mt.a.createElement(gt.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&qe?wt:"su-angle-left",success:!ce&&qe})),Qe.length>0&&mt.a.createElement(gt.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),mt.a.createElement(gt.a.Controls,null,We.length>0&&mt.a.createElement(gt.a.Icons,null,We.map((ce=>Object(ot.toJS)(ce)))),!!Xe&&mt.a.createElement(gt.a.Select,_extends({className:vt,size:"small"},Xe)))))}},Qe.defaultProps={navigationOpen:!1},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"handleErrorSnackbarCloseClick",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),_applyDecoratedDescriptor(Ye.prototype,"disableAllButtons",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"disableAllButtons"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"backButtonConfig",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"backButtonConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"itemsConfig",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"itemsConfig"),Ye.prototype),qe=Ye))||qe;ze.default=St},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(0),Xe=Ve.n(Qe),ot=Ve(3),st=Ve(1),mt=Ve(96),gt=Ve(27),yt=Ve(620).default,bt=Ve(279);let vt=Object(ot.b)((Ye=class extends Xe.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="loginCount",qe=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:qe,route:Ye}=ce;return Object(mt.a)(ze,Ve)!==Object(mt.a)(Ye,qe)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(st.reaction)((()=>gt.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,qe=bt.default.get(ce.type),Ye=bt.default.getConfig(ce.type);let We=Object(mt.a)(ce,Ve.attributes)||"";qe.remountViewOnLogin&&(We=We+"__"+this.loginCount);const Qe=Xe.a.createElement(qe,{isRootView:!ce.parent,key:We,route:ce,router:Ve},(ce=>ze?Xe.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Qe):Ye.disableDefaultSpacing?Qe:Xe.a.createElement(yt,null,Qe)}render(){return this.renderView(this.props.router.route)}},We=function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Ye.prototype,"loginCount",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),qe=Ye))||qe;ze.default=vt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We="view--181O-kdnGb";class Qe extends Ye.a.Component{render(){const{children:ce}=this.props;return Ye.a.createElement("div",{className:We},ce)}}ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(5),Xe=Ve.n(Qe),ot=Ve(3),st=Ve(2138),mt="container--UsFwlPFZ10";let gt=Object(ot.b)(qe=class extends We.a.Component{render(){const{children:ce,className:ze}=this.props;return We.a.createElement(st.a,null,We.a.createElement("div",{className:Xe()(mt,ze)},ce))}})||qe;ze.default=gt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(5),bt=Ve.n(yt),vt=Ve(1),wt=Ve(3),Ct=Ve(115),Dt={tooltipContainer:"tooltipContainer--MdS9u1JEV1",tooltip:"tooltip--8CQN+CCcIG",top:"top--SHDkRsI96U",bottom:"bottom--6tHLfRGuHd"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let kt=Object(wt.b)((Ye=class extends gt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"tooltipOpen",We,this),_initializerDefineProperty(this,"tooltipRef",Qe,this),_initializerDefineProperty(this,"setTooltipRef",Xe,this),_initializerDefineProperty(this,"handleEnter",ot,this),_initializerDefineProperty(this,"handleLeave",st,this)}render(){const{children:ce,label:ze}=this.props;return gt.a.createElement("span",{className:Dt.tooltipContainer,onBlur:this.handleLeave,onFocus:this.handleEnter,onMouseEnter:this.handleEnter,onMouseLeave:this.handleLeave,ref:this.setTooltipRef},this.tooltipRef&>.a.createElement(Ct.a,{anchorElement:this.tooltipRef,backdrop:!1,horizontalAnchorMode:"center",open:this.tooltipOpen,verticalOffset:10},((ce,Ve,qe)=>gt.a.createElement("span",{"aria-hidden":!0,className:bt()(Dt.tooltip,Dt[qe]),ref:ce,style:Ve},ze))),ce)}},We=_applyDecoratedDescriptor(Ye.prototype,"tooltipOpen",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"tooltipRef",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"setTooltipRef",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.tooltipRef=ce}}}),ot=_applyDecoratedDescriptor(Ye.prototype,"handleEnter",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!0}}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleLeave",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tooltipOpen=!1}}}),qe=Ye))||qe;ze.default=kt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(3),gt=Ve(1),yt="sticky--nIKb96aQ1f",bt="stickySentinel--5DHp5MoX2n";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let vt=Object(mt.b)(((Xe=class extends st.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"isSticky",We,this),_initializerDefineProperty(this,"stickySentinelRef",Qe,this),this.setStickySentinelRef=ce=>{this.stickySentinelRef=ce,this.stickySentinelRef&&this.intersectionObserver&&this.intersectionObserver.observe(this.stickySentinelRef)},"undefined"!=typeof IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((ce=>{for(const ze of ce)Object(gt.action)((()=>{this.isSticky=!ze.isIntersecting}))()}),{}))}componentWillUnmount(){this.intersectionObserver&&this.intersectionObserver.disconnect()}render(){const{children:ce,top:ze}=this.props;return st.a.createElement(st.a.Fragment,null,st.a.createElement("div",{className:bt,ref:this.setStickySentinelRef,style:{top:0-ze-1}}),st.a.createElement("div",{className:yt,style:{top:ze}},ce(this.isSticky)))}}).defaultProps={top:0},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"isSticky",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"stickySentinelRef",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe=Ye))||qe;ze.default=vt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(666),st={root:"root--cZcy4FrmoC",path:"path--H00c2yiHpv",trail:"trail--c3SQrXMEvR",text:"text--SqFuM1XTO8",background:"background--jhyvW9-2RF"};let mt=((Ye=class extends Qe.a.PureComponent{get percentageText(){const{hidePercentageText:ce,percentage:ze}=this.props;return ce?null:`${ze}%`}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Qe.a.createElement("div",{style:Ve},Qe.a.createElement(ot.a,{background:!0,classes:{root:st.root,path:st.path,tail:st.tail,text:st.text,background:st.background},text:this.percentageText,value:ze}))}}).defaultProps={hidePercentageText:!1,percentage:0,size:100},function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((qe=Ye).prototype,"percentageText",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"percentageText"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ImageRectangleSelection",(function(){return vt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(3),mt=Ve(0),gt=Ve.n(mt),yt=Ve(528),bt=Ve(291);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let vt=Object(st.b)((Ye=class extends gt.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="imageLoaded",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(Qe.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>ot.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:qe}=this.props;let Ye=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return Ye&&Ye>Ve&&(Ye=Ve,We=ze&&ce?Ye*ze/ce:void 0),We&&We>qe&&(We=qe,Ye=ce&&ze?We*ce/ze:void 0),{width:We,height:Ye}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return gt.a.createElement(yt.a,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},gt.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},We=_applyDecoratedDescriptor(Ye.prototype,"imageLoaded",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"scaledImageHeight",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"scaledImageHeight"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"scaledImageWidth",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"scaledImageWidth"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"scaledMinDimensions",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"scaledMinDimensions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"scaledMinWidth",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"scaledMinWidth"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"scaledMinHeight",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"scaledMinHeight"),Ye.prototype),qe=Ye))||qe;ze.default=Object(bt.a)(vt,"container--BRSTrOxtUT")},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(51),Qe=Ve.n(We),Xe=Ve(15),ot=Ve(47),st="indicator--8aZuPVpW3E";class mt extends Ye.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Qe()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:qe}=this.scrollContainer.getBoundingClientRect(),{bottom:Ye}=ce.getBoundingClientRect();if(Ye-qe<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:qe}=this.props;let We=null;return Ve?We=Ye.a.createElement(ot.a,null):ze===ce&&(We=Object(Xe.b)("sulu_admin.reached_end_of_list")),Ye.a.createElement("section",{ref:this.setRef},Ye.a.createElement("div",null,qe),Ye.a.createElement("div",{className:st},We))}}mt.defaultProps={loading:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(667),Qe=Ve.n(We),Xe=Ve(668),ot=Ve.n(Xe),st="masonry--Isis7io1Ob";const mt={gutter:30,transitionDuration:250};class gt extends Ye.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new ot.a(this.masonryRef,mt),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:mt.gutter};return Ye.a.Children.map(ce,(ce=>Ye.a.createElement("li",{style:ze},Ye.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),qe=ze.filter((ze=>!ce.includes(ze)));let Ye=0;const We=Ve.filter((ze=>{const Ve=Ye===ce.indexOf(ze);return Ve&&Ye++,Ve})),Qe=Ve.filter((ce=>!We.includes(ce)));qe.length>0&&this.masonry.remove(qe),Qe.length>0&&this.masonry.appended(Qe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(qe.length>0||Qe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Qe()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Ye.a.createElement("ul",{className:st,ref:this.setMasonryRef},ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(227),kt=Ve(7),St=Ve(303),xt={"media-container":"media-container--Hv-Pk7LQBD",mediaContainer:"media-container--Hv-Pk7LQBD","upload-indicator":"upload-indicator--h82WKlQjHa",uploadIndicator:"upload-indicator--h82WKlQjHa","show-upload-indicator":"show-upload-indicator--DKYF6v9Lom",showUploadIndicator:"show-upload-indicator--DKYF6v9Lom",disabled:"disabled--29kitjxX4T",progressbar:"progressbar--g5EIddGBVw","upload-indicator-container":"upload-indicator-container--MRW6dxIgjU",uploadIndicatorContainer:"upload-indicator-container--MRW6dxIgjU","mime-type-indicator":"mime-type-indicator--Nqbks7l0p+",mimeTypeIndicator:"mime-type-indicator--Nqbks7l0p+","empty-indicator":"empty-indicator--U5Oa-aEgmU",emptyIndicator:"empty-indicator--U5Oa-aEgmU","upload-icon":"upload-icon--jwVzkZqxaL",uploadIcon:"upload-icon--jwVzkZqxaL","upload-info-text":"upload-info-text--40HPxhPRFB",uploadInfoText:"upload-info-text--40HPxhPRFB",thumbnail:"thumbnail--TmLnAmipFG",round:"round--QcFWsIU8B0","error-text":"error-text--ZnzCZisROB",errorText:"error-text--ZnzCZisROB"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=Object(bt.b)((mt=class extends yt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"uploadIndicatorVisibility",We,this),_initializerDefineProperty(this,"imageLoading",Qe,this),_initializerDefineProperty(this,"imageError",Xe,this),_initializerDefineProperty(this,"handleImageLoad",ot,this),this.handleDrop=ce=>{const ze=ce[0];this.props.onDrop(ze),this.setUploadIndicatorVisibility(!1)},this.handleDragEnter=()=>{this.setUploadIndicatorVisibility(!0)},this.handleDragLeave=()=>{this.setUploadIndicatorVisibility(!1)},_initializerDefineProperty(this,"handleImageError",st,this)}componentDidMount(){this.preloadImage()}componentDidUpdate(ce){this.props.image!==ce.image&&this.preloadImage()}preloadImage(){const{image:ce}=this.props;ce?(this.imageLoading=!0,this.image=new Image,this.image.onerror=this.handleImageError,this.image.onload=this.handleImageLoad,this.image.src=ce):this.handleImageLoad()}setUploadIndicatorVisibility(ce){this.uploadIndicatorVisibility=ce}render(){const{accept:ce,disabled:ze,emptyIcon:Ve,errorText:qe,image:Ye,mimeType:We,progress:Qe,skin:Xe,uploading:ot,uploadText:st}=this.props,mt=Ct()(xt.mediaContainer,xt[Xe],{[xt.showUploadIndicator]:this.uploadIndicatorVisibility,[xt.disabled]:ze});return yt.a.createElement(yt.a.Fragment,null,yt.a.createElement(Dt.a,{accept:ce,disabled:ze,multiple:!1,noClick:ot,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},(ce=>{let{getInputProps:ze,getRootProps:qe}=ce;return yt.a.createElement(bt.a,null,(()=>yt.a.createElement("div",qe({className:mt}),Ye&&!this.imageError&&yt.a.createElement(gt.Fragment,null,yt.a.createElement("img",{className:xt.thumbnail,key:Ye,src:Ye}),this.imageLoading&&yt.a.createElement(kt.Loader,null)),(!Ye||this.imageError)&&We&&yt.a.createElement("div",{className:xt.mimeTypeIndicator},yt.a.createElement(St.a,{iconSize:100,mimeType:We})),!Ye&&!We&&yt.a.createElement("div",{className:xt.emptyIndicator},yt.a.createElement(kt.Icon,{name:Ve})),ot?yt.a.createElement("div",{className:xt.progressbar},yt.a.createElement(kt.CircularProgressbar,{percentage:Qe,size:200})):yt.a.createElement("div",{className:xt.uploadIndicatorContainer},yt.a.createElement("div",{className:xt.uploadIndicator},yt.a.createElement("div",null,yt.a.createElement(kt.Icon,{className:xt.uploadIcon,name:"su-upload"}),st&&yt.a.createElement("div",{className:xt.uploadInfoText},st)))),yt.a.createElement("input",ze()))))})),qe&&yt.a.createElement("div",{className:xt.errorText},qe))}},mt.defaultProps={accept:void 0,disabled:!1,emptyIcon:"su-image",mimeType:"",progress:0,skin:"default",uploading:!1},We=_applyDecoratedDescriptor((Ye=mt).prototype,"uploadIndicatorVisibility",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"imageLoading",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"imageError",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"preloadImage",[vt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"preloadImage"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleImageLoad",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1,this.imageError=!1}}}),_applyDecoratedDescriptor(Ye.prototype,"setUploadIndicatorVisibility",[vt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUploadIndicatorVisibility"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"handleImageError",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),qe=Ye))||qe;ze.default=Et},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(48);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("mailto:"+ce)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.a,{disabled:Ve,icon:"su-envelope",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,onIconClick:Xe&&Xe.length>1&&ze?this.handleIconClick:void 0,placeholder:Qe,type:"email",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0};var Xe=Qe;ze.a=Xe},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(48);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("tel:"+ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,onBlur:Xe,onChange:ot,value:st}=this.props;return Ye.a.createElement(We.a,{disabled:Ve,icon:"su-phone",id:ce,name:qe,onBlur:Xe,onChange:ot,onIconClick:st&&st.length>1?this.handleIconClick:void 0,placeholder:Qe,type:"tel",valid:ze,value:st})}}Qe.defaultProps={disabled:!1,valid:!0};ze.a=Qe},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ot=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="localizations",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setLocalizations(ce){this.localizations=ce}loadLocalizations(){return Xe.a.warn('The "loadLocalizations" method is deprecated since 2.1 and will be removed. Use the "localizations" property instead.'),Promise.resolve(this.localizations)}}).prototype,"localizations",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(qe.prototype,"setLocalizations",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLocalizations"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(1),Qe=Ve(9),Xe=Ve.n(Qe);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var ot=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="localizations",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setLocalizations(ce){this.localizations=ce}loadLocalizations(){return Xe.a.warn('The "loadLocalizations" method is deprecated since 2.1 and will be removed. Use the "localizations" property instead.'),Promise.resolve(this.localizations)}}).prototype,"localizations",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(qe.prototype,"setLocalizations",[We.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLocalizations"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=(Ve(34),Ve(315));var mt=Object(ot.b)(((Ye=class extends Qe.a.Component{constructor(ce){super(ce),this.collectionId=Xe.observable.box(),this.handleConfirm=()=>{if(this.mediaListStore.selections.length>1)throw new Error("The SingleMediaSelectionOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.mediaListStore.selections[0])};const ze=Object(Xe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Xe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,this.props.locale,this.props.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,this.props.locale),this.mediaSelectionDisposer=Object(Xe.autorun)((()=>{const{selections:ce}=this.mediaListStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.mediaListStore.clearSelection(),this.mediaListStore.select(ze))}))}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer(),this.mediaSelectionDisposer()}render(){const{onClose:ce,open:ze,locale:Ve}=this.props;return Qe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,locale:Ve,mediaListStore:this.mediaListStore,onClose:ce,onConfirm:this.handleConfirm,open:ze})}}).defaultProps={excludedIds:[],types:[]},qe=Ye))||qe;ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(91),Ye=Ve(8);function _translate(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof Ve)throw new Ye.a("translation-service-quantity-not-a-number",null,{quantity:Ve});const qe=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===qe&&(ce=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const We=ze.id||ze.string;if(0===qe||!hasTranslation(ce,We))return 1!==Ve?ze.plural:ze.string;const Qe=window.CKEDITOR_TRANSLATIONS[ce].dictionary,Xe=window.CKEDITOR_TRANSLATIONS[ce].getPluralForm||(ce=>1===ce?0:1);if("string"==typeof Qe[We])return Qe[We];const ot=Number(Xe(Ve));return Qe[We][ot]}function hasTranslation(ce,ze){return!!window.CKEDITOR_TRANSLATIONS[ce]&&!!window.CKEDITOR_TRANSLATIONS[ce].dictionary[ze]}window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var We=Ve(442);class Qe{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.uiLanguage=ce.uiLanguage||"en",this.contentLanguage=ce.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Object(We.a)(this.uiLanguage),this.contentLanguageDirection=Object(We.a)(this.contentLanguage),this.t=(ce,ze)=>this._t(ce,ze)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze=Object(qe.a)(ze),"string"==typeof ce&&(ce={string:ce});const Ve=!!ce.plural?ze[0]:1;return interpolateString(_translate(this.uiLanguage,ce,Ve),ze)}}function interpolateString(ce,ze){return ce.replace(/%(\d+)/g,((ce,Ve)=>Ve2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const We=Ve&&Ve.xmlns,Qe=We?ce.createElementNS(We,ze):ce.createElement(ze);for(const ce in Ve)Qe.setAttribute(ce,Ve[ce]);!Xe(Ye)&&Object(qe.a)(Ye)||(Ye=[Ye]);for(let ze of Ye)Xe(ze)&&(ze=ce.createTextNode(ze)),Qe.appendChild(ze);return Qe}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(29);class Ye extends qe.a{constructor(ce){super(ce),this.set("text",""),this.set("position","s");const ze=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",ze.to("position",(ce=>"ck-tooltip_"+ce)),ze.if("text","ck-hidden",(ce=>!ce.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:ze.to("text")}]}]})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(31),Ye=Ve(80),We=Ve(680);class Qe extends Ye.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{enterBlock(this.editor.model,Ve,ze.selection,ce.schema),this.fire("afterExecute",{writer:Ve})}))}}function enterBlock(ce,ze,Ve,qe){const Ye=Ve.isCollapsed,Qe=Ve.getFirstRange(),Xe=Qe.start.parent,ot=Qe.end.parent;if(qe.isLimit(Xe)||qe.isLimit(ot))Ye||Xe!=ot||ce.deleteContent(Ve);else if(Ye){const ce=Object(We.a)(ze.model.schema,Ve.getAttributes());splitBlock(ze,Qe.start),ze.setSelectionAttribute(ce)}else{const qe=!(Qe.start.isAtStart&&Qe.end.isAtEnd),Ye=Xe==ot;ce.deleteContent(Ve,{leaveUnmerged:qe}),qe&&(Ye?splitBlock(ze,Ve.focus):ze.setSelection(ot,0))}}function splitBlock(ce,ze){ce.split(ze),ce.setSelection(ze.parent.nextSibling,0)}var Xe=Ve(681);class ot extends qe.a{static get pluginName(){return"Enter"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document;ze.addObserver(Xe.a),ce.commands.add("enter",new Qe(ce)),this.listenTo(Ve,"enter",((Ve,qe)=>{qe.preventDefault(),qe.isSoft||(ce.execute("enter"),ze.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));class qe{getHtml(ce){const ze=document.implementation.createHTMLDocument("").createElement("div");return ze.appendChild(ce),ze.innerHTML}}var Ye=Ve(294);class We{constructor(ce){this.domParser=new DOMParser,this.domConverter=new Ye.a(ce,{renderingMode:"data"}),this.htmlWriter=new qe}toData(ce){const ze=this.domConverter.viewToDom(ce,document);return this.htmlWriter.getHtml(ze)}toView(ce){const ze=this._toDom(ce);return this.domConverter.domToView(ze)}registerRawContentMatcher(ce){this.domConverter.registerRawContentMatcher(ce)}useFillerType(ce){this.domConverter.blockFillerMode="marked"==ce?"markedNbsp":"nbsp"}_toDom(ce){ce.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(ce=`${ce}`);const ze=this.domParser.parseFromString(ce,"text/html"),Ve=ze.createDocumentFragment(),qe=ze.body.childNodes;for(;qe.length>0;)Ve.appendChild(qe[0]);return Ve}}},function(ce,ze,Ve){"use strict";function _setPrototypeOf(ce,ze){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,ze){return ce.__proto__=ze,ce},_setPrototypeOf(ce,ze)}Ve.d(ze,"a",(function(){return _setPrototypeOf}))},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"spaceFactor",(function(){return qe})),Ve.d(ze,"space",(function(){return Ye})),Ve.d(ze,"color",(function(){return We})),Ve.d(ze,"fontFamily",(function(){return Qe})),Ve.d(ze,"fontSize",(function(){return Xe})),Ve.d(ze,"mq",(function(){return ot})),Ve.d(ze,"borderRadius",(function(){return st})),Ve.d(ze,"maxWidth",(function(){return mt})),Ve.d(ze,"sidebarWidth",(function(){return gt})),Ve.d(ze,"buttonTextTransform",(function(){return yt}));var qe=8,Ye=[qe/2,qe,2*qe,3*qe,4*qe,5*qe,6*qe],We={base:"#333",light:"#767676",lightest:"#ccc",link:"#1673b1",linkHover:"#e90",focus:"rgba(22, 115, 177, 0.25)",border:"#e8e8e8",name:"#690",type:"#905",error:"#c00",baseBackground:"#fff",codeBackground:"#f5f5f5",sidebarBackground:"#f5f5f5",ribbonBackground:"#e90",ribbonText:"#fff",codeBase:"#333",codeComment:"#6d6d6d",codePunctuation:"#999",codeProperty:"#905",codeDeleted:"#905",codeString:"#690",codeInserted:"#690",codeOperator:"#9a6e3a",codeKeyword:"#1673b1",codeFunction:"#DD4A68",codeVariable:"#e90"},Qe={base:["-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Roboto"','"Oxygen"','"Ubuntu"','"Cantarell"','"Fira Sans"','"Droid Sans"','"Helvetica Neue"',"sans-serif"],monospace:["Consolas",'"Liberation Mono"',"Menlo","monospace"]},Xe={base:15,text:16,small:13,h1:48,h2:36,h3:24,h4:18,h5:16,h6:16},ot={small:"@media (max-width: 600px)"},st=3,mt=1e3,gt=200,yt="uppercase"},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return renderDefault}));var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(187),core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(68),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(205),rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(340),_util__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(264),defaultValueBlacklist=["null","undefined"];function renderDefault(prop){if(prop.defaultValue){var defaultValueString=Object(_util__WEBPACK_IMPORTED_MODULE_5__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_5__.c)(String(prop.defaultValue.value)));if(prop.type||prop.flowType||prop.tsType){var propName=prop.type?prop.type.name:prop.flowType?prop.flowType.type:prop.tsType&&prop.tsType.type;if(defaultValueBlacklist.indexOf(prop.defaultValue.value)>-1)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString);if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:defaultValueString},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:JSON.stringify(object,null,2)},"Shape")}catch(ce){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString)}return prop.required?react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light"},"Required"):""}},function(ce,ze,Ve){var qe=Ve(1707)(Ve(1708));ce.exports=qe},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(1784),Ye=Ve(1785),We=Ve(50),Qe=new We.Name("fullFormats"),Xe=new We.Name("fastFormats"),formatsPlugin=(ce,ze={keywords:!0})=>{if(Array.isArray(ze))return addFormats(ce,ze,qe.fullFormats,Qe),ce;const[Ve,We]="fast"===ze.mode?[qe.fastFormats,Xe]:[qe.fullFormats,Qe];return addFormats(ce,ze.formats||qe.formatNames,Ve,We),ze.keywords&&Ye.default(ce),ce};function addFormats(ce,ze,Ve,qe){var Ye,Qe;null!==(Ye=(Qe=ce.opts.code).formats)&&void 0!==Ye||(Qe.formats=We._`require("ajv-formats/dist/formats").${qe}`);for(const qe of ze)ce.addFormat(qe,Ve[qe])}formatsPlugin.get=(ce,ze="full")=>{const Ve=("fast"===ze?qe.fastFormats:qe.fullFormats)[ce];if(!Ve)throw new Error(`Unknown format "${ce}"`);return Ve},ce.exports=ze=formatsPlugin,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=formatsPlugin},function(ce,ze,Ve){"use strict";var qe=Ve(584);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(587);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(589);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(594);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(597);ze.a=qe.default},function(ce,ze,Ve){ce.exports=function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,n),qe.l=!0,qe.exports}return n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)n.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=4)}([function(ce,ze){ce.exports=Ve(0)},function(ce,ze){ce.exports=Ve(10)},function(ce,ze){ce.exports=Ve(44)},function(ce,ze,Ve){ce.exports=Ve(5)()},function(ce,ze,Ve){ce.exports=Ve(7)},function(ce,ze,Ve){"use strict";var qe=Ve(6);function o(){}function i(){}i.resetWarningCache=o,ce.exports=function(){function e(ce,ze,Ve,Ye,We,Qe){if(Qe!==qe){var Xe=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 Xe.name="Invariant Violation",Xe}}function t(){return e}e.isRequired=e;var ce={array:e,bigint: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:i,resetWarningCache:o};return ce.PropTypes=ce,ce}},function(ce,ze,Ve){"use strict";ce.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(3),Ye=Ve.n(qe),We=Ve(1),Qe=Ve.n(We),Xe=Ve(0),ot=Ve.n(Xe);function u(){return(u=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze1;)if(ze(Ve.date(qe)))return!1;return!0}},{key:"getMonthText",value:function(ce){var ze,Ve=this.props.viewDate;return(ze=Ve.localeData().monthsShort(Ve.month(ce)).substring(0,3)).charAt(0).toUpperCase()+ze.slice(1)}}])&&C(ze.prototype,Ve),Object.defineProperty(ze,"prototype",{writable:!1}),i}(ot.a.Component);function N(ce,ze){return ze<4?ce[0]:ze<8?ce[1]:ce[2]}function x(ce){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ce)}function F(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function I(ce,ze){for(var Ve=0;Ve1;)if(Ve(qe.dayOfYear(Ye)))return ze[ce]=!1,!1;return ze[ce]=!0,!0}}])&&I(ze.prototype,Ve),Object.defineProperty(ze,"prototype",{writable:!1}),i}(ot.a.Component);function U(ce,ze){return ze<3?ce[0]:ze<7?ce[1]:ce[2]}function Z(ce){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ce)}function W(ce,ze){for(var Ve=0;Ve=12?ce-=12:ce+=12,this.props.setTime("hours",ce)}},{key:"increase",value:function(ce){var ze=this.constraints[ce],Ve=parseInt(this.state[ce],10)+ze.step;return Ve>ze.max&&(Ve=ze.min+(Ve-(ze.max+1))),te(ce,Ve)}},{key:"decrease",value:function(ce){var ze=this.constraints[ce],Ve=parseInt(this.state[ce],10)-ze.step;return Ve0?Ve.props.onNavigateForward(ce,ze):Ve.props.onNavigateBack(-ce,ze),Ve.setState({viewDate:qe})})),_e(Ce(Ve),"_setTime",(function(ce,ze){var qe=(Ve.getSelectedDate()||Ve.state.viewDate).clone();qe[ce](ze),Ve.props.value||Ve.setState({selectedDate:qe,viewDate:qe.clone(),inputValue:qe.format(Ve.getFormat("datetime"))}),Ve.props.onChange(qe)})),_e(Ce(Ve),"_openCalendar",(function(){Ve.isOpen()||Ve.setState({open:!0},Ve.props.onOpen)})),_e(Ce(Ve),"_closeCalendar",(function(){Ve.isOpen()&&Ve.setState({open:!1},(function(){Ve.props.onClose(Ve.state.selectedDate||Ve.state.inputValue)}))})),_e(Ce(Ve),"_handleClickOutside",(function(){var ce=Ve.props;ce.input&&Ve.state.open&&void 0===ce.open&&ce.closeOnClickOutside&&Ve._closeCalendar()})),_e(Ce(Ve),"_onInputFocus",(function(ce){Ve.callHandler(Ve.props.inputProps.onFocus,ce)&&Ve._openCalendar()})),_e(Ce(Ve),"_onInputChange",(function(ce){if(Ve.callHandler(Ve.props.inputProps.onChange,ce)){var ze=ce.target?ce.target.value:ce,qe=Ve.localMoment(ze,Ve.getFormat("datetime")),Ye={inputValue:ze};qe.isValid()?(Ye.selectedDate=qe,Ye.viewDate=qe.clone().startOf("month")):Ye.selectedDate=null,Ve.setState(Ye,(function(){Ve.props.onChange(qe.isValid()?qe:Ve.state.inputValue)}))}})),_e(Ce(Ve),"_onInputKeyDown",(function(ce){Ve.callHandler(Ve.props.inputProps.onKeyDown,ce)&&9===ce.which&&Ve.props.closeOnTab&&Ve._closeCalendar()})),_e(Ce(Ve),"_onInputClick",(function(ce){Ve.callHandler(Ve.props.inputProps.onClick,ce)&&Ve._openCalendar()})),Ve.state=Ve.getInitialState(),Ve}return Oe(n,[{key:"render",value:function(){return ot.a.createElement(Ht,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),ot.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ce=me(me({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?ot.a.createElement("div",null,this.props.renderInput(ce,this._openCalendar,this._closeCalendar)):ot.a.createElement("input",ce)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ce=this.props,ze=this.getFormat("datetime"),Ve=this.parseDate(ce.value||ce.initialValue,ze);return this.checkTZ(),{open:!ce.input,currentView:ce.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(Ve),selectedDate:Ve&&Ve.isValid()?Ve:void 0,inputValue:this.getInitialInputValue(Ve)}}},{key:"getInitialViewDate",value:function(ce){var ze,Ve=this.props.initialViewDate;if(Ve){if((ze=this.parseDate(Ve,this.getFormat("datetime")))&&ze.isValid())return ze;Ie('The initialViewDated given "'+Ve+'" is not valid. Using current date instead.')}else if(ce&&ce.isValid())return ce.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ce=this.localMoment();return ce.hour(0).minute(0).second(0).millisecond(0),ce}},{key:"getInitialView",value:function(){var ce=this.getFormat("date");return ce?this.getUpdateOn(ce):Lt}},{key:"parseDate",value:function(ce,ze){var Ve;return ce&&"string"==typeof ce?Ve=this.localMoment(ce,ze):ce&&(Ve=this.localMoment(ce)),Ve&&!Ve.isValid()&&(Ve=null),Ve}},{key:"getClassName",value:function(){var ce="rdt",ze=this.props,Ve=ze.className;return Array.isArray(Ve)?ce+=" "+Ve.join(" "):Ve&&(ce+=" "+Ve),ze.input||(ce+=" rdtStatic"),this.isOpen()&&(ce+=" rdtOpen"),ce}},{key:"isOpen",value:function(){return!this.props.input||(void 0===this.props.open?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ce){return this.props.updateOnView?this.props.updateOnView:ce.match(/[lLD]/)?Tt:-1!==ce.indexOf("M")?Pt:-1!==ce.indexOf("Y")?Et:Tt}},{key:"getLocaleData",value:function(){var ce=this.props;return this.localMoment(ce.value||ce.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ce=this.getLocaleData(),ze=this.props.dateFormat;return!0===ze?ce.longDateFormat("L"):ze||""}},{key:"getTimeFormat",value:function(){var ce=this.getLocaleData(),ze=this.props.timeFormat;return!0===ze?ce.longDateFormat("LT"):ze||""}},{key:"getFormat",value:function(ce){if("date"===ce)return this.getDateFormat();if("time"===ce)return this.getTimeFormat();var ze=this.getDateFormat(),Ve=this.getTimeFormat();return ze&&Ve?ze+" "+Ve:ze||Ve}},{key:"updateTime",value:function(ce,ze,Ve,qe){var Ye={},We=qe?"selectedDate":"viewDate";Ye[We]=this.state[We].clone()[ce](ze,Ve),this.setState(Ye)}},{key:"localMoment",value:function(ce,ze,Ve){var qe=null;return qe=(Ve=Ve||this.props).utc?Qe.a.utc(ce,ze,Ve.strictParsing):Ve.displayTimeZone?Qe.a.tz(ce,ze,Ve.displayTimeZone):Qe()(ce,ze,Ve.strictParsing),Ve.locale&&qe.locale(Ve.locale),qe}},{key:"checkTZ",value:function(){var ce=this.props.displayTimeZone;!ce||this.tzWarning||Qe.a.tz||(this.tzWarning=!0,Ie('displayTimeZone prop with value "'+ce+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ce){if(ce!==this.props){var ze=!1,Ve=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(qe){ce[qe]!==Ve[qe]&&(ze=!0)})),ze&&this.regenerateDates(),Ve.value&&Ve.value!==ce.value&&this.setViewDate(Ve.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ce=this.props,ze=this.state.viewDate.clone(),Ve=this.state.selectedDate&&this.state.selectedDate.clone();ce.locale&&(ze.locale(ce.locale),Ve&&Ve.locale(ce.locale)),ce.utc?(ze.utc(),Ve&&Ve.utc()):ce.displayTimeZone?(ze.tz(ce.displayTimeZone),Ve&&Ve.tz(ce.displayTimeZone)):(ze.locale(),Ve&&Ve.locale());var qe={viewDate:ze,selectedDate:Ve};Ve&&Ve.isValid()&&(qe.inputValue=Ve.format(this.getFormat("datetime"))),this.setState(qe)}},{key:"getSelectedDate",value:function(){if(void 0===this.props.value)return this.state.selectedDate;var ce=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ce||!ce.isValid())&&ce}},{key:"getInitialInputValue",value:function(ce){var ze=this.props;return ze.inputProps.value?ze.inputProps.value:ce&&ce.isValid()?ce.format(this.getFormat("datetime")):ze.value&&"string"==typeof ze.value?ze.value:ze.initialValue&&"string"==typeof ze.initialValue?ze.initialValue:""}},{key:"getInputValue",value:function(){var ce=this.getSelectedDate();return ce?ce.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ce){var ze;return ce&&(ze="string"==typeof ce?this.localMoment(ce,this.getFormat("datetime")):this.localMoment(ce))&&ze.isValid()?void this.setState({viewDate:ze}):Ie("Invalid date passed to the `setViewDate` method: "+ce)}},{key:"navigate",value:function(ce){this._showView(ce)}},{key:"callHandler",value:function(ce,ze){return!ce||!1!==ce(ze)}}]),n}(ot.a.Component);function Ie(ce,ze){var Ve="undefined"!=typeof window&&window.console;Ve&&(ze||(ze="warn"),Ve[ze]("***react-datetime:"+ce))}_e(Vt,"propTypes",{value:Bt,initialValue:Bt,initialViewDate:Bt,initialViewMode:Ft.oneOf([Et,Pt,Tt,Lt]),onOpen:Ft.func,onClose:Ft.func,onChange:Ft.func,onNavigate:Ft.func,onBeforeNavigate:Ft.func,onNavigateBack:Ft.func,onNavigateForward:Ft.func,updateOnView:Ft.string,locale:Ft.string,utc:Ft.bool,displayTimeZone:Ft.string,input:Ft.bool,dateFormat:Ft.oneOfType([Ft.string,Ft.bool]),timeFormat:Ft.oneOfType([Ft.string,Ft.bool]),inputProps:Ft.object,timeConstraints:Ft.object,isValidDate:Ft.func,open:Ft.bool,strictParsing:Ft.bool,closeOnSelect:Ft.bool,closeOnTab:Ft.bool,renderView:Ft.func,renderInput:Ft.func,renderDay:Ft.func,renderMonth:Ft.func,renderYear:Ft.func}),_e(Vt,"defaultProps",{onOpen:Ne,onClose:Ne,onCalendarOpen:Ne,onCalendarClose:Ne,onChange:Ne,onNavigate:Ne,onBeforeNavigate:function(ce){return ce},onNavigateBack:Ne,onNavigateForward:Ne,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(ce,ze){return ze()}}),_e(Vt,"moment",Qe.a);var Ht=function(ce,ze){var Ve,qe,Ye=ce.displayName||ce.name||"Component";return qe=Ve=function(Ve){var qe,We;function a(ce){var qe;return(qe=Ve.call(this,ce)||this).__outsideClickHandler=function(ce){if("function"!=typeof qe.__clickOutsideHandlerProp){var ze=qe.getInstance();if("function"!=typeof ze.props.handleClickOutside){if("function"!=typeof ze.handleClickOutside)throw new Error("WrappedComponent: "+Ye+" lacks a handleClickOutside(event) function for processing outside click events.");ze.handleClickOutside(ce)}else ze.props.handleClickOutside(ce)}else qe.__clickOutsideHandlerProp(ce)},qe.__getComponentNode=function(){var ce=qe.getInstance();return ze&&"function"==typeof ze.setClickOutsideRef?ze.setClickOutsideRef()(ce):"function"==typeof ce.setClickOutsideRef?ce.setClickOutsideRef():Object(vt.findDOMNode)(ce)},qe.enableOnClickOutside=function(){if("undefined"!=typeof document&&!St[qe._uid]){void 0===Ct&&(Ct=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var ce=!1,ze=Object.defineProperty({},"passive",{get:function(){ce=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,ze),window.removeEventListener("testPassiveEventSupport",n,ze),ce}}()),St[qe._uid]=!0;var ce=qe.props.eventTypes;ce.forEach||(ce=[ce]),kt[qe._uid]=function(ce){var ze;null!==qe.componentNode&&(qe.props.preventDefault&&ce.preventDefault(),qe.props.stopPropagation&&ce.stopPropagation(),qe.props.excludeScrollbar&&(ze=ce,document.documentElement.clientWidth<=ze.clientX||document.documentElement.clientHeight<=ze.clientY)||function(ce,ze,Ve){if(ce===ze)return!0;for(;ce.parentNode||ce.host;){if(ce.parentNode&&ie(ce,ze,Ve))return!0;ce=ce.parentNode||ce.host}return ce}(ce.composed&&ce.composedPath&&ce.composedPath().shift()||ce.target,qe.componentNode,qe.props.outsideClickIgnoreClass)===document&&qe.__outsideClickHandler(ce))},ce.forEach((function(ce){document.addEventListener(ce,kt[qe._uid],fe(oe(qe),ce))}))}},qe.disableOnClickOutside=function(){delete St[qe._uid];var ce=kt[qe._uid];if(ce&&"undefined"!=typeof document){var ze=qe.props.eventTypes;ze.forEach||(ze=[ze]),ze.forEach((function(ze){return document.removeEventListener(ze,ce,fe(oe(qe),ze))})),delete kt[qe._uid]}},qe.getRef=function(ce){return qe.instanceRef=ce},qe._uid=Dt(),qe}We=Ve,(qe=a).prototype=Object.create(We.prototype),qe.prototype.constructor=qe,re(qe,We);var Qe=a.prototype;return Qe.getInstance=function(){if(ce.prototype&&!ce.prototype.isReactComponent)return this;var ze=this.instanceRef;return ze.getInstance?ze.getInstance():ze},Qe.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var ce=this.getInstance();if(ze&&"function"==typeof ze.handleClickOutside&&(this.__clickOutsideHandlerProp=ze.handleClickOutside(ce),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+Ye+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},Qe.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},Qe.componentWillUnmount=function(){this.disableOnClickOutside()},Qe.render=function(){var ze=this.props;ze.excludeScrollbar;var Ve=function(ce,ze){if(null==ce)return{};var Ve,qe,Ye={},We=Object.keys(ce);for(qe=0;qe=0||(Ye[Ve]=ce[Ve]);return Ye}(ze,["excludeScrollbar"]);return ce.prototype&&ce.prototype.isReactComponent?Ve.ref=this.getRef:Ve.wrappedRef=this.getRef,Ve.disableOnClickOutside=this.disableOnClickOutside,Ve.enableOnClickOutside=this.enableOnClickOutside,Object(Xe.createElement)(ce,Ve)},a}(Xe.Component),Ve.displayName="OnClickOutside("+Ye+")",Ve.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:ze&&ze.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},Ve.getClass=function(){return ce.getClass?ce.getClass():ce},qe}(function(ce){ge(n,ce);var ze=De(n);function n(){var ce;ve(this,n);for(var Ve=arguments.length,qe=new Array(Ve),Ye=0;Ye]+$/;function sanitizeHtml(ce,ze,Ve){if(null==ce)return"";"number"==typeof ce&&(ce=ce.toString());let bt="",vt="";function Frame(ce,ze){const Ve=this;this.tag=ce,this.attribs=ze||{},this.tagPosition=bt.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Lt.length){Lt[Lt.length-1].text+=Ve.text}},this.updateParentNodeMediaChildren=function(){if(Lt.length&&st.includes(this.tag)){Lt[Lt.length-1].mediaChildren.push(this.tag)}}}(ze=Object.assign({},sanitizeHtml.defaults,ze)).parser=Object.assign({},yt,ze.parser);const tagAllowed=function(ce){return!1===ze.allowedTags||(ze.allowedTags||[]).indexOf(ce)>-1};mt.forEach((function(ce){tagAllowed(ce)&&!ze.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${ce}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const wt=ze.nonTextTags||["script","style","textarea","option"];let Ct,Dt;ze.allowedAttributes&&(Ct={},Dt={},each(ze.allowedAttributes,(function(ce,ze){Ct[ze]=[];const Ve=[];ce.forEach((function(ce){"string"==typeof ce&&ce.indexOf("*")>=0?Ve.push(Ye(ce).replace(/\\\*/g,".*")):Ct[ze].push(ce)})),Ve.length&&(Dt[ze]=new RegExp("^("+Ve.join("|")+")$"))})));const kt={},St={},xt={};each(ze.allowedClasses,(function(ce,ze){if(Ct&&(has(Ct,ze)||(Ct[ze]=[]),Ct[ze].push("class")),kt[ze]=ce,Array.isArray(ce)){const Ve=[];kt[ze]=[],xt[ze]=[],ce.forEach((function(ce){"string"==typeof ce&&ce.indexOf("*")>=0?Ve.push(Ye(ce).replace(/\\\*/g,".*")):ce instanceof RegExp?xt[ze].push(ce):kt[ze].push(ce)})),Ve.length&&(St[ze]=new RegExp("^("+Ve.join("|")+")$"))}}));const Et={};let Pt,Tt,Lt,Ft,Bt,Vt,Ht;each(ze.transformTags,(function(ce,ze){let Ve;"function"==typeof ce?Ve=ce:"string"==typeof ce&&(Ve=sanitizeHtml.simpleTransform(ce)),"*"===ze?Pt=Ve:Et[ze]=Ve}));let Ut=!1;initializeState();const Wt=new qe.Parser({onopentag:function(ce,Ve){if(ze.enforceHtmlBoundary&&"html"===ce&&initializeState(),Vt)return void Ht++;const qe=new Frame(ce,Ve);Lt.push(qe);let Ye=!1;const st=!!qe.text;let mt;if(has(Et,ce)&&(mt=Et[ce](ce,Ve),qe.attribs=Ve=mt.attribs,void 0!==mt.text&&(qe.innerText=mt.text),ce!==mt.tagName&&(qe.name=ce=mt.tagName,Bt[Tt]=mt.tagName)),Pt&&(mt=Pt(ce,Ve),qe.attribs=Ve=mt.attribs,ce!==mt.tagName&&(qe.name=ce=mt.tagName,Bt[Tt]=mt.tagName)),(!tagAllowed(ce)||"recursiveEscape"===ze.disallowedTagsMode&&!isEmptyObject(Ft)||null!=ze.nestingLimit&&Tt>=ze.nestingLimit)&&(Ye=!0,Ft[Tt]=!0,"discard"!==ze.disallowedTagsMode&&"completelyDiscard"!==ze.disallowedTagsMode||-1!==wt.indexOf(ce)&&(Vt=!0,Ht=1),Ft[Tt]=!0),Tt++,Ye){if("discard"===ze.disallowedTagsMode||"completelyDiscard"===ze.disallowedTagsMode)return;vt=bt,bt=""}bt+="<"+ce,"script"===ce&&(ze.allowedScriptHostnames||ze.allowedScriptDomains)&&(qe.innerText=""),(!Ct||has(Ct,ce)||Ct["*"])&&each(Ve,(function(Ve,Ye){if(!gt.test(Ye))return void delete qe.attribs[Ye];if(""===Ve&&!ze.allowedEmptyAttributes.includes(Ye)&&(ze.nonBooleanAttributes.includes(Ye)||ze.nonBooleanAttributes.includes("*")))return void delete qe.attribs[Ye];let st=!1;if(!Ct||has(Ct,ce)&&-1!==Ct[ce].indexOf(Ye)||Ct["*"]&&-1!==Ct["*"].indexOf(Ye)||has(Dt,ce)&&Dt[ce].test(Ye)||Dt["*"]&&Dt["*"].test(Ye))st=!0;else if(Ct&&Ct[ce])for(const ze of Ct[ce])if(We(ze)&&ze.name&&ze.name===Ye){st=!0;let ce="";if(!0===ze.multiple){const qe=Ve.split(" ");for(const Ve of qe)-1!==ze.values.indexOf(Ve)&&(""===ce?ce=Ve:ce+=" "+Ve)}else ze.values.indexOf(Ve)>=0&&(ce=Ve);Ve=ce}if(st){if(-1!==ze.allowedSchemesAppliedToAttributes.indexOf(Ye)&&naughtyHref(ce,Ve))return void delete qe.attribs[Ye];if("script"===ce&&"src"===Ye){let ce=!0;try{const qe=parseUrl(Ve);if(ze.allowedScriptHostnames||ze.allowedScriptDomains){const Ve=(ze.allowedScriptHostnames||[]).find((function(ce){return ce===qe.url.hostname})),Ye=(ze.allowedScriptDomains||[]).find((function(ce){return qe.url.hostname===ce||qe.url.hostname.endsWith(`.${ce}`)}));ce=Ve||Ye}}catch(ze){ce=!1}if(!ce)return void delete qe.attribs[Ye]}if("iframe"===ce&&"src"===Ye){let ce=!0;try{const qe=parseUrl(Ve);if(qe.isRelativeUrl)ce=has(ze,"allowIframeRelativeUrls")?ze.allowIframeRelativeUrls:!ze.allowedIframeHostnames&&!ze.allowedIframeDomains;else if(ze.allowedIframeHostnames||ze.allowedIframeDomains){const Ve=(ze.allowedIframeHostnames||[]).find((function(ce){return ce===qe.url.hostname})),Ye=(ze.allowedIframeDomains||[]).find((function(ce){return qe.url.hostname===ce||qe.url.hostname.endsWith(`.${ce}`)}));ce=Ve||Ye}}catch(ze){ce=!1}if(!ce)return void delete qe.attribs[Ye]}if("srcset"===Ye)try{let ce=Xe(Ve);if(ce.forEach((function(ce){naughtyHref("srcset",ce.url)&&(ce.evil=!0)})),ce=filter(ce,(function(ce){return!ce.evil})),!ce.length)return void delete qe.attribs[Ye];Ve=filter(ce,(function(ce){return!ce.evil})).map((function(ce){if(!ce.url)throw new Error("URL missing");return ce.url+(ce.w?` ${ce.w}w`:"")+(ce.h?` ${ce.h}h`:"")+(ce.d?` ${ce.d}x`:"")})).join(", "),qe.attribs[Ye]=Ve}catch(ce){return void delete qe.attribs[Ye]}if("class"===Ye){const ze=kt[ce],We=kt["*"],Xe=St[ce],ot=xt[ce],st=[Xe,St["*"]].concat(ot).filter((function(ce){return ce}));if(!(Ve=filterClasses(Ve,ze&&We?Qe(ze,We):ze||We,st)).length)return void delete qe.attribs[Ye]}if("style"===Ye)if(ze.parseStyleAttributes)try{const We=ot(ce+" {"+Ve+"}",{map:!1});if(0===(Ve=stringifyStyleAttributes(filterCss(We,ze.allowedStyles))).length)return void delete qe.attribs[Ye]}catch(ze){return"undefined"!=typeof window&&console.warn('Failed to parse "'+ce+" {"+Ve+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete qe.attribs[Ye]}else if(ze.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");bt+=" "+Ye,Ve&&Ve.length?bt+='="'+escapeHtml(Ve,!0)+'"':ze.allowedEmptyAttributes.includes(Ye)&&(bt+='=""')}else delete qe.attribs[Ye]})),-1!==ze.selfClosing.indexOf(ce)?bt+=" />":(bt+=">",!qe.innerText||st||ze.textFilter||(bt+=escapeHtml(qe.innerText),Ut=!0)),Ye&&(bt=vt+escapeHtml(bt),vt="")},ontext:function(ce){if(Vt)return;const Ve=Lt[Lt.length-1];let qe;if(Ve&&(qe=Ve.tag,ce=void 0!==Ve.innerText?Ve.innerText:ce),"completelyDiscard"!==ze.disallowedTagsMode||tagAllowed(qe))if("discard"!==ze.disallowedTagsMode&&"completelyDiscard"!==ze.disallowedTagsMode||"script"!==qe&&"style"!==qe){const Ve=escapeHtml(ce,!1);ze.textFilter&&!Ut?bt+=ze.textFilter(Ve,qe):Ut||(bt+=Ve)}else bt+=ce;else ce="";if(Lt.length){Lt[Lt.length-1].text+=ce}},onclosetag:function(ce,Ve){if(Vt){if(Ht--,Ht)return;Vt=!1}const qe=Lt.pop();if(!qe)return;if(qe.tag!==ce)return void Lt.push(qe);Vt=!!ze.enforceHtmlBoundary&&"html"===ce,Tt--;const Ye=Ft[Tt];if(Ye){if(delete Ft[Tt],"discard"===ze.disallowedTagsMode||"completelyDiscard"===ze.disallowedTagsMode)return void qe.updateParentNodeText();vt=bt,bt=""}Bt[Tt]&&(ce=Bt[Tt],delete Bt[Tt]),ze.exclusiveFilter&&ze.exclusiveFilter(qe)?bt=bt.substr(0,qe.tagPosition):(qe.updateParentNodeMediaChildren(),qe.updateParentNodeText(),-1!==ze.selfClosing.indexOf(ce)||Ve&&!tagAllowed(ce)&&["escape","recursiveEscape"].indexOf(ze.disallowedTagsMode)>=0?Ye&&(bt=vt,vt=""):(bt+="",Ye&&(bt=vt+escapeHtml(bt),vt=""),Ut=!1))}},ze.parser);return Wt.write(ce),Wt.end(),bt;function initializeState(){bt="",Tt=0,Lt=[],Ft={},Bt={},Vt=!1,Ht=0}function escapeHtml(ce,Ve){return"string"!=typeof ce&&(ce+=""),ze.parser.decodeEntities&&(ce=ce.replace(/&/g,"&").replace(//g,">"),Ve&&(ce=ce.replace(/"/g,"""))),ce=ce.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),Ve&&(ce=ce.replace(/"/g,""")),ce}function naughtyHref(ce,Ve){for(Ve=Ve.replace(/[\x00-\x20]+/g,"");;){const ce=Ve.indexOf("\x3c!--");if(-1===ce)break;const ze=Ve.indexOf("--\x3e",ce+4);if(-1===ze)break;Ve=Ve.substring(0,ce)+Ve.substring(ze+3)}const qe=Ve.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!qe)return!!Ve.match(/^[/\\]{2}/)&&!ze.allowProtocolRelative;const Ye=qe[1].toLowerCase();return has(ze.allowedSchemesByTag,ce)?-1===ze.allowedSchemesByTag[ce].indexOf(Ye):!ze.allowedSchemes||-1===ze.allowedSchemes.indexOf(Ye)}function parseUrl(ce){if((ce=ce.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let ze="relative://relative-site";for(let ce=0;ce<100;ce++)ze+=`/${ce}`;const Ve=new URL(ce,ze);return{isRelativeUrl:Ve&&"relative-site"===Ve.hostname&&"relative:"===Ve.protocol,url:Ve}}function filterCss(ce,ze){if(!ze)return ce;const Ve=ce.nodes[0];let qe;return qe=ze[Ve.selector]&&ze["*"]?Qe(ze[Ve.selector],ze["*"]):ze[Ve.selector]||ze["*"],qe&&(ce.nodes[0].nodes=Ve.nodes.reduce(filterDeclarations(qe),[])),ce}function stringifyStyleAttributes(ce){return ce.nodes[0].nodes.reduce((function(ce,ze){return ce.push(`${ze.prop}:${ze.value}${ze.important?" !important":""}`),ce}),[]).join(";")}function filterDeclarations(ce){return function(ze,Ve){if(has(ce,Ve.prop)){ce[Ve.prop].some((function(ce){return ce.test(Ve.value)}))&&ze.push(Ve)}return ze}}function filterClasses(ce,ze,Ve){return ze?(ce=ce.split(/\s+/)).filter((function(ce){return-1!==ze.indexOf(ce)||Ve.some((function(ze){return ze.test(ce)}))})).join(" "):ce}}const yt={decodeEntities:!0};sanitizeHtml.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},sanitizeHtml.simpleTransform=function(ce,ze,Ve){return Ve=void 0===Ve||Ve,ze=ze||{},function(qe,Ye){let We;if(Ve)for(We in ze)Ye[We]=ze[We];else Ye=ze;return{tagName:ce,attribs:Ye}}}},function(ce,ze,Ve){"use strict";var qe=Ve(507);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(798);ze.a=qe.default},function(ce,ze,Ve){"use strict";(function(ce){var Ve="object"==typeof ce&&ce&&ce.Object===Object&&ce;ze.a=Ve}).call(this,Ve(146))},function(ce,ze,Ve){"use strict";ze.a=function copyArray(ce,ze){var Ve=-1,qe=ce.length;for(ze||(ze=Array(qe));++Ve=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}var mt={bgColor:Ye.default.oneOfType([Ye.default.object,Ye.default.string]),fgColor:Ye.default.oneOfType([Ye.default.object,Ye.default.string]),level:Ye.default.string,size:Ye.default.number,value:Ye.default.string.isRequired},gt=(0,Xe.forwardRef)((function(ce,ze){var Ve=ce.bgColor,Ye=void 0===Ve?"#FFFFFF":Ve,Xe=ce.fgColor,mt=void 0===Xe?"#000000":Xe,gt=ce.level,yt=void 0===gt?"L":gt,bt=ce.size,vt=void 0===bt?256:bt,wt=ce.value,Ct=_objectWithoutProperties(ce,["bgColor","fgColor","level","size","value"]),Dt=new Qe.default(-1,We.default[yt]);Dt.addData(wt),Dt.make();var kt=Dt.modules;return ot.default.createElement(st.default,qe({},Ct,{bgColor:Ye,bgD:kt.map((function(ce,ze){return ce.map((function(ce,Ve){return ce?"":"M "+Ve+" "+ze+" l 1 0 0 1 -1 0 Z"})).join(" ")})).join(" "),fgColor:mt,fgD:kt.map((function(ce,ze){return ce.map((function(ce,Ve){return ce?"M "+Ve+" "+ze+" l 1 0 0 1 -1 0 Z":""})).join(" ")})).join(" "),ref:ze,size:vt,viewBoxSize:kt.length}))}));ze.QRCode=gt,gt.displayName="QRCode",gt.propTypes=mt,ze.default=gt},function(ce,ze,Ve){"use strict";var qe=Ve(614);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(0),extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var Ye=50,We=50;function Path(ce){var ze=ce.className,Ve=ce.counterClockwise,Ye=ce.dashRatio,We=ce.pathRadius,Qe=ce.strokeWidth,Xe=ce.style;return Object(qe.createElement)("path",{className:ze,style:Object.assign({},Xe,getDashStyle({pathRadius:We,dashRatio:Ye,counterClockwise:Ve})),d:getPathDescription({pathRadius:We,counterClockwise:Ve}),strokeWidth:Qe,fillOpacity:0})}function getPathDescription(ce){var ze=ce.pathRadius,Ve=ce.counterClockwise?1:0;return"\n M "+Ye+","+We+"\n m 0,-"+ze+"\n a "+ze+","+ze+" "+Ve+" 1 1 0,"+2*ze+"\n a "+ze+","+ze+" "+Ve+" 1 1 0,-"+2*ze+"\n "}function getDashStyle(ce){var ze=ce.counterClockwise,Ve=ce.dashRatio,qe=ce.pathRadius,Ye=2*Math.PI*qe,We=(1-Ve)*Ye;return{strokeDasharray:Ye+"px "+Ye+"px",strokeDashoffset:(ze?-We:We)+"px"}}var Qe=function(ce){function CircularProgressbar(){return null!==ce&&ce.apply(this,arguments)||this}return __extends(CircularProgressbar,ce),CircularProgressbar.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},CircularProgressbar.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},CircularProgressbar.prototype.getPathRatio=function(){var ce=this.props,ze=ce.value,Ve=ce.minValue,qe=ce.maxValue;return(Math.min(Math.max(ze,Ve),qe)-Ve)/(qe-Ve)},CircularProgressbar.prototype.render=function(){var ce=this.props,ze=ce.circleRatio,Ve=ce.className,Qe=ce.classes,Xe=ce.counterClockwise,ot=ce.styles,st=ce.strokeWidth,mt=ce.text,gt=this.getPathRadius(),yt=this.getPathRatio();return Object(qe.createElement)("svg",{className:Qe.root+" "+Ve,style:ot.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?Object(qe.createElement)("circle",{className:Qe.background,style:ot.background,cx:Ye,cy:We,r:50}):null,Object(qe.createElement)(Path,{className:Qe.trail,counterClockwise:Xe,dashRatio:ze,pathRadius:gt,strokeWidth:st,style:ot.trail}),Object(qe.createElement)(Path,{className:Qe.path,counterClockwise:Xe,dashRatio:yt*ze,pathRadius:gt,strokeWidth:st,style:ot.path}),mt?Object(qe.createElement)("text",{className:Qe.text,style:ot.text,x:Ye,y:We},mt):null)},CircularProgressbar.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},CircularProgressbar}(qe.Component)},function(ce,ze,Ve){var qe,Ye;!function(We,Qe){"use strict";qe=[Ve(787)],void 0===(Ye=function(ce){return Qe(We,ce)}.apply(ze,qe))||(ce.exports=Ye)}("undefined"!=typeof window?window:this,(function factory(ce,ze){"use strict";var Ve=ce.jQuery,qe=ce.console;function extend(ce,ze){for(var Ve in ze)ce[Ve]=ze[Ve];return ce}var Ye=Array.prototype.slice;function ImagesLoaded(ce,ze,We){if(!(this instanceof ImagesLoaded))return new ImagesLoaded(ce,ze,We);var Qe,Xe=ce;("string"==typeof ce&&(Xe=document.querySelectorAll(ce)),Xe)?(this.elements=(Qe=Xe,Array.isArray(Qe)?Qe:"object"==typeof Qe&&"number"==typeof Qe.length?Ye.call(Qe):[Qe]),this.options=extend({},this.options),"function"==typeof ze?We=ze:extend(this.options,ze),We&&this.on("always",We),this.getImages(),Ve&&(this.jqDeferred=new Ve.Deferred),setTimeout(this.check.bind(this))):qe.error("Bad element for imagesLoaded "+(Xe||ce))}ImagesLoaded.prototype=Object.create(ze.prototype),ImagesLoaded.prototype.options={},ImagesLoaded.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},ImagesLoaded.prototype.addElementImages=function(ce){"IMG"==ce.nodeName&&this.addImage(ce),!0===this.options.background&&this.addElementBackgroundImages(ce);var ze=ce.nodeType;if(ze&&We[ze]){for(var Ve=ce.querySelectorAll("img"),qe=0;qe1&&Ve+ce>this.cols?0:Ve;var qe=ze.size.outerWidth&&ze.size.outerHeight;return this.horizontalColIndex=qe?Ve+ce:this.horizontalColIndex,{col:Ve,y:this._getColGroupY(Ve,ce)}},qe._manageStamp=function(ce){var Ve=ze(ce),qe=this._getElementOffset(ce),Ye=this._getOption("originLeft")?qe.left:qe.right,We=Ye+Ve.outerWidth,Qe=Math.floor(Ye/this.columnWidth);Qe=Math.max(0,Qe);var Xe=Math.floor(We/this.columnWidth);Xe-=We%this.columnWidth?0:1,Xe=Math.min(this.cols-1,Xe);for(var ot=(this._getOption("originTop")?qe.top:qe.bottom)+Ve.outerHeight,st=Qe;st<=Xe;st++)this.colYs[st]=Math.max(ot,this.colYs[st])},qe._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var ce={height:this.maxY};return this._getOption("fitWidth")&&(ce.width=this._getContainerFitWidth()),ce},qe._getContainerFitWidth=function(){for(var ce=0,ze=this.cols;--ze&&0===this.colYs[ze];)ce++;return(this.cols-ce)*this.columnWidth-this.gutter},qe.needsResizeLayout=function(){var ce=this.containerWidth;return this.getContainerWidth(),ce!=this.containerWidth},Ve})?qe.apply(ze,Ye):qe)||(ce.exports=We)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return insertToPriorityArray}));var qe=Ve(198);function insertToPriorityArray(ce,ze){const Ve=qe.a.get(ze.priority);for(let Ye=0;Ye0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._selection=new qe.a,this._selection.delegate("change").to(this),this._selection.setTo(ce,ze,Ve)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(ce){return this._selection.isEqual(ce)}isSimilar(ce){return this._selection.isSimilar(ce)}is(ce){return"selection"===ce||"documentSelection"==ce||"view:selection"==ce||"view:documentSelection"==ce}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}}Object(Ye.a)(Qe,We.c)},function(ce,ze,Ve){"use strict";function fastDiff(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Ve=Ve||function(ce,ze){return ce===ze},Array.isArray(ce)||(ce=Array.prototype.slice.call(ce)),Array.isArray(ze)||(ze=Array.prototype.slice.call(ze));const Ye=findChangeBoundaryIndexes(ce,ze,Ve);return qe?changeIndexesToAtomicChanges(Ye,ze.length):changeIndexesToChanges(ze,Ye)}function findChangeBoundaryIndexes(ce,ze,Ve){const qe=findFirstDifferenceIndex(ce,ze,Ve);if(-1===qe)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ye=findFirstDifferenceIndex(cutAndReverse(ce,qe),cutAndReverse(ze,qe),Ve);return{firstIndex:qe,lastIndexOld:ce.length-Ye,lastIndexNew:ze.length-Ye}}function findFirstDifferenceIndex(ce,ze,Ve){for(let qe=0;qe0&&Ve.push({index:qe,type:"insert",values:ce.slice(qe,We)}),Ye-qe>0&&Ve.push({index:qe+(We-qe),type:"delete",howMany:Ye-qe}),Ve}function changeIndexesToAtomicChanges(ce,ze){const{firstIndex:Ve,lastIndexOld:qe,lastIndexNew:Ye}=ce;if(-1===Ve)return Array(ze).fill("equal");let We=[];return Ve>0&&(We=We.concat(Array(Ve).fill("equal"))),Ye-Ve>0&&(We=We.concat(Array(Ye-Ve).fill("insert"))),qe-Ve>0&&(We=We.concat(Array(qe-Ve).fill("delete"))),Ye{if(ze.viewPosition)return;const Ve=this._modelToViewMapping.get(ze.modelPosition.parent);if(!Ve)throw new st.a("mapping-model-position-view-parent-not-found",this,{modelPosition:ze.modelPosition});ze.viewPosition=this.findPositionIn(Ve,ze.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((ce,ze)=>{if(ze.modelPosition)return;const Ve=this.findMappedViewAncestor(ze.viewPosition),Ye=this._viewToModelMapping.get(Ve),We=this._toModelOffset(ze.viewPosition.parent,ze.viewPosition.offset,Ve);ze.modelPosition=qe.a._createAt(Ye,We)}),{priority:"low"})}bindElements(ce,ze){this._modelToViewMapping.set(ce,ze),this._viewToModelMapping.set(ze,ce)}unbindViewElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.toModelElement(ce);if(this._elementToMarkerNames.has(ce))for(const ze of this._elementToMarkerNames.get(ce))this._unboundMarkerNames.add(ze);ze.defer?this._deferredBindingRemovals.set(ce,ce.root):(this._viewToModelMapping.delete(ce),this._modelToViewMapping.get(Ve)==ce&&this._modelToViewMapping.delete(Ve))}unbindModelElement(ce){const ze=this.toViewElement(ce);this._modelToViewMapping.delete(ce),this._viewToModelMapping.get(ze)==ce&&this._viewToModelMapping.delete(ze)}bindElementToMarker(ce,ze){const Ve=this._markerNameToElements.get(ze)||new Set;Ve.add(ce);const qe=this._elementToMarkerNames.get(ce)||new Set;qe.add(ze),this._markerNameToElements.set(ze,Ve),this._elementToMarkerNames.set(ce,qe)}unbindElementFromMarkerName(ce,ze){const Ve=this._markerNameToElements.get(ze);Ve&&(Ve.delete(ce),0==Ve.size&&this._markerNameToElements.delete(ze));const qe=this._elementToMarkerNames.get(ce);qe&&(qe.delete(ze),0==qe.size&&this._elementToMarkerNames.delete(ce))}flushUnboundMarkerNames(){const ce=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),ce}flushDeferredBindings(){for(const[ce,ze]of this._deferredBindingRemovals)ce.root==ze&&this.unbindViewElement(ce);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(ce){return this._viewToModelMapping.get(ce)}toViewElement(ce){return this._modelToViewMapping.get(ce)}toModelRange(ce){return new Ye.a(this.toModelPosition(ce.start),this.toModelPosition(ce.end))}toViewRange(ce){return new Qe.a(this.toViewPosition(ce.start),this.toViewPosition(ce.end))}toModelPosition(ce){const ze={viewPosition:ce,mapper:this};return this.fire("viewToModelPosition",ze),ze.modelPosition}toViewPosition(ce){const ze={modelPosition:ce,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1}).isPhantom};return this.fire("modelToViewPosition",ze),ze.viewPosition}markerNameToElements(ce){const ze=this._markerNameToElements.get(ce);if(!ze)return null;const Ve=new Set;for(const ce of ze)if(ce.is("attributeElement"))for(const ze of ce.getElementsWithSameId())Ve.add(ze);else Ve.add(ce);return Ve}registerViewToModelLength(ce,ze){this._viewToModelLengthCallbacks.set(ce,ze)}findMappedViewAncestor(ce){let ze=ce.parent;for(;!this._viewToModelMapping.has(ze);)ze=ze.parent;return ze}_toModelOffset(ce,ze,Ve){if(Ve!=ce){return this._toModelOffset(ce.parent,ce.index,Ve)+this._toModelOffset(ce,ze,ce)}if(ce.is("$text"))return ze;let qe=0;for(let Ve=0;Ve{ze[0]=new yt(ze[0])}),{priority:"highest"}),this.on("checkChild",((ce,ze)=>{ze[0]=new yt(ze[0]),ze[1]=this.getDefinition(ze[1])}),{priority:"highest"})}register(ce,ze){if(this._sourceDefinitions[ce])throw new qe.a("schema-cannot-register-item-twice",this,{itemName:ce});this._sourceDefinitions[ce]=[Object.assign({},ze)],this._clearCache()}extend(ce,ze){if(!this._sourceDefinitions[ce])throw new qe.a("schema-cannot-extend-missing-item",this,{itemName:ce});this._sourceDefinitions[ce].push(Object.assign({},ze)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(ce){let ze;return ze="string"==typeof ce?ce:ce.is&&(ce.is("$text")||ce.is("$textProxy"))?"$text":ce.name,this.getDefinitions()[ze]}isRegistered(ce){return!!this.getDefinition(ce)}isBlock(ce){const ze=this.getDefinition(ce);return!(!ze||!ze.isBlock)}isLimit(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isLimit&&!ze.isObject)}isObject(ce){const ze=this.getDefinition(ce);return!!ze&&!!(ze.isObject||ze.isLimit&&ze.isSelectable&&ze.isContent)}isInline(ce){const ze=this.getDefinition(ce);return!(!ze||!ze.isInline)}isSelectable(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isSelectable&&!ze.isObject)}isContent(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isContent&&!ze.isObject)}checkChild(ce,ze){return!!ze&&this._checkContextMatch(ze,ce)}checkAttribute(ce,ze){const Ve=this.getDefinition(ce.last);return!!Ve&&Ve.allowAttributes.includes(ze)}checkMerge(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(ce instanceof Xe.a){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze instanceof ot.a))throw new qe.a("schema-check-merge-no-element-before",this);if(!(Ve instanceof ot.a))throw new qe.a("schema-check-merge-no-element-after",this);return this.checkMerge(ze,Ve)}for(const Ve of ze.getChildren())if(!this.checkChild(ce,Ve))return!1;return!0}addChildCheck(ce){this.on("checkChild",((ze,Ve)=>{let[qe,Ye]=Ve;if(!Ye)return;const We=ce(qe,Ye);"boolean"==typeof We&&(ze.stop(),ze.return=We)}),{priority:"high"})}addAttributeCheck(ce){this.on("checkAttribute",((ze,Ve)=>{let[qe,Ye]=Ve;const We=ce(qe,Ye);"boolean"==typeof We&&(ze.stop(),ze.return=We)}),{priority:"high"})}setAttributeProperties(ce,ze){this._attributeProperties[ce]=Object.assign(this.getAttributeProperties(ce),ze)}getAttributeProperties(ce){return this._attributeProperties[ce]||{}}getLimitElement(ce){let ze;if(ce instanceof Xe.a)ze=ce.parent;else{ze=(ce instanceof Qe.a?[ce]:Array.from(ce.getRanges())).reduce(((ce,ze)=>{const Ve=ze.getCommonAncestor();return ce?ce.getCommonAncestor(Ve,{includeSelf:!0}):Ve}),null)}for(;!this.isLimit(ze)&&ze.parent;)ze=ze.parent;return ze}checkAttributeInSelection(ce,ze){if(ce.isCollapsed){const Ve=[...ce.getFirstPosition().getAncestors(),new st.a("",ce.getAttributes())];return this.checkAttribute(Ve,ze)}{const Ve=ce.getRanges();for(const ce of Ve)for(const Ve of ce)if(this.checkAttribute(Ve.item,ze))return!0}return!1}*getValidRanges(ce,ze){ce=convertToMinimalFlatRanges(ce);for(const Ve of ce)yield*this._getValidRangesForRange(Ve,ze)}getNearestSelectionRange(ce){let ze,Ve,qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(ce,"$text"))return new Qe.a(ce);const Ye=ce.getAncestors().reverse().find((ce=>this.isLimit(ce)))||ce.root;"both"!=qe&&"backward"!=qe||(ze=new mt.a({boundaries:Qe.a._createIn(Ye),startPosition:ce,direction:"backward"})),"both"!=qe&&"forward"!=qe||(Ve=new mt.a({boundaries:Qe.a._createIn(Ye),startPosition:ce}));for(const ce of combineWalkers(ze,Ve)){const Ve=ce.walker==ze?"elementEnd":"elementStart",qe=ce.value;if(qe.type==Ve&&this.isObject(qe.item))return Qe.a._createOn(qe.item);if(this.checkChild(qe.nextPosition,"$text"))return new Qe.a(qe.nextPosition)}return null}findAllowedParent(ce,ze){let Ve=ce.parent;for(;Ve;){if(this.checkChild(Ve,ze))return Ve;if(this.isLimit(Ve))return null;Ve=Ve.parent}return null}setAllowedAttributes(ce,ze,Ve){const qe=Ve.model;for(const[Ye,We]of Object.entries(ze))qe.schema.checkAttribute(ce,Ye)&&Ve.setAttribute(Ye,We,ce)}removeDisallowedAttributes(ce,ze){for(const Ve of ce)if(Ve.is("$text"))removeDisallowedAttributeFromNode(this,Ve,ze);else{const ce=Qe.a._createIn(Ve).getPositions();for(const Ve of ce){removeDisallowedAttributeFromNode(this,Ve.nodeBefore||Ve.parent,ze)}}}getAttributesWithProperty(ce,ze,Ve){const qe={};for(const[Ye,We]of ce.getAttributes()){const ce=this.getAttributeProperties(Ye);void 0!==ce[ze]&&(void 0!==Ve&&Ve!==ce[ze]||(qe[Ye]=We))}return qe}createContext(ce){return new yt(ce)}_clearCache(){this._compiledDefinitions=null}_compile(){const ce={},ze=this._sourceDefinitions,Ve=Object.keys(ze);for(const qe of Ve)ce[qe]=compileBaseItemRule(ze[qe],qe);for(const ze of Ve)compileAllowChildren(ce,ze);for(const ze of Ve)compileAllowContentOf(ce,ze);for(const ze of Ve)compileAllowWhere(ce,ze);for(const ze of Ve)compileAllowAttributesOf(ce,ze),compileInheritPropertiesFrom(ce,ze);for(const ze of Ve)cleanUpAllowIn(ce,ze),setupAllowChildren(ce,ze),cleanUpAllowAttributes(ce,ze);this._compiledDefinitions=ce}_checkContextMatch(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ze.length-1;const qe=ze.getItem(Ve);if(ce.allowIn.includes(qe.name)){if(0==Ve)return!0;{const ce=this.getDefinition(qe);return this._checkContextMatch(ce,ze,Ve-1)}}return!1}*_getValidRangesForRange(ce,ze){let Ve=ce.start,qe=ce.start;for(const Ye of ce.getItems({shallow:!0}))Ye.is("element")&&(yield*this._getValidRangesForRange(Qe.a._createIn(Ye),ze)),this.checkAttribute(Ye,ze)||(Ve.isEqual(qe)||(yield new Qe.a(Ve,qe)),Ve=Xe.a._createAfter(Ye)),qe=Xe.a._createAfter(Ye);Ve.isEqual(qe)||(yield new Qe.a(Ve,qe))}}Object(We.a)(gt,Ye.a);class yt{constructor(ce){if(ce instanceof yt)return ce;"string"==typeof ce?ce=[ce]:Array.isArray(ce)||(ce=ce.getAncestors({includeSelf:!0})),this._items=ce.map(mapContextItem)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(ce){const ze=new yt([ce]);return ze._items=[...this._items,...ze._items],ze}getItem(ce){return this._items[ce]}*getNames(){yield*this._items.map((ce=>ce.name))}endsWith(ce){return Array.from(this.getNames()).join(" ").endsWith(ce)}startsWith(ce){return Array.from(this.getNames()).join(" ").startsWith(ce)}}function compileBaseItemRule(ce,ze){const Ve={name:ze,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return copyTypes(ce,Ve),copyProperty(ce,Ve,"allowIn"),copyProperty(ce,Ve,"allowContentOf"),copyProperty(ce,Ve,"allowWhere"),copyProperty(ce,Ve,"allowAttributes"),copyProperty(ce,Ve,"allowAttributesOf"),copyProperty(ce,Ve,"allowChildren"),copyProperty(ce,Ve,"inheritTypesFrom"),makeInheritAllWork(ce,Ve),Ve}function compileAllowChildren(ce,ze){const Ve=ce[ze];for(const qe of Ve.allowChildren){const Ve=ce[qe];Ve&&Ve.allowIn.push(ze)}Ve.allowChildren.length=0}function compileAllowContentOf(ce,ze){for(const Ve of ce[ze].allowContentOf)if(ce[Ve]){getAllowedChildren(ce,Ve).forEach((ce=>{ce.allowIn.push(ze)}))}delete ce[ze].allowContentOf}function compileAllowWhere(ce,ze){for(const Ve of ce[ze].allowWhere){const qe=ce[Ve];if(qe){const Ve=qe.allowIn;ce[ze].allowIn.push(...Ve)}}delete ce[ze].allowWhere}function compileAllowAttributesOf(ce,ze){for(const Ve of ce[ze].allowAttributesOf){const qe=ce[Ve];if(qe){const Ve=qe.allowAttributes;ce[ze].allowAttributes.push(...Ve)}}delete ce[ze].allowAttributesOf}function compileInheritPropertiesFrom(ce,ze){const Ve=ce[ze];for(const ze of Ve.inheritTypesFrom){const qe=ce[ze];if(qe){const ce=Object.keys(qe).filter((ce=>ce.startsWith("is")));for(const ze of ce)ze in Ve||(Ve[ze]=qe[ze])}}delete Ve.inheritTypesFrom}function cleanUpAllowIn(ce,ze){const Ve=ce[ze],qe=Ve.allowIn.filter((ze=>ce[ze]));Ve.allowIn=Array.from(new Set(qe))}function setupAllowChildren(ce,ze){const Ve=ce[ze];for(const qe of Ve.allowIn){ce[qe].allowChildren.push(ze)}}function cleanUpAllowAttributes(ce,ze){const Ve=ce[ze];Ve.allowAttributes=Array.from(new Set(Ve.allowAttributes))}function copyTypes(ce,ze){for(const Ve of ce){const ce=Object.keys(Ve).filter((ce=>ce.startsWith("is")));for(const qe of ce)ze[qe]=Ve[qe]}}function copyProperty(ce,ze,Ve){for(const qe of ce)"string"==typeof qe[Ve]?ze[Ve].push(qe[Ve]):Array.isArray(qe[Ve])&&ze[Ve].push(...qe[Ve])}function makeInheritAllWork(ce,ze){for(const Ve of ce){const ce=Ve.inheritAllFrom;ce&&(ze.allowContentOf.push(ce),ze.allowWhere.push(ce),ze.allowAttributesOf.push(ce),ze.inheritTypesFrom.push(ce))}}function getAllowedChildren(ce,ze){const Ve=ce[ze];return(qe=ce,Object.keys(qe).map((ce=>qe[ce]))).filter((ce=>ce.allowIn.includes(Ve.name)));var qe}function mapContextItem(ce){return"string"==typeof ce||ce.is("documentFragment")?{name:"string"==typeof ce?ce:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:ce.is("element")?ce.name:"$text",*getAttributeKeys(){yield*ce.getAttributeKeys()},getAttribute:ze=>ce.getAttribute(ze)}}function*combineWalkers(ce,ze){let Ve=!1;for(;!Ve;){if(Ve=!0,ce){const ze=ce.next();ze.done||(Ve=!1,yield{walker:ce,value:ze.value})}if(ze){const ce=ze.next();ce.done||(Ve=!1,yield{walker:ze,value:ce.value})}}}function*convertToMinimalFlatRanges(ce){for(const ze of ce)yield*ze.getMinimalFlatRanges()}function removeDisallowedAttributeFromNode(ce,ze,Ve){for(const qe of ze.getAttributeKeys())ce.checkAttribute(ze,qe)||Ve.removeAttribute(qe,ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return findOptimalInsertionRange}));var qe=Ve(283);function findOptimalInsertionRange(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";const Ye=ce.getSelectedElement();if(Ye&&ze.schema.isObject(Ye)&&!ze.schema.isInline(Ye))return["before","after"].includes(Ve)?ze.createRange(ze.createPositionAt(Ye,Ve)):ze.createRangeOn(Ye);const We=Object(qe.a)(ce.getSelectedBlocks());if(!We)return ze.createRange(ce.focus);if(We.isEmpty)return ze.createRange(ze.createPositionAt(We,0));const Qe=ze.createPositionAfter(We);return ce.focus.isTouching(Qe)?ze.createRange(Qe):ze.createRange(ze.createPositionBefore(We))}},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";function*getCopyOnEnterAttributes(ce,ze){for(const Ve of ze)Ve&&ce.getAttributeProperties(Ve[0]).copyOnEnter&&(yield Ve)}Ve.d(ze,"a",(function(){return getCopyOnEnterAttributes}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var qe=Ve(116),Ye=Ve(281),We=Ve(224),Qe=Ve(37);class Xe extends qe.a{constructor(ce){super(ce);const ze=this.document;ze.on("keydown",((ce,Ve)=>{if(this.isEnabled&&Ve.keyCode==Qe.f.enter){const qe=new We.a(ze,"enter",ze.selection.getFirstRange());ze.fire(qe,new Ye.a(ze,Ve.domEvent,{isSoft:Ve.shiftKey})),qe.stop.called&&ce.stop()}}))}observe(){}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));class qe{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;this.model=ce,this.size=0,this.limit=ze,this.isLocked=!1,this._changeCallback=(ce,ze)=>{ze.isLocal&&ze.isUndoable&&ze!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}input(ce){this.size+=ce,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(ce){this.isLocked&&!ce||(this._batch=null,this.size=0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe,Ye,We,Qe=Ve(1),Xe=Ve(9),ot=Ve.n(Xe),st=Ve(259);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=Qe.computed.struct,We=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze,Ve,qe){var Ye,Xe,ot,mt;Ye=this,Xe="innerFormStore",mt=this,(ot=We)&&Object.defineProperty(Ye,Xe,{enumerable:ot.enumerable,configurable:ot.configurable,writable:ot.writable,value:ot.initializer?ot.initializer.call(mt):void 0}),Promise.all([st.a.getSchema(ze,Ve,qe),st.a.getJsonSchema(ze,Ve,qe)]).then(Object(Qe.action)((ze=>{let[Ve,qe]=ze;this.innerFormStore=ce(Ve,qe)})))}change(ce,ze,Ve){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{var qe;null===(qe=this.innerFormStore)||void 0===qe||qe.change(ce,ze,Ve)}))}changeType(ce,ze){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(Qe.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"data",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"data"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"dirty",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"dirty"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasErrors",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasErrors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"forbidden",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"forbidden"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasInvalidType",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasInvalidType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loading",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"metadataOptions",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"metadataOptions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"options",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"options"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"resourceKey",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"schema",[qe],Object.getOwnPropertyDescriptor(Ye.prototype,"schema"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"types",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"types"),Ye.prototype),Ye)},function(ce,ze,Ve){!function webpackUniversalModuleDefinition(ze,qe){ce.exports=qe(Ve(1942),Ve(2),Ve(0),Ve(44))}(0,(function(ce,ze,Ve,qe){return function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,__webpack_require__),qe.l=!0,qe.exports}return __webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)__webpack_require__.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s="./index.js")}({"./index.js":function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve("react"),Ye=Ve.n(qe),We=Ve("react-dom"),Qe=Ve.n(We),Xe=Ve("prop-types"),ot=Ve.n(Xe);function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(ce){return typeof ce}:function _typeof(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}function _objectSpread(ce){for(var ze=1;ze1&&void 0!==arguments[1]&&arguments[1],Ve={};return Object.keys(this.props).forEach((function(qe){if(-1!==qe.search(ce)){var Ye=ze?qe.replace(ce,""):qe;Ve[Ye]=this.props[qe]}}),this),Ve}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.clipboard&&this.clipboard.destroy()}},{key:"componentDidMount",value:function componentDidMount(){var ce=this.props.options||this.propsWith(/^option-/,!0),ze=Qe.a.findDOMNode(this.element);if(ze){var qe=Ve("clipboard");this.clipboard=new qe(ze,ce);var Ye=this.propsWith(/^on/,!0);Object.keys(Ye).forEach((function(ce){this.clipboard.on(ce.toLowerCase(),this.props["on"+ce])}),this)}}},{key:"render",value:function render(){var ce=this,ze=_objectSpread({title:this.props.title||"",type:this.getType(),className:this.props.className||"",style:this.props.style||{},ref:function ref(ze){return ce.element=ze},onClick:this.props.onClick},this.propsWith(/^data-/),this.propsWith(/^button-/,!0)),qe=Ve("clipboard");return this.props.isVisibleWhenUnsupported||qe.isSupported()?Ye.a.createElement(this.getComponent(),ze,this.props.children):null}},{key:"getType",value:function getType(){return"button"===this.getComponent()||"input"===this.getComponent()?this.props.type||"button":void 0}},{key:"getComponent",value:function getComponent(){return this.props.component||"button"}}],qe&&_defineProperties(ze.prototype,qe),We&&_defineProperties(ze,We),ClipboardButton}(Ye.a.Component);_defineProperty(st,"propTypes",{options:function options(ce,ze,Ve){var options=ce[ze];if(options&&"object"!==_typeof(options)||Array.isArray(options))return new Error("Invalid props '".concat(ze,"' supplied to '").concat(Ve,"'. ")+"'".concat(ze,"' is not an object."));if(void 0!==ce["option-text"]&&"function"!=typeof ce["option-text"])return new Error("Invalid props 'option-text' supplied to '".concat(Ve,"'. ")+"'option-text' is not a function.")},title:ot.a.string,type:ot.a.string,className:ot.a.string,style:ot.a.object,component:ot.a.any,children:ot.a.any}),_defineProperty(st,"defaultProps",{isVisibleWhenUnsupported:!0,onClick:function onClick(){}}),ze.default=st},clipboard:function(ze,Ve){ze.exports=ce},"prop-types":function(ce,Ve){ce.exports=ze},react:function(ce,ze){ce.exports=Ve},"react-dom":function(ce,ze){ce.exports=qe}})}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vs}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(21),Qe=Ve.n(We),Xe=function calculateChange(ce,ze,Ve,qe,Ye){var We=Ye.clientWidth,Qe=Ye.clientHeight,Xe="number"==typeof ce.pageX?ce.pageX:ce.touches[0].pageX,ot="number"==typeof ce.pageY?ce.pageY:ce.touches[0].pageY,st=Xe-(Ye.getBoundingClientRect().left+window.pageXOffset),mt=ot-(Ye.getBoundingClientRect().top+window.pageYOffset);if("vertical"===Ve){var gt=void 0;if(gt=mt<0?0:mt>Qe?1:Math.round(100*mt/Qe)/100,ze.a!==gt)return{h:ze.h,s:ze.s,l:ze.l,a:gt,source:"rgb"}}else{var yt=void 0;if(qe!==(yt=st<0?0:st>We?1:Math.round(100*st/We)/100))return{h:ze.h,s:ze.s,l:ze.l,a:yt,source:"rgb"}}return null},ot={},st=function render(ce,ze,Ve,qe){if("undefined"==typeof document&&!qe)return null;var Ye=qe?new qe:document.createElement("canvas");Ye.width=2*Ve,Ye.height=2*Ve;var We=Ye.getContext("2d");return We?(We.fillStyle=ce,We.fillRect(0,0,Ye.width,Ye.height),We.fillStyle=ze,We.fillRect(0,0,Ve,Ve),We.translate(Ve,Ve),We.fillRect(0,0,Ve,Ve),Ye.toDataURL()):null},mt=function get(ce,ze,Ve,qe){var Ye=ce+"-"+ze+"-"+Ve+(qe?"-server":"");if(ot[Ye])return ot[Ye];var We=st(ce,ze,Ve,qe);return ot[Ye]=We,We},gt=Object.assign||function(ce){for(var ze=1;ze-1},Et=function getNumberValue(ce){return Number(String(ce).replace(/%/g,""))},Pt=1,Tt=function(ce){function EditableInput(ce){EditableInput_classCallCheck(this,EditableInput);var ze=EditableInput_possibleConstructorReturn(this,(EditableInput.__proto__||Object.getPrototypeOf(EditableInput)).call(this));return ze.handleBlur=function(){ze.state.blurValue&&ze.setState({value:ze.state.blurValue,blurValue:null})},ze.handleChange=function(ce){ze.setUpdatedValue(ce.target.value,ce)},ze.handleKeyDown=function(ce){var Ve=Et(ce.target.value);if(!isNaN(Ve)&&xt(ce.keyCode)){var qe=ze.getArrowOffset(),Ye=38===ce.keyCode?Ve+qe:Ve-qe;ze.setUpdatedValue(Ye,ce)}},ze.handleDrag=function(ce){if(ze.props.dragLabel){var Ve=Math.round(ze.props.value+ce.movementX);Ve>=0&&Ve<=ze.props.dragMax&&ze.props.onChange&&ze.props.onChange(ze.getValueObjectWithLabel(Ve),ce)}},ze.handleMouseDown=function(ce){ze.props.dragLabel&&(ce.preventDefault(),ze.handleDrag(ce),window.addEventListener("mousemove",ze.handleDrag),window.addEventListener("mouseup",ze.handleMouseUp))},ze.handleMouseUp=function(){ze.unbindEventListeners()},ze.unbindEventListeners=function(){window.removeEventListener("mousemove",ze.handleDrag),window.removeEventListener("mouseup",ze.handleMouseUp)},ze.state={value:String(ce.value).toUpperCase(),blurValue:String(ce.value).toUpperCase()},ze.inputId="rc-editable-input-"+Pt++,ze}return EditableInput_inherits(EditableInput,ce),kt(EditableInput,[{key:"componentDidUpdate",value:function componentDidUpdate(ce,ze){this.props.value===this.state.value||ce.value===this.props.value&&ze.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function getValueObjectWithLabel(ce){return _defineProperty({},this.props.label,ce)}},{key:"getArrowOffset",value:function getArrowOffset(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function setUpdatedValue(ce,ze){var Ve=this.props.label?this.getValueObjectWithLabel(ce):ce;this.props.onChange&&this.props.onChange(Ve,ze),this.setState({value:ce})}},{key:"render",value:function render(){var ce=this,ze=Qe()({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Ye.a.createElement("div",{style:ze.wrap},Ye.a.createElement("input",{id:this.inputId,style:ze.input,ref:function ref(ze){return ce.input=ze},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Ye.a.createElement("label",{htmlFor:this.inputId,style:ze.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),EditableInput}(qe.PureComponent||qe.Component),Lt=function calculateChange(ce,ze,Ve,qe){var Ye=qe.clientWidth,We=qe.clientHeight,Qe="number"==typeof ce.pageX?ce.pageX:ce.touches[0].pageX,Xe="number"==typeof ce.pageY?ce.pageY:ce.touches[0].pageY,ot=Qe-(qe.getBoundingClientRect().left+window.pageXOffset),st=Xe-(qe.getBoundingClientRect().top+window.pageYOffset);if("vertical"===ze){var mt=void 0;if(st<0)mt=359;else if(st>We)mt=0;else{mt=360*(-100*st/We+100)/100}if(Ve.h!==mt)return{h:mt,s:Ve.s,l:Ve.l,a:Ve.a,source:"hsl"}}else{var gt=void 0;if(ot<0)gt=0;else if(ot>Ye)gt=359;else{gt=360*(100*ot/Ye)/100}if(Ve.h!==gt)return{h:gt,s:Ve.s,l:Ve.l,a:Ve.a,source:"hsl"}}return null},Ft=function(){function defineProperties(ce,ze){for(var Ve=0;VeYe&&(ot=Ye),st<0?st=0:st>We&&(st=We);var mt=ot/Ye,gt=1-st/We;return{h:ze.h,s:mt,v:gt,a:ze.a,source:"hsv"}},ln=function(){function defineProperties(ce,ze){for(var Ve=0;Ve=128?"#000":"#fff"},si=function isvalidColorString(ce,ze){var Ve=ce.replace("°","");return Kn()(ze+" ("+Ve+")")._ok},_i=Object.assign||function(ce){for(var ze=1;ze1&&void 0!==arguments[1]?arguments[1]:"span";return function(Ve){function Focus(){var ce,ze,Ve;interaction_classCallCheck(this,Focus);for(var qe=arguments.length,Ye=Array(qe),We=0;We1&&(ce.a=1),ze.props.onChange({h:ze.props.hsl.h,s:ze.props.hsl.s,l:ze.props.hsl.l,a:Math.round(100*ce.a)/100,source:"rgb"},Ve)):(ce.h||ce.s||ce.l)&&("string"==typeof ce.s&&ce.s.includes("%")&&(ce.s=ce.s.replace("%","")),"string"==typeof ce.l&&ce.l.includes("%")&&(ce.l=ce.l.replace("%","")),1==ce.s?ce.s=.01:1==ce.l&&(ce.l=.01),ze.props.onChange({h:ce.h||ze.props.hsl.h,s:Number(ko(ce.s)?ze.props.hsl.s:ce.s),l:Number(ko(ce.l)?ze.props.hsl.l:ce.l),source:"hsl"},Ve))},ze.showHighlight=function(ce){ce.currentTarget.style.background="#eee"},ze.hideHighlight=function(ce){ce.currentTarget.style.background="transparent"},1!==ce.hsl.a&&"hex"===ce.view?ze.state={view:"rgb"}:ze.state={view:ce.view},ze}return ChromeFields_inherits(ChromeFields,ce),To(ChromeFields,[{key:"render",value:function render(){var ce=this,ze=Qe()({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),Ve=void 0;return"hex"===this.state.view?Ve=Ye.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?Ve=Ye.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.alpha},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(Ve=Ye.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.field},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),Ye.a.createElement("div",{style:ze.alpha},Ye.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),Ye.a.createElement("div",{style:ze.wrap,className:"flexbox-fix"},Ve,Ye.a.createElement("div",{style:ze.toggle},Ye.a.createElement("div",{style:ze.icon,onClick:this.toggleViews,ref:function ref(ze){return ce.icon=ze}},Ye.a.createElement(Po.a,{style:ze.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){return 1!==ce.hsl.a&&"hex"===ze.view?{view:"rgb"}:null}}]),ChromeFields}(Ye.a.Component);Ao.defaultProps={view:"hex"};var jo=Ao,Fo=function ChromePointer(){var ce=Qe()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return Ye.a.createElement("div",{style:ce.picker})},Bo=function ChromePointerCircle(){var ce=Qe()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return Ye.a.createElement("div",{style:ce.picker})},Vo=function Chrome(ce){var ze=ce.width,Ve=ce.onChange,qe=ce.disableAlpha,We=ce.rgb,Xe=ce.hsl,ot=ce.hsv,st=ce.hex,mt=ce.renderers,gt=ce.styles,yt=void 0===gt?{}:gt,vt=ce.className,wt=void 0===vt?"":vt,Ct=ce.defaultView,kt=Qe()(Object(Wt.a)({default:{picker:{width:ze,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+We.r+", "+We.g+", "+We.b+", "+We.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},yt),{disableAlpha:qe});return Ye.a.createElement("div",{style:kt.picker,className:"chrome-picker "+wt},Ye.a.createElement("div",{style:kt.saturation},Ye.a.createElement(mn,{style:kt.Saturation,hsl:Xe,hsv:ot,pointer:Bo,onChange:Ve})),Ye.a.createElement("div",{style:kt.body},Ye.a.createElement("div",{style:kt.controls,className:"flexbox-fix"},Ye.a.createElement("div",{style:kt.color},Ye.a.createElement("div",{style:kt.swatch},Ye.a.createElement("div",{style:kt.active}),Ye.a.createElement(bt,{renderers:mt}))),Ye.a.createElement("div",{style:kt.toggles},Ye.a.createElement("div",{style:kt.hue},Ye.a.createElement(Vt,{style:kt.Hue,hsl:Xe,pointer:Fo,onChange:Ve})),Ye.a.createElement("div",{style:kt.alpha},Ye.a.createElement(Dt,{style:kt.Alpha,rgb:We,hsl:Xe,pointer:Fo,renderers:mt,onChange:Ve})))),Ye.a.createElement(jo,{rgb:We,hsl:Xe,hex:st,view:Ct,onChange:Ve,disableAlpha:qe})))};Vo.propTypes={width:Ut.a.oneOfType([Ut.a.string,Ut.a.number]),disableAlpha:Ut.a.bool,styles:Ut.a.object,defaultView:Ut.a.oneOf(["hex","rgb","hsl"])},Vo.defaultProps={width:225,disableAlpha:!1,styles:{}};Ci(Vo);var Ho=function CompactColor(ce){var ze=ce.color,Ve=ce.onClick,qe=void 0===Ve?function(){}:Ve,We=ce.onSwatchHover,Xe=ce.active,ot=Qe()({default:{color:{background:ze,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:ei(ze),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:Xe,"color-#FFFFFF":"#FFFFFF"===ze,transparent:"transparent"===ze});return Ye.a.createElement(Ti,{style:ot.color,color:ze,onClick:qe,onHover:We,focusStyle:{boxShadow:"0 0 4px "+ze}},Ye.a.createElement("div",{style:ot.dot}))},Uo=function CompactFields(ce){var ze=ce.hex,Ve=ce.rgb,qe=ce.onChange,We=Qe()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:ze},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),Xe=function handleChange(ce,ze){ce.r||ce.g||ce.b?qe({r:ce.r||Ve.r,g:ce.g||Ve.g,b:ce.b||Ve.b,source:"rgb"},ze):qe({hex:ce.hex,source:"hex"},ze)};return Ye.a.createElement("div",{style:We.fields,className:"flexbox-fix"},Ye.a.createElement("div",{style:We.active}),Ye.a.createElement(Tt,{style:{wrap:We.HEXwrap,input:We.HEXinput,label:We.HEXlabel},label:"hex",value:ze,onChange:Xe}),Ye.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"r",value:Ve.r,onChange:Xe}),Ye.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"g",value:Ve.g,onChange:Xe}),Ye.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"b",value:Ve.b,onChange:Xe}))},Wo=function Compact(ce){var ze=ce.onChange,Ve=ce.onSwatchHover,qe=ce.colors,We=ce.hex,Xe=ce.rgb,ot=ce.styles,st=void 0===ot?{}:ot,mt=ce.className,gt=void 0===mt?"":mt,yt=Qe()(Object(Wt.a)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},st)),bt=function handleChange(ce,Ve){ce.hex?Xn(ce.hex)&&ze({hex:ce.hex,source:"hex"},Ve):ze(ce,Ve)};return Ye.a.createElement(Qt,{style:yt.Compact,styles:st},Ye.a.createElement("div",{style:yt.compact,className:"compact-picker "+gt},Ye.a.createElement("div",null,Ur(qe,(function(ce){return Ye.a.createElement(Ho,{key:ce,color:ce,active:ce.toLowerCase()===We,onClick:bt,onSwatchHover:Ve})})),Ye.a.createElement("div",{style:yt.clear})),Ye.a.createElement(Uo,{hex:We,rgb:Xe,onChange:bt})))};Wo.propTypes={colors:Ut.a.arrayOf(Ut.a.string),styles:Ut.a.object},Wo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};Ci(Wo);var $o=Object(We.handleHover)((function GithubSwatch(ce){var ze=ce.hover,Ve=ce.color,qe=ce.onClick,We=ce.onSwatchHover,Xe={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},ot=Qe()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:Xe}},{hover:ze});return Ye.a.createElement("div",{style:ot.swatch},Ye.a.createElement(Ti,{color:Ve,onClick:qe,onHover:We,focusStyle:Xe}))})),es=function Github(ce){var ze=ce.width,Ve=ce.colors,qe=ce.onChange,We=ce.onSwatchHover,Xe=ce.triangle,ot=ce.styles,st=void 0===ot?{}:ot,mt=ce.className,gt=void 0===mt?"":mt,yt=Qe()(Object(Wt.a)({default:{card:{width:ze,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},st),{"hide-triangle":"hide"===Xe,"top-left-triangle":"top-left"===Xe,"top-right-triangle":"top-right"===Xe,"bottom-left-triangle":"bottom-left"===Xe,"bottom-right-triangle":"bottom-right"===Xe}),bt=function handleChange(ce,ze){return qe({hex:ce,source:"hex"},ze)};return Ye.a.createElement("div",{style:yt.card,className:"github-picker "+gt},Ye.a.createElement("div",{style:yt.triangleShadow}),Ye.a.createElement("div",{style:yt.triangle}),Ur(Ve,(function(ce){return Ye.a.createElement($o,{color:ce,key:ce,onClick:bt,onSwatchHover:We})})))};es.propTypes={width:Ut.a.oneOfType([Ut.a.string,Ut.a.number]),colors:Ut.a.arrayOf(Ut.a.string),triangle:Ut.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Ut.a.object},es.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};Ci(es);var ts=function SliderPointer(ce){var ze=ce.direction,Ve=Qe()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===ze});return Ye.a.createElement("div",{style:Ve.picker})},ns=Object.assign||function(ce){for(var ze=1;ze.5});return Ye.a.createElement("div",{style:Ve.picker})},ls=function PhotoshopPointerCircle(){var ce=Qe()({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return Ye.a.createElement("div",{style:ce.pointer},Ye.a.createElement("div",{style:ce.left},Ye.a.createElement("div",{style:ce.leftInside})),Ye.a.createElement("div",{style:ce.right},Ye.a.createElement("div",{style:ce.rightInside})))},cs=function PhotoshopButton(ce){var ze=ce.onClick,Ve=ce.label,qe=ce.children,We=ce.active,Xe=Qe()({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:We});return Ye.a.createElement("div",{style:Xe.button,onClick:ze},Ve||qe)},ds=function PhotoshopPreviews(ce){var ze=ce.rgb,Ve=ce.currentColor,qe=Qe()({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+ze.r+","+ze.g+", "+ze.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:Ve,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return Ye.a.createElement("div",null,Ye.a.createElement("div",{style:qe.label},"new"),Ye.a.createElement("div",{style:qe.swatches},Ye.a.createElement("div",{style:qe.new}),Ye.a.createElement("div",{style:qe.current})),Ye.a.createElement("div",{style:qe.label},"current"))},us=function(){function defineProperties(ce,ze){for(var Ve=0;Ve100&&(ce.a=100),ce.a/=100,ze({h:qe.h,s:qe.s,l:qe.l,a:ce.a,source:"rgb"},Ye))};return Ye.a.createElement("div",{style:ot.fields,className:"flexbox-fix"},Ye.a.createElement("div",{style:ot.double},Ye.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"hex",value:We.replace("#",""),onChange:st})),Ye.a.createElement("div",{style:ot.single},Ye.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"r",value:Ve.r,onChange:st,dragLabel:"true",dragMax:"255"})),Ye.a.createElement("div",{style:ot.single},Ye.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"g",value:Ve.g,onChange:st,dragLabel:"true",dragMax:"255"})),Ye.a.createElement("div",{style:ot.single},Ye.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"b",value:Ve.b,onChange:st,dragLabel:"true",dragMax:"255"})),Ye.a.createElement("div",{style:ot.alpha},Ye.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"a",value:Math.round(100*Ve.a),onChange:st,dragLabel:"true",dragMax:"100"})))},fs=Object.assign||function(ce){for(var ze=1;ze{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Xe.a.createElement(mt.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Xe.a.createElement(mt.b,{key:ce,value:ce},Object(st.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(st.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(bt.prototype,"parameterOptions",[vt.computed],Object.getOwnPropertyDescriptor(bt.prototype,"parameterOptions"),bt.prototype);var wt,Ct=Ve(35),Dt="number-field-filter-type--3EVeRRFeU+";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const kt={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((wt=class extends We.a{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:Dt},Xe.a.createElement(Ct.a,{onChange:this.handleOperatorChange,value:this.operator},Xe.a.createElement(Ct.a.Option,{value:"lt"},kt.lt),Xe.a.createElement(Ct.a.Option,{value:"eq"},kt.eq),Xe.a.createElement(Ct.a.Option,{value:"gt"},kt.gt)),Xe.a.createElement(ot.default,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((kt[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[vt.computed],Object.getOwnPropertyDescriptor(wt.prototype,"operator"),wt.prototype),NumberFieldFilterType_applyDecoratedDescriptor(wt.prototype,"number",[vt.computed],Object.getOwnPropertyDescriptor(wt.prototype,"number"),wt.prototype);var St,xt,Et,Pt=Ve(22),Tt=Ve.n(Pt),Lt=Ve(27),Ft=Ve(190),Bt=Ve(387),Vt=Ve(506).default,Ht="selection-field-filter-type--d8pY3h7O6f";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Ut="auto_complete";St=class extends We.a{get type(){return this.parameters&&(this.parameters.type||Ut)}constructor(ce,ze,Ve){super(ce,ze,Ve),_initializerDefineProperty(this,"selectValue",xt,this),_initializerDefineProperty(this,"setSelectValue",Et,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new Ft.a(this.resourceKey,[],vt.observable.box(Lt.a.contentLocale)),this.selectionStoreDisposer=Object(vt.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(vt.autorun)((()=>{const ce=Object(vt.toJS)(this.value||[]);Tt()(ce,Object(vt.untracked)((()=>Object(vt.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),Tt()(ce,Object(vt.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:Ht},this.type===Ut&&Xe.a.createElement(Bt.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Xe.a.createElement(Vt,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(vt.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}},xt=SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"selectValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"type",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"type"),St.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"resourceKey",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"resourceKey"),St.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"displayProperty",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"displayProperty"),St.prototype),Et=SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"setSelectValue",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(651);var Wt,Jt,Qt=Ve(3),en=Ve(537).default,rn=Ve(357),ln=Ve(172),mn=Ve(49);Ve(78);class gn{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class bn extends gn{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),mn.a.getList(ce,{...ze}).then(Object(vt.action)((ze=>{const qe=ze._embedded[ce];return this.structureStrategy.clear(Ve),qe.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let wn=(Jt=ColumnStructureStrategy_applyDecoratedDescriptor((Wt=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,qe;ce=this,ze="rawData",qe=this,(Ve=Jt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const qe=this.rawData.get(Ve);if(qe)for(const Ye of qe.keys()){const We=qe[Ye].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),qe.splice(Ye,1),0===qe.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const qe=this.rawData.get(Ve);if(!qe)continue;const Ye=qe.findIndex((ze=>ze.id===ce));if(-1!==Ye)return void this.rawData.set(Ve,Object(yt.a)(qe,Ye,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const qe=Object.keys(ce._embedded)[0],Ye=ce._embedded[qe];Object(vt.isArrayLike)(Ye)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),Ye.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"visibleItems"),Wt.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"activeItems",[vt.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"activeItems"),Wt.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"data",[vt.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"data"),Wt.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"remove",[vt.action],Object.getOwnPropertyDescriptor(Wt.prototype,"remove"),Wt.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(Wt.prototype,"order"),Wt.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Wt.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(Wt.prototype,"clear"),Wt.prototype),Wt);var Cn,Sn,En,Tn,Ln,Fn,Yn=Ve(214),Un="column-list-adapter--07ebloGQxG";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Qt.b)((Fn=class extends Yn.a{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",En,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Tn,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",Ln,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:qe}=this.props;if(!qe)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const Ye=Ve[this.orderColumn].length;return ze>Ye&&(ze=Ye),qe(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Xe.a.createElement(rn.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Xe.a.createElement(gt.default,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Xe.a.createElement(gt.default,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Xe.a.createElement(gt.default,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Xe.a.createElement(gt.default,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,qe=!!ce.published;!Ve&&qe||ze.push(Xe.a.createElement(ln.a,{draft:Ve,key:"publish",published:qe}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,qe=!!ce.ghostLocale,Ye=[],{_permissions:{view:We=!0,edit:Qe=!0}={}}=ce;if(ze){const ce=qe?"su-plus-circle":Qe?"su-pen":"su-eye";Ye.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};Ye.push(ce)}return Ye},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:qe,onItemAdd:Ye,onRequestItemCopy:We,onRequestItemDelete:Qe,onRequestItemMove:Xe,onRequestItemOrder:ot}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(vt.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=qe[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:wt=!0}={}}=yt||{};Ye&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{Ye(ze[ce])}});const Ct=void 0!==ze[ce+1],Dt=qe[ce],kt=Dt?Dt.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:St=!0,edit:xt=!0}={}}=kt||{},Et=[];return Qe&&Et.push({disabled:!Ct||!St,label:Object(st.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),Xe&&Et.push({disabled:!Ct||!xt,label:Object(st.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),We&&Et.push({disabled:!Ct||!xt,label:Object(st.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");We(Ve)}}),ot&&Et.push({disabled:!wt,label:Object(st.b)("sulu_admin.order"),onClick:Object(vt.action)((()=>{this.orderColumn=ce}))}),Et.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:Et}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:qe}=this.props;return Xe.a.createElement("div",{className:Un},Xe.a.createElement(en,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((Ye,We)=>Xe.a.createElement(en.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},Ye.map(((Ve,Ye)=>Xe.a.createElement(en.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:Ye+1,selected:qe.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},Fn.LoadingStrategy=bn,Fn.StructureStrategy=wn,Fn.icon="su-columns",Fn.searchable=!1,Fn.paginatable=!1,Fn.defaultProps={data:[]},En=ColumnListAdapter_applyDecoratedDescriptor((Sn=Fn).prototype,"orderColumn",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=ColumnListAdapter_applyDecoratedDescriptor(Sn.prototype,"handleItemClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),Ln=ColumnListAdapter_applyDecoratedDescriptor(Sn.prototype,"handleItemDoubleClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,qe=ze.map((ce=>Object(vt.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:Ye=!0}={}}=qe;Ve&&Ye&&Ve(ce)}}}),Cn=Sn));var Gn,Kn,Jn=Ve(93),Zn=Ve(47);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const qe=ce[Ve];if(qe.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(qe.children,ze)&&0===qe.children.length)return qe.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(yt.a)(Ve,qe,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(Gn.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(Gn.prototype,"visibleItems"),Gn.prototype),TreeStructureStrategy_applyDecoratedDescriptor(Gn.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(Gn.prototype,"order"),Gn.prototype),TreeStructureStrategy_applyDecoratedDescriptor(Gn.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(Gn.prototype,"clear"),Gn.prototype),Gn);var ei,si,_i=Ve(604).default,Ri="publish-indicator--zFi+xstmR4",Ci="ghost-indicator--oYE9ywMoEK";let Di=((si=class extends Yn.a{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const qe=Ye.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),We=[];if(0===Ve)if(ce.ghostLocale)We.push(Xe.a.createElement(rn.a,{className:Ci,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||We.push(Xe.a.createElement(ln.a,{className:Ri,draft:ze,key:"publish",published:Ve}))}return Xe.a.createElement(Jn.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},We,qe)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((qe=>{const Ye=this.schema[qe],We=Ye.label?Ye.label:qe;return Xe.a.createElement(Jn.a.HeaderCell,{key:qe,name:qe,onClick:Ye.sortable?ce:void 0,sortOrder:ze===qe?Ve:void 0,width:this.schema[qe].width},We)}))}}).hasColumnOptions=!0,si.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((ei=si).prototype,"schema",[vt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"schema"),ei.prototype),ei);var Ei,Oi,Ti,er,tr;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(Qt.b)((tr=class extends Di{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",Ti,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",er,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:qe}=this.props,{data:{_permissions:{add:Ye=!0,edit:We=!0,view:Qe=!0}={}}={}}=ce||{},Xe=[];return Ve&&Xe.push({disabled:!Qe,icon:We?"su-pen":"su-eye",onClick:Ve}),qe&&Xe.push({disabled:!Ye,icon:"su-plus-circle",onClick:qe}),ze&&Xe.push(...ze(ce)),Xe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:qe,selections:Ye}=this.props;for(const We of ce){const{data:ce,hasChildren:Qe}=We;Ve.push(Xe.a.createElement(Jn.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:qe.includes(ce.id),expanded:We.children.length>0,hasChildren:Qe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:Ye.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:qe,onAllSelectionChange:Ye,onItemSelectionChange:We,onLimitChange:Qe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&qe)return Xe.a.createElement(Zn.a,null);const vt=Xe.a.createElement(Jn.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Xe.a.createElement(Jn.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(Jn.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Xe.a.createElement(_i,{currentLimit:Ve,currentPage:gt,loading:qe,onLimitChange:Qe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},tr.LoadingStrategy=bn,tr.StructureStrategy=Xn,tr.icon="su-tree-list",Ti=TreeTableAdapter_applyDecoratedDescriptor((Oi=tr).prototype,"handleRowCollapse",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),er=TreeTableAdapter_applyDecoratedDescriptor(Oi.prototype,"handleRowExpand",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),Ei=Oi));var nr,rr;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let ar=(rr=FlatStructureStrategy_applyDecoratedDescriptor((nr=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,qe;ce=this,ze="data",qe=this,(Ve=rr)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(yt.a)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(nr.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(nr.prototype,"visibleItems"),nr.prototype),FlatStructureStrategy_applyDecoratedDescriptor(nr.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(nr.prototype,"clear"),nr.prototype),FlatStructureStrategy_applyDecoratedDescriptor(nr.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(nr.prototype,"order"),nr.prototype),nr);var sr,lr;Object(Qt.b)((lr=class extends Di{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:qe=!0,view:Ye=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!Ye,icon:qe?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Xe.a.createElement(Jn.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:qe,onItemSelectionChange:Ye,onLimitChange:We,onPageChange:Qe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Xe.a.createElement(Jn.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowSelectionChange:Ye,selectMode:Ye?"multiple":void 0,skin:mt},st?Xe.a.createElement(Jn.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(Jn.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Xe.a.createElement(_i,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Qe,totalPages:yt},bt)}},lr.LoadingStrategy=bn,lr.StructureStrategy=ar,lr.icon="su-align-justify",sr=lr));var dr,ur,pr=Ve(605),vr=(Ve(439),pr.default);Object(Qt.b)(((ur=class ce extends Yn.a{static getInfoText(ce){const ze=1===ce.objectCount?Object(st.b)("sulu_admin.object"):Object(st.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:qe,onItemClick:Ye,onLimitChange:We,onPageChange:Qe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Xe.a.createElement(vr,{onFolderClick:Ye},ze.map((ze=>Xe.a.createElement(vr.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Xe.a.createElement(_i,{currentLimit:Ve,currentPage:ot,loading:qe,onLimitChange:We,onPageChange:Qe,totalPages:mt},gt)}}).LoadingStrategy=bn,ur.StructureStrategy=ar,ur.icon="su-folder",ur.defaultProps={data:[]},dr=ur));Ve(277);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qt}));var qe=Ve(18),Ye=Ve(236);function updateNumericAttribute(ce,ze,Ve,qe){ze>(arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)?qe.setAttribute(ce,ze,Ve):qe.removeAttribute(ce,Ve)}function createEmptyTableCell(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=ce.createElement("tableCell",Ve);return ce.insertElement("paragraph",qe),ce.insert(qe,ze),qe}function isHeadingColumnCell(ce,ze){const Ve=ze.parent.parent,qe=parseInt(Ve.getAttribute("headingColumns")||0),{column:Ye}=ce.getCellLocation(ze);return!!qe&&Ye{ze.on(`element:${ce}`,((ce,ze,Ve)=>{if(ze.modelRange&&ze.viewItem.isEmpty){const ce=ze.modelRange.start.nodeAfter,qe=Ve.writer.createPositionAt(ce,0);Ve.writer.insertElement("paragraph",qe)}}),{priority:"low"})}}function getViewTableFromFigure(ce){for(const ze of ce.getChildren())if(ze.is("element","table"))return ze}function scanTable(ce){const ze={headingRows:0,headingColumns:0},Ve=[],qe=[];let Ye;for(const We of Array.from(ce.getChildren()))if("tbody"===We.name||"thead"===We.name||"tfoot"===We.name){"thead"!==We.name||Ye||(Ye=We);const ce=Array.from(We.getChildren()).filter((ce=>ce.is("element","tr")));for(const We of ce)if("thead"===We.parent.name&&We.parent===Ye)ze.headingRows++,Ve.push(We);else{qe.push(We);const ce=scanRowForHeadingColumns(We);ce>ze.headingColumns&&(ze.headingColumns=ce)}}return ze.rows=[...Ve,...qe],ze}function scanRowForHeadingColumns(ce){let ze=0,Ve=0;const qe=Array.from(ce.getChildren()).filter((ce=>"th"===ce.name||"td"===ce.name));for(;Ve1&&void 0!==arguments[1]?arguments[1]:{};this._table=ce,this._startRow=void 0!==ze.row?ze.row:ze.startRow||0,this._endRow=void 0!==ze.row?ze.row:ze.endRow,this._startColumn=void 0!==ze.column?ze.column:ze.startColumn||0,this._endColumn=void 0!==ze.column?ze.column:ze.endColumn,this._includeAllSlots=!!ze.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const ce=this._table.getChild(this._rowIndex);if(!ce||this._isOverEndRow())return{done:!0};if(!ce.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let ze=null;const Ve=this._getSpanned();if(Ve)this._includeAllSlots&&!this._shouldSkipSlot()&&(ze=this._formatOutValue(Ve.cell,Ve.row,Ve.column));else{const Ve=ce.getChild(this._cellIndex);if(!Ve)return this._advanceToNextRow();const qe=parseInt(Ve.getAttribute("colspan")||1),Ye=parseInt(Ve.getAttribute("rowspan")||1);(qe>1||Ye>1)&&this._recordSpans(Ve,Ye,qe),this._shouldSkipSlot()||(ze=this._formatOutValue(Ve)),this._nextCellAtColumn=this._column+qe}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,ze||this.next()}skipRow(ce){this._skipRows.add(ce)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new Xe(this,ce,ze,Ve)}}_shouldSkipSlot(){const ce=this._skipRows.has(this._row),ze=this._rowthis._endColumn;return ce||ze||Ve||qe}_getSpanned(){const ce=this._spannedCells.get(this._row);return ce&&ce.get(this._column)||null}_recordSpans(ce,ze,Ve){const qe={cell:ce,row:this._row,column:this._column};for(let ce=this._row;ce1&&void 0!==arguments[1]?arguments[1]:{};return(Ve,qe)=>{let{writer:Ye}=qe;const We=Ve.getAttribute("headingRows")||0,Qe=[];We>0&&Qe.push(Ye.createContainerElement("thead",null,Ye.createSlot((ce=>ce.is("element","tableRow")&&ce.indexce.is("element","tableRow")&&ce.index>=We))));const Xe=Ye.createContainerElement("figure",{class:"table"},[Ye.createContainerElement("table",null,Qe),Ye.createSlot((ce=>!ce.is("element","tableRow")))]);return ze.asWidget?toTableWidget(Xe,Ye):Xe}}function downcastCell(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(ze,Ve)=>{let{writer:qe}=Ve;const We=ze.parent,Xe=We.parent,ot=Xe.getChildIndex(We),st=new Qe(Xe,{row:ot}),mt=Xe.getAttribute("headingRows")||0,gt=Xe.getAttribute("headingColumns")||0;for(const Ve of st)if(Ve.cell==ze){const ze=Ve.row0&&void 0!==arguments[0]?arguments[0]:{};return(ze,Ve)=>{let{writer:qe,consumable:Ye,mapper:We}=Ve;if(ze.parent.is("element","tableCell")&&isSingleParagraphWithoutAttributes(ze))return ce.asWidget?qe.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(Ye.consume(ze,"insert"),void We.bindElements(ze,We.toViewElement(ze.parent)))}}function isSingleParagraphWithoutAttributes(ce){return 1==ce.parent.childCount&&![...ce.getAttributeKeys()].length}function toTableWidget(ce,ze){return ze.setCustomProperty("table",!0,ce),Object(Ye.d)(ce,ze,{hasSelectionHandle:!0})}class ot extends qe.a{refresh(){const ce=this.editor.model,ze=ce.document.selection,Ve=ce.schema;this.isEnabled=isAllowedInParent(ze,Ve)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=this.editor.plugins.get("TableUtils"),qe=this.editor.config.get("table"),Ye=qe.defaultHeadings.rows,We=qe.defaultHeadings.columns;void 0===ce.headingRows&&Ye&&(ce.headingRows=Ye),void 0===ce.headingColumns&&We&&(ce.headingColumns=We),ze.change((qe=>{const Ye=Ve.createTable(qe,ce);ze.insertObject(Ye,null,null,{findOptimalPosition:"auto"}),qe.setSelection(qe.createPositionAt(Ye.getNodeByPath([0,0,0]),0))}))}}function isAllowedInParent(ce,ze){const Ve=ce.getFirstPosition().parent,qe=Ve===Ve.root?Ve:Ve.parent;return ze.checkChild(qe,"table")}class st extends qe.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.order=ze.order||"below"}refresh(){const ce=this.editor.model.document.selection,ze=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(ce).length;this.isEnabled=ze}execute(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.plugins.get("TableUtils"),qe="above"===this.order,Ye=Ve.getSelectionAffectedTableCells(ze),We=Ve.getRowIndexes(Ye),Qe=qe?We.first:We.last,Xe=Ye[0].findAncestor("table");Ve.insertRows(Xe,{at:qe?Qe:Qe+1,copyStructureFromAbove:!qe})}}class mt extends qe.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.order=ze.order||"right"}refresh(){const ce=this.editor.model.document.selection,ze=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(ce).length;this.isEnabled=ze}execute(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.plugins.get("TableUtils"),qe="left"===this.order,Ye=Ve.getSelectionAffectedTableCells(ze),We=Ve.getColumnIndexes(Ye),Qe=qe?We.first:We.last,Xe=Ye[0].findAncestor("table");Ve.insertColumns(Xe,{columns:1,at:qe?Qe:Qe+1})}}class gt extends qe.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.direction=ze.direction||"horizontally"}refresh(){const ce=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===ce.length}execute(){const ce=this.editor.plugins.get("TableUtils"),ze=ce.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?ce.splitCellHorizontally(ze,2):ce.splitCellVertically(ze,2)}}function cropTableToDimensions(ce,ze,Ve){const{startRow:qe,startColumn:Ye,endRow:We,endColumn:Xe}=ze,ot=Ve.createElement("table"),st=We-qe+1;for(let ce=0;ce2&&void 0!==arguments[2]?arguments[2]:0,endRow:ze-1});for(const ce of qe){const{row:qe,cellHeight:Ye}=ce;qe1&&(ot.rowspan=st);const mt=parseInt(ce.getAttribute("colspan")||1);mt>1&&(ot.colspan=mt);const gt=We+Xe,yt=[...new Qe(Ye,{startRow:We,endRow:gt,includeAllSlots:!0})];let bt,vt=null;for(const ze of yt){const{row:qe,column:Ye,cell:We}=ze;We===ce&&void 0===bt&&(bt=Ye),void 0!==bt&&bt===Ye&&qe===gt&&(vt=createEmptyTableCell(Ve,ze.getPositionBefore(),ot))}return updateNumericAttribute("rowspan",Xe,ce,Ve),vt}function getHorizontallyOverlappingCells(ce,ze){const Ve=[],qe=new Qe(ce);for(const ce of qe){const{column:qe,cellWidth:Ye}=ce;qe1&&(We.colspan=Qe);const Xe=parseInt(ce.getAttribute("rowspan")||1);Xe>1&&(We.rowspan=Xe);const ot=createEmptyTableCell(qe,qe.createPositionAfter(ce),We);return updateNumericAttribute("colspan",Ye,ce,qe),ot}function trimTableCellIfNeeded(ce,ze,Ve,qe,Ye,We){const Qe=parseInt(ce.getAttribute("colspan")||1),Xe=parseInt(ce.getAttribute("rowspan")||1);if(Ve+Qe-1>Ye){updateNumericAttribute("colspan",Ye-Ve+1,ce,We,1)}if(ze+Xe-1>qe){updateNumericAttribute("rowspan",qe-ze+1,ce,We,1)}}function addHeadingsToCroppedTable(ce,ze,Ve,qe,Ye){const We=parseInt(ze.getAttribute("headingRows")||0);if(We>0){updateNumericAttribute("headingRows",We-Ve,ce,Ye,0)}const Qe=parseInt(ze.getAttribute("headingColumns")||0);if(Qe>0){updateNumericAttribute("headingColumns",Qe-qe,ce,Ye,0)}}function removeEmptyColumns(ce,ze){const Ve=ze.getColumns(ce),qe=new Array(Ve).fill(0);for(const{column:ze}of new Qe(ce))qe[ze]++;const Ye=qe.reduce(((ce,ze,Ve)=>ze?ce:[...ce,Ve]),[]);if(Ye.length>0){const Ve=Ye[Ye.length-1];return ze.removeColumns(ce,{at:Ve}),!0}return!1}function removeEmptyRows(ce,ze){const Ve=[],qe=ze.getRows(ce);for(let ze=0;ze0){const qe=Ve[Ve.length-1];return ze.removeRows(ce,{at:qe}),!0}return!1}function removeEmptyRowsColumns(ce,ze){removeEmptyColumns(ce,ze)||removeEmptyRows(ce,ze)}function adjustLastRowIndex(ce,ze){const Ve=Array.from(new Qe(ce,{startColumn:ze.firstColumn,endColumn:ze.lastColumn,row:ze.lastRow}));if(Ve.every((ce=>{let{cellHeight:ze}=ce;return 1===ze})))return ze.lastRow;const qe=Ve[0].cellHeight-1;return ze.lastRow+qe}function adjustLastColumnIndex(ce,ze){const Ve=Array.from(new Qe(ce,{startRow:ze.firstRow,endRow:ze.lastRow,column:ze.lastColumn}));if(Ve.every((ce=>{let{cellWidth:ze}=ce;return 1===ze})))return ze.lastColumn;const qe=Ve[0].cellWidth-1;return ze.lastColumn+qe}class yt extends qe.a{constructor(ce,ze){super(ce),this.direction=ze.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const ce=this._getMergeableCell();this.value=ce,this.isEnabled=!!ce}execute(){const ce=this.editor.model,ze=ce.document,Ve=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(ze.selection)[0],qe=this.value,Ye=this.direction;ce.change((ce=>{const ze="right"==Ye||"down"==Ye,We=ze?Ve:qe,Qe=ze?qe:Ve,Xe=Qe.parent;mergeTableCells(Qe,We,ce);const ot=this.isHorizontal?"colspan":"rowspan",st=parseInt(Ve.getAttribute(ot)||1),mt=parseInt(qe.getAttribute(ot)||1);ce.setAttribute(ot,st+mt,We),ce.setSelection(ce.createRangeIn(We));const gt=this.editor.plugins.get("TableUtils");removeEmptyRowsColumns(Xe.findAncestor("table"),gt)}))}_getMergeableCell(){const ce=this.editor.model.document,ze=this.editor.plugins.get("TableUtils"),Ve=ze.getTableCellsContainingSelection(ce.selection)[0];if(!Ve)return;const qe=this.isHorizontal?getHorizontalCell(Ve,this.direction,ze):getVerticalCell(Ve,this.direction,ze);if(!qe)return;const Ye=this.isHorizontal?"rowspan":"colspan",We=parseInt(Ve.getAttribute(Ye)||1);return parseInt(qe.getAttribute(Ye)||1)===We?qe:void 0}}function getHorizontalCell(ce,ze,Ve){const qe=ce.parent.parent,Ye="right"==ze?ce.nextSibling:ce.previousSibling,We=(qe.getAttribute("headingColumns")||0)>0;if(!Ye)return;const Qe="right"==ze?ce:Ye,Xe="right"==ze?Ye:ce,{column:ot}=Ve.getCellLocation(Qe),{column:st}=Ve.getCellLocation(Xe),mt=parseInt(Qe.getAttribute("colspan")||1),gt=isHeadingColumnCell(Ve,Qe),yt=isHeadingColumnCell(Ve,Xe);if(We&>!=yt)return;return ot+mt===st?Ye:void 0}function getVerticalCell(ce,ze,Ve){const qe=ce.parent,Ye=qe.parent,We=Ye.getChildIndex(qe);if("down"==ze&&We===Ve.getRows(Ye)-1||"up"==ze&&0===We)return;const Xe=parseInt(ce.getAttribute("rowspan")||1),ot=Ye.getAttribute("headingRows")||0;if(ot&&("down"==ze&&We+Xe===ot||"up"==ze&&We===ot))return;const st=parseInt(ce.getAttribute("rowspan")||1),mt="down"==ze?We+st:We,gt=[...new Qe(Ye,{endRow:mt})],yt=gt.find((ze=>ze.cell===ce)).column,bt=gt.find((ce=>{let{row:Ve,cellHeight:qe,column:Ye}=ce;return Ye===yt&&("down"==ze?Ve===mt:mt===Ve+qe)}));return bt&&bt.cell}function mergeTableCells(ce,ze,Ve){isEmpty(ce)||(isEmpty(ze)&&Ve.remove(Ve.createRangeIn(ze)),Ve.move(Ve.createRangeIn(ce),Ve.createPositionAt(ze,"end"))),Ve.remove(ce)}function isEmpty(ce){return 1==ce.childCount&&ce.getChild(0).is("element","paragraph")&&ce.getChild(0).isEmpty}class bt extends qe.a{refresh(){const ce=this.editor.plugins.get("TableUtils"),ze=ce.getSelectionAffectedTableCells(this.editor.model.document.selection),Ve=ze[0];if(Ve){const qe=Ve.findAncestor("table"),Ye=this.editor.plugins.get("TableUtils").getRows(qe)-1,We=ce.getRowIndexes(ze),Qe=0===We.first&&We.last===Ye;this.isEnabled=!Qe}else this.isEnabled=!1}execute(){const ce=this.editor.model,ze=this.editor.plugins.get("TableUtils"),Ve=ze.getSelectionAffectedTableCells(ce.document.selection),qe=ze.getRowIndexes(Ve),Ye=Ve[0],We=Ye.findAncestor("table"),Qe=ze.getCellLocation(Ye).column;ce.change((ce=>{const Ve=qe.last-qe.first+1;ze.removeRows(We,{at:qe.first,rows:Ve});const Ye=getCellToFocus(We,qe.first,Qe,ze.getRows(We));ce.setSelection(ce.createPositionAt(Ye,0))}))}}function getCellToFocus(ce,ze,Ve,qe){const Ye=ce.getChild(Math.min(ze,qe-1));let We=Ye.getChild(0),Qe=0;for(const ce of Ye.getChildren()){if(Qe>Ve)return We;We=ce,Qe+=parseInt(ce.getAttribute("colspan")||1)}return We}class vt extends qe.a{refresh(){const ce=this.editor.plugins.get("TableUtils"),ze=ce.getSelectionAffectedTableCells(this.editor.model.document.selection),Ve=ze[0];if(Ve){const qe=Ve.findAncestor("table"),Ye=ce.getColumns(qe),{first:We,last:Qe}=ce.getColumnIndexes(ze);this.isEnabled=Qe-Wece.cell===ze)).column,last:Ye.find((ce=>ce.cell===Ve)).column},Xe=removecolumncommand_getCellToFocus(Ye,ze,Ve,We);this.editor.model.change((ce=>{const ze=We.last-We.first+1;this.editor.plugins.get("TableUtils").removeColumns(qe,{at:We.first,columns:ze}),ce.setSelection(ce.createPositionAt(Xe,0))}))}}function removecolumncommand_getCellToFocus(ce,ze,Ve,qe){return parseInt(Ve.getAttribute("colspan")||1)>1?Ve:ze.previousSibling||Ve.nextSibling?Ve.nextSibling||ze.previousSibling:qe.first?ce.reverse().find((ce=>{let{column:ze}=ce;return ze{let{column:ze}=ce;return ze>qe.last})).cell}function getBoundaryCells(ce,ze){const Ve=ze.getSelectionAffectedTableCells(ce),qe=Ve[0],Ye=Ve.pop(),We=[qe,Ye];return qe.isBefore(Ye)?We:We.reverse()}class wt extends qe.a{refresh(){const ce=this.editor.plugins.get("TableUtils"),ze=this.editor.model,Ve=ce.getSelectionAffectedTableCells(ze.document.selection),qe=Ve.length>0;this.isEnabled=qe,this.value=qe&&Ve.every((ce=>this._isInHeading(ce,ce.parent.parent)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const ce=this.editor.plugins.get("TableUtils"),ze=this.editor.model,Ve=ce.getSelectionAffectedTableCells(ze.document.selection),qe=Ve[0].findAncestor("table"),{first:Ye,last:We}=ce.getRowIndexes(Ve),Qe=this.value?Ye:We+1,Xe=qe.getAttribute("headingRows")||0;ze.change((ce=>{if(Qe){const ze=getVerticallyOverlappingCells(qe,Qe,Qe>Xe?Xe:0);for(const{cell:Ve}of ze)splitHorizontally(Ve,Qe,ce)}updateNumericAttribute("headingRows",Qe,qe,ce,0)}))}_isInHeading(ce,ze){const Ve=parseInt(ze.getAttribute("headingRows")||0);return!!Ve&&ce.parent.index0;this.isEnabled=qe,this.value=qe&&Ve.every((ce=>isHeadingColumnCell(ze,ce)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const ce=this.editor.plugins.get("TableUtils"),ze=this.editor.model,Ve=ce.getSelectionAffectedTableCells(ze.document.selection),qe=Ve[0].findAncestor("table"),{first:Ye,last:We}=ce.getColumnIndexes(Ve),Qe=this.value?Ye:We+1;ze.change((ce=>{if(Qe){const ze=getHorizontallyOverlappingCells(qe,Qe);for(const{cell:Ve,column:qe}of ze)splitVertically(Ve,qe,Qe,ce)}updateNumericAttribute("headingColumns",Qe,qe,ce,0)}))}}class Dt extends qe.f{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(ce){const ze=ce.parent,Ve=ze.parent,qe=Ve.getChildIndex(ze),Ye=new Qe(Ve,{row:qe});for(const{cell:ze,row:Ve,column:qe}of Ye)if(ze===ce)return{row:Ve,column:qe}}createTable(ce,ze){const Ve=ce.createElement("table"),qe=parseInt(ze.rows)||2,Ye=parseInt(ze.columns)||2;return createEmptyRows(ce,Ve,0,qe,Ye),ze.headingRows&&updateNumericAttribute("headingRows",Math.min(ze.headingRows,qe),Ve,ce,0),ze.headingColumns&&updateNumericAttribute("headingColumns",Math.min(ze.headingColumns,Ye),Ve,ce,0),Ve}insertRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.editor.model,qe=ze.at||0,Ye=ze.rows||1,Xe=void 0!==ze.copyStructureFromAbove,ot=ze.copyStructureFromAbove?qe-1:qe,st=this.getRows(ce),mt=this.getColumns(ce);if(qe>st)throw new We.a("tableutils-insertrows-insert-out-of-range",this,{options:ze});Ve.change((ze=>{const Ve=ce.getAttribute("headingRows")||0;if(Ve>qe&&updateNumericAttribute("headingRows",Ve+Ye,ce,ze,0),!Xe&&(0===qe||qe===st))return void createEmptyRows(ze,ce,qe,Ye,mt);const We=Xe?Math.max(qe,ot):qe,gt=new Qe(ce,{endRow:We}),yt=new Array(mt).fill(1);for(const{row:ce,column:Ve,cellHeight:We,cellWidth:Qe,cell:st}of gt){const mt=ce+We-1,gt=ce<=ot&&ot<=mt;ce0&&createEmptyTableCell(ze,Ye,qe>1?{colspan:qe}:null),ce+=Math.abs(qe)-1}}}))}insertColumns(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.editor.model,qe=ze.at||0,Ye=ze.columns||1;Ve.change((ze=>{const Ve=ce.getAttribute("headingColumns");qeYe-1)throw new We.a("tableutils-removerows-row-index-out-of-range",this,{table:ce,options:ze});Ve.change((ze=>{const{cellsToMove:Ve,cellsToTrim:qe}=getCellsToMoveAndTrimOnRemoveRow(ce,Qe,Xe);if(Ve.size){moveCellsToRow(ce,Xe+1,Ve,ze)}for(let Ve=Xe;Ve>=Qe;Ve--)ze.remove(ce.getChild(Ve));for(const{rowspan:ce,cell:Ve}of qe)updateNumericAttribute("rowspan",ce,Ve,ze);updateHeadingRows(ce,Qe,Xe,ze),removeEmptyColumns(ce,this)||removeEmptyRows(ce,this)}))}removeColumns(ce,ze){const Ve=this.editor.model,qe=ze.at,Ye=ze.columns||1,We=ze.at+Ye-1;Ve.change((ze=>{adjustHeadingColumns(ce,{first:qe,last:We},ze);for(let Ve=We;Ve>=qe;Ve--)for(const{cell:qe,column:Ye,cellWidth:We}of[...new Qe(ce)])Ye<=Ve&&We>1&&Ye+We>Ve?updateNumericAttribute("colspan",We-1,qe,ze):Ye===Ve&&ze.remove(qe);removeEmptyRows(ce,this)||removeEmptyColumns(ce,this)}))}splitCellVertically(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const Ve=this.editor.model,qe=ce.parent.parent,Ye=parseInt(ce.getAttribute("rowspan")||1),We=parseInt(ce.getAttribute("colspan")||1);Ve.change((Ve=>{if(We>1){const{newCellsSpan:qe,updatedSpan:Qe}=breakSpanEvenly(We,ze);updateNumericAttribute("colspan",Qe,ce,Ve);const Xe={};qe>1&&(Xe.colspan=qe),Ye>1&&(Xe.rowspan=Ye);createCells(We>ze?ze-1:We-1,Ve,Ve.createPositionAfter(ce),Xe)}if(We{let{cell:Ve}=ze;return Ve===ce})),mt=ot.filter((ze=>{let{cell:Ve,cellWidth:qe,column:Ye}=ze;return Ve!==ce&&Ye===st||Yest}));for(const{cell:ce,cellWidth:ze}of mt)Ve.setAttribute("colspan",ze+Xe,ce);const gt={};Ye>1&&(gt.rowspan=Ye),createCells(Xe,Ve,Ve.createPositionAfter(ce),gt);const yt=qe.getAttribute("headingColumns")||0;yt>st&&updateNumericAttribute("headingColumns",yt+Xe,qe,Ve)}}))}splitCellHorizontally(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const Ve=this.editor.model,qe=ce.parent,Ye=qe.parent,We=Ye.getChildIndex(qe),Xe=parseInt(ce.getAttribute("rowspan")||1),ot=parseInt(ce.getAttribute("colspan")||1);Ve.change((Ve=>{if(Xe>1){const qe=[...new Qe(Ye,{startRow:We,endRow:We+Xe-1,includeAllSlots:!0})],{newCellsSpan:st,updatedSpan:mt}=breakSpanEvenly(Xe,ze);updateNumericAttribute("rowspan",mt,ce,Ve);const{column:gt}=qe.find((ze=>{let{cell:Ve}=ze;return Ve===ce})),yt={};st>1&&(yt.rowspan=st),ot>1&&(yt.colspan=ot);for(const ce of qe){const{column:ze,row:qe}=ce;qe>=We+mt&&ze===gt&&(qe+We+mt)%st==0&&createCells(1,Ve,ce.getPositionBefore(),yt)}}if(XeWe){const ce=Ye+qe;Ve.setAttribute("rowspan",ce,ze)}const mt={};ot>1&&(mt.colspan=ot),createEmptyRows(Ve,Ye,We+1,qe,1,mt);const gt=Ye.getAttribute("headingRows")||0;gt>We&&updateNumericAttribute("headingRows",gt+qe,Ye,Ve)}}))}getColumns(ce){return[...ce.getChild(0).getChildren()].reduce(((ce,ze)=>ce+parseInt(ze.getAttribute("colspan")||1)),0)}getRows(ce){return Array.from(ce.getChildren()).reduce(((ce,ze)=>ze.is("element","tableRow")?ce+1:ce),0)}createTableWalker(ce){return new Qe(ce,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}getSelectedTableCells(ce){const ze=[];for(const Ve of this.sortRanges(ce.getRanges())){const ce=Ve.getContainedElement();ce&&ce.is("element","tableCell")&&ze.push(ce)}return ze}getTableCellsContainingSelection(ce){const ze=[];for(const Ve of ce.getRanges()){const ce=Ve.start.findAncestor("tableCell");ce&&ze.push(ce)}return ze}getSelectionAffectedTableCells(ce){const ze=this.getSelectedTableCells(ce);return ze.length?ze:this.getTableCellsContainingSelection(ce)}getRowIndexes(ce){const ze=ce.map((ce=>ce.parent.index));return this._getFirstLastIndexesObject(ze)}getColumnIndexes(ce){const ze=ce[0].findAncestor("table"),Ve=[...new Qe(ze)].filter((ze=>ce.includes(ze.cell))).map((ce=>ce.column));return this._getFirstLastIndexesObject(Ve)}isSelectionRectangular(ce){if(ce.length<2||!this._areCellInTheSameTableSection(ce))return!1;const ze=new Set,Ve=new Set;let qe=0;for(const Ye of ce){const{row:ce,column:We}=this.getCellLocation(Ye),Qe=parseInt(Ye.getAttribute("rowspan")||1),Xe=parseInt(Ye.getAttribute("colspan")||1);ze.add(ce),Ve.add(We),Qe>1&&ze.add(ce+Qe-1),Xe>1&&Ve.add(We+Xe-1),qe+=Qe*Xe}return getBiggestRectangleArea(ze,Ve)==qe}sortRanges(ce){return Array.from(ce).sort(compareRangeOrder)}_getFirstLastIndexesObject(ce){const ze=ce.sort(((ce,ze)=>ce-ze));return{first:ze[0],last:ze[ze.length-1]}}_areCellInTheSameTableSection(ce){const ze=ce[0].findAncestor("table"),Ve=this.getRowIndexes(ce),qe=parseInt(ze.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(Ve,qe))return!1;const Ye=parseInt(ze.getAttribute("headingColumns")||0),We=this.getColumnIndexes(ce);return this._areIndexesInSameSection(We,Ye)}_areIndexesInSameSection(ce,ze){let{first:Ve,last:qe}=ce;return Ve5&&void 0!==arguments[5]?arguments[5]:{};for(let Qe=0;Qe3&&void 0!==arguments[3]?arguments[3]:{};for(let Ye=0;Ye=ze&&We<=Ve&&ce>Ve){const ce=ot-(Ve-We+1);qe.set(Xe,{cell:st,rowspan:ce})}if(We=ze){let qe;qe=ce>=Ve?Ve-ze+1:ce-ze+1,Ye.push({cell:st,rowspan:ot-qe})}}return{cellsToMove:qe,cellsToTrim:Ye}}function moveCellsToRow(ce,ze,Ve,qe){const Ye=[...new Qe(ce,{includeAllSlots:!0,row:ze})],We=ce.getChild(ze);let Xe;for(const{column:ce,cell:ze,isAnchor:Qe}of Ye)if(Ve.has(ce)){const{cell:ze,rowspan:Ye}=Ve.get(ce),Qe=Xe?qe.createPositionAfter(Xe):qe.createPositionAt(We,0);qe.move(qe.createRangeOn(ze),Qe),updateNumericAttribute("rowspan",Ye,ze,qe),Xe=ze}else Qe&&(Xe=ze)}function compareRangeOrder(ce,ze){const Ve=ce.start,qe=ze.start;return Ve.isBefore(qe)?-1:1}function getBiggestRectangleArea(ce,ze){const Ve=Array.from(ce.values()),qe=Array.from(ze.values());return(Math.max(...Ve)-Math.min(...Ve)+1)*(Math.max(...qe)-Math.min(...qe)+1)}class kt extends qe.a{refresh(){const ce=this.editor.plugins.get(Dt),ze=ce.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=ce.isSelectionRectangular(ze,this.editor.plugins.get(Dt))}execute(){const ce=this.editor.model,ze=this.editor.plugins.get(Dt);ce.change((Ve=>{const qe=ze.getSelectedTableCells(ce.document.selection),Ye=qe.shift(),{mergeWidth:We,mergeHeight:Qe}=getMergeDimensions(Ye,qe,ze);updateNumericAttribute("colspan",We,Ye,Ve),updateNumericAttribute("rowspan",Qe,Ye,Ve);for(const ce of qe)mergecellscommand_mergeTableCells(ce,Ye,Ve);removeEmptyRowsColumns(Ye.findAncestor("table"),ze),Ve.setSelection(Ye,"in")}))}}function mergecellscommand_mergeTableCells(ce,ze,Ve){mergecellscommand_isEmpty(ce)||(mergecellscommand_isEmpty(ze)&&Ve.remove(Ve.createRangeIn(ze)),Ve.move(Ve.createRangeIn(ce),Ve.createPositionAt(ze,"end"))),Ve.remove(ce)}function mergecellscommand_isEmpty(ce){return 1==ce.childCount&&ce.getChild(0).is("element","paragraph")&&ce.getChild(0).isEmpty}function getMergeDimensions(ce,ze,Ve){let qe=0,Ye=0;for(const ce of ze){const{row:ze,column:We}=Ve.getCellLocation(ce);qe=getMaxOffset(ce,We,qe,"colspan"),Ye=getMaxOffset(ce,ze,Ye,"rowspan")}const{row:We,column:Qe}=Ve.getCellLocation(ce);return{mergeWidth:qe-Qe,mergeHeight:Ye-We}}function getMaxOffset(ce,ze,Ve,qe){const Ye=parseInt(ce.getAttribute(qe)||1);return Math.max(Ve,ze+Ye)}class St extends qe.a{constructor(ce){super(ce),this.affectsData=!1}refresh(){const ce=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=ce.length>0}execute(){const ce=this.editor.model,ze=this.editor.plugins.get("TableUtils"),Ve=ze.getSelectionAffectedTableCells(ce.document.selection),qe=ze.getRowIndexes(Ve),Ye=Ve[0].findAncestor("table"),We=[];for(let ze=qe.first;ze<=qe.last;ze++)for(const Ve of Ye.getChild(ze).getChildren())We.push(ce.createRangeOn(Ve));ce.change((ce=>{ce.setSelection(We)}))}}class xt extends qe.a{constructor(ce){super(ce),this.affectsData=!1}refresh(){const ce=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=ce.length>0}execute(){const ce=this.editor.plugins.get("TableUtils"),ze=this.editor.model,Ve=ce.getSelectionAffectedTableCells(ze.document.selection),qe=Ve[0],Ye=Ve.pop(),We=qe.findAncestor("table"),Xe=ce.getCellLocation(qe),ot=ce.getCellLocation(Ye),st=Math.min(Xe.column,ot.column),mt=Math.max(Xe.column,ot.column),gt=[];for(const ce of new Qe(We,{startColumn:st,endColumn:mt}))gt.push(ze.createRangeOn(ce.cell));ze.change((ce=>{ce.setSelection(gt)}))}}function injectTableLayoutPostFixer(ce){ce.document.registerPostFixer((ze=>tableLayoutPostFixer(ze,ce)))}function tableLayoutPostFixer(ce,ze){const Ve=ze.document.differ.getChanges();let qe=!1;const Ye=new Set;for(const ze of Ve){let Ve;"table"==ze.name&&"insert"==ze.type&&(Ve=ze.position.nodeAfter),"tableRow"!=ze.name&&"tableCell"!=ze.name||(Ve=ze.position.findAncestor("table")),isTableAttributeEntry(ze)&&(Ve=ze.range.start.findAncestor("table")),Ve&&!Ye.has(Ve)&&(qe=fixTableCellsRowspan(Ve,ce)||qe,qe=fixTableRowsSizes(Ve,ce)||qe,Ye.add(Ve))}return qe}function fixTableCellsRowspan(ce,ze){let Ve=!1;const qe=findCellsToTrim(ce);if(qe.length){Ve=!0;for(const ce of qe)updateNumericAttribute("rowspan",ce.rowspan,ce.cell,ze,1)}return Ve}function fixTableRowsSizes(ce,ze){let Ve=!1;const qe=getChildrenLengths(ce),Ye=[];for(const[ze,Ve]of qe.entries())!Ve&&ce.getChild(ze).is("element","tableRow")&&Ye.push(ze);if(Ye.length){Ve=!0;for(const Ve of Ye.reverse())ze.remove(ce.getChild(Ve)),qe.splice(Ve,1)}const We=qe.filter(((ze,Ve)=>ce.getChild(Ve).is("element","tableRow"))),Qe=We[0];if(!We.every((ce=>ce===Qe))){const qe=We.reduce(((ce,ze)=>ze>ce?ze:ce),0);for(const[Ye,Qe]of We.entries()){const We=qe-Qe;if(We){for(let Ve=0;Veze.is("element","tableRow")?ce+1:ce),0),qe=[];for(const{row:Ye,cell:We,cellHeight:Xe}of new Qe(ce)){if(Xe<2)continue;const ce=Yece){const ze=ce-Ye;qe.push({cell:We,rowspan:ze})}}return qe}function getChildrenLengths(ce){const ze=new Array(ce.childCount).fill(0);for(const{rowIndex:Ve}of new Qe(ce,{includeAllSlots:!0}))ze[Ve]++;return ze}function isTableAttributeEntry(ce){const ze="attribute"===ce.type,Ve=ce.attributeKey;return ze&&("headingRows"===Ve||"colspan"===Ve||"rowspan"===Ve)}function injectTableCellParagraphPostFixer(ce){ce.document.registerPostFixer((ze=>tableCellContentsPostFixer(ze,ce)))}function tableCellContentsPostFixer(ce,ze){const Ve=ze.document.differ.getChanges();let qe=!1;for(const ze of Ve)"insert"==ze.type&&"table"==ze.name&&(qe=fixTable(ze.position.nodeAfter,ce)||qe),"insert"==ze.type&&"tableRow"==ze.name&&(qe=fixTableRow(ze.position.nodeAfter,ce)||qe),"insert"==ze.type&&"tableCell"==ze.name&&(qe=fixTableCellContent(ze.position.nodeAfter,ce)||qe),checkTableCellChange(ze)&&(qe=fixTableCellContent(ze.position.parent,ce)||qe);return qe}function fixTable(ce,ze){let Ve=!1;for(const qe of ce.getChildren())qe.is("element","tableRow")&&(Ve=fixTableRow(qe,ze)||Ve);return Ve}function fixTableRow(ce,ze){let Ve=!1;for(const qe of ce.getChildren())Ve=fixTableCellContent(qe,ze)||Ve;return Ve}function fixTableCellContent(ce,ze){if(0==ce.childCount)return ze.insertElement("paragraph",ce),!0;const Ve=Array.from(ce.getChildren()).filter((ce=>ce.is("$text")));for(const ce of Ve)ze.wrap(ze.createRangeOn(ce),"paragraph");return!!Ve.length}function checkTableCellChange(ce){return!(!ce.position||!ce.position.parent.is("element","tableCell"))&&("insert"==ce.type&&"$text"==ce.name||"remove"==ce.type)}function tableHeadingsRefreshHandler(ce,ze){const Ve=ce.document.differ;for(const ce of Ve.getChanges()){let Ve,qe=!1;if("attribute"==ce.type){const ze=ce.range.start.nodeAfter;if(!ze||!ze.is("element","table"))continue;if("headingRows"!=ce.attributeKey&&"headingColumns"!=ce.attributeKey)continue;Ve=ze,qe="headingRows"==ce.attributeKey}else"tableRow"!=ce.name&&"tableCell"!=ce.name||(Ve=ce.position.findAncestor("table"),qe="tableRow"==ce.name);if(!Ve)continue;const Ye=Ve.getAttribute("headingRows")||0,We=Ve.getAttribute("headingColumns")||0,Xe=new Qe(Ve);for(const ce of Xe){const Ve=ce.rowshouldRefresh(ce,ze.mapper)));for(const ce of Ve)ze.reconvertItem(ce)}}function shouldRefresh(ce,ze){if(!ce.is("element","paragraph"))return!1;const Ve=ze.toViewElement(ce);return!!Ve&&isSingleParagraphWithoutAttributes(ce)!==Ve.is("element","span")}class Et extends qe.f{static get pluginName(){return"TableEditing"}static get requires(){return[Dt]}init(){const ce=this.editor,ze=ce.model,Ve=ze.schema,qe=ce.conversion,Ye=ce.plugins.get(Dt);Ve.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),Ve.register("tableRow",{allowIn:"table",isLimit:!0}),Ve.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),qe.for("upcast").add((ce=>{ce.on("element:figure",((ce,ze,Ve)=>{if(!Ve.consumable.test(ze.viewItem,{name:!0,classes:"table"}))return;const qe=getViewTableFromFigure(ze.viewItem);if(!qe||!Ve.consumable.test(qe,{name:!0}))return;Ve.consumable.consume(ze.viewItem,{name:!0,classes:"table"});const Ye=Ve.convertItem(qe,ze.modelCursor),Qe=Object(We.d)(Ye.modelRange.getItems());Qe?(Ve.convertChildren(ze.viewItem,Ve.writer.createPositionAt(Qe,"end")),Ve.updateConversionResult(Qe,ze)):Ve.consumable.revert(ze.viewItem,{name:!0,classes:"table"})}))})),qe.for("upcast").add((ce=>{ce.on("element:table",((ce,ze,Ve)=>{const qe=ze.viewItem;if(!Ve.consumable.test(qe,{name:!0}))return;const{rows:Ye,headingRows:We,headingColumns:Qe}=scanTable(qe),Xe={};Qe&&(Xe.headingColumns=Qe),We&&(Xe.headingRows=We);const ot=Ve.writer.createElement("table",Xe);if(Ve.safeInsert(ot,ze.modelCursor)){if(Ve.consumable.consume(qe,{name:!0}),Ye.forEach((ce=>Ve.convertItem(ce,Ve.writer.createPositionAt(ot,"end")))),Ve.convertChildren(qe,Ve.writer.createPositionAt(ot,"end")),ot.isEmpty){const ce=Ve.writer.createElement("tableRow");Ve.writer.insert(ce,Ve.writer.createPositionAt(ot,"end")),createEmptyTableCell(Ve.writer,Ve.writer.createPositionAt(ce,"end"))}Ve.updateConversionResult(ot,ze)}}))})),qe.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:downcastTable(Ye,{asWidget:!0})}),qe.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:downcastTable(Ye)}),qe.for("upcast").elementToElement({model:"tableRow",view:"tr"}),qe.for("upcast").add((ce=>{ce.on("element:tr",((ce,ze)=>{ze.viewItem.isEmpty&&0==ze.modelCursor.index&&ce.stop()}),{priority:"high"})})),qe.for("downcast").elementToElement({model:"tableRow",view:(ce,ze)=>{let{writer:Ve}=ze;return ce.isEmpty?Ve.createEmptyElement("tr"):Ve.createContainerElement("tr")}}),qe.for("upcast").elementToElement({model:"tableCell",view:"td"}),qe.for("upcast").elementToElement({model:"tableCell",view:"th"}),qe.for("upcast").add(ensureParagraphInTableCell("td")),qe.for("upcast").add(ensureParagraphInTableCell("th")),qe.for("editingDowncast").elementToElement({model:"tableCell",view:downcastCell({asWidget:!0})}),qe.for("dataDowncast").elementToElement({model:"tableCell",view:downcastCell()}),qe.for("editingDowncast").elementToElement({model:"paragraph",view:convertParagraphInTableCell({asWidget:!0}),converterPriority:"high"}),qe.for("dataDowncast").elementToElement({model:"paragraph",view:convertParagraphInTableCell(),converterPriority:"high"}),qe.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),qe.for("upcast").attributeToAttribute({model:{key:"colspan",value:upcastCellSpan("colspan")},view:"colspan"}),qe.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),qe.for("upcast").attributeToAttribute({model:{key:"rowspan",value:upcastCellSpan("rowspan")},view:"rowspan"}),ce.data.mapper.on("modelToViewPosition",((ce,ze)=>{const Ve=ze.modelPosition.parent,qe=ze.modelPosition.nodeBefore;if(!Ve.is("element","tableCell"))return;if(!qe||!qe.is("element","paragraph"))return;const Ye=ze.mapper.toViewElement(qe),We=ze.mapper.toViewElement(Ve);Ye===We&&(ze.viewPosition=ze.mapper.findPositionIn(We,qe.maxOffset))})),ce.config.define("table.defaultHeadings.rows",0),ce.config.define("table.defaultHeadings.columns",0),ce.commands.add("insertTable",new ot(ce)),ce.commands.add("insertTableRowAbove",new st(ce,{order:"above"})),ce.commands.add("insertTableRowBelow",new st(ce,{order:"below"})),ce.commands.add("insertTableColumnLeft",new mt(ce,{order:"left"})),ce.commands.add("insertTableColumnRight",new mt(ce,{order:"right"})),ce.commands.add("removeTableRow",new bt(ce)),ce.commands.add("removeTableColumn",new vt(ce)),ce.commands.add("splitTableCellVertically",new gt(ce,{direction:"vertically"})),ce.commands.add("splitTableCellHorizontally",new gt(ce,{direction:"horizontally"})),ce.commands.add("mergeTableCells",new kt(ce)),ce.commands.add("mergeTableCellRight",new yt(ce,{direction:"right"})),ce.commands.add("mergeTableCellLeft",new yt(ce,{direction:"left"})),ce.commands.add("mergeTableCellDown",new yt(ce,{direction:"down"})),ce.commands.add("mergeTableCellUp",new yt(ce,{direction:"up"})),ce.commands.add("setTableColumnHeader",new Ct(ce)),ce.commands.add("setTableRowHeader",new wt(ce)),ce.commands.add("selectTableRow",new St(ce)),ce.commands.add("selectTableColumn",new xt(ce)),injectTableLayoutPostFixer(ze),injectTableCellParagraphPostFixer(ze),this.listenTo(ze.document,"change:data",(()=>{tableHeadingsRefreshHandler(ze,ce.editing),tableCellRefreshHandler(ze,ce.editing)}))}}function upcastCellSpan(ce){return ze=>{const Ve=parseInt(ze.getAttribute(ce));return Number.isNaN(Ve)||Ve<=0?null:Ve}}var Pt=Ve(46);class Tt extends Pt.h{constructor(ce){super(ce);const ze=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((ce,ze)=>`${ze} × ${ce}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":ze.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:ze.to("label")}]}],on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((()=>{this.fire("execute")}))}}),this.on("boxover",((ce,ze)=>{const{row:Ve,column:qe}=ze.target.dataset;this.set({rows:parseInt(Ve),columns:parseInt(qe)})})),this.on("change:columns",(()=>{this._highlightGridBoxes()})),this.on("change:rows",(()=>{this._highlightGridBoxes()}))}focus(){}focusLast(){}_highlightGridBoxes(){const ce=this.rows,ze=this.columns;this.items.map(((Ve,qe)=>{const Ye=Math.floor(qe/10){const qe=ce.commands.get("insertTable"),Ye=Object(Pt.k)(Ve);let We;return Ye.bind("isEnabled").to(qe),Ye.buttonView.set({icon:'',label:ze("Insert table"),tooltip:!0}),Ye.on("change:isOpen",(()=>{We||(We=new Tt(Ve),Ye.panelView.children.add(We),We.delegate("execute").to(Ye),Ye.buttonView.on("open",(()=>{We.rows=0,We.columns=0})),Ye.on("execute",(()=>{ce.execute("insertTable",{rows:We.rows,columns:We.columns}),ce.editing.view.focus()})))})),Ye})),ce.ui.componentFactory.add("tableColumn",(ce=>{const qe=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:ze("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:Ve?"insertTableColumnLeft":"insertTableColumnRight",label:ze("Insert column left")}},{type:"button",model:{commandName:Ve?"insertTableColumnRight":"insertTableColumnLeft",label:ze("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:ze("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:ze("Select column")}}];return this._prepareDropdown(ze("Column"),'',qe,ce)})),ce.ui.componentFactory.add("tableRow",(ce=>{const Ve=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:ze("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:ze("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:ze("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:ze("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:ze("Select row")}}];return this._prepareDropdown(ze("Row"),'',Ve,ce)})),ce.ui.componentFactory.add("mergeTableCells",(ce=>{const qe=[{type:"button",model:{commandName:"mergeTableCellUp",label:ze("Merge cell up")}},{type:"button",model:{commandName:Ve?"mergeTableCellRight":"mergeTableCellLeft",label:ze("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:ze("Merge cell down")}},{type:"button",model:{commandName:Ve?"mergeTableCellLeft":"mergeTableCellRight",label:ze("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:ze("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:ze("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(ze("Merge cells"),'',qe,ce)}))}_prepareDropdown(ce,ze,Ve,qe){const Ye=this.editor,We=Object(Pt.k)(qe),Qe=this._fillDropdownWithListOptions(We,Ve);return We.buttonView.set({label:ce,icon:ze,tooltip:!0}),We.bind("isEnabled").toMany(Qe,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),this.listenTo(We,"execute",(ce=>{Ye.execute(ce.source.commandName),Ye.editing.view.focus()})),We}_prepareMergeSplitButtonDropdown(ce,ze,Ve,qe){const Ye=this.editor,We=Object(Pt.k)(qe,Pt.e),Qe="mergeTableCells",Xe=Ye.commands.get(Qe),ot=this._fillDropdownWithListOptions(We,Ve);return We.buttonView.set({label:ce,icon:ze,tooltip:!0,isEnabled:!0}),We.bind("isEnabled").toMany([Xe,...ot],"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),this.listenTo(We.buttonView,"execute",(()=>{Ye.execute(Qe),Ye.editing.view.focus()})),this.listenTo(We,"execute",(ce=>{Ye.execute(ce.source.commandName),Ye.editing.view.focus()})),We}_fillDropdownWithListOptions(ce,ze){const Ve=this.editor,qe=[],Ye=new We.b;for(const ce of ze)addListOption(ce,Ve,qe,Ye);return Object(Pt.i)(ce,Ye,Ve.ui.componentFactory),qe}}function addListOption(ce,ze,Ve,qe){const Ye=ce.model=new Pt.d(ce.model),{commandName:We,bindIsOn:Qe}=ce.model;if("button"===ce.type||"switchbutton"===ce.type){const ce=ze.commands.get(We);Ve.push(ce),Ye.set({commandName:We}),Ye.bind("isEnabled").to(ce),Qe&&Ye.bind("isOn").to(ce,"value")}Ye.set({withText:!0}),qe.add(ce)}class Bt extends qe.f{static get pluginName(){return"TableSelection"}static get requires(){return[Dt,Dt]}init(){const ce=this.editor.model;this.listenTo(ce,"deleteContent",((ce,ze)=>this._handleDeleteContent(ce,ze)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const ce=this.editor.plugins.get(Dt),ze=this.editor.model.document.selection,Ve=ce.getSelectedTableCells(ze);return 0==Ve.length?null:Ve}getSelectionAsFragment(){const ce=this.editor.plugins.get(Dt),ze=this.getSelectedTableCells();return ze?this.editor.model.change((Ve=>{const qe=Ve.createDocumentFragment(),{first:Ye,last:We}=ce.getColumnIndexes(ze),{first:Qe,last:Xe}=ce.getRowIndexes(ze),ot=ze[0].findAncestor("table");let st=Xe,mt=We;if(ce.isSelectionRectangular(ze)){const ce={firstColumn:Ye,lastColumn:We,firstRow:Qe,lastRow:Xe};st=adjustLastRowIndex(ot,ce),mt=adjustLastColumnIndex(ot,ce)}const gt=cropTableToDimensions(ot,{startRow:Qe,startColumn:Ye,endRow:st,endColumn:mt},Ve);return Ve.insert(gt,qe,0),qe})):null}setCellSelection(ce,ze){const Ve=this._getCellsToSelect(ce,ze);this.editor.model.change((ce=>{ce.setSelection(Ve.cells.map((ze=>ce.createRangeOn(ze))),{backward:Ve.backward})}))}getFocusCell(){const ce=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return ce&&ce.is("element","tableCell")?ce:null}getAnchorCell(){const ce=this.editor.model.document.selection,ze=Object(We.d)(ce.getRanges()).getContainedElement();return ze&&ze.is("element","tableCell")?ze:null}_defineSelectionConverter(){const ce=this.editor,ze=new Set;function clearHighlightedTableCells(ce){for(const Ve of ze)ce.removeClass("ck-editor__editable_selected",Ve);ze.clear()}ce.conversion.for("editingDowncast").add((ce=>ce.on("selection",((ce,Ve,qe)=>{const Ye=qe.writer;clearHighlightedTableCells(Ye);const We=this.getSelectedTableCells();if(!We)return;for(const ce of We){const Ve=qe.mapper.toViewElement(ce);Ye.addClass("ck-editor__editable_selected",Ve),ze.add(Ve)}const Qe=qe.mapper.toViewElement(We[We.length-1]);Ye.setSelection(Qe,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const ce=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const ze=this.getSelectedTableCells();if(!ze)return;ce.model.change((Ve=>{const qe=Ve.createPositionAt(ze[0],0),Ye=ce.model.schema.getNearestSelectionRange(qe);Ve.setSelection(Ye)}))}}))}_handleDeleteContent(ce,ze){const Ve=this.editor.plugins.get(Dt),[qe,Ye]=ze,We=this.editor.model,Qe=!Ye||"backward"==Ye.direction,Xe=Ve.getSelectedTableCells(qe);Xe.length&&(ce.stop(),We.change((ce=>{const ze=Xe[Qe?Xe.length-1:0];We.change((ce=>{for(const ze of Xe)We.deleteContent(ce.createSelection(ze,"in"))}));const Ve=We.schema.getNearestSelectionRange(ce.createPositionAt(ze,0));qe.is("documentSelection")?ce.setSelection(Ve):qe.setTo(Ve)})))}_getCellsToSelect(ce,ze){const Ve=this.editor.plugins.get("TableUtils"),qe=Ve.getCellLocation(ce),Ye=Ve.getCellLocation(ze),We=Math.min(qe.row,Ye.row),Xe=Math.max(qe.row,Ye.row),ot=Math.min(qe.column,Ye.column),st=Math.max(qe.column,Ye.column),mt=new Array(Xe-We+1).fill(null).map((()=>[])),gt={startRow:We,endRow:Xe,startColumn:ot,endColumn:st};for(const{row:ze,cell:Ve}of new Qe(ce.findAncestor("table"),gt))mt[ze-We].push(Ve);const yt=Ye.rowce.reverse())),{cells:mt.flat(),backward:yt||bt}}}class Vt extends qe.f{static get pluginName(){return"TableClipboard"}static get requires(){return[Bt,Dt]}init(){const ce=this.editor,ze=ce.editing.view.document;this.listenTo(ze,"copy",((ce,ze)=>this._onCopyCut(ce,ze))),this.listenTo(ze,"cut",((ce,ze)=>this._onCopyCut(ce,ze))),this.listenTo(ce.model,"insertContent",((ce,ze)=>this._onInsertContent(ce,...ze)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(ce,ze){const Ve=this.editor.plugins.get(Bt);if(!Ve.getSelectedTableCells())return;if("cut"==ce.name&&this.editor.isReadOnly)return;ze.preventDefault(),ce.stop();const qe=this.editor.data,Ye=this.editor.editing.view.document,We=qe.toView(Ve.getSelectionAsFragment());Ye.fire("clipboardOutput",{dataTransfer:ze.dataTransfer,content:We,method:ce.name})}_onInsertContent(ce,ze,Ve){if(Ve&&!Ve.is("documentSelection"))return;const qe=this.editor.model,Ye=this.editor.plugins.get(Dt);let We=getTableIfOnlyTableInContent(ze,qe);if(!We)return;const Qe=Ye.getSelectionAffectedTableCells(qe.document.selection);Qe.length?(ce.stop(),qe.change((ce=>{const ze={width:Ye.getColumns(We),height:Ye.getRows(We)},Ve=prepareTableForPasting(Qe,ze,ce,Ye),qe=Ve.lastRow-Ve.firstRow+1,Xe=Ve.lastColumn-Ve.firstColumn+1,ot={startRow:0,startColumn:0,endRow:Math.min(qe,ze.height)-1,endColumn:Math.min(Xe,ze.width)-1};We=cropTableToDimensions(We,ot,ce);const st=Qe[0].findAncestor("table"),mt=this._replaceSelectedCellsWithPasted(We,ze,st,Ve,ce);if(this.editor.plugins.get("TableSelection").isEnabled){const ze=Ye.sortRanges(mt.map((ze=>ce.createRangeOn(ze))));ce.setSelection(ze)}else ce.setSelection(mt[0],0)}))):removeEmptyRowsColumns(We,Ye)}_replaceSelectedCellsWithPasted(ce,ze,Ve,qe,Ye){const{width:We,height:Xe}=ze,ot=createLocationMap(ce,We,Xe),st=[...new Qe(Ve,{startRow:qe.firstRow,endRow:qe.lastRow,startColumn:qe.firstColumn,endColumn:qe.lastColumn,includeAllSlots:!0})],mt=[];let gt;for(const ce of st){const{row:ze,column:Ve}=ce;Ve===qe.firstColumn&&(gt=ce.getPositionBefore());const Qe=ze-qe.firstRow,st=Ve-qe.firstColumn,yt=ot[Qe%Xe][st%We],bt=yt?Ye.cloneElement(yt):null,vt=this._replaceTableSlotCell(ce,bt,gt,Ye);vt&&(trimTableCellIfNeeded(vt,ze,Ve,qe.lastRow,qe.lastColumn,Ye),mt.push(vt),gt=Ye.createPositionAfter(vt))}const yt=parseInt(Ve.getAttribute("headingRows")||0),bt=parseInt(Ve.getAttribute("headingColumns")||0),vt=qe.firstRowYe&&qe.insertColumns(ce,{at:Ye,columns:Ve-Ye}),ze>We&&qe.insertRows(ce,{at:We,rows:ze-We})}function createLocationMap(ce,ze,Ve){const qe=new Array(Ve).fill(null).map((()=>new Array(ze).fill(null)));for(const{column:ze,row:Ve,cell:Ye}of new Qe(ce))qe[Ve][ze]=Ye;return qe}function splitCellsToRectangularSelection(ce,ze,Ve){const{firstRow:qe,lastRow:Ye,firstColumn:We,lastColumn:Qe}=ze,Xe={first:qe,last:Ye},ot={first:We,last:Qe};doVerticalSplit(ce,We,Xe,Ve),doVerticalSplit(ce,Qe+1,Xe,Ve),doHorizontalSplit(ce,qe,ot,Ve),doHorizontalSplit(ce,Ye+1,ot,Ve,qe)}function doHorizontalSplit(ce,ze,Ve,qe){if(ze<1)return;return getVerticallyOverlappingCells(ce,ze,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0).filter((ce=>{let{column:ze,cellWidth:qe}=ce;return isAffectedBySelection(ze,qe,Ve)})).map((ce=>{let{cell:Ve}=ce;return splitHorizontally(Ve,ze,qe)}))}function doVerticalSplit(ce,ze,Ve,qe){if(ze<1)return;return getHorizontallyOverlappingCells(ce,ze).filter((ce=>{let{row:ze,cellHeight:qe}=ce;return isAffectedBySelection(ze,qe,Ve)})).map((ce=>{let{cell:Ve,column:Ye}=ce;return splitVertically(Ve,Ye,ze,qe)}))}function isAffectedBySelection(ce,ze,Ve){const qe=ce+ze-1,{first:Ye,last:We}=Ve;return ce>=Ye&&ce<=We||ce=Ye}class Ht extends qe.f{static get pluginName(){return"TableKeyboard"}static get requires(){return[Bt,Dt]}init(){var ce=this;const ze=this.editor.editing.view.document;this.listenTo(ze,"arrowKey",(function(){return ce._onArrowKey(...arguments)}),{context:"table"}),this.listenTo(ze,"tab",(function(){return ce._handleTabOnSelectedTable(...arguments)}),{context:"figure"}),this.listenTo(ze,"tab",(function(){return ce._handleTab(...arguments)}),{context:["th","td"]})}_handleTabOnSelectedTable(ce,ze){const Ve=this.editor,qe=Ve.model.document.selection.getSelectedElement();qe&&qe.is("element","table")&&(ze.preventDefault(),ze.stopPropagation(),ce.stop(),Ve.model.change((ce=>{ce.setSelection(ce.createRangeIn(qe.getChild(0).getChild(0)))})))}_handleTab(ce,ze){const Ve=this.editor,qe=this.editor.plugins.get(Dt),Ye=Ve.model.document.selection,We=!ze.shiftKey;let Qe=qe.getTableCellsContainingSelection(Ye)[0];if(Qe||(Qe=this.editor.plugins.get("TableSelection").getFocusCell()),!Qe)return;ze.preventDefault(),ze.stopPropagation(),ce.stop();const Xe=Qe.parent,ot=Xe.parent,st=ot.getChildIndex(Xe),mt=Xe.getChildIndex(Qe),gt=0===mt;if(!We&>&&0===st)return void Ve.model.change((ce=>{ce.setSelection(ce.createRangeOn(ot))}));const yt=mt===Xe.childCount-1,bt=st===qe.getRows(ot)-1;if(We&&bt&&yt&&(Ve.execute("insertTableRowBelow"),st===qe.getRows(ot)-1))return void Ve.model.change((ce=>{ce.setSelection(ce.createRangeOn(ot))}));let vt;if(We&&yt){const ce=ot.getChild(st+1);vt=ce.getChild(0)}else if(!We&>){const ce=ot.getChild(st-1);vt=ce.getChild(ce.childCount-1)}else vt=Xe.getChild(mt+(We?1:-1));Ve.model.change((ce=>{ce.setSelection(ce.createRangeIn(vt))}))}_onArrowKey(ce,ze){const Ve=this.editor,qe=ze.keyCode,Ye=Object(We.f)(qe,Ve.locale.contentLanguageDirection);this._handleArrowKeys(Ye,ze.shiftKey)&&(ze.preventDefault(),ze.stopPropagation(),ce.stop())}_handleArrowKeys(ce,ze){const Ve=this.editor.plugins.get(Dt),qe=this.editor.model,Ye=qe.document.selection,We=["right","down"].includes(ce),Qe=Ve.getSelectedTableCells(Ye);if(Qe.length){let Ve;return Ve=ze?this.editor.plugins.get("TableSelection").getFocusCell():We?Qe[Qe.length-1]:Qe[0],this._navigateFromCellInDirection(Ve,ce,ze),!0}const Xe=Ye.focus.findAncestor("tableCell");if(!Xe)return!1;if(!Ye.isCollapsed)if(ze){if(Ye.isBackward==We&&!Ye.containsEntireContent(Xe))return!1}else{const ce=Ye.getSelectedElement();if(!ce||!qe.schema.isObject(ce))return!1}return!!this._isSelectionAtCellEdge(Ye,Xe,We)&&(this._navigateFromCellInDirection(Xe,ce,ze),!0)}_isSelectionAtCellEdge(ce,ze,Ve){const qe=this.editor.model,Ye=this.editor.model.schema,We=Ve?ce.getLastPosition():ce.getFirstPosition();if(!Ye.getLimitElement(We).is("element","tableCell")){return qe.createPositionAt(ze,Ve?"end":0).isTouching(We)}const Qe=qe.createSelection(We);return qe.modifySelection(Qe,{direction:Ve?"forward":"backward"}),We.isEqual(Qe.focus)}_navigateFromCellInDirection(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const qe=this.editor.model,Ye=ce.findAncestor("table"),We=[...new Qe(Ye,{includeAllSlots:!0})],{row:Xe,column:ot}=We[We.length-1],st=We.find((ze=>{let{cell:Ve}=ze;return Ve==ce}));let{row:mt,column:gt}=st;switch(ze){case"left":gt--;break;case"up":mt--;break;case"right":gt+=st.cellWidth;break;case"down":mt+=st.cellHeight}if(mt<0||mt>Xe||gt<0&&mt<=0||gt>ot&&mt>=Xe)return void qe.change((ce=>{ce.setSelection(ce.createRangeOn(Ye))}));gt<0?(gt=Ve?0:ot,mt--):gt>ot&&(gt=Ve?ot:0,mt++);const yt=We.find((ce=>ce.row==mt&&ce.column==gt)).cell,bt=["right","down"].includes(ze),vt=this.editor.plugins.get("TableSelection");if(Ve&&vt.isEnabled){const ze=vt.getAnchorCell()||ce;vt.setCellSelection(ze,yt)}else{const ce=qe.createPositionAt(yt,bt?0:"end");qe.change((ze=>{ze.setSelection(ce)}))}}}var Ut=Ve(260);class Wt extends Ut.a{constructor(ce){super(ce),this.domEventType=["mousemove","mouseleave"]}onDomEvent(ce){this.fire(ce.type,ce)}}class Jt extends qe.f{static get pluginName(){return"TableMouse"}static get requires(){return[Bt,Dt]}init(){this.editor.editing.view.addObserver(Wt),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const ce=this.editor,ze=ce.plugins.get(Dt);let Ve=!1;const qe=ce.plugins.get(Bt);this.listenTo(ce.editing.view.document,"mousedown",((Ye,We)=>{const Qe=ce.model.document.selection;if(!this.isEnabled||!qe.isEnabled)return;if(!We.domEvent.shiftKey)return;const Xe=qe.getAnchorCell()||ze.getTableCellsContainingSelection(Qe)[0];if(!Xe)return;const ot=this._getModelTableCellFromDomEvent(We);ot&&haveSameTableParent(Xe,ot)&&(Ve=!0,qe.setCellSelection(Xe,ot),We.preventDefault())})),this.listenTo(ce.editing.view.document,"mouseup",(()=>{Ve=!1})),this.listenTo(ce.editing.view.document,"selectionChange",(ce=>{Ve&&ce.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const ce=this.editor;let ze,Ve,qe=!1,Ye=!1;const We=ce.plugins.get(Bt);this.listenTo(ce.editing.view.document,"mousedown",((ce,Ve)=>{this.isEnabled&&We.isEnabled&&(Ve.domEvent.shiftKey||Ve.domEvent.ctrlKey||Ve.domEvent.altKey||(ze=this._getModelTableCellFromDomEvent(Ve)))})),this.listenTo(ce.editing.view.document,"mousemove",((ce,Qe)=>{if(!Qe.domEvent.buttons)return;if(!ze)return;const Xe=this._getModelTableCellFromDomEvent(Qe);Xe&&haveSameTableParent(ze,Xe)&&(Ve=Xe,qe||Ve==ze||(qe=!0)),qe&&(Ye=!0,We.setCellSelection(ze,Ve),Qe.preventDefault())})),this.listenTo(ce.editing.view.document,"mouseup",(()=>{qe=!1,Ye=!1,ze=null,Ve=null})),this.listenTo(ce.editing.view.document,"selectionChange",(ce=>{Ye&&ce.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(ce){const ze=ce.target,Ve=this.editor.editing.view.createPositionAt(ze,0);return this.editor.editing.mapper.toModelPosition(Ve).parent.findAncestor("tableCell",{includeSelf:!0})}}function haveSameTableParent(ce,ze){return ce.parent.parent==ze.parent.parent}class Qt extends qe.f{static get requires(){return[Et,Ft,Bt,Jt,Ht,Vt,Ye.a]}static get pluginName(){return"Table"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Cn}));var qe=Ve(18),Ye=Ve(31),We=Ve(166),Qe=Ve(130);class Xe{constructor(ce){this.files=getFiles(ce),this._native=ce}get types(){return this._native.types}getData(ce){return this._native.getData(ce)}setData(ce,ze){this._native.setData(ce,ze)}set effectAllowed(ce){this._native.effectAllowed=ce}get effectAllowed(){return this._native.effectAllowed}set dropEffect(ce){this._native.dropEffect=ce}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function getFiles(ce){const ze=Array.from(ce.files||[]),Ve=Array.from(ce.items||[]);return ze.length?ze:Ve.filter((ce=>"file"===ce.kind)).map((ce=>ce.getAsFile()))}class ot extends Qe.a{constructor(ce){super(ce);const ze=this.document;function handleInput(ce){return(Ve,qe)=>{qe.preventDefault();const Ye=qe.dropRange?[qe.dropRange]:null,Qe=new We.a(ze,ce);ze.fire(Qe,{dataTransfer:qe.dataTransfer,method:Ve.name,targetRanges:Ye,target:qe.target}),Qe.stop.called&&qe.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(ze,"paste",handleInput("clipboardInput"),{priority:"low"}),this.listenTo(ze,"drop",handleInput("clipboardInput"),{priority:"low"}),this.listenTo(ze,"dragover",handleInput("dragging"),{priority:"low"})}onDomEvent(ce){const ze={dataTransfer:new Xe(ce.clipboardData?ce.clipboardData:ce.dataTransfer)};"drop"!=ce.type&&"dragover"!=ce.type||(ze.dropRange=getDropViewRange(this.view,ce)),this.fire(ce.type,ce,ze)}}function getDropViewRange(ce,ze){const Ve=ze.target.ownerDocument,qe=ze.clientX,Ye=ze.clientY;let We;return Ve.caretRangeFromPoint&&Ve.caretRangeFromPoint(qe,Ye)?We=Ve.caretRangeFromPoint(qe,Ye):ze.rangeParent&&(We=Ve.createRange(),We.setStart(ze.rangeParent,ze.rangeOffset),We.collapse(!0)),We?ce.domConverter.domRangeToView(We):null}function normalizeClipboardData(ce){return ce.replace(/(\s+)<\/span>/g,((ce,ze)=>1==ze.length?" ":ze)).replace(//g,"")}const st=["figcaption","li"];function viewToPlainText(ce){let ze="";if(ce.is("$text")||ce.is("$textProxy"))ze=ce.data;else if(ce.is("element","img")&&ce.hasAttribute("alt"))ze=ce.getAttribute("alt");else if(ce.is("element","br"))ze="\n";else{let Ve=null;for(const qe of ce.getChildren()){const ce=viewToPlainText(qe);Ve&&(Ve.is("containerElement")||qe.is("containerElement"))&&(st.includes(Ve.name)||st.includes(qe.name)?ze+="\n":ze+="\n\n"),ze+=ce,Ve=qe}}return ze}class mt extends Ye.a{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(ot),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,qe=Ve.document;this.listenTo(qe,"clipboardInput",(ze=>{ce.isReadOnly&&ze.stop()}),{priority:"highest"}),this.listenTo(qe,"clipboardInput",((ce,ze)=>{const qe=ze.dataTransfer;let Ye=ze.content||"";var Qe;Ye||(qe.getData("text/html")?Ye=normalizeClipboardData(qe.getData("text/html")):qe.getData("text/plain")&&(((Qe=(Qe=qe.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||Qe.includes("
"))&&(Qe=`

${Qe}

`),Ye=Qe),Ye=this.editor.data.htmlProcessor.toView(Ye));const Xe=new We.a(this,"inputTransformation");this.fire(Xe,{content:Ye,dataTransfer:qe,targetRanges:ze.targetRanges,method:ze.method}),Xe.stop.called&&ce.stop(),Ve.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((ce,Ve)=>{if(Ve.content.isEmpty)return;const qe=this.editor.data.toModel(Ve.content,"$clipboardHolder");0!=qe.childCount&&(ce.stop(),ze.change((()=>{this.fire("contentInsertion",{content:qe,method:Ve.method,dataTransfer:Ve.dataTransfer,targetRanges:Ve.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((ce,Ve)=>{Ve.resultRange=ze.insertContent(Ve.content)}),{priority:"low"})}_setupCopyCut(){const ce=this.editor,ze=ce.model.document,Ve=ce.editing.view.document;function onCopyCut(qe,Ye){const We=Ye.dataTransfer;Ye.preventDefault();const Qe=ce.data.toView(ce.model.getSelectedContent(ze.selection));Ve.fire("clipboardOutput",{dataTransfer:We,content:Qe,method:qe.name})}this.listenTo(Ve,"copy",onCopyCut,{priority:"low"}),this.listenTo(Ve,"cut",((ze,Ve)=>{ce.isReadOnly?Ve.preventDefault():onCopyCut(ze,Ve)}),{priority:"low"}),this.listenTo(Ve,"clipboardOutput",((Ve,qe)=>{qe.content.isEmpty||(qe.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(qe.content)),qe.dataTransfer.setData("text/plain",viewToPlainText(qe.content))),"cut"==qe.method&&ce.model.deleteContent(ze.selection)}),{priority:"low"})}}var gt=Ve(226),yt=Ve(288),bt=Ve(579),vt=Ve(114),wt=Ve(58),Ct=Ve(74),Dt=Ve(1087);class kt extends Ye.a{static get pluginName(){return"DragDrop"}static get requires(){return[mt,bt.a]}init(){const ce=this.editor,ze=ce.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Object(Dt.a)((ce=>this._updateDropMarker(ce)),40),this._removeDropMarkerDelayed=delay((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=delay((()=>this._clearDraggableAttributes()),40),ze.addObserver(ot),ze.addObserver(yt.a),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((ce,ze,Ve)=>{Ve||this._finalizeDragging(!1)})),wt.a.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const ce=this.editor,ze=ce.model,Ve=ze.document,qe=ce.editing.view,Ye=qe.document;this.listenTo(Ye,"dragstart",((qe,We)=>{const Qe=Ve.selection;if(We.target&&We.target.is("editableElement"))return void We.preventDefault();const Xe=We.target?findDraggableWidget(We.target):null;if(Xe){const Ve=ce.editing.mapper.toModelElement(Xe);this._draggedRange=gt.a.fromRange(ze.createRangeOn(Ve)),ce.plugins.has("WidgetToolbarRepository")&&ce.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!Ye.selection.isCollapsed){const ce=Ye.selection.getSelectedElement();ce&&Object(Ct.c)(ce)||(this._draggedRange=gt.a.fromRange(Qe.getFirstRange()))}if(!this._draggedRange)return void We.preventDefault();this._draggingUid=Object(vt.a)(),We.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",We.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const ot=ze.createSelection(this._draggedRange.toRange()),st=ce.data.toView(ze.getSelectedContent(ot));Ye.fire("clipboardOutput",{dataTransfer:We.dataTransfer,content:st,method:qe.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(Ye,"dragend",((ce,ze)=>{this._finalizeDragging(!ze.dataTransfer.isCanceled&&"move"==ze.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(Ye,"dragenter",(()=>{this.isEnabled&&qe.focus()})),this.listenTo(Ye,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(Ye,"dragging",((ze,Ve)=>{if(!this.isEnabled)return void(Ve.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const qe=findDropTargetRange(ce,Ve.targetRanges,Ve.target);this._draggedRange||(Ve.dataTransfer.dropEffect="copy"),wt.a.isGecko||("copy"==Ve.dataTransfer.effectAllowed?Ve.dataTransfer.dropEffect="copy":["all","copyMove"].includes(Ve.dataTransfer.effectAllowed)&&(Ve.dataTransfer.dropEffect="move")),qe&&this._updateDropMarkerThrottled(qe)}),{priority:"low"})}_setupClipboardInputIntegration(){const ce=this.editor,ze=ce.editing.view.document;this.listenTo(ze,"clipboardInput",((ze,Ve)=>{if("drop"!=Ve.method)return;const qe=findDropTargetRange(ce,Ve.targetRanges,Ve.target);if(this._removeDropMarker(),!qe)return this._finalizeDragging(!1),void ze.stop();this._draggedRange&&this._draggingUid!=Ve.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==getFinalDropEffect(Ve.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(qe,!0))return this._finalizeDragging(!1),void ze.stop();Ve.targetRanges=[ce.editing.mapper.toViewRange(qe)]}),{priority:"high"})}_setupContentInsertionIntegration(){const ce=this.editor.plugins.get(mt);ce.on("contentInsertion",((ce,ze)=>{if(!this.isEnabled||"drop"!==ze.method)return;const Ve=ze.targetRanges.map((ce=>this.editor.editing.mapper.toModelRange(ce)));this.editor.model.change((ce=>ce.setSelection(Ve)))}),{priority:"high"}),ce.on("contentInsertion",((ce,ze)=>{if(!this.isEnabled||"drop"!==ze.method)return;const Ve="move"==getFinalDropEffect(ze.dataTransfer),qe=!ze.resultRange||!ze.resultRange.isCollapsed;this._finalizeDragging(qe&&Ve)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document;this.listenTo(Ve,"mousedown",((qe,Ye)=>{if(wt.a.isAndroid||!Ye)return;this._clearDraggableAttributesDelayed.cancel();let We=findDraggableWidget(Ye.target);if(wt.a.isBlink&&!ce.isReadOnly&&!We&&!Ve.selection.isCollapsed){const ce=Ve.selection.getSelectedElement();ce&&Object(Ct.c)(ce)||(We=Ve.selection.editableElement)}We&&(ze.change((ce=>{ce.setAttribute("draggable","true",We)})),this._draggableElement=ce.editing.mapper.toModelElement(We))})),this.listenTo(Ve,"mouseup",(()=>{wt.a.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const ce=this.editor.editing;ce.view.change((ze=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&ze.removeAttribute("draggable",ce.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const ce=this.editor;ce.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),ce.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(ze,Ve)=>{let{writer:qe}=Ve;if(ce.model.schema.checkChild(ze.markerRange.start,"$text"))return qe.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(ce){const ze=this.toDomElement(ce);return ze.innerHTML="⁠⁠",ze}))}})}_updateDropMarker(ce){const ze=this.editor,Ve=ze.model.markers;ze.model.change((ze=>{Ve.has("drop-target")?Ve.get("drop-target").getRange().isEqual(ce)||ze.updateMarker("drop-target",{range:ce}):ze.addMarker("drop-target",{range:ce,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const ce=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),ce.markers.has("drop-target")&&ce.change((ce=>{ce.removeMarker("drop-target")}))}_finalizeDragging(ce){const ze=this.editor,Ve=ze.model;this._removeDropMarker(),this._clearDraggableAttributes(),ze.plugins.has("WidgetToolbarRepository")&&ze.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(ce&&this.isEnabled&&Ve.deleteContent(Ve.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function findDropTargetRange(ce,ze,Ve){const qe=ce.model,Ye=ce.editing.mapper;let We=null;const Qe=ze?ze[0].start:null;if(Ve.is("uiElement")&&(Ve=Ve.parent),We=findDropTargetRangeOnWidget(ce,Ve),We)return We;const Xe=getClosestMappedModelElement(ce,Ve),ot=Qe?Ye.toModelPosition(Qe):null;return ot?(We=findDropTargetRangeBetweenBlocks(ce,ot,Xe),We||(We=qe.schema.getNearestSelectionRange(ot,wt.a.isGecko?"forward":"backward"),We||findDropTargetRangeOnAncestorObject(ce,ot.parent))):findDropTargetRangeInElement(ce,Xe)}function findDropTargetRangeOnWidget(ce,ze){const Ve=ce.model,qe=ce.editing.mapper;if(Object(Ct.c)(ze))return Ve.createRangeOn(qe.toModelElement(ze));if(!ze.is("editableElement")){const ce=ze.findAncestor((ce=>Object(Ct.c)(ce)||ce.is("editableElement")));if(Object(Ct.c)(ce))return Ve.createRangeOn(qe.toModelElement(ce))}return null}function findDropTargetRangeInElement(ce,ze){const Ve=ce.model,qe=Ve.schema,Ye=Ve.createPositionAt(ze,0);return qe.getNearestSelectionRange(Ye,"forward")}function findDropTargetRangeBetweenBlocks(ce,ze,Ve){const qe=ce.model;if(!qe.schema.checkChild(Ve,"$block"))return null;const Ye=qe.createPositionAt(Ve,0),We=ze.path.slice(0,Ye.path.length),Qe=qe.createPositionFromPath(ze.root,We).nodeAfter;return Qe&&qe.schema.isObject(Qe)?qe.createRangeOn(Qe):null}function findDropTargetRangeOnAncestorObject(ce,ze){const Ve=ce.model;for(;ze;){if(Ve.schema.isObject(ze))return Ve.createRangeOn(ze);ze=ze.parent}}function getClosestMappedModelElement(ce,ze){const Ve=ce.editing.mapper,qe=ce.editing.view,Ye=Ve.toModelElement(ze);if(Ye)return Ye;const We=qe.createPositionBefore(ze),Qe=Ve.findMappedViewAncestor(We);return Ve.toModelElement(Qe)}function getFinalDropEffect(ce){return wt.a.isGecko?ce.dropEffect:["all","copyMove"].includes(ce.effectAllowed)?"move":"copy"}function delay(ce,ze){let Ve;function delayed(){for(var qe=arguments.length,Ye=new Array(qe),We=0;Wece(...Ye)),ze)}return delayed.cancel=()=>{clearTimeout(Ve)},delayed}function findDraggableWidget(ce){if(ce.is("editableElement"))return null;if(ce.hasClass("ck-widget__selection-handle"))return ce.findAncestor(Ct.c);if(Object(Ct.c)(ce))return ce;const ze=ce.findAncestor((ce=>Object(Ct.c)(ce)||ce.is("editableElement")));return Object(Ct.c)(ze)?ze:null}class St extends Ye.a{static get pluginName(){return"PastePlainText"}static get requires(){return[mt]}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,qe=Ve.document,Ye=ze.document.selection;let We=!1;Ve.addObserver(ot),this.listenTo(qe,"keydown",((ce,ze)=>{We=ze.shiftKey})),ce.plugins.get(mt).on("contentInsertion",((ce,Ve)=>{(We||isPlainTextFragment(Ve.content,ze.schema))&&ze.change((ce=>{const qe=Array.from(Ye.getAttributes()).filter((ce=>{let[Ve]=ce;return ze.schema.getAttributeProperties(Ve).isFormatting}));Ye.isCollapsed||ze.deleteContent(Ye,{doNotAutoparagraph:!0}),qe.push(...Ye.getAttributes());const We=ce.createRangeIn(Ve.content);for(const ze of We.getItems())ze.is("$textProxy")&&ce.setAttributes(qe,ze)}))}))}}function isPlainTextFragment(ce,ze){if(ce.childCount>1)return!1;const Ve=ce.getChild(0);return!ze.isObject(Ve)&&0==[...Ve.getAttributeKeys()].length}class xt extends Ye.a{static get pluginName(){return"Clipboard"}static get requires(){return[mt,kt,St]}}var Et=Ve(453),Pt=Ve(37),Tt=Ve(80);class Lt extends Tt.a{constructor(ce){super(ce),this.affectsData=!1}execute(){const ce=this.editor.model,ze=ce.document.selection;let Ve=ce.schema.getLimitElement(ze);if(ze.containsEntireContent(Ve)||!isSelectAllScope(ce.schema,Ve))do{if(Ve=Ve.parent,!Ve)return}while(!isSelectAllScope(ce.schema,Ve));ce.change((ce=>{ce.setSelection(Ve,"in")}))}}function isSelectAllScope(ce,ze){return ce.isLimit(ze)&&(ce.checkChild(ze,"$text")||ce.checkChild(ze,"paragraph"))}const Ft=Object(Pt.g)("Ctrl+A");class Bt extends Ye.a{static get pluginName(){return"SelectAllEditing"}init(){const ce=this.editor,ze=ce.editing.view.document;ce.commands.add("selectAll",new Lt(ce)),this.listenTo(ze,"keydown",((ze,Ve)=>{Object(Pt.a)(Ve)===Ft&&(ce.execute("selectAll"),Ve.preventDefault())}))}}var Vt=Ve(52);class Ht extends Ye.a{static get pluginName(){return"SelectAllUI"}init(){const ce=this.editor;ce.ui.componentFactory.add("selectAll",(ze=>{const Ve=ce.commands.get("selectAll"),qe=new Vt.a(ze),Ye=ze.t;return qe.set({label:Ye("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),qe.bind("isOn","isEnabled").to(Ve,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute("selectAll"),ce.editing.view.focus()})),qe}))}}class Ut extends Ye.a{static get requires(){return[Bt,Ht]}static get pluginName(){return"SelectAll"}}var Wt=Ve(311),Jt=Ve(524);class Qt extends Tt.a{constructor(ce){super(ce),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(ce.data,"set",((ce,ze)=>{ze[1]={...ze[1]};const Ve=ze[1];Ve.batchType||(Ve.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(ce.data,"set",((ce,ze)=>{ze[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}addBatch(ce){const ze=this.editor.model.document.selection,Ve={ranges:ze.hasOwnRange?Array.from(ze.getRanges()):[],isBackward:ze.isBackward};this._stack.push({batch:ce,selection:Ve}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(ce,ze,Ve){const qe=this.editor.model,Ye=qe.document,We=[],Qe=ce.map((ce=>ce.getTransformedByOperations(Ve))),Xe=Qe.flat();for(const ce of Qe){const ze=ce.filter((ce=>ce.root!=Ye.graveyard)).filter((ce=>!isRangeContainedByAnyOtherRange(ce,Xe)));ze.length&&(normalizeRanges(ze),We.push(ze[0]))}We.length&&qe.change((ce=>{ce.setSelection(We,{backward:ze})}))}_undo(ce,ze){const Ve=this.editor.model,qe=Ve.document;this._createdBatches.add(ze);const Ye=ce.operations.slice().filter((ce=>ce.isDocumentOperation));Ye.reverse();for(const ce of Ye){const Ye=ce.baseVersion+1,We=Array.from(qe.history.getOperations(Ye)),Qe=Object(Jt.a)([ce.getReversed()],We,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const Ye of Qe)ze.addOperation(Ye),Ve.applyOperation(Ye),qe.history.setOperationAsUndone(ce,Ye)}}}function normalizeRanges(ce){ce.sort(((ce,ze)=>ce.start.isBefore(ze.start)?-1:1));for(let ze=1;zeze!==ce&&ze.containsRange(ce,!0)))}class en extends Qt{execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const ze=ce?this._stack.findIndex((ze=>ze.batch==ce)):this._stack.length-1,Ve=this._stack.splice(ze,1)[0],qe=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(qe,(()=>{this._undo(Ve.batch,qe);const ce=this.editor.model.document.history.getOperations(Ve.batch.baseVersion);this._restoreSelection(Ve.selection.ranges,Ve.selection.isBackward,ce),this.fire("revert",Ve.batch,qe)})),this.refresh()}}class rn extends Qt{execute(){const ce=this._stack.pop(),ze=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(ze,(()=>{const Ve=ce.batch.operations[ce.batch.operations.length-1].baseVersion+1,qe=this.editor.model.document.history.getOperations(Ve);this._restoreSelection(ce.selection.ranges,ce.selection.isBackward,qe),this._undo(ce.batch,ze)})),this.refresh()}}class ln extends Ye.a{static get pluginName(){return"UndoEditing"}constructor(ce){super(ce),this._batchRegistry=new WeakSet}init(){const ce=this.editor;this._undoCommand=new en(ce),this._redoCommand=new rn(ce),ce.commands.add("undo",this._undoCommand),ce.commands.add("redo",this._redoCommand),this.listenTo(ce.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];if(!Ve.isDocumentOperation)return;const qe=Ve.batch,Ye=this._redoCommand._createdBatches.has(qe),We=this._undoCommand._createdBatches.has(qe);this._batchRegistry.has(qe)||(this._batchRegistry.add(qe),qe.isUndoable&&(Ye?this._undoCommand.addBatch(qe):We||(this._undoCommand.addBatch(qe),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((ce,ze,Ve)=>{this._redoCommand.addBatch(Ve)})),ce.keystrokes.set("CTRL+Z","undo"),ce.keystrokes.set("CTRL+Y","redo"),ce.keystrokes.set("CTRL+SHIFT+Z","redo")}}var mn='',gn='';class bn extends Ye.a{static get pluginName(){return"UndoUI"}init(){const ce=this.editor,ze=ce.locale,Ve=ce.t,qe="ltr"==ze.uiLanguageDirection?mn:gn,Ye="ltr"==ze.uiLanguageDirection?gn:mn;this._addButton("undo",Ve("Undo"),"CTRL+Z",qe),this._addButton("redo",Ve("Redo"),"CTRL+Y",Ye)}_addButton(ce,ze,Ve,qe){const Ye=this.editor;Ye.ui.componentFactory.add(ce,(We=>{const Qe=Ye.commands.get(ce),Xe=new Vt.a(We);return Xe.set({label:ze,icon:qe,keystroke:Ve,tooltip:!0}),Xe.bind("isEnabled").to(Qe,"isEnabled"),this.listenTo(Xe,"execute",(()=>{Ye.execute(ce),Ye.editing.view.focus()})),Xe}))}}class wn extends Ye.a{static get requires(){return[ln,bn]}static get pluginName(){return"Undo"}}class Cn extends qe.f{static get requires(){return[xt,Et.a,Ut,Et.b,Wt.c,wn]}static get pluginName(){return"Essentials"}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(36);function isLiteralElement(ce){return ce.type===Ye.literal}function isArgumentElement(ce){return ce.type===Ye.argument}function isNumberElement(ce){return ce.type===Ye.number}function isDateElement(ce){return ce.type===Ye.date}function isTimeElement(ce){return ce.type===Ye.time}function isSelectElement(ce){return ce.type===Ye.select}function isPluralElement(ce){return ce.type===Ye.plural}function isPoundElement(ce){return ce.type===Ye.pound}function isTagElement(ce){return ce.type===Ye.tag}function isNumberSkeleton(ce){return!(!ce||"object"!=typeof ce||ce.type!==We.number)}function isDateTimeSkeleton(ce){return!(!ce||"object"!=typeof ce||ce.type!==We.dateTime)}!function(ce){ce[ce.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ce[ce.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ce[ce.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ce[ce.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ce[ce.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ce[ce.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ce[ce.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ce[ce.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ce[ce.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ce[ce.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ce[ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ce[ce.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ce[ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ce[ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ce[ce.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ce[ce.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ce[ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ce[ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ce[ce.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ce[ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ce[ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ce[ce.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ce[ce.INVALID_TAG=23]="INVALID_TAG",ce[ce.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ce[ce.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ce[ce.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(qe||(qe={})),function(ce){ce[ce.literal=0]="literal",ce[ce.argument=1]="argument",ce[ce.number=2]="number",ce[ce.date=3]="date",ce[ce.time=4]="time",ce[ce.select=5]="select",ce[ce.plural=6]="plural",ce[ce.pound=7]="pound",ce[ce.tag=8]="tag"}(Ye||(Ye={})),function(ce){ce[ce.number=0]="number",ce[ce.dateTime=1]="dateTime"}(We||(We={}));var Xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(ce){var ze={};return ce.replace(ot,(function(ce){var Ve=ce.length;switch(ce[0]){case"G":ze.era=4===Ve?"long":5===Ve?"narrow":"short";break;case"y":ze.year=2===Ve?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":ze.month=["numeric","2-digit","short","long","narrow"][Ve-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":ze.day=["numeric","2-digit"][Ve-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":ze.weekday=4===Ve?"short":5===Ve?"narrow":"short";break;case"e":if(Ve<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");ze.weekday=["short","long","narrow","short"][Ve-4];break;case"c":if(Ve<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");ze.weekday=["short","long","narrow","short"][Ve-4];break;case"a":ze.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":ze.hourCycle="h12",ze.hour=["numeric","2-digit"][Ve-1];break;case"H":ze.hourCycle="h23",ze.hour=["numeric","2-digit"][Ve-1];break;case"K":ze.hourCycle="h11",ze.hour=["numeric","2-digit"][Ve-1];break;case"k":ze.hourCycle="h24",ze.hour=["numeric","2-digit"][Ve-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":ze.minute=["numeric","2-digit"][Ve-1];break;case"s":ze.second=["numeric","2-digit"][Ve-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":ze.timeZoneName=Ve<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),ze}var st=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(ce){if(0===ce.length)throw new Error("Number skeleton cannot be empty");for(var ze=[],Ve=0,qe=ce.split(st).filter((function(ce){return ce.length>0}));Ve1)throw new RangeError("integer-width stems only accept a single optional option");Ye.options[0].replace(yt,(function(ce,Ve,qe,Ye,We,Qe){if(Ve)ze.minimumIntegerDigits=qe.length;else{if(Ye&&We)throw new Error("We currently do not support maximum integer digits");if(Qe)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(bt.test(Ye.stem))ze.minimumIntegerDigits=Ye.stem.length;else if(mt.test(Ye.stem)){if(Ye.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");Ye.stem.replace(mt,(function(ce,Ve,qe,Ye,We,Qe){return"*"===qe?ze.minimumFractionDigits=Ve.length:Ye&&"#"===Ye[0]?ze.maximumFractionDigits=Ye.length:We&&Qe?(ze.minimumFractionDigits=We.length,ze.maximumFractionDigits=We.length+Qe.length):(ze.minimumFractionDigits=Ve.length,ze.maximumFractionDigits=Ve.length),""}));var We=Ye.options[0];"w"===We?ze=Object(Qe.a)(Object(Qe.a)({},ze),{trailingZeroDisplay:"stripIfInteger"}):We&&(ze=Object(Qe.a)(Object(Qe.a)({},ze),parseSignificantPrecision(We)))}else if(gt.test(Ye.stem))ze=Object(Qe.a)(Object(Qe.a)({},ze),parseSignificantPrecision(Ye.stem));else{var Xe=parseSign(Ye.stem);Xe&&(ze=Object(Qe.a)(Object(Qe.a)({},ze),Xe));var ot=parseConciseScientificAndEngineeringStem(Ye.stem);ot&&(ze=Object(Qe.a)(Object(Qe.a)({},ze),ot))}}return ze}var vt,wt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function getBestPattern(ce,ze){for(var Ve="",qe=0;qe>1),ot=getDefaultHourSymbolFromLocale(ze);for("H"!=ot&&"k"!=ot||(Xe=0);Xe-- >0;)Ve+="a";for(;Qe-- >0;)Ve=ot+Ve}else Ve+="J"===Ye?"H":Ye}return Ve}function getDefaultHourSymbolFromLocale(ce){var ze=ce.hourCycle;if(void 0===ze&&ce.hourCycles&&ce.hourCycles.length&&(ze=ce.hourCycles[0]),ze)switch(ze){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var Ve,qe=ce.language;return"root"!==qe&&(Ve=ce.maximize().region),(wt[Ve||""]||wt[qe||""]||wt["".concat(qe,"-001")]||wt["001"])[0]}var Ct=new RegExp("^".concat(Xe.source,"*")),Dt=new RegExp("".concat(Xe.source,"*$"));function createLocation(ce,ze){return{start:ce,end:ze}}var kt=!!String.prototype.startsWith,St=!!String.fromCodePoint,xt=!!Object.fromEntries,Et=!!String.prototype.codePointAt,Pt=!!String.prototype.trimStart,Tt=!!String.prototype.trimEnd,Lt=!!Number.isSafeInteger?Number.isSafeInteger:function(ce){return"number"==typeof ce&&isFinite(ce)&&Math.floor(ce)===ce&&Math.abs(ce)<=9007199254740991},Ft=!0;try{Ft="a"===(null===(vt=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===vt?void 0:vt[0])}catch(ce){Ft=!1}var Bt,Vt=kt?function startsWith(ce,ze,Ve){return ce.startsWith(ze,Ve)}:function startsWith(ce,ze,Ve){return ce.slice(Ve,Ve+ze.length)===ze},Ht=St?String.fromCodePoint:function fromCodePoint(){for(var ce=[],ze=0;zeWe;){if((Ve=ce[We++])>1114111)throw RangeError(Ve+" is not a valid code point");qe+=Ve<65536?String.fromCharCode(Ve):String.fromCharCode(55296+((Ve-=65536)>>10),Ve%1024+56320)}return qe},Ut=xt?Object.fromEntries:function fromEntries(ce){for(var ze={},Ve=0,qe=ce;Ve=Ve)){var qe,Ye=ce.charCodeAt(ze);return Ye<55296||Ye>56319||ze+1===Ve||(qe=ce.charCodeAt(ze+1))<56320||qe>57343?Ye:qe-56320+(Ye-55296<<10)+65536}},Jt=Pt?function trimStart(ce){return ce.trimStart()}:function trimStart(ce){return ce.replace(Ct,"")},Qt=Tt?function trimEnd(ce){return ce.trimEnd()}:function trimEnd(ce){return ce.replace(Dt,"")};function RE(ce,ze){return new RegExp(ce,ze)}if(Ft){var en=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bt=function matchIdentifierAtIndex(ce,ze){var Ve;return en.lastIndex=ze,null!==(Ve=en.exec(ce)[1])&&void 0!==Ve?Ve:""}}else Bt=function matchIdentifierAtIndex(ce,ze){for(var Ve=[];;){var qe=Wt(ce,ze);if(void 0===qe||_isWhiteSpace(qe)||_isPatternSyntax(qe))break;Ve.push(qe),ze+=qe>=65536?2:1}return Ht.apply(void 0,Ve)};var rn=function(){function Parser(ce,ze){void 0===ze&&(ze={}),this.message=ce,this.position={offset:0,line:1,column:1},this.ignoreTag=!!ze.ignoreTag,this.locale=ze.locale,this.requiresOtherClause=!!ze.requiresOtherClause,this.shouldParseSkeletons=!!ze.shouldParseSkeletons}return Parser.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Parser.prototype.parseMessage=function(ce,ze,Ve){for(var We=[];!this.isEOF();){var Qe=this.char();if(123===Qe){if((Xe=this.parseArgument(ce,Ve)).err)return Xe;We.push(Xe.val)}else{if(125===Qe&&ce>0)break;if(35!==Qe||"plural"!==ze&&"selectordinal"!==ze){if(60===Qe&&!this.ignoreTag&&47===this.peek()){if(Ve)break;return this.error(qe.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}if(60===Qe&&!this.ignoreTag&&_isAlpha(this.peek()||0)){if((Xe=this.parseTag(ce,ze)).err)return Xe;We.push(Xe.val)}else{var Xe;if((Xe=this.parseLiteral(ce,ze)).err)return Xe;We.push(Xe.val)}}else{var ot=this.clonePosition();this.bump(),We.push({type:Ye.pound,location:createLocation(ot,this.clonePosition())})}}}return{val:We,err:null}},Parser.prototype.parseTag=function(ce,ze){var Ve=this.clonePosition();this.bump();var We=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(We,"/>"),location:createLocation(Ve,this.clonePosition())},err:null};if(this.bumpIf(">")){var Qe=this.parseMessage(ce+1,ze,!0);if(Qe.err)return Qe;var Xe=Qe.val,ot=this.clonePosition();if(this.bumpIf("")?{val:{type:Ye.tag,value:We,children:Xe,location:createLocation(Ve,this.clonePosition())},err:null}:this.error(qe.INVALID_TAG,createLocation(ot,this.clonePosition())))}return this.error(qe.UNCLOSED_TAG,createLocation(Ve,this.clonePosition()))}return this.error(qe.INVALID_TAG,createLocation(Ve,this.clonePosition()))},Parser.prototype.parseTagName=function(){var ce,ze=this.offset();for(this.bump();!this.isEOF()&&(45===(ce=this.char())||46===ce||ce>=48&&ce<=57||95===ce||ce>=97&&ce<=122||ce>=65&&ce<=90||183==ce||ce>=192&&ce<=214||ce>=216&&ce<=246||ce>=248&&ce<=893||ce>=895&&ce<=8191||ce>=8204&&ce<=8205||ce>=8255&&ce<=8256||ce>=8304&&ce<=8591||ce>=11264&&ce<=12271||ce>=12289&&ce<=55295||ce>=63744&&ce<=64975||ce>=65008&&ce<=65533||ce>=65536&&ce<=983039);)this.bump();return this.message.slice(ze,this.offset())},Parser.prototype.parseLiteral=function(ce,ze){for(var Ve=this.clonePosition(),qe="";;){var We=this.tryParseQuote(ze);if(We)qe+=We;else{var Qe=this.tryParseUnquoted(ce,ze);if(Qe)qe+=Qe;else{var Xe=this.tryParseLeftAngleBracket();if(!Xe)break;qe+=Xe}}}var ot=createLocation(Ve,this.clonePosition());return{val:{type:Ye.literal,value:qe,location:ot},err:null}},Parser.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(_isAlpha(ce=this.peek()||0)||47===ce)?null:(this.bump(),"<");var ce},Parser.prototype.tryParseQuote=function(ce){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===ce||"selectordinal"===ce)break;return null;default:return null}this.bump();var ze=[this.char()];for(this.bump();!this.isEOF();){var Ve=this.char();if(39===Ve){if(39!==this.peek()){this.bump();break}ze.push(39),this.bump()}else ze.push(Ve);this.bump()}return Ht.apply(void 0,ze)},Parser.prototype.tryParseUnquoted=function(ce,ze){if(this.isEOF())return null;var Ve=this.char();return 60===Ve||123===Ve||35===Ve&&("plural"===ze||"selectordinal"===ze)||125===Ve&&ce>0?null:(this.bump(),Ht(Ve))},Parser.prototype.parseArgument=function(ce,ze){var Ve=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition()));if(125===this.char())return this.bump(),this.error(qe.EMPTY_ARGUMENT,createLocation(Ve,this.clonePosition()));var We=this.parseIdentifierIfPossible().value;if(!We)return this.error(qe.MALFORMED_ARGUMENT,createLocation(Ve,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:We,location:createLocation(Ve,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition())):this.parseArgumentOptions(ce,ze,We,Ve);default:return this.error(qe.MALFORMED_ARGUMENT,createLocation(Ve,this.clonePosition()))}},Parser.prototype.parseIdentifierIfPossible=function(){var ce=this.clonePosition(),ze=this.offset(),Ve=Bt(this.message,ze),qe=ze+Ve.length;return this.bumpTo(qe),{value:Ve,location:createLocation(ce,this.clonePosition())}},Parser.prototype.parseArgumentOptions=function(ce,ze,Ve,Xe){var ot,st=this.clonePosition(),mt=this.parseIdentifierIfPossible().value,gt=this.clonePosition();switch(mt){case"":return this.error(qe.EXPECT_ARGUMENT_TYPE,createLocation(st,gt));case"number":case"date":case"time":this.bumpSpace();var yt=null;if(this.bumpIf(",")){this.bumpSpace();var bt=this.clonePosition();if((Et=this.parseSimpleArgStyleIfPossible()).err)return Et;if(0===(Dt=Qt(Et.val)).length)return this.error(qe.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));yt={style:Dt,styleLocation:createLocation(bt,this.clonePosition())}}if((Pt=this.tryParseArgumentClose(Xe)).err)return Pt;var vt=createLocation(Xe,this.clonePosition());if(yt&&Vt(null==yt?void 0:yt.style,"::",0)){var wt=Jt(yt.style.slice(2));if("number"===mt)return(Et=this.parseNumberSkeletonFromString(wt,yt.styleLocation)).err?Et:{val:{type:Ye.number,value:Ve,location:vt,style:Et.val},err:null};if(0===wt.length)return this.error(qe.EXPECT_DATE_TIME_SKELETON,vt);var Ct=wt;this.locale&&(Ct=getBestPattern(wt,this.locale));var Dt={type:We.dateTime,pattern:Ct,location:yt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Ct):{}};return{val:{type:"date"===mt?Ye.date:Ye.time,value:Ve,location:vt,style:Dt},err:null}}return{val:{type:"number"===mt?Ye.number:"date"===mt?Ye.date:Ye.time,value:Ve,location:vt,style:null!==(ot=null==yt?void 0:yt.style)&&void 0!==ot?ot:null},err:null};case"plural":case"selectordinal":case"select":var kt=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(qe.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(kt,Object(Qe.a)({},kt)));this.bumpSpace();var St=this.parseIdentifierIfPossible(),xt=0;if("select"!==mt&&"offset"===St.value){if(!this.bumpIf(":"))return this.error(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));var Et;if(this.bumpSpace(),(Et=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return Et;this.bumpSpace(),St=this.parseIdentifierIfPossible(),xt=Et.val}var Pt,Tt=this.tryParsePluralOrSelectOptions(ce,mt,ze,St);if(Tt.err)return Tt;if((Pt=this.tryParseArgumentClose(Xe)).err)return Pt;var Lt=createLocation(Xe,this.clonePosition());return"select"===mt?{val:{type:Ye.select,value:Ve,options:Ut(Tt.val),location:Lt},err:null}:{val:{type:Ye.plural,value:Ve,options:Ut(Tt.val),offset:xt,pluralType:"plural"===mt?"cardinal":"ordinal",location:Lt},err:null};default:return this.error(qe.INVALID_ARGUMENT_TYPE,createLocation(st,gt))}},Parser.prototype.tryParseArgumentClose=function(ce){return this.isEOF()||125!==this.char()?this.error(qe.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(ce,this.clonePosition())):(this.bump(),{val:!0,err:null})},Parser.prototype.parseSimpleArgStyleIfPossible=function(){for(var ce=0,ze=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var Ve=this.clonePosition();if(!this.bumpUntil("'"))return this.error(qe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(Ve,this.clonePosition()));this.bump();break;case 123:ce+=1,this.bump();break;case 125:if(!(ce>0))return{val:this.message.slice(ze.offset,this.offset()),err:null};ce-=1;break;default:this.bump()}}return{val:this.message.slice(ze.offset,this.offset()),err:null}},Parser.prototype.parseNumberSkeletonFromString=function(ce,ze){var Ve=[];try{Ve=parseNumberSkeletonFromString(ce)}catch(ce){return this.error(qe.INVALID_NUMBER_SKELETON,ze)}return{val:{type:We.number,tokens:Ve,location:ze,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(Ve):{}},err:null}},Parser.prototype.tryParsePluralOrSelectOptions=function(ce,ze,Ve,Ye){for(var We,Qe=!1,Xe=[],ot=new Set,st=Ye.value,mt=Ye.location;;){if(0===st.length){var gt=this.clonePosition();if("select"===ze||!this.bumpIf("="))break;var yt=this.tryParseDecimalInteger(qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,qe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(yt.err)return yt;mt=createLocation(gt,this.clonePosition()),st=this.message.slice(gt.offset,this.offset())}if(ot.has(st))return this.error("select"===ze?qe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:qe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,mt);"other"===st&&(Qe=!0),this.bumpSpace();var bt=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===ze?qe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var vt=this.parseMessage(ce+1,ze,Ve);if(vt.err)return vt;var wt=this.tryParseArgumentClose(bt);if(wt.err)return wt;Xe.push([st,{value:vt.val,location:createLocation(bt,this.clonePosition())}]),ot.add(st),this.bumpSpace(),st=(We=this.parseIdentifierIfPossible()).value,mt=We.location}return 0===Xe.length?this.error("select"===ze?qe.EXPECT_SELECT_ARGUMENT_SELECTOR:qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!Qe?this.error(qe.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:Xe,err:null}},Parser.prototype.tryParseDecimalInteger=function(ce,ze){var Ve=1,qe=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(Ve=-1);for(var Ye=!1,We=0;!this.isEOF();){var Qe=this.char();if(!(Qe>=48&&Qe<=57))break;Ye=!0,We=10*We+(Qe-48),this.bump()}var Xe=createLocation(qe,this.clonePosition());return Ye?Lt(We*=Ve)?{val:We,err:null}:this.error(ze,Xe):this.error(ce,Xe)},Parser.prototype.offset=function(){return this.position.offset},Parser.prototype.isEOF=function(){return this.offset()===this.message.length},Parser.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Parser.prototype.char=function(){var ce=this.position.offset;if(ce>=this.message.length)throw Error("out of bound");var ze=Wt(this.message,ce);if(void 0===ze)throw Error("Offset ".concat(ce," is at invalid UTF-16 code unit boundary"));return ze},Parser.prototype.error=function(ce,ze){return{val:null,err:{kind:ce,message:this.message,location:ze}}},Parser.prototype.bump=function(){if(!this.isEOF()){var ce=this.char();10===ce?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=ce<65536?1:2)}},Parser.prototype.bumpIf=function(ce){if(Vt(this.message,ce,this.offset())){for(var ze=0;ze=0?(this.bumpTo(Ve),!0):(this.bumpTo(this.message.length),!1)},Parser.prototype.bumpTo=function(ce){if(this.offset()>ce)throw Error("targetOffset ".concat(ce," must be greater than or equal to the current offset ").concat(this.offset()));for(ce=Math.min(ce,this.message.length);;){var ze=this.offset();if(ze===ce)break;if(ze>ce)throw Error("targetOffset ".concat(ce," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},Parser.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},Parser.prototype.peek=function(){if(this.isEOF())return null;var ce=this.char(),ze=this.offset(),Ve=this.message.charCodeAt(ze+(ce>=65536?2:1));return null!=Ve?Ve:null},Parser}();function _isAlpha(ce){return ce>=97&&ce<=122||ce>=65&&ce<=90}function _isWhiteSpace(ce){return ce>=9&&ce<=13||32===ce||133===ce||ce>=8206&&ce<=8207||8232===ce||8233===ce}function _isPatternSyntax(ce){return ce>=33&&ce<=35||36===ce||ce>=37&&ce<=39||40===ce||41===ce||42===ce||43===ce||44===ce||45===ce||ce>=46&&ce<=47||ce>=58&&ce<=59||ce>=60&&ce<=62||ce>=63&&ce<=64||91===ce||92===ce||93===ce||94===ce||96===ce||123===ce||124===ce||125===ce||126===ce||161===ce||ce>=162&&ce<=165||166===ce||167===ce||169===ce||171===ce||172===ce||174===ce||176===ce||177===ce||182===ce||187===ce||191===ce||215===ce||247===ce||ce>=8208&&ce<=8213||ce>=8214&&ce<=8215||8216===ce||8217===ce||8218===ce||ce>=8219&&ce<=8220||8221===ce||8222===ce||8223===ce||ce>=8224&&ce<=8231||ce>=8240&&ce<=8248||8249===ce||8250===ce||ce>=8251&&ce<=8254||ce>=8257&&ce<=8259||8260===ce||8261===ce||8262===ce||ce>=8263&&ce<=8273||8274===ce||8275===ce||ce>=8277&&ce<=8286||ce>=8592&&ce<=8596||ce>=8597&&ce<=8601||ce>=8602&&ce<=8603||ce>=8604&&ce<=8607||8608===ce||ce>=8609&&ce<=8610||8611===ce||ce>=8612&&ce<=8613||8614===ce||ce>=8615&&ce<=8621||8622===ce||ce>=8623&&ce<=8653||ce>=8654&&ce<=8655||ce>=8656&&ce<=8657||8658===ce||8659===ce||8660===ce||ce>=8661&&ce<=8691||ce>=8692&&ce<=8959||ce>=8960&&ce<=8967||8968===ce||8969===ce||8970===ce||8971===ce||ce>=8972&&ce<=8991||ce>=8992&&ce<=8993||ce>=8994&&ce<=9e3||9001===ce||9002===ce||ce>=9003&&ce<=9083||9084===ce||ce>=9085&&ce<=9114||ce>=9115&&ce<=9139||ce>=9140&&ce<=9179||ce>=9180&&ce<=9185||ce>=9186&&ce<=9254||ce>=9255&&ce<=9279||ce>=9280&&ce<=9290||ce>=9291&&ce<=9311||ce>=9472&&ce<=9654||9655===ce||ce>=9656&&ce<=9664||9665===ce||ce>=9666&&ce<=9719||ce>=9720&&ce<=9727||ce>=9728&&ce<=9838||9839===ce||ce>=9840&&ce<=10087||10088===ce||10089===ce||10090===ce||10091===ce||10092===ce||10093===ce||10094===ce||10095===ce||10096===ce||10097===ce||10098===ce||10099===ce||10100===ce||10101===ce||ce>=10132&&ce<=10175||ce>=10176&&ce<=10180||10181===ce||10182===ce||ce>=10183&&ce<=10213||10214===ce||10215===ce||10216===ce||10217===ce||10218===ce||10219===ce||10220===ce||10221===ce||10222===ce||10223===ce||ce>=10224&&ce<=10239||ce>=10240&&ce<=10495||ce>=10496&&ce<=10626||10627===ce||10628===ce||10629===ce||10630===ce||10631===ce||10632===ce||10633===ce||10634===ce||10635===ce||10636===ce||10637===ce||10638===ce||10639===ce||10640===ce||10641===ce||10642===ce||10643===ce||10644===ce||10645===ce||10646===ce||10647===ce||10648===ce||ce>=10649&&ce<=10711||10712===ce||10713===ce||10714===ce||10715===ce||ce>=10716&&ce<=10747||10748===ce||10749===ce||ce>=10750&&ce<=11007||ce>=11008&&ce<=11055||ce>=11056&&ce<=11076||ce>=11077&&ce<=11078||ce>=11079&&ce<=11084||ce>=11085&&ce<=11123||ce>=11124&&ce<=11125||ce>=11126&&ce<=11157||11158===ce||ce>=11159&&ce<=11263||ce>=11776&&ce<=11777||11778===ce||11779===ce||11780===ce||11781===ce||ce>=11782&&ce<=11784||11785===ce||11786===ce||11787===ce||11788===ce||11789===ce||ce>=11790&&ce<=11798||11799===ce||ce>=11800&&ce<=11801||11802===ce||11803===ce||11804===ce||11805===ce||ce>=11806&&ce<=11807||11808===ce||11809===ce||11810===ce||11811===ce||11812===ce||11813===ce||11814===ce||11815===ce||11816===ce||11817===ce||ce>=11818&&ce<=11822||11823===ce||ce>=11824&&ce<=11833||ce>=11834&&ce<=11835||ce>=11836&&ce<=11839||11840===ce||11841===ce||11842===ce||ce>=11843&&ce<=11855||ce>=11856&&ce<=11857||11858===ce||ce>=11859&&ce<=11903||ce>=12289&&ce<=12291||12296===ce||12297===ce||12298===ce||12299===ce||12300===ce||12301===ce||12302===ce||12303===ce||12304===ce||12305===ce||ce>=12306&&ce<=12307||12308===ce||12309===ce||12310===ce||12311===ce||12312===ce||12313===ce||12314===ce||12315===ce||12316===ce||12317===ce||ce>=12318&&ce<=12319||12320===ce||12336===ce||64830===ce||64831===ce||ce>=65093&&ce<=65094}function pruneLocation(ce){ce.forEach((function(ce){if(delete ce.location,isSelectElement(ce)||isPluralElement(ce))for(var ze in ce.options)delete ce.options[ze].location,pruneLocation(ce.options[ze].value);else isNumberElement(ce)&&isNumberSkeleton(ce.style)||(isDateElement(ce)||isTimeElement(ce))&&isDateTimeSkeleton(ce.style)?delete ce.style.location:isTagElement(ce)&&pruneLocation(ce.children)}))}function parse(ce,ze){void 0===ze&&(ze={}),ze=Object(Qe.a)({shouldParseSkeletons:!0,requiresOtherClause:!0},ze);var Ve=new rn(ce,ze).parse();if(Ve.err){var Ye=SyntaxError(qe[Ve.err.kind]);throw Ye.location=Ve.err.location,Ye.originalMessage=Ve.err.message,Ye}return(null==ze?void 0:ze.captureLocation)||pruneLocation(Ve.val),Ve.val}function memoize(ce,ze){var Ve=ze&&ze.cache?ze.cache:mn,qe=ze&&ze.serializer?ze.serializer:serializerDefault;return(ze&&ze.strategy?ze.strategy:strategyDefault)(ce,{cache:Ve,serializer:qe})}function isPrimitive(ce){return null==ce||"number"==typeof ce||"boolean"==typeof ce}function monadic(ce,ze,Ve,qe){var Ye=isPrimitive(qe)?qe:Ve(qe),We=ze.get(Ye);return void 0===We&&(We=ce.call(this,qe),ze.set(Ye,We)),We}function variadic(ce,ze,Ve){var qe=Array.prototype.slice.call(arguments,3),Ye=Ve(qe),We=ze.get(Ye);return void 0===We&&(We=ce.apply(this,qe),ze.set(Ye,We)),We}function assemble(ce,ze,Ve,qe,Ye){return Ve.bind(ze,ce,qe,Ye)}function strategyDefault(ce,ze){return assemble(ce,this,1===ce.length?monadic:variadic,ze.cache.create(),ze.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(ce){return this.cache[ce]},ObjectWithoutPrototypeCache.prototype.set=function(ce,ze){this.cache[ce]=ze};var ln,mn={create:function create(){return new ObjectWithoutPrototypeCache}},gn={variadic:function strategyVariadic(ce,ze){return assemble(ce,this,variadic,ze.cache.create(),ze.serializer)},monadic:function strategyMonadic(ce,ze){return assemble(ce,this,monadic,ze.cache.create(),ze.serializer)}};!function(ce){ce.MISSING_VALUE="MISSING_VALUE",ce.INVALID_VALUE="INVALID_VALUE",ce.MISSING_INTL_API="MISSING_INTL_API"}(ln||(ln={}));var bn,wn=function(ce){function FormatError(ze,Ve,qe){var Ye=ce.call(this,ze)||this;return Ye.code=Ve,Ye.originalMessage=qe,Ye}return Object(Qe.c)(FormatError,ce),FormatError.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},FormatError}(Error),Cn=function(ce){function InvalidValueError(ze,Ve,qe,Ye){return ce.call(this,'Invalid values for "'.concat(ze,'": "').concat(Ve,'". Options are "').concat(Object.keys(qe).join('", "'),'"'),ln.INVALID_VALUE,Ye)||this}return Object(Qe.c)(InvalidValueError,ce),InvalidValueError}(wn),Sn=function(ce){function InvalidValueTypeError(ze,Ve,qe){return ce.call(this,'Value for "'.concat(ze,'" must be of type ').concat(Ve),ln.INVALID_VALUE,qe)||this}return Object(Qe.c)(InvalidValueTypeError,ce),InvalidValueTypeError}(wn),En=function(ce){function MissingValueError(ze,Ve){return ce.call(this,'The intl string context variable "'.concat(ze,'" was not provided to the string "').concat(Ve,'"'),ln.MISSING_VALUE,Ve)||this}return Object(Qe.c)(MissingValueError,ce),MissingValueError}(wn);function mergeLiteral(ce){return ce.length<2?ce:ce.reduce((function(ce,ze){var Ve=ce[ce.length-1];return Ve&&Ve.type===bn.literal&&ze.type===bn.literal?Ve.value+=ze.value:ce.push(ze),ce}),[])}function isFormatXMLElementFn(ce){return"function"==typeof ce}function formatToParts(ce,ze,Ve,qe,Ye,We,Qe){if(1===ce.length&&isLiteralElement(ce[0]))return[{type:bn.literal,value:ce[0].value}];for(var Xe=[],ot=0,st=ce;ot0?new Intl.Locale(ze[0]):new Intl.Locale("string"==typeof ce?ce:ce[0])},IntlMessageFormat.__parse=parse,IntlMessageFormat.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},IntlMessageFormat}();ze.a=Tn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var qe=Ve(18),Ye=Ve(372),We=Ve(31);Ve(52);We.a;var Qe=Ve(56);class Xe extends qe.a{constructor(ce,ze){super(ce),this.modelElements=ze}refresh(){const ce=Object(Qe.d)(this.editor.model.document.selection.getSelectedBlocks());this.value=!!ce&&this.modelElements.includes(ce.name)&&ce.name,this.isEnabled=!!ce&&this.modelElements.some((ze=>checkCanBecomeHeading(ce,ze,this.editor.model.schema)))}execute(ce){const ze=this.editor.model,Ve=ze.document,qe=ce.value;ze.change((ce=>{const Ye=Array.from(Ve.selection.getSelectedBlocks()).filter((ce=>checkCanBecomeHeading(ce,qe,ze.schema)));for(const ze of Ye)ze.is("element",qe)||ce.rename(ze,qe)}))}}function checkCanBecomeHeading(ce,ze,Ve){return Ve.checkChild(ce.parent,ze)&&!Ve.isObject(ce)}const ot="paragraph";class st extends qe.f{static get pluginName(){return"HeadingEditing"}constructor(ce){super(ce),ce.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Ye.a]}init(){const ce=this.editor,ze=ce.config.get("heading.options"),Ve=[];for(const qe of ze)qe.model!==ot&&(ce.model.schema.register(qe.model,{inheritAllFrom:"$block"}),ce.conversion.elementToElement(qe),Ve.push(qe.model));this._addDefaultH1Conversion(ce),ce.commands.add("heading",new Xe(ce,Ve))}afterInit(){const ce=this.editor,ze=ce.commands.get("enter"),Ve=ce.config.get("heading.options");ze&&this.listenTo(ze,"afterExecute",((ze,qe)=>{const Ye=ce.model.document.selection.getFirstPosition().parent;Ve.some((ce=>Ye.is("element",ce.model)))&&!Ye.is("element",ot)&&0===Ye.childCount&&qe.writer.rename(Ye,ot)}))}_addDefaultH1Conversion(ce){ce.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Qe.i.get("low")+1})}}var mt=Ve(46);function getLocalizedOptions(ce){const ze=ce.t,Ve={Paragraph:ze("Paragraph"),"Heading 1":ze("Heading 1"),"Heading 2":ze("Heading 2"),"Heading 3":ze("Heading 3"),"Heading 4":ze("Heading 4"),"Heading 5":ze("Heading 5"),"Heading 6":ze("Heading 6")};return ce.config.get("heading.options").map((ce=>{const ze=Ve[ce.title];return ze&&ze!=ce.title&&(ce.title=ze),ce}))}class gt extends qe.f{static get pluginName(){return"HeadingUI"}init(){const ce=this.editor,ze=ce.t,Ve=getLocalizedOptions(ce),qe=ze("Choose heading"),Ye=ze("Heading");ce.ui.componentFactory.add("heading",(ze=>{const We={},Xe=new Qe.b,ot=ce.commands.get("heading"),st=ce.commands.get("paragraph"),gt=[ot];for(const ce of Ve){const ze={type:"button",model:new mt.d({label:ce.title,class:ce.class,withText:!0})};"paragraph"===ce.model?(ze.model.bind("isOn").to(st,"value"),ze.model.set("commandName","paragraph"),gt.push(st)):(ze.model.bind("isOn").to(ot,"value",(ze=>ze===ce.model)),ze.model.set({commandName:"heading",commandValue:ce.model})),Xe.add(ze),We[ce.model]=ce.title}const yt=Object(mt.k)(ze);return Object(mt.i)(yt,Xe),yt.buttonView.set({isOn:!1,withText:!0,tooltip:Ye}),yt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),yt.bind("isEnabled").toMany(gt,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),yt.buttonView.bind("label").to(ot,"value",st,"value",((ce,ze)=>{const Ve=ce||ze&&"paragraph";return We[Ve]?We[Ve]:qe})),this.listenTo(yt,"execute",(ze=>{ce.execute(ze.source.commandName,ze.source.commandValue?{value:ze.source.commandValue}:void 0),ce.editing.view.focus()})),yt}))}}class yt extends qe.f{static get requires(){return[st,gt]}static get pluginName(){return"Heading"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return bt}));var qe=Ve(18),Ye=Ve(56);class We extends qe.a{constructor(ce,ze){super(ce),this.type=ze}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,qe=Array.from(Ve.selection.getSelectedBlocks()).filter((ce=>checkCanBecomeListItem(ce,ze.schema))),Ye=void 0!==ce.forceValue?!ce.forceValue:this.value;ze.change((ce=>{if(Ye){let ze=qe[qe.length-1].nextSibling,Ve=Number.POSITIVE_INFINITY,Ye=[];for(;ze&&"listItem"==ze.name&&0!==ze.getAttribute("listIndent");){const ce=ze.getAttribute("listIndent");ce=Ve;)We>Ye.getAttribute("listIndent")&&(We=Ye.getAttribute("listIndent")),Ye.getAttribute("listIndent")==We&&ce[ze?"unshift":"push"](Ye),Ye=Ye[ze?"previousSibling":"nextSibling"]}}function checkCanBecomeListItem(ce,ze){return ze.checkChild(ce.parent,"listItem")&&!ze.isObject(ce)}class Qe extends qe.a{constructor(ce,ze){super(ce),this._indentBy="forward"==ze?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const ce=this.editor.model,ze=ce.document;let Ve=Array.from(ze.selection.getSelectedBlocks());ce.change((ce=>{const ze=Ve[Ve.length-1];let qe=ze.nextSibling;for(;qe&&"listItem"==qe.name&&qe.getAttribute("listIndent")>ze.getAttribute("listIndent");)Ve.push(qe),qe=qe.nextSibling;this._indentBy<0&&(Ve=Ve.reverse());for(const ze of Ve){const Ve=ze.getAttribute("listIndent")+this._indentBy;Ve<0?ce.rename(ze,"paragraph"):ce.setAttribute("listIndent",Ve,ze)}this.fire("_executeCleanup",Ve)}))}_checkEnabled(){const ce=Object(Ye.d)(this.editor.model.document.selection.getSelectedBlocks());if(!ce||!ce.is("element","listItem"))return!1;if(this._indentBy>0){const ze=ce.getAttribute("listIndent"),Ve=ce.getAttribute("listType");let qe=ce.previousSibling;for(;qe&&qe.is("element","listItem")&&qe.getAttribute("listIndent")>=ze;){if(qe.getAttribute("listIndent")==ze)return qe.getAttribute("listType")==Ve;qe=qe.previousSibling}return!1}return!0}}var Xe=Ve(453),ot=Ve(311),st=Ve(260),mt=Ve(46);function createViewListItemElement(ce){const ze=ce.createContainerElement("li");return ze.getFillerOffset=getListItemFillerOffset,ze}function generateLiInUl(ce,ze){const Ve=ze.mapper,qe=ze.writer,Ye="numbered"==ce.getAttribute("listType")?"ol":"ul",We=createViewListItemElement(qe),Qe=qe.createContainerElement(Ye,null);return qe.insert(qe.createPositionAt(Qe,0),We),Ve.bindElements(ce,We),We}function injectViewList(ce,ze,Ve,qe){const Ye=ze.parent,We=Ve.mapper,Qe=Ve.writer;let Xe=We.toViewPosition(qe.createPositionBefore(ce));const ot=getSiblingListItem(ce.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:ce.getAttribute("listIndent")}),st=ce.previousSibling;if(ot&&ot.getAttribute("listIndent")==ce.getAttribute("listIndent")){const ce=We.toViewElement(ot);Xe=Qe.breakContainer(Qe.createPositionAfter(ce))}else if(st&&"listItem"==st.name){Xe=We.toViewPosition(qe.createPositionAt(st,"end"));const ce=We.findMappedViewAncestor(Xe),ze=findNestedList(ce);Xe=ze?Qe.createPositionBefore(ze):Qe.createPositionAt(ce,"end")}else Xe=We.toViewPosition(qe.createPositionBefore(ce));if(Xe=positionAfterUiElements(Xe),Qe.insert(Xe,Ye),st&&"listItem"==st.name){const ce=We.toViewElement(st),Ve=Qe.createRange(Qe.createPositionAt(ce,0),Xe).getWalker({ignoreElementEnd:!0});for(const ce of Ve)if(ce.item.is("element","li")){const qe=Qe.breakContainer(Qe.createPositionBefore(ce.item)),Ye=ce.item.parent,We=Qe.createPositionAt(ze,"end");mergeViewLists(Qe,We.nodeBefore,We.nodeAfter),Qe.move(Qe.createRangeOn(Ye),We),Ve.position=qe}}else{const Ve=Ye.nextSibling;if(Ve&&(Ve.is("element","ul")||Ve.is("element","ol"))){let qe=null;for(const ze of Ve.getChildren()){const Ve=We.toModelElement(ze);if(!(Ve&&Ve.getAttribute("listIndent")>ce.getAttribute("listIndent")))break;qe=ze}qe&&(Qe.breakContainer(Qe.createPositionAfter(qe)),Qe.move(Qe.createRangeOn(qe.parent),Qe.createPositionAt(ze,"end")))}}mergeViewLists(Qe,Ye,Ye.nextSibling),mergeViewLists(Qe,Ye.previousSibling,Ye)}function mergeViewLists(ce,ze,Ve){return!ze||!Ve||"ul"!=ze.name&&"ol"!=ze.name||ze.name!=Ve.name||ze.getAttribute("class")!==Ve.getAttribute("class")?null:ce.mergeContainers(ce.createPositionAfter(ze))}function positionAfterUiElements(ce){return ce.getLastMatchingPosition((ce=>ce.item.is("uiElement")))}function getSiblingListItem(ce,ze){const Ve=!!ze.sameIndent,qe=!!ze.smallerIndent,Ye=ze.listIndent;let We=ce;for(;We&&"listItem"==We.name;){const ce=We.getAttribute("listIndent");if(Ve&&Ye==ce||qe&&Ye>ce)return We;We="forward"===ze.direction?We.nextSibling:We.previousSibling}return null}function createUIComponent(ce,ze,Ve,qe){ce.ui.componentFactory.add(ze,(Ye=>{const We=ce.commands.get(ze),Qe=new mt.b(Ye);return Qe.set({label:Ve,icon:qe,tooltip:!0,isToggleable:!0}),Qe.bind("isOn","isEnabled").to(We,"value","isEnabled"),Qe.on("execute",(()=>{ce.execute(ze),ce.editing.view.focus()})),Qe}))}function findNestedList(ce){for(const ze of ce.getChildren())if("ul"==ze.name||"ol"==ze.name)return ze;return null}function getListItemFillerOffset(){const ce=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||ce?0:st.d.call(this)}function modelViewInsertion(ce){return(ze,Ve,qe)=>{const Ye=qe.consumable;if(!Ye.test(Ve.item,"insert")||!Ye.test(Ve.item,"attribute:listType")||!Ye.test(Ve.item,"attribute:listIndent"))return;Ye.consume(Ve.item,"insert"),Ye.consume(Ve.item,"attribute:listType"),Ye.consume(Ve.item,"attribute:listIndent");const We=Ve.item;injectViewList(We,generateLiInUl(We,qe),qe,ce)}}function modelViewRemove(ce){return(ze,Ve,qe)=>{const Ye=qe.mapper.toViewPosition(Ve.position).getLastMatchingPosition((ce=>!ce.item.is("element","li"))).nodeAfter,We=qe.writer;We.breakContainer(We.createPositionBefore(Ye)),We.breakContainer(We.createPositionAfter(Ye));const Qe=Ye.parent,Xe=Qe.previousSibling,ot=We.createRangeOn(Qe),st=We.remove(ot);Xe&&Xe.nextSibling&&mergeViewLists(We,Xe,Xe.nextSibling);hoistNestedLists(qe.mapper.toModelElement(Ye).getAttribute("listIndent")+1,Ve.position,ot.start,Ye,qe,ce);for(const ce of We.createRangeIn(st).getItems())qe.mapper.unbindViewElement(ce);ze.stop()}}function modelViewChangeType(ce,ze,Ve){if(!Ve.consumable.test(ze.item,ce.name))return;const qe=Ve.mapper.toViewElement(ze.item),Ye=Ve.writer;Ye.breakContainer(Ye.createPositionBefore(qe)),Ye.breakContainer(Ye.createPositionAfter(qe));const We=qe.parent,Qe="numbered"==ze.attributeNewValue?"ol":"ul";Ye.rename(Qe,We)}function modelViewMergeAfterChangeType(ce,ze,Ve){Ve.consumable.consume(ze.item,ce.name);const qe=Ve.mapper.toViewElement(ze.item).parent,Ye=Ve.writer;mergeViewLists(Ye,qe,qe.nextSibling),mergeViewLists(Ye,qe.previousSibling,qe)}function modelViewChangeIndent(ce){return(ze,Ve,qe)=>{if(!qe.consumable.consume(Ve.item,"attribute:listIndent"))return;const Ye=qe.mapper.toViewElement(Ve.item),We=qe.writer;We.breakContainer(We.createPositionBefore(Ye)),We.breakContainer(We.createPositionAfter(Ye));const Qe=Ye.parent,Xe=Qe.previousSibling,ot=We.createRangeOn(Qe);We.remove(ot),Xe&&Xe.nextSibling&&mergeViewLists(We,Xe,Xe.nextSibling),hoistNestedLists(Ve.attributeOldValue+1,Ve.range.start,ot.start,Ye,qe,ce),injectViewList(Ve.item,Ye,qe,ce);for(const ce of Ve.item.getChildren())qe.consumable.consume(ce,"insert")}}function modelViewSplitOnInsert(ce,ze,Ve){if(Ve.consumable.test(ze.item,ce.name)&&"listItem"!=ze.item.name){let ce=Ve.mapper.toViewPosition(ze.range.start);const qe=Ve.writer,Ye=[];for(;("ul"==ce.parent.name||"ol"==ce.parent.name)&&(ce=qe.breakContainer(ce),"li"==ce.parent.name);){const ze=ce,Ve=qe.createPositionAt(ce.parent,"end");if(!ze.isEqual(Ve)){const ce=qe.remove(qe.createRange(ze,Ve));Ye.push(ce)}ce=qe.createPositionAfter(ce.parent)}if(Ye.length>0){for(let ze=0;ze0){const ze=mergeViewLists(qe,Ve,Ve.nextSibling);ze&&ze.parent==Ve&&ce.offset--}}mergeViewLists(qe,ce.nodeBefore,ce.nodeAfter)}}}function modelViewMergeAfter(ce,ze,Ve){const qe=Ve.mapper.toViewPosition(ze.position),Ye=qe.nodeBefore,We=qe.nodeAfter;mergeViewLists(Ve.writer,Ye,We)}function viewModelConverter(ce,ze,Ve){if(Ve.consumable.consume(ze.viewItem,{name:!0})){const ce=Ve.writer,qe=ce.createElement("listItem"),Ye=getIndent(ze.viewItem);ce.setAttribute("listIndent",Ye,qe);const We=ze.viewItem.parent&&"ol"==ze.viewItem.parent.name?"numbered":"bulleted";if(ce.setAttribute("listType",We,qe),!Ve.safeInsert(qe,ze.modelCursor))return;const Qe=viewToModelListItemChildrenConverter(qe,ze.viewItem.getChildren(),Ve);ze.modelRange=ce.createRange(ze.modelCursor,Qe),Ve.updateConversionResult(qe,ze)}}function cleanList(ce,ze,Ve){if(Ve.consumable.test(ze.viewItem,{name:!0})){const ce=Array.from(ze.viewItem.getChildren());for(const ze of ce){!(ze.is("element","li")||isList(ze))&&ze._remove()}}}function cleanListItem(ce,ze,Ve){if(Ve.consumable.test(ze.viewItem,{name:!0})){if(0===ze.viewItem.childCount)return;const ce=[...ze.viewItem.getChildren()];let Ve=!1;for(const ze of ce)Ve&&!isList(ze)&&ze._remove(),isList(ze)&&(Ve=!0)}}function modelToViewPosition(ce){return(ze,Ve)=>{if(Ve.isPhantom)return;const qe=Ve.modelPosition.nodeBefore;if(qe&&qe.is("element","listItem")){const ze=Ve.mapper.toViewElement(qe),Ye=ze.getAncestors().find(isList),We=ce.createPositionAt(ze,0).getWalker();for(const ce of We){if("elementStart"==ce.type&&ce.item.is("element","li")){Ve.viewPosition=ce.previousPosition;break}if("elementEnd"==ce.type&&ce.item==Ye){Ve.viewPosition=ce.nextPosition;break}}}}}function modelChangePostFixer(ce,ze){const Ve=ce.document.differ.getChanges(),qe=new Map;let Ye=!1;for(const qe of Ve)if("insert"==qe.type&&"listItem"==qe.name)_addListToFix(qe.position);else if("insert"==qe.type&&"listItem"!=qe.name){if("$text"!=qe.name){const Ve=qe.position.nodeAfter;Ve.hasAttribute("listIndent")&&(ze.removeAttribute("listIndent",Ve),Ye=!0),Ve.hasAttribute("listType")&&(ze.removeAttribute("listType",Ve),Ye=!0),Ve.hasAttribute("listStyle")&&(ze.removeAttribute("listStyle",Ve),Ye=!0),Ve.hasAttribute("listReversed")&&(ze.removeAttribute("listReversed",Ve),Ye=!0),Ve.hasAttribute("listStart")&&(ze.removeAttribute("listStart",Ve),Ye=!0);for(const ze of Array.from(ce.createRangeIn(Ve)).filter((ce=>ce.item.is("element","listItem"))))_addListToFix(ze.previousPosition)}_addListToFix(qe.position.getShiftedBy(qe.length))}else"remove"==qe.type&&"listItem"==qe.name?_addListToFix(qe.position):("attribute"==qe.type&&"listIndent"==qe.attributeKey||"attribute"==qe.type&&"listType"==qe.attributeKey)&&_addListToFix(qe.range.start);for(const ce of qe.values())_fixListIndents(ce),_fixListTypes(ce);return Ye;function _addListToFix(ce){const ze=ce.nodeBefore;if(ze&&ze.is("element","listItem")){let ce=ze;if(qe.has(ce))return;for(let ze=ce.previousSibling;ze&&ze.is("element","listItem");ze=ce.previousSibling)if(ce=ze,qe.has(ce))return;qe.set(ze,ce)}else{const ze=ce.nodeAfter;ze&&ze.is("element","listItem")&&qe.set(ze,ze)}}function _fixListIndents(ce){let Ve=0,qe=null;for(;ce&&ce.is("element","listItem");){const We=ce.getAttribute("listIndent");if(We>Ve){let Qe;null===qe?(qe=We-Ve,Qe=Ve):(qe>We&&(qe=We),Qe=We-qe),ze.setAttribute("listIndent",Qe,ce),Ye=!0}else qe=null,Ve=ce.getAttribute("listIndent")+1;ce=ce.nextSibling}}function _fixListTypes(ce){let Ve=[],qe=null;for(;ce&&ce.is("element","listItem");){const We=ce.getAttribute("listIndent");if(qe&&qe.getAttribute("listIndent")>We&&(Ve=Ve.slice(0,We+1)),0!=We)if(Ve[We]){const qe=Ve[We];ce.getAttribute("listType")!=qe&&(ze.setAttribute("listType",qe,ce),Ye=!0)}else Ve[We]=ce.getAttribute("listType");qe=ce,ce=ce.nextSibling}}}function modelIndentPasteFixer(ce,ze){let Ve,[qe,Ye]=ze,We=qe.is("documentFragment")?qe.getChild(0):qe;if(Ve=Ye?this.createSelection(Ye):this.document.selection,We&&We.is("element","listItem")){const ce=Ve.getFirstPosition();let ze=null;if(ce.parent.is("element","listItem")?ze=ce.parent:ce.nodeBefore&&ce.nodeBefore.is("element","listItem")&&(ze=ce.nodeBefore),ze){const ce=ze.getAttribute("listIndent");if(ce>0)for(;We&&We.is("element","listItem");)We._setAttribute("listIndent",We.getAttribute("listIndent")+ce),We=We.nextSibling}}}function viewToModelListItemChildrenConverter(ce,ze,Ve){const{writer:qe,schema:Ye}=Ve;let We=qe.createPositionAfter(ce);for(const Qe of ze)if("ul"==Qe.name||"ol"==Qe.name)We=Ve.convertItem(Qe,We).modelCursor;else{const ze=Ve.convertItem(Qe,qe.createPositionAt(ce,"end")),Xe=ze.modelRange.start.nodeAfter;Xe&&Xe.is("element")&&!Ye.checkChild(ce,Xe.name)&&(ce=ze.modelCursor.parent.is("element","listItem")?ze.modelCursor.parent:findNextListItem(ze.modelCursor),We=qe.createPositionAfter(ce))}return We}function findNextListItem(ce){const ze=new st.b({startPosition:ce});let Ve;do{Ve=ze.next()}while(!Ve.value.item.is("element","listItem"));return Ve.value.item}function hoistNestedLists(ce,ze,Ve,qe,Ye,We){const Qe=getSiblingListItem(ze.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:ce,foo:"b"}),Xe=Ye.mapper,ot=Ye.writer,st=Qe?Qe.getAttribute("listIndent"):null;let mt;if(Qe)if(st==ce){const ce=Xe.toViewElement(Qe).parent;mt=ot.createPositionAfter(ce)}else{const ce=We.createPositionAt(Qe,"end");mt=Xe.toViewPosition(ce)}else mt=Ve;mt=positionAfterUiElements(mt);for(const ce of[...qe.getChildren()])isList(ce)&&(mt=ot.move(ot.createRangeOn(ce),mt).end,mergeViewLists(ot,ce,ce.nextSibling),mergeViewLists(ot,ce.previousSibling,ce))}function isList(ce){return ce.is("element","ol")||ce.is("element","ul")}function getIndent(ce){let ze=0,Ve=ce.parent;for(;Ve;){if(Ve.is("element","li"))ze++;else{const ce=Ve.previousSibling;ce&&ce.is("element","li")&&ze++}Ve=Ve.parent}return ze}class gt extends qe.f{static get pluginName(){return"ListEditing"}static get requires(){return[Xe.a,ot.a]}init(){const ce=this.editor;ce.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const ze=ce.data,Ve=ce.editing;var qe;ce.model.document.registerPostFixer((ze=>modelChangePostFixer(ce.model,ze))),Ve.mapper.registerViewToModelLength("li",getViewListItemLength),ze.mapper.registerViewToModelLength("li",getViewListItemLength),Ve.mapper.on("modelToViewPosition",modelToViewPosition(Ve.view)),Ve.mapper.on("viewToModelPosition",(qe=ce.model,(ce,ze)=>{const Ve=ze.viewPosition,Ye=Ve.parent,We=ze.mapper;if("ul"==Ye.name||"ol"==Ye.name){if(Ve.isAtEnd){const ce=We.toModelElement(Ve.nodeBefore),Ye=We.getModelLength(Ve.nodeBefore);ze.modelPosition=qe.createPositionBefore(ce).getShiftedBy(Ye)}else{const ce=We.toModelElement(Ve.nodeAfter);ze.modelPosition=qe.createPositionBefore(ce)}ce.stop()}else if("li"==Ye.name&&Ve.nodeBefore&&("ul"==Ve.nodeBefore.name||"ol"==Ve.nodeBefore.name)){const Qe=We.toModelElement(Ye);let Xe=1,ot=Ve.nodeBefore;for(;ot&&isList(ot);)Xe+=We.getModelLength(ot),ot=ot.previousSibling;ze.modelPosition=qe.createPositionBefore(Qe).getShiftedBy(Xe),ce.stop()}})),ze.mapper.on("modelToViewPosition",modelToViewPosition(Ve.view)),ce.conversion.for("editingDowncast").add((ze=>{ze.on("insert",modelViewSplitOnInsert,{priority:"high"}),ze.on("insert:listItem",modelViewInsertion(ce.model)),ze.on("attribute:listType:listItem",modelViewChangeType,{priority:"high"}),ze.on("attribute:listType:listItem",modelViewMergeAfterChangeType,{priority:"low"}),ze.on("attribute:listIndent:listItem",modelViewChangeIndent(ce.model)),ze.on("remove:listItem",modelViewRemove(ce.model)),ze.on("remove",modelViewMergeAfter,{priority:"low"})})),ce.conversion.for("dataDowncast").add((ze=>{ze.on("insert",modelViewSplitOnInsert,{priority:"high"}),ze.on("insert:listItem",modelViewInsertion(ce.model))})),ce.conversion.for("upcast").add((ce=>{ce.on("element:ul",cleanList,{priority:"high"}),ce.on("element:ol",cleanList,{priority:"high"}),ce.on("element:li",cleanListItem,{priority:"high"}),ce.on("element:li",viewModelConverter)})),ce.model.on("insertContent",modelIndentPasteFixer,{priority:"high"}),ce.commands.add("numberedList",new We(ce,"numbered")),ce.commands.add("bulletedList",new We(ce,"bulleted")),ce.commands.add("indentList",new Qe(ce,"forward")),ce.commands.add("outdentList",new Qe(ce,"backward"));const Ye=Ve.view.document;this.listenTo(Ye,"enter",((ce,ze)=>{const Ve=this.editor.model.document,qe=Ve.selection.getLastPosition().parent;Ve.selection.isCollapsed&&"listItem"==qe.name&&qe.isEmpty&&(this.editor.execute("outdentList"),ze.preventDefault(),ce.stop())}),{context:"li"}),this.listenTo(Ye,"delete",((ce,ze)=>{if("backward"!==ze.direction)return;const Ve=this.editor.model.document.selection;if(!Ve.isCollapsed)return;const qe=Ve.getFirstPosition();if(!qe.isAtStart)return;const Ye=qe.parent;if("listItem"!==Ye.name)return;Ye.previousSibling&&"listItem"===Ye.previousSibling.name||(this.editor.execute("outdentList"),ze.preventDefault(),ce.stop())}),{context:"li"}),this.listenTo(ce.editing.view.document,"tab",((ze,Ve)=>{const qe=Ve.shiftKey?"outdentList":"indentList";this.editor.commands.get(qe).isEnabled&&(ce.execute(qe),Ve.stopPropagation(),Ve.preventDefault(),ze.stop())}),{context:"li"})}afterInit(){const ce=this.editor.commands,ze=ce.get("indent"),Ve=ce.get("outdent");ze&&ze.registerChildCommand(ce.get("indentList")),Ve&&Ve.registerChildCommand(ce.get("outdentList"))}}function getViewListItemLength(ce){let ze=1;for(const Ve of ce.getChildren())if("ul"==Ve.name||"ol"==Ve.name)for(const ce of Ve.getChildren())ze+=getViewListItemLength(ce);return ze}class yt extends qe.f{static get pluginName(){return"ListUI"}init(){const ce=this.editor.t;createUIComponent(this.editor,"numberedList",ce("Numbered List"),''),createUIComponent(this.editor,"bulletedList",ce("Bulleted List"),'')}}class bt extends qe.f{static get requires(){return[gt,yt]}static get pluginName(){return"List"}}},function(ce,ze,Ve){"use strict";var qe=Ve(300);var Ye=function apply(ce,ze,Ve){switch(Ve.length){case 0:return ce.call(ze);case 1:return ce.call(ze,Ve[0]);case 2:return ce.call(ze,Ve[0],Ve[1]);case 3:return ce.call(ze,Ve[0],Ve[1],Ve[2])}return ce.apply(ze,Ve)},We=Math.max;var Qe=function overRest(ce,ze,Ve){return ze=We(void 0===ze?ce.length-1:ze,0),function(){for(var qe=arguments,Qe=-1,Xe=We(qe.length-ze,0),ot=Array(Xe);++Qe0){if(++ze>=800)return arguments[0]}else ze=0;return ce.apply(void 0,arguments)}},yt=gt(st);var bt=function baseRest(ce,ze){return yt(Qe(ce,ze,qe.a),ce+"")},vt=Ve(223),wt=Ve(174),Ct=Ve(301),Dt=Ve(71);var kt=function isIterateeCall(ce,ze,Ve){if(!Object(Dt.a)(Ve))return!1;var qe=typeof ze;return!!("number"==qe?Object(wt.a)(Ve)&&Object(Ct.a)(ze,Ve.length):"string"==qe&&ze in Ve)&&Object(vt.a)(Ve[ze],ce)};ze.a=function createAssigner(ce){return bt((function(ze,Ve){var qe=-1,Ye=Ve.length,We=Ye>1?Ve[Ye-1]:void 0,Qe=Ye>2?Ve[2]:void 0;for(We=ce.length>3&&"function"==typeof We?(Ye--,We):void 0,Qe&&kt(Ve[0],Ve[1],Qe)&&(We=Ye<3?void 0:We,Ye=1),ze=Object(ze);++qe{let ze;return ze="string"==typeof ce?{name:ce}:ce,ze})).filter((ce=>{const ze=!!We.includes(ce.name);return ze||Object(Ye.g)("alignment-config-name-not-recognized",{option:ce}),ze})),Ve=ze.filter((ce=>!!ce.className)).length;if(Ve&&Ve{const We=qe.slice(Ve+1);if(We.some((ce=>ce.name==ze.name)))throw new Ye.a("alignment-config-name-already-defined",{option:ze,configuredOptions:ce});if(ze.className){if(We.some((ce=>ce.className==ze.className)))throw new Ye.a("alignment-config-classname-already-defined",{option:ze,configuredOptions:ce})}})),ze}const Qe="alignment";class Xe extends qe.a{refresh(){const ce=this.editor.locale,ze=Object(Ye.d)(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!ze&&this._canBeAligned(ze),this.isEnabled&&ze.hasAttribute("alignment")?this.value=ze.getAttribute("alignment"):this.value="rtl"===ce.contentLanguageDirection?"right":"left"}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor,Ve=ze.locale,qe=ze.model,Ye=qe.document,We=ce.value;qe.change((ce=>{const ze=Array.from(Ye.selection.getSelectedBlocks()).filter((ce=>this._canBeAligned(ce))),qe=ze[0].getAttribute("alignment");isDefault(We,Ve)||qe===We||!We?removeAlignmentFromSelection(ze,ce):setAlignmentOnSelection(ze,ce,We)}))}_canBeAligned(ce){return this.editor.model.schema.checkAttribute(ce,Qe)}}function removeAlignmentFromSelection(ce,ze){for(const Ve of ce)ze.removeAttribute(Qe,Ve)}function setAlignmentOnSelection(ce,ze,Ve){for(const qe of ce)ze.setAttribute(Qe,Ve,qe)}class ot extends qe.f{static get pluginName(){return"AlignmentEditing"}constructor(ce){super(ce),ce.config.define("alignment",{options:[...We.map((ce=>({name:ce})))]})}init(){const ce=this.editor,ze=ce.locale,Ve=ce.model.schema,qe=normalizeAlignmentOptions(ce.config.get("alignment.options")).filter((ce=>isSupported(ce.name)&&!isDefault(ce.name,ze))),Ye=qe.some((ce=>!!ce.className));Ve.extend("$block",{allowAttributes:"alignment"}),ce.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),Ye?ce.conversion.attributeToAttribute(buildClassDefinition(qe)):ce.conversion.for("downcast").attributeToAttribute(buildDowncastInlineDefinition(qe));const We=buildUpcastInlineDefinitions(qe);for(const ze of We)ce.conversion.for("upcast").attributeToAttribute(ze);const Qe=buildUpcastCompatibilityDefinitions(qe);for(const ze of Qe)ce.conversion.for("upcast").attributeToAttribute(ze);ce.commands.add("alignment",new Xe(ce))}}function buildDowncastInlineDefinition(ce){const ze={model:{key:"alignment",values:ce.map((ce=>ce.name))},view:{}};for(const{name:Ve}of ce)ze.view[Ve]={key:"style",value:{"text-align":Ve}};return ze}function buildUpcastInlineDefinitions(ce){const ze=[];for(const{name:Ve}of ce)ze.push({view:{key:"style",value:{"text-align":Ve}},model:{key:"alignment",value:Ve}});return ze}function buildUpcastCompatibilityDefinitions(ce){const ze=[];for(const{name:Ve}of ce)ze.push({view:{key:"align",value:Ve},model:{key:"alignment",value:Ve}});return ze}function buildClassDefinition(ce){const ze={model:{key:"alignment",values:ce.map((ce=>ce.name))},view:{}};for(const Ve of ce)ze.view[Ve.name]={key:"class",value:Ve.className};return ze}var st=Ve(46);const mt=new Map([["left",qe.h.alignLeft],["right",qe.h.alignRight],["center",qe.h.alignCenter],["justify",qe.h.alignJustify]]);class gt extends qe.f{get localizedOptionTitles(){const ce=this.editor.t;return{left:ce("Align left"),right:ce("Align right"),center:ce("Align center"),justify:ce("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const ce=this.editor,ze=ce.ui.componentFactory,Ve=ce.t,qe=normalizeAlignmentOptions(ce.config.get("alignment.options"));qe.map((ce=>ce.name)).filter(isSupported).forEach((ce=>this._addButton(ce))),ze.add("alignment",(ce=>{const Ye=Object(st.k)(ce),We=qe.map((ce=>ze.create(`alignment:${ce.name}`)));Object(st.j)(Ye,We),Ye.buttonView.set({label:Ve("Text alignment"),tooltip:!0}),Ye.toolbarView.isVertical=!0,Ye.toolbarView.ariaLabel=Ve("Text alignment toolbar"),Ye.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const Qe="rtl"===ce.contentLanguageDirection?mt.get("right"):mt.get("left");return Ye.buttonView.bind("icon").toMany(We,"isOn",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece));return qe<0?Qe:We[qe].icon})),Ye.bind("isEnabled").toMany(We,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),Ye}))}_addButton(ce){const ze=this.editor;ze.ui.componentFactory.add(`alignment:${ce}`,(Ve=>{const qe=ze.commands.get("alignment"),Ye=new st.b(Ve);return Ye.set({label:this.localizedOptionTitles[ce],icon:mt.get(ce),tooltip:!0,isToggleable:!0}),Ye.bind("isEnabled").to(qe),Ye.bind("isOn").to(qe,"value",(ze=>ze===ce)),this.listenTo(Ye,"execute",(()=>{ze.execute("alignment",{value:ce}),ze.editing.view.focus()})),Ye}))}}class yt extends qe.f{static get requires(){return[ot,gt]}static get pluginName(){return"Alignment"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(18),Ye=Ve(311),We=Ve(154);const Qe="code";class Xe extends qe.f{static get pluginName(){return"CodeEditing"}static get requires(){return[Ye.b]}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:Qe}),ce.model.schema.setAttributeProperties(Qe,{isFormatting:!0,copyOnEnter:!1}),ce.conversion.attributeToElement({model:Qe,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),ce.commands.add(Qe,new We.a(ce,Qe)),ce.plugins.get(Ye.b).registerAttribute(Qe),Object(Ye.d)(ce,Qe,"code","ck-code_selected")}}var ot=Ve(46);const st="code";class mt extends qe.f{static get pluginName(){return"CodeUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(st,(Ve=>{const qe=ce.commands.get(st),Ye=new ot.b(Ve);return Ye.set({label:ze("Code"),icon:'',tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(st),ce.editing.view.focus()})),Ye}))}}class gt extends qe.f{static get requires(){return[Xe,mt]}static get pluginName(){return"Code"}}},function(ce,ze,Ve){"use strict";var qe=Ve(71),Ye=Ve(102),lodash_es_now=function(){return Ye.a.Date.now()},We=/\s/;var Qe=function trimmedEndIndex(ce){for(var ze=ce.length;ze--&&We.test(ce.charAt(ze)););return ze},Xe=/^\s+/;var ot=function baseTrim(ce){return ce?ce.slice(0,Qe(ce)+1).replace(Xe,""):ce},st=Ve(302),mt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,bt=parseInt;var vt=function toNumber(ce){if("number"==typeof ce)return ce;if(Object(st.a)(ce))return NaN;if(Object(qe.a)(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=Object(qe.a)(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=ot(ce);var Ve=gt.test(ce);return Ve||yt.test(ce)?bt(ce.slice(2),Ve?2:8):mt.test(ce)?NaN:+ce},wt=Math.max,Ct=Math.min;ze.a=function debounce(ce,ze,Ve){var Ye,We,Qe,Xe,ot,st,mt=0,gt=!1,yt=!1,bt=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");function invokeFunc(ze){var Ve=Ye,qe=We;return Ye=We=void 0,mt=ze,Xe=ce.apply(qe,Ve)}function leadingEdge(ce){return mt=ce,ot=setTimeout(timerExpired,ze),gt?invokeFunc(ce):Xe}function remainingWait(ce){var Ve=ze-(ce-st);return yt?Ct(Ve,Qe-(ce-mt)):Ve}function shouldInvoke(ce){var Ve=ce-st;return void 0===st||Ve>=ze||Ve<0||yt&&ce-mt>=Qe}function timerExpired(){var ce=lodash_es_now();if(shouldInvoke(ce))return trailingEdge(ce);ot=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return ot=void 0,bt&&Ye?invokeFunc(ce):(Ye=We=void 0,Xe)}function debounced(){var ce=lodash_es_now(),Ve=shouldInvoke(ce);if(Ye=arguments,We=this,st=ce,Ve){if(void 0===ot)return leadingEdge(st);if(yt)return clearTimeout(ot),ot=setTimeout(timerExpired,ze),invokeFunc(st)}return void 0===ot&&(ot=setTimeout(timerExpired,ze)),Xe}return ze=vt(ze)||0,Object(qe.a)(Ve)&&(gt=!!Ve.leading,Qe=(yt="maxWait"in Ve)?wt(vt(Ve.maxWait)||0,ze):Qe,bt="trailing"in Ve?!!Ve.trailing:bt),debounced.cancel=function cancel(){void 0!==ot&&clearTimeout(ot),mt=0,Ye=st=We=ot=void 0},debounced.flush=function flush(){return void 0===ot?Xe:trailingEdge(lodash_es_now())},debounced}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(707),ot=Ve(19),st=Ve(54),mt=Ve(11),gt="segment-counter--6WCzMfgGWo",yt="exceeded--L3Cgi59Gcj";class bt extends Ye.a.Component{render(){const{delimiter:ce,max:ze,value:Ve}=this.props,qe=ze-(Ve?Ve.split(ce).length:0),We=Qe()(gt,{[yt]:qe&&qe<0});return Ye.a.createElement("label",{className:We},qe," ",Object(mt.b)("sulu_admin.segments_left"))}}var vt=bt,wt={input:"input--lRaa-EQlvU",left:"left--zfE4uDmq7N",center:"center--y1vbli066Q",right:"right--p1UfMBJBKs",collapsed:"collapsed--JxUWIHYMya","has-append-icon":"has-append-icon--8MTSyOLCN7",hasAppendIcon:"has-append-icon--8MTSyOLCN7",dark:"dark--eIndbZqmCx",error:"error--mK68vlPVQc",disabled:"disabled--v8PH8Zuri6","prepended-container":"prepended-container--8YoQCBVZtK",prependedContainer:"prepended-container--8YoQCBVZtK",icon:"icon--hXKPMeeKfN",headline:"headline--Bw-g8XRsqF","append-container":"append-container--M-sUN98jEV",appendContainer:"append-container--M-sUN98jEV","icon-clickable":"icon-clickable--rn4Rq69Tq1",iconClickable:"icon-clickable--rn4Rq69Tq1"};class Ct extends Ye.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setInputContainerRef=ce=>{const{inputContainerRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:mt,valid:gt,disabled:yt,icon:bt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Vt,type:Ht,value:Ut,iconStyle:Wt,iconClassName:Jt,inputMode:Qt,inputRef:en,inputContainerRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Qe()(wt.input,wt[ln],wt[ce],{[wt.error]:!gt,[wt.disabled]:yt,[wt.collapsed]:Dt,[wt.hasAppendIcon]:Lt,[wt.headline]:Ve}),Cn=Qe()(wt.icon,wt[ln],Jt,{[wt.iconClickable]:!!bt&&!!Tt,[wt.collapsed]:Dt}),Sn=Qe()(wt.prependedContainer,wt[ln],{[wt.collapsed]:Dt});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("div",{className:wn,ref:rn?this.setInputContainerRef:void 0},!Ct&&bt&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(ot.a,{className:Cn,name:bt,onClick:Tt||void 0,style:Wt})),Ct&&Ye.a.createElement("div",{className:Sn},Ye.a.createElement(st.a,{size:20})),Ye.a.createElement("input",{autoComplete:ze,className:mt,disabled:yt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Ht,value:null==Ut?"":Ut}),!Dt&&!!Ut&&Lt&&Ye.a.createElement("div",{className:wt.appendContainer},Ye.a.createElement(ot.a,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Wt}))),kt&&Ye.a.createElement(Xe.a,{max:kt,value:Ut}),Vt&&St&&Ye.a.createElement(vt,{delimiter:Vt,max:St,value:Ut?Ut.toString():void 0}))}}Ct.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(26),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(330),st=Ve(118),mt=Ve(19),gt="suggestion-item--mLxfuEGm0g",yt="suggestion--I9nVsxwZQ-",bt="icon---IDJICds9O";class vt extends Ye.a.PureComponent{constructor(){super(...arguments),this.highlightMatchingTextPart=ce=>{if(!ce)return null;if(!this.props.query)return ce;let ze,Ve,qe=[];try{ze=new RegExp(this.props.query,"gi"),Ve=ce.split(ze),qe=ce.match(ze)}catch(ze){Ve=ce.split(this.props.query),qe=[];for(let ce=0;ceYe.a.createElement(Ye.a.Fragment,null,ce,qe&&qe[ze]?Ye.a.createElement("strong",null,qe[ze]):null))))},this.handleClick=()=>{const{value:ce,onSelect:ze}=this.props;ze&&ze(ce)}}render(){const{minWidth:ce,icon:ze,children:Ve}=this.props;return Ye.a.createElement("li",{className:gt,style:{minWidth:ce+"px"}},Ye.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},ze&&Ye.a.createElement(mt.a,{className:bt,name:ze}),"string"==typeof Ve&&this.highlightMatchingTextPart(Ve),"function"==typeof Ve&&Ve(this.highlightMatchingTextPart)))}}vt.defaultProps={minWidth:0,query:""};var wt,Ct,Dt,kt="column--EjBqSQIwph";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let St=(Dt=class extends Ye.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="suggestionsRef",qe=this,(Ve=Ct)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.setSuggestionsRef=ce=>{this.suggestionsRef=ce},this.handlePopoverClose=()=>{this.props.onClose&&this.props.onClose()},this.handleUp=()=>{const ce=this.buttons[this.activeButtonIndex-1];ce&&ce.focus()},this.handleDown=()=>{const ce=this.buttons[this.activeButtonIndex+1];ce&&ce.focus()}}get buttons(){return this.suggestionsRef?Array.from(this.suggestionsRef.getElementsByTagName("button")):[]}get activeButtonIndex(){return this.buttons.findIndex((ce=>ce===document.activeElement))}componentDidMount(){!0===this.props.open&&(Qe.a.bind("up",this.handleUp),Qe.a.bind("down",this.handleDown))}componentDidUpdate(ce){!0===this.props.open&&!1===ce.open&&(Qe.a.bind("up",this.handleUp),Qe.a.bind("down",this.handleDown)),!1===this.props.open&&!0===ce.open&&(Qe.a.unbind("up"),Qe.a.unbind("down"))}render(){const{anchorElement:ce,idProperty:ze,minWidth:Ve,onSelect:qe,open:We,query:Qe,searchProperties:Xe,suggestions:mt}=this.props;return Ye.a.createElement(st.a,{anchorElement:ce,horizontalOffset:5,onClose:this.handlePopoverClose,open:We,popoverChildRef:this.setSuggestionsRef,verticalOffset:-2},((ce,We)=>Ye.a.createElement(ot.a,{menuRef:ce,style:We},mt.map((ce=>Ye.a.createElement(vt,{key:ce[ze],minWidth:Ve,onSelect:qe,query:Qe,value:ce},(ze=>Xe.map((Ve=>Ye.a.createElement("span",{className:kt,key:Ve},ze(ce[Ve])))))))))))}},Dt.defaultProps={idProperty:"id",minWidth:0},Ct=_applyDecoratedDescriptor((wt=Dt).prototype,"suggestionsRef",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"buttons",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"buttons"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"activeButtonIndex",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"activeButtonIndex"),wt.prototype),wt);ze.a=St},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="bold";class Qe extends qe.f{static get pluginName(){return"BoldEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"strong",upcastAlso:["b",ce=>{const ze=ce.getStyle("font-weight");return ze?"bold"==ze||Number(ze)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),ce.commands.add(We,new Ye.a(ce,We)),ce.keystrokes.set("CTRL+B",We)}}var Xe=Ve(46);const ot="bold";class st extends qe.f{static get pluginName(){return"BoldUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Bold"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(56),We=Ve(1093),Qe=Ve(46),Xe=Ve(260);class ot extends qe.d{constructor(ce,ze){super(ce),this.view=ze,this._toolbarConfig=Object(Qe.m)(ce.config.get("toolbar")),this._elementReplacer=new Ye.c}get element(){return this.view.element}init(ce){const ze=this.editor,Ve=this.view,qe=ze.editing.view,Ye=Ve.editable,We=qe.document.getRoot();Ye.name=We.rootName,Ve.render();const Qe=Ye.element;this.setEditableElement(Ye.name,Qe),this.focusTracker.add(Qe),Ve.editable.bind("isFocused").to(this.focusTracker),qe.attachDomRoot(Qe),ce&&this._elementReplacer.replace(ce,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const ce=this.view,ze=this.editor.editing.view;this._elementReplacer.restore(),ze.detachDomRoot(ce.editable.name),ce.destroy(),super.destroy()}_initToolbar(){const ce=this.editor,ze=this.view,Ve=ce.editing.view;ze.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),ze.stickyPanel.limiterElement=ze.element,ze.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(ce=>{let{top:ze}=ce;return ze})),ze.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),Object(Qe.l)({origin:Ve,originFocusTracker:this.focusTracker,originKeystrokeHandler:ce.keystrokes,toolbar:ze.toolbar})}_initPlaceholder(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document.getRoot(),qe=ce.sourceElement,Ye=ce.config.get("placeholder")||qe&&"textarea"===qe.tagName.toLowerCase()&&qe.getAttribute("placeholder");Ye&&Object(Xe.c)({view:ze,element:Ve,text:Ye,isDirectHost:!1,keepOnFocus:!0})}}class st extends Qe.a{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(ce),this.stickyPanel=new Qe.f(ce),this.toolbar=new Qe.g(ce,{shouldGroupWhenFull:Ve.shouldToolbarGroupWhenFull}),this.editable=new Qe.c(ce,ze)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class mt extends qe.c{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(We.a)(ce)&&void 0!==ze.initialData)throw new Ye.a("editor-create-initial-data",null);super(ze),void 0===this.config.get("initialData")&&this.config.set("initialData",getInitialData(ce)),Object(We.a)(ce)&&(this.sourceElement=ce),this.model.document.createRoot();const Ve=!this.config.get("toolbar.shouldNotGroupWhenFull"),Qe=new st(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:Ve});this.ui=new ot(this,Qe),Object(qe.g)(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((Ve=>{const qe=new this(ce,ze);Ve(qe.initPlugins().then((()=>qe.ui.init(Object(We.a)(ce)?ce:null))).then((()=>qe.data.init(qe.config.get("initialData")))).then((()=>qe.fire("ready"))).then((()=>qe)))}))}}function getInitialData(ce){return Object(We.a)(ce)?Object(Ye.e)(ce):ce}Object(Ye.h)(mt,qe.b),Object(Ye.h)(mt,qe.e)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="italic";class Qe extends qe.f{static get pluginName(){return"ItalicEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),ce.commands.add(We,new Ye.a(ce,We)),ce.keystrokes.set("CTRL+I",We)}}var Xe=Ve(46);const ot="italic";class st extends qe.f{static get pluginName(){return"ItalicUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Italic"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="strikethrough";class Qe extends qe.f{static get pluginName(){return"StrikethroughEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),ce.commands.add(We,new Ye.a(ce,We)),ce.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}var Xe=Ve(46);const ot="strikethrough";class st extends qe.f{static get pluginName(){return"StrikethroughUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Strikethrough"),icon:'',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Strikethrough"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="underline";class Qe extends qe.f{static get pluginName(){return"UnderlineEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),ce.commands.add(We,new Ye.a(ce,We)),ce.keystrokes.set("CTRL+U","underline")}}var Xe=Ve(46);const ot="underline";class st extends qe.f{static get pluginName(){return"UnderlineUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Underline"),icon:'',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Underline"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="subscript";class Qe extends qe.f{static get pluginName(){return"SubscriptEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),ce.commands.add(We,new Ye.a(ce,We))}}var Xe=Ve(46);const ot="subscript";class st extends qe.f{static get pluginName(){return"SubscriptUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Subscript"),icon:'',tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Subscript"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(18),Ye=Ve(154);const We="superscript";class Qe extends qe.f{static get pluginName(){return"SuperscriptEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),ce.commands.add(We,new Ye.a(ce,We))}}var Xe=Ve(46);const ot="superscript";class st extends qe.f{static get pluginName(){return"SuperscriptUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const qe=ce.commands.get(ot),Ye=new Xe.b(Ve);return Ye.set({label:ze("Superscript"),icon:'',tooltip:!0,isToggleable:!0}),Ye.bind("isOn","isEnabled").to(qe,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),Ye}))}}class mt extends qe.f{static get requires(){return[Qe,st]}static get pluginName(){return"Superscript"}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(131),bt=Ve(6),vt=Ve(112),wt="form--gSFfgzlYR0";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ct=Object(gt.b)((Xe=class extends st.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"formErrors",We,this),this.handleOverlayConfirm=()=>{if(!this.formRef)throw new Error("The Form ref has not been set! This should not happen and is likely a bug.");this.formRef.submit()},this.handleFormSubmit=()=>{const{formStore:ce,onConfirm:ze}=this.props;"function"==typeof ce.save?ce.save().then((()=>{ze()})).catch(Object(mt.action)((ce=>{this.formErrors.push(ce.detail||ce.title||Object(bt.translate)("sulu_admin.form_save_server_error"))}))):ze()},this.handleFormError=()=>{this.formErrors.push(Object(bt.translate)("sulu_admin.form_contains_invalid_values"))},_initializerDefineProperty(this,"handleErrorSnackbarClose",Qe,this),this.setFormRef=ce=>{this.formRef=ce}}get confirmLoading(){const{confirmLoading:ce,formStore:ze}=this.props,Ve="boolean"==typeof ze.saving&&ze.saving;return ce||Ve}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.formErrors=[])}render(){const{confirmDisabled:ce,confirmText:ze,formStore:Ve,onClose:qe,open:Ye,size:We,title:Qe}=this.props;return st.a.createElement(yt.a,{confirmDisabled:ce,confirmLoading:this.confirmLoading,confirmText:ze,onClose:qe,onConfirm:this.handleOverlayConfirm,onSnackbarCloseClick:this.handleErrorSnackbarClose,open:Ye,size:We,snackbarMessage:this.formErrors[this.formErrors.length-1],snackbarType:"error",title:Qe},st.a.createElement("div",{className:wt},st.a.createElement(vt.b,{onError:this.handleFormError,onSubmit:this.handleFormSubmit,ref:this.setFormRef,store:Ve})))}},Xe.defaultProps={confirmDisabled:!1,confirmLoading:!1},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"formErrors",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"confirmLoading",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"confirmLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleErrorSnackbarClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.formErrors.pop()}}}),qe=Ye))||qe;var Dt=Ct;ze.a=Dt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(887),Ve(888);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(9),ot=Ve.n(Xe),st="clickable--UCeCAqpUC0";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,iconRef:qe,style:We}=this.props;let Xe="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":Xe=null;break;case"fa-":Xe="fa";break;default:return logInvalidIconWarning(ze),null}const ot=Qe()(Xe||void 0,ze,{[st]:Ve},ce),mt=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return Ye.a.createElement("span",_extends({"aria-label":ze,className:ot,ref:qe,style:We},mt))}}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(11),ot="character-counter--SB0ysLSjv4",st="exceeded--kCljAKljk-";class mt extends Ye.a.Component{render(){const{max:ce,value:ze}=this.props,Ve=ce-(ze?ze.toString().length:0),qe=Qe()(ot,{[st]:Ve&&Ve<0});return Ye.a.createElement("label",{className:qe},Ve+" "+Object(Xe.b)("sulu_admin.characters_left"))}}ze.a=mt},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(0),Xe=Ve.n(Qe),ot=Ve(1),st=Ve(3),mt=Ve(5),gt=Ve.n(mt),yt=Ve(22),bt=Ve.n(yt),vt=Ve(101),wt=Ve(131),Ct=Ve(126),Dt=(Ve(216),Ve(6)),kt={list:"list--Z88-dxQO3Y",overlay:"overlay--cWnFS1jqOy","adapter-container":"adapter-container--nEKrE04UT+",adapterContainer:"adapter-container--nEKrE04UT+",column_list:"column_list--EIYBdSNXcR",columnList:"column_list--EIYBdSNXcR",adapter:"adapter--5ztyHzT+Zx",dialog:"dialog--EBgKfyPgwQ"};function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var St=Object(st.b)(((We=class extends Xe.a.Component{get preSelectedItems(){return this.props.preSelectedItems}get listStore(){return this.props.listStore}constructor(ce){super(ce),this.updateSelection=()=>{this.listStore.clearSelection(),this.preSelectedItems.forEach((ce=>{this.listStore.select(ce)}))},this.handleConfirm=()=>{this.props.onConfirm()},this.updateSelectionDisposer=Object(ot.autorun)(this.updateSelection)}componentDidUpdate(ce){const{clearSelectionOnClose:ze,open:Ve,reloadOnOpen:qe}=this.props;!this.listStore.loading&&qe&&!1===ce.open&&!0===Ve&&(this.listStore.reset(),this.listStore.reload()),ze&&!0===ce.open&&!1===Ve&&this.listStore.clearSelection()}componentWillUnmount(){this.updateSelectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,confirmLoading:Ve,disabledIds:qe,itemDisabledCondition:Ye,onClose:We,open:Qe,overlayType:st,preSelectedItems:mt,title:yt}=this.props,St=gt()(kt.adapterContainer,kt[st],kt[ce]),xt=gt()(kt.list,kt.adapter,kt[ce]),Et=Xe.a.createElement("div",{className:St},Xe.a.createElement("div",{className:xt},Xe.a.createElement(Ct.b,{adapters:[ce],allowActivateForDisabledItems:ze,copyable:!1,deletable:!1,disabledIds:qe,itemDisabledCondition:Ye,movable:!1,orderable:!1,searchable:!0,store:this.listStore})));if("overlay"===st)return Xe.a.createElement(wt.a,{confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onClose:We,onConfirm:this.handleConfirm,open:Qe,size:"large",title:yt},Et);if("dialog"===st)return Xe.a.createElement(vt.a,{cancelText:Object(Dt.translate)("sulu_admin.cancel"),confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onCancel:We,onConfirm:this.handleConfirm,open:Qe,size:"large",title:yt},Et);throw new Error('The "'+st+'" overlayType does not exist in the ListOverlay.')}}).defaultProps={allowActivateForDisabledItems:!0,clearSelectionOnClose:!1,disabledIds:[],overlayType:"overlay",preSelectedItems:[],reloadOnOpen:!1},_applyDecoratedDescriptor((Ye=We).prototype,"preSelectedItems",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"preSelectedItems"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"listStore",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"listStore"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"componentDidUpdate",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"componentDidUpdate"),Ye.prototype),qe=Ye))||qe;ze.a=St},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(11),Qe=Ve(19),Xe="permission-hint--pHkhMWKprt",ot="permission-icon--hfvhkkr5Nu";class st extends Ye.a.Component{render(){return Ye.a.createElement("div",{className:Xe},Ye.a.createElement("div",{className:ot},Ye.a.createElement(Qe.a,{name:"su-lock"})),Object(We.b)("sulu_admin.no_permissions"))}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(707),ot="text-area--mXXr+y+1bi",st="error--f8oV+AFM6I",mt="disabled--NLxM9rrrMb";class gt extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()}}render(){const{id:ce,disabled:ze,maxCharacters:Ve,name:We,placeholder:gt,value:yt,valid:bt}=this.props,vt=Qe()(ot,{[st]:!bt,[mt]:ze});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("textarea",{className:vt,disabled:ze,id:ce,name:We,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:gt,value:yt||""}),Ve&&Ye.a.createElement(Xe.a,{max:Ve,value:yt}))}}gt.defaultProps={disabled:!1,valid:!0};ze.a=gt},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Qe=Ve.n(We),Xe=Ve(19),ot={chip:"chip--NVtxk+e38O",icon:"icon--Lge15wnZDv",clickable:"clickable--wygUth1fyj",disabled:"disabled--gPP6YIZt4L",primary:"primary--cUz-lvbLZY",secondary:"secondary--me1rHPGJss",small:"small--FSUqAH+pmh",medium:"medium--G9GotKrH2P"};class st extends Ye.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)},this.handleDelete=()=>{const{onDelete:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{children:ce,disabled:ze,onClick:Ve,onDelete:qe,size:We,skin:st}=this.props,mt=Qe()(ot.chip,ot[st],ot[We],{[ot.disabled]:ze,[ot.clickable]:!!Ve});return Ye.a.createElement("button",{className:mt,onClick:this.handleClick,type:"button"},ce,!ze&&qe&&Ye.a.createElement(Xe.a,{className:ot.icon,name:"su-times",onClick:this.handleDelete}))}}st.defaultProps={disabled:!1,size:"small",skin:"secondary"};ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe,Xe,ot=Ve(1),st=Ve(49);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let mt=(qe=class{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;_initializerDefineProperty(this,"searchResults",Ye,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"clearSearchResults",Qe,this),_initializerDefineProperty(this,"search",Xe,this),this.resourceKey=ce,this.searchProperties=ze,this.options=Ve,this.locale=qe}},Ye=_applyDecoratedDescriptor(qe.prototype,"searchResults",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"clearSearchResults",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchResults.splice(0,this.searchResults.length)}}}),Xe=_applyDecoratedDescriptor(qe.prototype,"search",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const{resourceKey:qe,searchProperties:Ye}=ce;return ce.loading=!0,st.a.getList(qe,{...ce.options,excludedIds:Ve,locale:ce.locale?ce.locale.get():void 0,limit:10,page:1,searchFields:Ye,search:ze}).then(Object(ot.action)((ze=>(ce.clearSearchResults(),ce.searchResults.push(...ze._embedded[qe]),ce.loading=!1,ce.searchResults)))).catch(Object(ot.action)((()=>{ce.loading=!1}))).then((()=>[]))}}}),qe);ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(18),Ye=Ve(236);function getSelectedTableWidget(ce){const ze=ce.getSelectedElement();return ze&&isTableWidget(ze)?ze:null}function getTableWidgetAncestor(ce){let ze=ce.getFirstPosition().parent;for(;ze;){if(ze.is("element")&&isTableWidget(ze))return ze;ze=ze.parent}return null}function isTableWidget(ce){return!!ce.getCustomProperty("table")&&Object(Ye.c)(ce)}class We extends qe.f{static get requires(){return[Ye.b]}static get pluginName(){return"TableToolbar"}afterInit(){const ce=this.editor,ze=ce.t,Ve=ce.plugins.get(Ye.b),qe=ce.config.get("table.contentToolbar"),We=ce.config.get("table.tableToolbar");qe&&Ve.register("tableContent",{ariaLabel:ze("Table toolbar"),items:qe,getRelatedElement:getTableWidgetAncestor}),We&&Ve.register("table",{ariaLabel:ze("Table toolbar"),items:We,getRelatedElement:getSelectedTableWidget})}}},function(ce,ze,Ve){"use strict";function getActionIcon(ce){switch(ce){case"view":return"su-eye";case"add":return"su-plus-circle";case"edit":return"su-pen";case"delete":return"su-trash-alt";case"security":return"su-lock";case"live":return"su-publish";default:throw new Error('No icon defined for "'+ce+'"')}}Ve.d(ze,"a",(function(){return getActionIcon}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return toPropertyKey}));var qe=Ve(332);function toPrimitive(ce,ze){if("object"!=Object(qe.a)(ce)||!ce)return ce;var Ve=ce[Symbol.toPrimitive];if(void 0!==Ve){var Ye=Ve.call(ce,ze||"default");if("object"!=Object(qe.a)(Ye))return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ze?String:Number)(ce)}function toPropertyKey(ce){var ze=toPrimitive(ce,"string");return"symbol"==Object(qe.a)(ze)?ze:ze+""}},function(ce,ze,Ve){"use strict";var qe=Ve(141),Ye=Ve(660),We=Ve(82),Qe=Ve(302),Xe=qe.a?qe.a.prototype:void 0,ot=Xe?Xe.toString:void 0;var st=function baseToString(ce){if("string"==typeof ce)return ce;if(Object(We.a)(ce))return Object(Ye.a)(ce,baseToString)+"";if(Object(Qe.a)(ce))return ot?ot.call(ce):"";var ze=ce+"";return"0"==ze&&1/ce==-1/0?"-0":ze};ze.a=function toString_toString(ce){return null==ce?"":st(ce)}},function(ce,ze,Ve){"use strict";var qe=function createBaseFor(ce){return function(ze,Ve,qe){for(var Ye=-1,We=Object(ze),Qe=qe(ze),Xe=Qe.length;Xe--;){var ot=Qe[ce?Xe:++Ye];if(!1===Ve(We[ot],ot,We))break}return ze}}();ze.a=qe},function(ce,ze,Ve){"use strict";var qe=function baseTimes(ce,ze){for(var Ve=-1,qe=Array(ce);++Ve2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;_initializerDefineProperty(this,"searchResults",Ye,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"clearSearchResults",Qe,this),_initializerDefineProperty(this,"search",Xe,this),this.resourceKey=ce,this.searchProperties=ze,this.options=Ve,this.locale=qe}},Ye=_applyDecoratedDescriptor(qe.prototype,"searchResults",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"clearSearchResults",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchResults.splice(0,this.searchResults.length)}}}),Xe=_applyDecoratedDescriptor(qe.prototype,"search",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const{resourceKey:qe,searchProperties:Ye}=ce;return ce.loading=!0,st.a.getList(qe,{...ce.options,excludedIds:Ve,locale:ce.locale?ce.locale.get():void 0,limit:10,page:1,searchFields:Ye,search:ze}).then(Object(ot.action)((ze=>(ce.clearSearchResults(),ce.searchResults.push(...ze._embedded[qe]),ce.loading=!1,ce.searchResults)))).catch(Object(ot.action)((()=>{ce.loading=!1}))).then((()=>[]))}}}),qe);ze.a=mt},function(ce,ze,Ve){"use strict";var qe=Ve(71),Ye=Object.create,We=function(){function object(){}return function(ce){if(!Object(qe.a)(ce))return{};if(Ye)return Ye(ce);object.prototype=ce;var ze=new object;return object.prototype=void 0,ze}}(),Qe=Ve(393),Xe=Ve(395);ze.a=function initCloneObject(ce){return"function"!=typeof ce.constructor||Object(Xe.a)(ce)?{}:We(Object(Qe.a)(ce))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(134),Ye=Ve(8);class We{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof qe.a&&(ce=this._getSymbolForTextProxy(ce)),this._consumable.has(ce)||this._consumable.set(ce,new Map),this._consumable.get(ce).set(ze,!0)}consume(ce,ze){return ze=_normalizeConsumableType(ze),ce instanceof qe.a&&(ce=this._getSymbolForTextProxy(ce)),!!this.test(ce,ze)&&(this._consumable.get(ce).set(ze,!1),!0)}test(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof qe.a&&(ce=this._getSymbolForTextProxy(ce));const Ve=this._consumable.get(ce);if(void 0===Ve)return null;const Ye=Ve.get(ze);return void 0===Ye?null:Ye}revert(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof qe.a&&(ce=this._getSymbolForTextProxy(ce));const Ve=this.test(ce,ze);return!1===Ve?(this._consumable.get(ce).set(ze,!0),!0):!0!==Ve&&null}verifyAllConsumed(ce){const ze=[];for(const[Ve,qe]of this._consumable)for(const[Ye,We]of qe){const qe=Ye.split(":")[0];We&&ce==qe&&ze.push({event:Ye,item:Ve.name||Ve.description})}if(ze.length)throw new Ye.a("conversion-model-consumable-not-consumed",null,{items:ze})}_getSymbolForTextProxy(ce){let ze=null;const Ve=this._textProxyRegistry.get(ce.startOffset);if(Ve){const qe=Ve.get(ce.endOffset);qe&&(ze=qe.get(ce.parent))}return ze||(ze=this._addSymbolForTextProxy(ce)),ze}_addSymbolForTextProxy(ce){const ze=ce.startOffset,Ve=ce.endOffset,qe=ce.parent,Ye=Symbol("$textProxy:"+ce.data);let We,Qe;return We=this._textProxyRegistry.get(ze),We||(We=new Map,this._textProxyRegistry.set(ze,We)),Qe=We.get(Ve),Qe||(Qe=new Map,We.set(Ve,Qe)),Qe.set(qe,Ye),Ye}}function _normalizeConsumableType(ce){const ze=ce.split(":");return"insert"==ze[0]?ze[0]:"addMarker"==ze[0]||"removeMarker"==ze[0]?ce:ze.length>1?ze[0]+":"+ze[1]:ze[0]}var Qe=Ve(16),Xe=Ve(39),ot=Ve(25);class st{constructor(ce){this._conversionApi={dispatcher:this,...ce},this._firedEventsMap=new WeakMap}convertChanges(ce,ze,Ve){const qe=this._createConversionApi(Ve,ce.getRefreshedItems());for(const ze of ce.getMarkersToRemove())this._convertMarkerRemove(ze.name,ze.range,qe);const Ye=this._reduceChanges(ce.getChanges());for(const ce of Ye)"insert"===ce.type?this._convertInsert(Qe.a._createFromPositionAndShift(ce.position,ce.length),qe):"reinsert"===ce.type?this._convertReinsert(Qe.a._createFromPositionAndShift(ce.position,ce.length),qe):"remove"===ce.type?this._convertRemove(ce.position,ce.length,ce.name,qe):this._convertAttribute(ce.range,ce.attributeKey,ce.attributeOldValue,ce.attributeNewValue,qe);for(const ce of qe.mapper.flushUnboundMarkerNames()){const Ve=ze.get(ce).getRange();this._convertMarkerRemove(ce,Ve,qe),this._convertMarkerAdd(ce,Ve,qe)}for(const ze of ce.getMarkersToAdd())this._convertMarkerAdd(ze.name,ze.range,qe);qe.mapper.flushDeferredBindings(),qe.consumable.verifyAllConsumed("insert")}convert(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=this._createConversionApi(Ve,void 0,qe);this._convertInsert(ce,Ye);for(const[ce,Ve]of ze)this._convertMarkerAdd(ce,Ve,Ye);Ye.consumable.verifyAllConsumed("insert")}convertSelection(ce,ze,Ve){const qe=Array.from(ze.getMarkersAtPosition(ce.getFirstPosition())),Ye=this._createConversionApi(Ve);if(this._addConsumablesForSelection(Ye.consumable,ce,qe),this.fire("selection",{selection:ce},Ye),ce.isCollapsed){for(const ze of qe){const Ve=ze.getRange();if(!shouldMarkerChangeBeConverted(ce.getFirstPosition(),ze,Ye.mapper))continue;const qe={item:ce,markerName:ze.name,markerRange:Ve};Ye.consumable.test(ce,"addMarker:"+ze.name)&&this.fire("addMarker:"+ze.name,qe,Ye)}for(const ze of ce.getAttributeKeys()){const Ve={item:ce,range:ce.getFirstRange(),attributeKey:ze,attributeOldValue:null,attributeNewValue:ce.getAttribute(ze)};Ye.consumable.test(ce,"attribute:"+Ve.attributeKey)&&this.fire("attribute:"+Ve.attributeKey+":$text",Ve,Ye)}}}_convertInsert(ce,ze){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).doNotAddConsumables||this._addConsumablesForInsert(ze.consumable,Array.from(ce));for(const Ve of Array.from(ce.getWalker({shallow:!0})).map(walkerValueToEventData))this._testAndFire("insert",Ve,ze)}_convertRemove(ce,ze,Ve,qe){this.fire("remove:"+Ve,{position:ce,length:ze},qe)}_convertAttribute(ce,ze,Ve,qe,Ye){this._addConsumablesForRange(Ye.consumable,ce,`attribute:${ze}`);for(const We of ce){const ce={item:We.item,range:Qe.a._createFromPositionAndShift(We.previousPosition,We.length),attributeKey:ze,attributeOldValue:Ve,attributeNewValue:qe};this._testAndFire(`attribute:${ze}`,ce,Ye)}}_convertReinsert(ce,ze){const Ve=Array.from(ce.getWalker({shallow:!0}));this._addConsumablesForInsert(ze.consumable,Ve);for(const ce of Ve.map(walkerValueToEventData))this._testAndFire("insert",{...ce,reconversion:!0},ze)}_convertMarkerAdd(ce,ze,Ve){if("$graveyard"==ze.root.rootName)return;const qe="addMarker:"+ce;if(Ve.consumable.add(ze,qe),this.fire(qe,{markerName:ce,markerRange:ze},Ve),Ve.consumable.consume(ze,qe)){this._addConsumablesForRange(Ve.consumable,ze,qe);for(const Ye of ze.getItems()){if(!Ve.consumable.test(Ye,qe))continue;const We={item:Ye,range:Qe.a._createOn(Ye),markerName:ce,markerRange:ze};this.fire(qe,We,Ve)}}}_convertMarkerRemove(ce,ze,Ve){"$graveyard"!=ze.root.rootName&&this.fire("removeMarker:"+ce,{markerName:ce,markerRange:ze},Ve)}_reduceChanges(ce){const ze={changes:ce};return this.fire("reduceChanges",ze),ze.changes}_addConsumablesForInsert(ce,ze){for(const Ve of ze){const ze=Ve.item;if(null===ce.test(ze,"insert")){ce.add(ze,"insert");for(const Ve of ze.getAttributeKeys())ce.add(ze,"attribute:"+Ve)}}return ce}_addConsumablesForRange(ce,ze,Ve){for(const qe of ze.getItems())ce.add(qe,Ve);return ce}_addConsumablesForSelection(ce,ze,Ve){ce.add(ze,"selection");for(const qe of Ve)ce.add(ze,"addMarker:"+qe.name);for(const Ve of ze.getAttributeKeys())ce.add(ze,"attribute:"+Ve);return ce}_testAndFire(ce,ze,Ve){const qe=getEventName(ce,ze),Ye=ze.item.is("$textProxy")?Ve.consumable._getSymbolForTextProxy(ze.item):ze.item,We=this._firedEventsMap.get(Ve),Qe=We.get(Ye);if(Qe){if(Qe.has(qe))return;Qe.add(qe)}else We.set(Ye,new Set([qe]));this.fire(qe,ze,Ve)}_testAndFireAddAttributes(ce,ze){const Ve={item:ce,range:Qe.a._createOn(ce)};for(const ce of Ve.item.getAttributeKeys())Ve.attributeKey=ce,Ve.attributeOldValue=null,Ve.attributeNewValue=Ve.item.getAttribute(ce),this._testAndFire(`attribute:${ce}`,Ve,ze)}_createConversionApi(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe={...this._conversionApi,consumable:new We,writer:ce,options:Ve,convertItem:ce=>this._convertInsert(Qe.a._createOn(ce),qe),convertChildren:ce=>this._convertInsert(Qe.a._createIn(ce),qe,{doNotAddConsumables:!0}),convertAttributes:ce=>this._testAndFireAddAttributes(ce,qe),canReuseView:ce=>!ze.has(qe.mapper.toModelElement(ce))};return this._firedEventsMap.set(qe,new Map),qe}}function shouldMarkerChangeBeConverted(ce,ze,Ve){const qe=ze.getRange(),Ye=Array.from(ce.getAncestors());Ye.shift(),Ye.reverse();return!Ye.some((ce=>{if(qe.containsItem(ce)){return!!Ve.toViewElement(ce).getCustomProperty("addHighlight")}}))}function getEventName(ce,ze){return`${ce}:${ze.item.name||"$text"}`}function walkerValueToEventData(ce){return{item:ce.item,range:Qe.a._createFromPositionAndShift(ce.previousPosition,ce.length)}}Object(ot.a)(st,Xe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(175),Ye=Ve(692),We=Ve(179),Qe=Object(Ye.a)((function(ce,ze){Object(qe.a)(ze,Object(We.a)(ze),ce)}));ze.a=Qe},,function(ce,ze,Ve){"use strict";var qe=Ve(243);ce.exports=!qe((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var qe=Ve(806),Ye=Object;ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";var qe=Ve(1104),Ye=Ve(168),We=Ve(808),Qe="__core-js_shared__",Xe=ce.exports=Ye[Qe]||We(Qe,{});(Xe.versions||(Xe.versions=[])).push({version:"3.38.1",mode:qe?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(ce,ze,Ve){"use strict";var qe=Ve(271),Ye=Ve(1106),We=Ve(1108),Qe=Ve(811),Xe=Ve(1109),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=qe?We?function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var qe=mt(ce,ze);qe&&qe[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:qe[yt],enumerable:gt in Ve?Ve[gt]:qe[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Qe(ce),ze=Xe(ze),Qe(Ve),Ye)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze,Ve){"use strict";var qe=Ve(169),Ye=Ve(817),We=TypeError;ce.exports=function(ce){if(qe(ce))return ce;throw new We(Ye(ce)+" is not a function")}},function(ce,ze,Ve){"use strict";var qe=Ve(244),Ye=0,We=Math.random(),Qe=qe(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Qe(++Ye+We,36)}},function(ce,ze,Ve){"use strict";var qe=Ve(244),Ye=qe({}.toString),We=qe("".slice);ce.exports=function(ce){return We(Ye(ce),8,-1)}},function(ce,ze,Ve){"use strict";var qe=Ve(120),Ye=Ve(136),We=Ve(732),Qe=Ve(459),Xe=Ve(318),ot=Ve(733),st=Ve(111),mt=Ve(824),gt=Object.getOwnPropertyDescriptor;ze.f=qe?gt:function getOwnPropertyDescriptor(ce,ze){if(ce=Xe(ce),ze=ot(ze),mt)try{return gt(ce,ze)}catch(ce){}if(st(ce,ze))return Qe(!Ye(We.f,ce,ze),ce[ze])}},function(ce,ze,Ve){"use strict";var qe={}.propertyIsEnumerable,Ye=Object.getOwnPropertyDescriptor,We=Ye&&!qe.call({1:2},1);ze.f=We?function propertyIsEnumerable(ce){var ze=Ye(this,ce);return!!ze&&ze.enumerable}:qe},function(ce,ze,Ve){"use strict";var qe=Ve(1145),Ye=Ve(460);ce.exports=function(ce){var ze=qe(ce,"string");return Ye(ze)?ze:ze+""}},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(105),Qe=Ve(1146),Xe=We.process,ot=We.Deno,st=Xe&&Xe.versions||ot&&ot.version,mt=st&&st.v8;mt&&(Ye=(qe=mt.split("."))[0]>0&&qe[0]<4?1:+(qe[0]+qe[1])),!Ye&&Qe&&(!(qe=Qe.match(/Edge\/(\d+)/))||qe[1]>=74)&&(qe=Qe.match(/Chrome\/(\d+)/))&&(Ye=+qe[1]),ce.exports=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(823),Ye=Ve(105),We=Ve(736),Qe="__core-js_shared__",Xe=ce.exports=Ye[Qe]||We(Qe,{});(Xe.versions||(Xe.versions=[])).push({version:"3.38.1",mode:qe?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Object.defineProperty;ce.exports=function(ce,ze){try{Ye(qe,ce,{value:ze,configurable:!0,writable:!0})}catch(Ve){qe[ce]=ze}return ze}},function(ce,ze,Ve){"use strict";var qe=Ve(105),Ye=Ve(121),We=qe.document,Qe=Ye(We)&&Ye(We.createElement);ce.exports=function(ce){return Qe?We.createElement(ce):{}}},function(ce,ze,Ve){"use strict";ce.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(ce,ze,Ve){"use strict";var qe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;function toObject(ce){if(null==ce)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ce)}ce.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var ce=new String("abc");if(ce[5]="de","5"===Object.getOwnPropertyNames(ce)[0])return!1;for(var ze={},Ve=0;Ve<10;Ve++)ze["_"+String.fromCharCode(Ve)]=Ve;if("0123456789"!==Object.getOwnPropertyNames(ze).map((function(ce){return ze[ce]})).join(""))return!1;var qe={};return"abcdefghijklmnopqrst".split("").forEach((function(ce){qe[ce]=ce})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},qe)).join("")}catch(ce){return!1}}()?Object.assign:function(ce,ze){for(var Ve,Qe,Xe=toObject(ce),ot=1;ot0&&(!bt.multiline||bt.multiline&&"\n"!==kt(Ft,bt.lastIndex-1))&&(Wt="(?: "+Wt+")",Qt=" "+Qt,Jt++),Ve=new RegExp("^(?:"+Wt+")",Ut)),Lt&&(Ve=new RegExp("^"+Wt+"$(?!\\s)",Ut)),Pt&&(qe=bt.lastIndex),Ye=We(Ct,Ht?Ve:bt,Qt),Ht?Ye?(Ye.input=Et(Ye.input,Jt),Ye[0]=Et(Ye[0],Jt),Ye.index=bt.lastIndex,bt.lastIndex+=Ye[0].length):bt.lastIndex=0:Pt&&Ye&&(bt.lastIndex=bt.global?Ye.index+Ye[0].length:qe),Lt&&Ye&&Ye.length>1&&We(wt,Ye[0],Ve,(function(){for(Qe=1;Qe=51||!qe((function(){var ze=[];return(ze.constructor={})[Qe]=function(){return{foo:1}},1!==ze[ce](Boolean).foo}))}},function(ce,ze,Ve){"use strict";var qe=Ve(417),Ye=Function.prototype,We=Ye.apply,Qe=Ye.call;ce.exports="object"==typeof Reflect&&Reflect.apply||(qe?Qe.bind(We):function(){return Qe.apply(We,arguments)})},function(ce,ze,Ve){"use strict";var qe=Ve(70);ce.exports=qe([].slice)},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(208),We=Ve(149),Qe=/"/g,Xe=qe("".replace);ce.exports=function(ce,ze,Ve,qe){var ot=We(Ye(ce)),st="<"+ze;return""!==Ve&&(st+=" "+Ve+'="'+Xe(We(qe),Qe,""")+'"'),st+">"+ot+""}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=function(ce){return qe((function(){var ze=""[ce]('"');return ze!==ze.toLowerCase()||ze.split('"').length>3}))}},function(ce,ze,Ve){"use strict";var qe=Ve(1165).charAt;ce.exports=function(ce,ze,Ve){return ze+(Ve?qe(ce,ze).length:1)}},function(ce,ze,Ve){var qe=Ve(320)(Ve(171),"Map");ce.exports=qe},function(ce,ze,Ve){var qe=Ve(321),Ye=Ve(186);ce.exports=function isFunction(ce){if(!Ye(ce))return!1;var ze=qe(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){var qe=Ve(1184),Ye=Ve(1191),We=Ve(1193),Qe=Ve(1194),Xe=Ve(1195);function MapCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze){ce.exports=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){(function(ce){var qe=Ve(842),Ye=ze&&!ze.nodeType&&ze,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=We&&We.exports===Ye&&qe.process,Xe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Qe&&Qe.binding&&Qe.binding("util")}catch(ce){}}();ce.exports=Xe}).call(this,Ve(322)(ce))},function(ce,ze){var Ve=/^(?:0|[1-9]\d*)$/;ce.exports=function isIndex(ce,ze){var qe=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==qe||"symbol"!=qe&&Ve.test(ce))&&ce>-1&&ce%1==0&&ce1||"".split(/.?/).length;We("split",(function(ce,ze,Ve){var Ye="0".split(void 0,0).length?function(ce,Ve){return void 0===ce&&0===Ve?[]:qe(ze,this,ce,Ve)}:ze;return[function split(ze,Ve){var We=ot(this),Qe=Xe(ze)?void 0:bt(ze,ce);return Qe?qe(Qe,ze,We,Ve):qe(Ye,yt(We),ze,Ve)},function(ce,qe){var We=Qe(this),Xe=yt(ce);if(!Pt){var ot=Ve(Ye,We,Xe,qe,Ye!==ze);if(ot.done)return ot.value}var bt=st(We,RegExp),wt=We.unicode,Ct=(We.ignoreCase?"i":"")+(We.multiline?"m":"")+(We.unicode?"u":"")+(Dt?"g":"y"),Et=new bt(Dt?"^(?:"+We.source+")":We,Ct),Tt=void 0===qe?4294967295:qe>>>0;if(0===Tt)return[];if(0===Xe.length)return null===vt(Et,Xe)?[Xe]:[];for(var Lt=0,Ft=0,Bt=[];Ftce)return!1;if((Ve+=ze[qe+1])>=ce)return!0}return!1}function isIdentifierStart(ce,ze){return ce<65?36===ce:ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&mt.test(String.fromCharCode(ce)):!1!==ze&&isInAstralSet(ce,Ye)))}function isIdentifierChar(ce,ze){return ce<48?36===ce:ce<58||!(ce<65)&&(ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&>.test(String.fromCharCode(ce)):!1!==ze&&(isInAstralSet(ce,Ye)||isInAstralSet(ce,qe)))))}var yt=function TokenType(ce,ze){void 0===ze&&(ze={}),this.label=ce,this.keyword=ze.keyword,this.beforeExpr=!!ze.beforeExpr,this.startsExpr=!!ze.startsExpr,this.isLoop=!!ze.isLoop,this.isAssign=!!ze.isAssign,this.prefix=!!ze.prefix,this.postfix=!!ze.postfix,this.binop=ze.binop||null,this.updateContext=null};function binop(ce,ze){return new yt(ce,{beforeExpr:!0,binop:ze})}var bt={beforeExpr:!0},vt={startsExpr:!0},wt={};function kw(ce,ze){return void 0===ze&&(ze={}),ze.keyword=ce,wt[ce]=new yt(ce,ze)}var Ct={num:new yt("num",vt),regexp:new yt("regexp",vt),string:new yt("string",vt),name:new yt("name",vt),privateId:new yt("privateId",vt),eof:new yt("eof"),bracketL:new yt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new yt("]"),braceL:new yt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new yt("}"),parenL:new yt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new yt(")"),comma:new yt(",",bt),semi:new yt(";",bt),colon:new yt(":",bt),dot:new yt("."),question:new yt("?",bt),questionDot:new yt("?."),arrow:new yt("=>",bt),template:new yt("template"),invalidTemplate:new yt("invalidTemplate"),ellipsis:new yt("...",bt),backQuote:new yt("`",vt),dollarBraceL:new yt("${",{beforeExpr:!0,startsExpr:!0}),eq:new yt("=",{beforeExpr:!0,isAssign:!0}),assign:new yt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new yt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new yt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new yt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new yt("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",bt),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",bt),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",bt),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",vt),_if:kw("if"),_return:kw("return",bt),_switch:kw("switch"),_throw:kw("throw",bt),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",vt),_super:kw("super",vt),_class:kw("class",vt),_extends:kw("extends",bt),_export:kw("export"),_import:kw("import",vt),_null:kw("null",vt),_true:kw("true",vt),_false:kw("false",vt),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Dt=/\r\n?|\n|\u2028|\u2029/,kt=new RegExp(Dt.source,"g");function isNewLine(ce){return 10===ce||13===ce||8232===ce||8233===ce}function nextLineBreak(ce,ze,Ve){void 0===Ve&&(Ve=ce.length);for(var qe=ze;qe>10),56320+(1023&ce)))}var Vt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ht=function Position(ce,ze){this.line=ce,this.column=ze};Ht.prototype.offset=function offset(ce){return new Ht(this.line,this.column+ce)};var Ut=function SourceLocation(ce,ze,Ve){this.start=ze,this.end=Ve,null!==ce.sourceFile&&(this.source=ce.sourceFile)};function getLineInfo(ce,ze){for(var Ve=1,qe=0;;){var Ye=nextLineBreak(ce,qe,ze);if(Ye<0)return new Ht(Ve,ze-qe);++Ve,qe=Ye}}var Wt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Jt=!1;function getOptions(ce){var ze={};for(var Ve in Wt)ze[Ve]=ce&&Lt(ce,Ve)?ce[Ve]:Wt[Ve];if("latest"===ze.ecmaVersion?ze.ecmaVersion=1e8:null==ze.ecmaVersion?(!Jt&&"object"==typeof console&&console.warn&&(Jt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),ze.ecmaVersion=11):ze.ecmaVersion>=2015&&(ze.ecmaVersion-=2009),null==ze.allowReserved&&(ze.allowReserved=ze.ecmaVersion<5),ce&&null!=ce.allowHashBang||(ze.allowHashBang=ze.ecmaVersion>=14),Ft(ze.onToken)){var qe=ze.onToken;ze.onToken=function(ce){return qe.push(ce)}}return Ft(ze.onComment)&&(ze.onComment=pushComment(ze,ze.onComment)),ze}function pushComment(ce,ze){return function(Ve,qe,Ye,We,Qe,Xe){var ot={type:Ve?"Block":"Line",value:qe,start:Ye,end:We};ce.locations&&(ot.loc=new Ut(this,Qe,Xe)),ce.ranges&&(ot.range=[Ye,We]),ze.push(ot)}}var Qt=256;function functionFlags(ce,ze){return 2|(ce?4:0)|(ze?8:0)}var en=function Parser(ce,ze,Ve){this.options=ce=getOptions(ce),this.sourceFile=ce.sourceFile,this.keywords=wordsRegexp(ot[ce.ecmaVersion>=6?6:"module"===ce.sourceType?"5module":5]);var qe="";!0!==ce.allowReserved&&(qe=Qe[ce.ecmaVersion>=6?6:5===ce.ecmaVersion?5:3],"module"===ce.sourceType&&(qe+=" await")),this.reservedWords=wordsRegexp(qe);var Ye=(qe?qe+" ":"")+Qe.strict;this.reservedWordsStrict=wordsRegexp(Ye),this.reservedWordsStrictBind=wordsRegexp(Ye+" "+Qe.strictBind),this.input=String(ze),this.containsEsc=!1,Ve?(this.pos=Ve,this.lineStart=this.input.lastIndexOf("\n",Ve-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Dt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Ct.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===ce.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&ce.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},rn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};en.prototype.parse=function parse(){var ce=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(ce)},rn.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},rn.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},rn.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},rn.canAwait.get=function(){for(var ce=this.scopeStack.length-1;ce>=0;ce--){var ze=this.scopeStack[ce];if(ze.inClassFieldInit||ze.flags&Qt)return!1;if(2&ze.flags)return(4&ze.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},rn.allowSuper.get=function(){var ce=this.currentThisScope(),ze=ce.flags,Ve=ce.inClassFieldInit;return(64&ze)>0||Ve||this.options.allowSuperOutsideMethod},rn.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},rn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},rn.allowNewDotTarget.get=function(){var ce=this.currentThisScope(),ze=ce.flags,Ve=ce.inClassFieldInit;return(258&ze)>0||Ve},rn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Qt)>0},en.extend=function extend(){for(var ce=[],ze=arguments.length;ze--;)ce[ze]=arguments[ze];for(var Ve=this,qe=0;qe=,?^&]/.test(Ye)||"!"===Ye&&"="===this.input.charAt(qe+1))}ce+=ze[0].length,xt.lastIndex=ce,ce+=xt.exec(this.input)[0].length,";"===this.input[ce]&&ce++}},ln.eat=function(ce){return this.type===ce&&(this.next(),!0)},ln.isContextual=function(ce){return this.type===Ct.name&&this.value===ce&&!this.containsEsc},ln.eatContextual=function(ce){return!!this.isContextual(ce)&&(this.next(),!0)},ln.expectContextual=function(ce){this.eatContextual(ce)||this.unexpected()},ln.canInsertSemicolon=function(){return this.type===Ct.eof||this.type===Ct.braceR||Dt.test(this.input.slice(this.lastTokEnd,this.start))},ln.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ln.semicolon=function(){this.eat(Ct.semi)||this.insertSemicolon()||this.unexpected()},ln.afterTrailingComma=function(ce,ze){if(this.type===ce)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),ze||this.next(),!0},ln.expect=function(ce){this.eat(ce)||this.unexpected()},ln.unexpected=function(ce){this.raise(null!=ce?ce:this.start,"Unexpected token")};var gn=function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ln.checkPatternErrors=function(ce,ze){if(ce){ce.trailingComma>-1&&this.raiseRecoverable(ce.trailingComma,"Comma is not permitted after the rest element");var Ve=ze?ce.parenthesizedAssign:ce.parenthesizedBind;Ve>-1&&this.raiseRecoverable(Ve,ze?"Assigning to rvalue":"Parenthesized pattern")}},ln.checkExpressionErrors=function(ce,ze){if(!ce)return!1;var Ve=ce.shorthandAssign,qe=ce.doubleProto;if(!ze)return Ve>=0||qe>=0;Ve>=0&&this.raise(Ve,"Shorthand property assignments are valid only in destructuring patterns"),qe>=0&&this.raiseRecoverable(qe,"Redefinition of __proto__ property")},ln.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&qe<56320)return!0;if(isIdentifierStart(qe,!0)){for(var Ye=Ve+1;isIdentifierChar(qe=this.input.charCodeAt(Ye),!0);)++Ye;if(92===qe||qe>55295&&qe<56320)return!0;var We=this.input.slice(Ve,Ye);if(!st.test(We))return!0}return!1},bn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;xt.lastIndex=this.pos;var ce,ze=xt.exec(this.input),Ve=this.pos+ze[0].length;return!(Dt.test(this.input.slice(this.pos,Ve))||"function"!==this.input.slice(Ve,Ve+8)||Ve+8!==this.input.length&&(isIdentifierChar(ce=this.input.charCodeAt(Ve+8))||ce>55295&&ce<56320))},bn.parseStatement=function(ce,ze,Ve){var qe,Ye=this.type,We=this.startNode();switch(this.isLet(ce)&&(Ye=Ct._var,qe="let"),Ye){case Ct._break:case Ct._continue:return this.parseBreakContinueStatement(We,Ye.keyword);case Ct._debugger:return this.parseDebuggerStatement(We);case Ct._do:return this.parseDoStatement(We);case Ct._for:return this.parseForStatement(We);case Ct._function:return ce&&(this.strict||"if"!==ce&&"label"!==ce)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(We,!1,!ce);case Ct._class:return ce&&this.unexpected(),this.parseClass(We,!0);case Ct._if:return this.parseIfStatement(We);case Ct._return:return this.parseReturnStatement(We);case Ct._switch:return this.parseSwitchStatement(We);case Ct._throw:return this.parseThrowStatement(We);case Ct._try:return this.parseTryStatement(We);case Ct._const:case Ct._var:return qe=qe||this.value,ce&&"var"!==qe&&this.unexpected(),this.parseVarStatement(We,qe);case Ct._while:return this.parseWhileStatement(We);case Ct._with:return this.parseWithStatement(We);case Ct.braceL:return this.parseBlock(!0,We);case Ct.semi:return this.parseEmptyStatement(We);case Ct._export:case Ct._import:if(this.options.ecmaVersion>10&&Ye===Ct._import){xt.lastIndex=this.pos;var Qe=xt.exec(this.input),Xe=this.pos+Qe[0].length,ot=this.input.charCodeAt(Xe);if(40===ot||46===ot)return this.parseExpressionStatement(We,this.parseExpression())}return this.options.allowImportExportEverywhere||(ze||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),Ye===Ct._import?this.parseImport(We):this.parseExport(We,Ve);default:if(this.isAsyncFunction())return ce&&this.unexpected(),this.next(),this.parseFunctionStatement(We,!0,!ce);var st=this.value,mt=this.parseExpression();return Ye===Ct.name&&"Identifier"===mt.type&&this.eat(Ct.colon)?this.parseLabeledStatement(We,st,mt,ce):this.parseExpressionStatement(We,mt)}},bn.parseBreakContinueStatement=function(ce,ze){var Ve="break"===ze;this.next(),this.eat(Ct.semi)||this.insertSemicolon()?ce.label=null:this.type!==Ct.name?this.unexpected():(ce.label=this.parseIdent(),this.semicolon());for(var qe=0;qe=6?this.eat(Ct.semi):this.semicolon(),this.finishNode(ce,"DoWhileStatement")},bn.parseForStatement=function(ce){this.next();var ze=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(wn),this.enterScope(0),this.expect(Ct.parenL),this.type===Ct.semi)return ze>-1&&this.unexpected(ze),this.parseFor(ce,null);var Ve=this.isLet();if(this.type===Ct._var||this.type===Ct._const||Ve){var qe=this.startNode(),Ye=Ve?"let":this.value;return this.next(),this.parseVar(qe,!0,Ye),this.finishNode(qe,"VariableDeclaration"),(this.type===Ct._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===qe.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Ct._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.parseForIn(ce,qe)):(ze>-1&&this.unexpected(ze),this.parseFor(ce,qe))}var We=this.isContextual("let"),Qe=!1,Xe=this.containsEsc,ot=new gn,st=this.start,mt=ze>-1?this.parseExprSubscripts(ot,"await"):this.parseExpression(!0,ot);return this.type===Ct._in||(Qe=this.options.ecmaVersion>=6&&this.isContextual("of"))?(ze>-1?(this.type===Ct._in&&this.unexpected(ze),ce.await=!0):Qe&&this.options.ecmaVersion>=8&&(mt.start!==st||Xe||"Identifier"!==mt.type||"async"!==mt.name?this.options.ecmaVersion>=9&&(ce.await=!1):this.unexpected()),We&&Qe&&this.raise(mt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(mt,!1,ot),this.checkLValPattern(mt),this.parseForIn(ce,mt)):(this.checkExpressionErrors(ot,!0),ze>-1&&this.unexpected(ze),this.parseFor(ce,mt))},bn.parseFunctionStatement=function(ce,ze,Ve){return this.next(),this.parseFunction(ce,En|(Ve?0:Tn),!1,ze)},bn.parseIfStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),ce.consequent=this.parseStatement("if"),ce.alternate=this.eat(Ct._else)?this.parseStatement("if"):null,this.finishNode(ce,"IfStatement")},bn.parseReturnStatement=function(ce){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Ct.semi)||this.insertSemicolon()?ce.argument=null:(ce.argument=this.parseExpression(),this.semicolon()),this.finishNode(ce,"ReturnStatement")},bn.parseSwitchStatement=function(ce){var ze;this.next(),ce.discriminant=this.parseParenExpression(),ce.cases=[],this.expect(Ct.braceL),this.labels.push(Cn),this.enterScope(0);for(var Ve=!1;this.type!==Ct.braceR;)if(this.type===Ct._case||this.type===Ct._default){var qe=this.type===Ct._case;ze&&this.finishNode(ze,"SwitchCase"),ce.cases.push(ze=this.startNode()),ze.consequent=[],this.next(),qe?ze.test=this.parseExpression():(Ve&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),Ve=!0,ze.test=null),this.expect(Ct.colon)}else ze||this.unexpected(),ze.consequent.push(this.parseStatement(null));return this.exitScope(),ze&&this.finishNode(ze,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(ce,"SwitchStatement")},bn.parseThrowStatement=function(ce){return this.next(),Dt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),ce.argument=this.parseExpression(),this.semicolon(),this.finishNode(ce,"ThrowStatement")};var Sn=[];bn.parseCatchClauseParam=function(){var ce=this.parseBindingAtom(),ze="Identifier"===ce.type;return this.enterScope(ze?32:0),this.checkLValPattern(ce,ze?4:2),this.expect(Ct.parenR),ce},bn.parseTryStatement=function(ce){if(this.next(),ce.block=this.parseBlock(),ce.handler=null,this.type===Ct._catch){var ze=this.startNode();this.next(),this.eat(Ct.parenL)?ze.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),ze.param=null,this.enterScope(0)),ze.body=this.parseBlock(!1),this.exitScope(),ce.handler=this.finishNode(ze,"CatchClause")}return ce.finalizer=this.eat(Ct._finally)?this.parseBlock():null,ce.handler||ce.finalizer||this.raise(ce.start,"Missing catch or finally clause"),this.finishNode(ce,"TryStatement")},bn.parseVarStatement=function(ce,ze,Ve){return this.next(),this.parseVar(ce,!1,ze,Ve),this.semicolon(),this.finishNode(ce,"VariableDeclaration")},bn.parseWhileStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),this.labels.push(wn),ce.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(ce,"WhileStatement")},bn.parseWithStatement=function(ce){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),ce.object=this.parseParenExpression(),ce.body=this.parseStatement("with"),this.finishNode(ce,"WithStatement")},bn.parseEmptyStatement=function(ce){return this.next(),this.finishNode(ce,"EmptyStatement")},bn.parseLabeledStatement=function(ce,ze,Ve,qe){for(var Ye=0,We=this.labels;Ye=0;Xe--){var ot=this.labels[Xe];if(ot.statementStart!==ce.start)break;ot.statementStart=this.start,ot.kind=Qe}return this.labels.push({name:ze,kind:Qe,statementStart:this.start}),ce.body=this.parseStatement(qe?-1===qe.indexOf("label")?qe+"label":qe:"label"),this.labels.pop(),ce.label=Ve,this.finishNode(ce,"LabeledStatement")},bn.parseExpressionStatement=function(ce,ze){return ce.expression=ze,this.semicolon(),this.finishNode(ce,"ExpressionStatement")},bn.parseBlock=function(ce,ze,Ve){for(void 0===ce&&(ce=!0),void 0===ze&&(ze=this.startNode()),ze.body=[],this.expect(Ct.braceL),ce&&this.enterScope(0);this.type!==Ct.braceR;){var qe=this.parseStatement(null);ze.body.push(qe)}return Ve&&(this.strict=!1),this.next(),ce&&this.exitScope(),this.finishNode(ze,"BlockStatement")},bn.parseFor=function(ce,ze){return ce.init=ze,this.expect(Ct.semi),ce.test=this.type===Ct.semi?null:this.parseExpression(),this.expect(Ct.semi),ce.update=this.type===Ct.parenR?null:this.parseExpression(),this.expect(Ct.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,"ForStatement")},bn.parseForIn=function(ce,ze){var Ve=this.type===Ct._in;return this.next(),"VariableDeclaration"===ze.type&&null!=ze.declarations[0].init&&(!Ve||this.options.ecmaVersion<8||this.strict||"var"!==ze.kind||"Identifier"!==ze.declarations[0].id.type)&&this.raise(ze.start,(Ve?"for-in":"for-of")+" loop variable declaration may not have an initializer"),ce.left=ze,ce.right=Ve?this.parseExpression():this.parseMaybeAssign(),this.expect(Ct.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,Ve?"ForInStatement":"ForOfStatement")},bn.parseVar=function(ce,ze,Ve,qe){for(ce.declarations=[],ce.kind=Ve;;){var Ye=this.startNode();if(this.parseVarId(Ye,Ve),this.eat(Ct.eq)?Ye.init=this.parseMaybeAssign(ze):qe||"const"!==Ve||this.type===Ct._in||this.options.ecmaVersion>=6&&this.isContextual("of")?qe||"Identifier"===Ye.id.type||ze&&(this.type===Ct._in||this.isContextual("of"))?Ye.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),ce.declarations.push(this.finishNode(Ye,"VariableDeclarator")),!this.eat(Ct.comma))break}return ce},bn.parseVarId=function(ce,ze){ce.id=this.parseBindingAtom(),this.checkLValPattern(ce.id,"var"===ze?1:2,!1)};var En=1,Tn=2;function isPrivateNameConflicted(ce,ze){var Ve=ze.key.name,qe=ce[Ve],Ye="true";return"MethodDefinition"!==ze.type||"get"!==ze.kind&&"set"!==ze.kind||(Ye=(ze.static?"s":"i")+ze.kind),"iget"===qe&&"iset"===Ye||"iset"===qe&&"iget"===Ye||"sget"===qe&&"sset"===Ye||"sset"===qe&&"sget"===Ye?(ce[Ve]="true",!1):!!qe||(ce[Ve]=Ye,!1)}function checkKeyName(ce,ze){var Ve=ce.computed,qe=ce.key;return!Ve&&("Identifier"===qe.type&&qe.name===ze||"Literal"===qe.type&&qe.value===ze)}bn.parseFunction=function(ce,ze,Ve,qe,Ye){this.initFunction(ce),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!qe)&&(this.type===Ct.star&&ze&Tn&&this.unexpected(),ce.generator=this.eat(Ct.star)),this.options.ecmaVersion>=8&&(ce.async=!!qe),ze&En&&(ce.id=4&ze&&this.type!==Ct.name?null:this.parseIdent(),!ce.id||ze&Tn||this.checkLValSimple(ce.id,this.strict||ce.generator||ce.async?this.treatFunctionsAsVar?1:2:3));var We=this.yieldPos,Qe=this.awaitPos,Xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(ce.async,ce.generator)),ze&En||(ce.id=this.type===Ct.name?this.parseIdent():null),this.parseFunctionParams(ce),this.parseFunctionBody(ce,Ve,!1,Ye),this.yieldPos=We,this.awaitPos=Qe,this.awaitIdentPos=Xe,this.finishNode(ce,ze&En?"FunctionDeclaration":"FunctionExpression")},bn.parseFunctionParams=function(ce){this.expect(Ct.parenL),ce.params=this.parseBindingList(Ct.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},bn.parseClass=function(ce,ze){this.next();var Ve=this.strict;this.strict=!0,this.parseClassId(ce,ze),this.parseClassSuper(ce);var qe=this.enterClassBody(),Ye=this.startNode(),We=!1;for(Ye.body=[],this.expect(Ct.braceL);this.type!==Ct.braceR;){var Qe=this.parseClassElement(null!==ce.superClass);Qe&&(Ye.body.push(Qe),"MethodDefinition"===Qe.type&&"constructor"===Qe.kind?(We&&this.raiseRecoverable(Qe.start,"Duplicate constructor in the same class"),We=!0):Qe.key&&"PrivateIdentifier"===Qe.key.type&&isPrivateNameConflicted(qe,Qe)&&this.raiseRecoverable(Qe.key.start,"Identifier '#"+Qe.key.name+"' has already been declared"))}return this.strict=Ve,this.next(),ce.body=this.finishNode(Ye,"ClassBody"),this.exitClassBody(),this.finishNode(ce,ze?"ClassDeclaration":"ClassExpression")},bn.parseClassElement=function(ce){if(this.eat(Ct.semi))return null;var ze=this.options.ecmaVersion,Ve=this.startNode(),qe="",Ye=!1,We=!1,Qe="method",Xe=!1;if(this.eatContextual("static")){if(ze>=13&&this.eat(Ct.braceL))return this.parseClassStaticBlock(Ve),Ve;this.isClassElementNameStart()||this.type===Ct.star?Xe=!0:qe="static"}if(Ve.static=Xe,!qe&&ze>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==Ct.star||this.canInsertSemicolon()?qe="async":We=!0),!qe&&(ze>=9||!We)&&this.eat(Ct.star)&&(Ye=!0),!qe&&!We&&!Ye){var ot=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Qe=ot:qe=ot)}if(qe?(Ve.computed=!1,Ve.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Ve.key.name=qe,this.finishNode(Ve.key,"Identifier")):this.parseClassElementName(Ve),ze<13||this.type===Ct.parenL||"method"!==Qe||Ye||We){var st=!Ve.static&&checkKeyName(Ve,"constructor"),mt=st&&ce;st&&"method"!==Qe&&this.raise(Ve.key.start,"Constructor can't have get/set modifier"),Ve.kind=st?"constructor":Qe,this.parseClassMethod(Ve,Ye,We,mt)}else this.parseClassField(Ve);return Ve},bn.isClassElementNameStart=function(){return this.type===Ct.name||this.type===Ct.privateId||this.type===Ct.num||this.type===Ct.string||this.type===Ct.bracketL||this.type.keyword},bn.parseClassElementName=function(ce){this.type===Ct.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),ce.computed=!1,ce.key=this.parsePrivateIdent()):this.parsePropertyName(ce)},bn.parseClassMethod=function(ce,ze,Ve,qe){var Ye=ce.key;"constructor"===ce.kind?(ze&&this.raise(Ye.start,"Constructor can't be a generator"),Ve&&this.raise(Ye.start,"Constructor can't be an async method")):ce.static&&checkKeyName(ce,"prototype")&&this.raise(Ye.start,"Classes may not have a static property named prototype");var We=ce.value=this.parseMethod(ze,Ve,qe);return"get"===ce.kind&&0!==We.params.length&&this.raiseRecoverable(We.start,"getter should have no params"),"set"===ce.kind&&1!==We.params.length&&this.raiseRecoverable(We.start,"setter should have exactly one param"),"set"===ce.kind&&"RestElement"===We.params[0].type&&this.raiseRecoverable(We.params[0].start,"Setter cannot use rest params"),this.finishNode(ce,"MethodDefinition")},bn.parseClassField=function(ce){if(checkKeyName(ce,"constructor")?this.raise(ce.key.start,"Classes can't have a field named 'constructor'"):ce.static&&checkKeyName(ce,"prototype")&&this.raise(ce.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Ct.eq)){var ze=this.currentThisScope(),Ve=ze.inClassFieldInit;ze.inClassFieldInit=!0,ce.value=this.parseMaybeAssign(),ze.inClassFieldInit=Ve}else ce.value=null;return this.semicolon(),this.finishNode(ce,"PropertyDefinition")},bn.parseClassStaticBlock=function(ce){ce.body=[];var ze=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Ct.braceR;){var Ve=this.parseStatement(null);ce.body.push(Ve)}return this.next(),this.exitScope(),this.labels=ze,this.finishNode(ce,"StaticBlock")},bn.parseClassId=function(ce,ze){this.type===Ct.name?(ce.id=this.parseIdent(),ze&&this.checkLValSimple(ce.id,2,!1)):(!0===ze&&this.unexpected(),ce.id=null)},bn.parseClassSuper=function(ce){ce.superClass=this.eat(Ct._extends)?this.parseExprSubscripts(null,!1):null},bn.enterClassBody=function(){var ce={declared:Object.create(null),used:[]};return this.privateNameStack.push(ce),ce.declared},bn.exitClassBody=function(){var ce=this.privateNameStack.pop(),ze=ce.declared,Ve=ce.used;if(this.options.checkPrivateFields)for(var qe=this.privateNameStack.length,Ye=0===qe?null:this.privateNameStack[qe-1],We=0;We=11&&(this.eatContextual("as")?(ce.exported=this.parseModuleExportName(),this.checkExport(ze,ce.exported,this.lastTokStart)):ce.exported=null),this.expectContextual("from"),this.type!==Ct.string&&this.unexpected(),ce.source=this.parseExprAtom(),this.semicolon(),this.finishNode(ce,"ExportAllDeclaration")},bn.parseExport=function(ce,ze){if(this.next(),this.eat(Ct.star))return this.parseExportAllDeclaration(ce,ze);if(this.eat(Ct._default))return this.checkExport(ze,"default",this.lastTokStart),ce.declaration=this.parseExportDefaultDeclaration(),this.finishNode(ce,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())ce.declaration=this.parseExportDeclaration(ce),"VariableDeclaration"===ce.declaration.type?this.checkVariableExport(ze,ce.declaration.declarations):this.checkExport(ze,ce.declaration.id,ce.declaration.id.start),ce.specifiers=[],ce.source=null;else{if(ce.declaration=null,ce.specifiers=this.parseExportSpecifiers(ze),this.eatContextual("from"))this.type!==Ct.string&&this.unexpected(),ce.source=this.parseExprAtom();else{for(var Ve=0,qe=ce.specifiers;Ve=13&&this.type===Ct.string){var ce=this.parseLiteral(this.value);return Vt.test(ce.value)&&this.raise(ce.start,"An export name cannot include a lone surrogate."),ce}return this.parseIdent(!0)},bn.adaptDirectivePrologue=function(ce){for(var ze=0;ze=5&&"ExpressionStatement"===ce.type&&"Literal"===ce.expression.type&&"string"==typeof ce.expression.value&&('"'===this.input[ce.start]||"'"===this.input[ce.start])};var Ln=en.prototype;Ln.toAssignable=function(ce,ze,Ve){if(this.options.ecmaVersion>=6&&ce)switch(ce.type){case"Identifier":this.inAsync&&"await"===ce.name&&this.raise(ce.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":ce.type="ObjectPattern",Ve&&this.checkPatternErrors(Ve,!0);for(var qe=0,Ye=ce.properties;qe=8&&!Xe&&"async"===ot.name&&!this.canInsertSemicolon()&&this.eat(Ct._function))return this.overrideContext(Yn.f_expr),this.parseFunction(this.startNodeAt(We,Qe),0,!1,!0,ze);if(Ye&&!this.canInsertSemicolon()){if(this.eat(Ct.arrow))return this.parseArrowExpression(this.startNodeAt(We,Qe),[ot],!1,ze);if(this.options.ecmaVersion>=8&&"async"===ot.name&&this.type===Ct.name&&!Xe&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return ot=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Ct.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(We,Qe),[ot],!0,ze)}return ot;case Ct.regexp:var st=this.value;return(qe=this.parseLiteral(st.value)).regex={pattern:st.pattern,flags:st.flags},qe;case Ct.num:case Ct.string:return this.parseLiteral(this.value);case Ct._null:case Ct._true:case Ct._false:return(qe=this.startNode()).value=this.type===Ct._null?null:this.type===Ct._true,qe.raw=this.type.keyword,this.next(),this.finishNode(qe,"Literal");case Ct.parenL:var mt=this.start,gt=this.parseParenAndDistinguishExpression(Ye,ze);return ce&&(ce.parenthesizedAssign<0&&!this.isSimpleAssignTarget(gt)&&(ce.parenthesizedAssign=mt),ce.parenthesizedBind<0&&(ce.parenthesizedBind=mt)),gt;case Ct.bracketL:return qe=this.startNode(),this.next(),qe.elements=this.parseExprList(Ct.bracketR,!0,!0,ce),this.finishNode(qe,"ArrayExpression");case Ct.braceL:return this.overrideContext(Yn.b_expr),this.parseObj(!1,ce);case Ct._function:return qe=this.startNode(),this.next(),this.parseFunction(qe,0);case Ct._class:return this.parseClass(this.startNode(),!1);case Ct._new:return this.parseNew();case Ct.backQuote:return this.parseTemplate();case Ct._import:return this.options.ecmaVersion>=11?this.parseExprImport(Ve):this.unexpected();default:return this.parseExprAtomDefault()}},Gn.parseExprAtomDefault=function(){this.unexpected()},Gn.parseExprImport=function(ce){var ze=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Ct.parenL&&!ce)return this.parseDynamicImport(ze);if(this.type===Ct.dot){var Ve=this.startNodeAt(ze.start,ze.loc&&ze.loc.start);return Ve.name="import",ze.meta=this.finishNode(Ve,"Identifier"),this.parseImportMeta(ze)}this.unexpected()},Gn.parseDynamicImport=function(ce){if(this.next(),ce.source=this.parseMaybeAssign(),!this.eat(Ct.parenR)){var ze=this.start;this.eat(Ct.comma)&&this.eat(Ct.parenR)?this.raiseRecoverable(ze,"Trailing comma is not allowed in import()"):this.unexpected(ze)}return this.finishNode(ce,"ImportExpression")},Gn.parseImportMeta=function(ce){this.next();var ze=this.containsEsc;return ce.property=this.parseIdent(!0),"meta"!==ce.property.name&&this.raiseRecoverable(ce.property.start,"The only valid meta property for import is 'import.meta'"),ze&&this.raiseRecoverable(ce.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(ce.start,"Cannot use 'import.meta' outside a module"),this.finishNode(ce,"MetaProperty")},Gn.parseLiteral=function(ce){var ze=this.startNode();return ze.value=ce,ze.raw=this.input.slice(this.start,this.end),110===ze.raw.charCodeAt(ze.raw.length-1)&&(ze.bigint=ze.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(ze,"Literal")},Gn.parseParenExpression=function(){this.expect(Ct.parenL);var ce=this.parseExpression();return this.expect(Ct.parenR),ce},Gn.shouldParseArrow=function(ce){return!this.canInsertSemicolon()},Gn.parseParenAndDistinguishExpression=function(ce,ze){var Ve,qe=this.start,Ye=this.startLoc,We=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Qe,Xe=this.start,ot=this.startLoc,st=[],mt=!0,gt=!1,yt=new gn,bt=this.yieldPos,vt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Ct.parenR;){if(mt?mt=!1:this.expect(Ct.comma),We&&this.afterTrailingComma(Ct.parenR,!0)){gt=!0;break}if(this.type===Ct.ellipsis){Qe=this.start,st.push(this.parseParenItem(this.parseRestBinding())),this.type===Ct.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}st.push(this.parseMaybeAssign(!1,yt,this.parseParenItem))}var wt=this.lastTokEnd,Dt=this.lastTokEndLoc;if(this.expect(Ct.parenR),ce&&this.shouldParseArrow(st)&&this.eat(Ct.arrow))return this.checkPatternErrors(yt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=bt,this.awaitPos=vt,this.parseParenArrowList(qe,Ye,st,ze);st.length&&!gt||this.unexpected(this.lastTokStart),Qe&&this.unexpected(Qe),this.checkExpressionErrors(yt,!0),this.yieldPos=bt||this.yieldPos,this.awaitPos=vt||this.awaitPos,st.length>1?((Ve=this.startNodeAt(Xe,ot)).expressions=st,this.finishNodeAt(Ve,"SequenceExpression",wt,Dt)):Ve=st[0]}else Ve=this.parseParenExpression();if(this.options.preserveParens){var kt=this.startNodeAt(qe,Ye);return kt.expression=Ve,this.finishNode(kt,"ParenthesizedExpression")}return Ve},Gn.parseParenItem=function(ce){return ce},Gn.parseParenArrowList=function(ce,ze,Ve,qe){return this.parseArrowExpression(this.startNodeAt(ce,ze),Ve,!1,qe)};var Kn=[];Gn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var ce=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Ct.dot){var ze=this.startNodeAt(ce.start,ce.loc&&ce.loc.start);ze.name="new",ce.meta=this.finishNode(ze,"Identifier"),this.next();var Ve=this.containsEsc;return ce.property=this.parseIdent(!0),"target"!==ce.property.name&&this.raiseRecoverable(ce.property.start,"The only valid meta property for new is 'new.target'"),Ve&&this.raiseRecoverable(ce.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(ce.start,"'new.target' can only be used in functions and class static block"),this.finishNode(ce,"MetaProperty")}var qe=this.start,Ye=this.startLoc;return ce.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),qe,Ye,!0,!1),this.eat(Ct.parenL)?ce.arguments=this.parseExprList(Ct.parenR,this.options.ecmaVersion>=8,!1):ce.arguments=Kn,this.finishNode(ce,"NewExpression")},Gn.parseTemplateElement=function(ce){var ze=ce.isTagged,Ve=this.startNode();return this.type===Ct.invalidTemplate?(ze||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),Ve.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):Ve.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),Ve.tail=this.type===Ct.backQuote,this.finishNode(Ve,"TemplateElement")},Gn.parseTemplate=function(ce){void 0===ce&&(ce={});var ze=ce.isTagged;void 0===ze&&(ze=!1);var Ve=this.startNode();this.next(),Ve.expressions=[];var qe=this.parseTemplateElement({isTagged:ze});for(Ve.quasis=[qe];!qe.tail;)this.type===Ct.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Ct.dollarBraceL),Ve.expressions.push(this.parseExpression()),this.expect(Ct.braceR),Ve.quasis.push(qe=this.parseTemplateElement({isTagged:ze}));return this.next(),this.finishNode(Ve,"TemplateLiteral")},Gn.isAsyncProp=function(ce){return!ce.computed&&"Identifier"===ce.key.type&&"async"===ce.key.name&&(this.type===Ct.name||this.type===Ct.num||this.type===Ct.string||this.type===Ct.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Ct.star)&&!Dt.test(this.input.slice(this.lastTokEnd,this.start))},Gn.parseObj=function(ce,ze){var Ve=this.startNode(),qe=!0,Ye={};for(Ve.properties=[],this.next();!this.eat(Ct.braceR);){if(qe)qe=!1;else if(this.expect(Ct.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Ct.braceR))break;var We=this.parseProperty(ce,ze);ce||this.checkPropClash(We,Ye,ze),Ve.properties.push(We)}return this.finishNode(Ve,ce?"ObjectPattern":"ObjectExpression")},Gn.parseProperty=function(ce,ze){var Ve,qe,Ye,We,Qe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Ct.ellipsis))return ce?(Qe.argument=this.parseIdent(!1),this.type===Ct.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(Qe,"RestElement")):(Qe.argument=this.parseMaybeAssign(!1,ze),this.type===Ct.comma&&ze&&ze.trailingComma<0&&(ze.trailingComma=this.start),this.finishNode(Qe,"SpreadElement"));this.options.ecmaVersion>=6&&(Qe.method=!1,Qe.shorthand=!1,(ce||ze)&&(Ye=this.start,We=this.startLoc),ce||(Ve=this.eat(Ct.star)));var Xe=this.containsEsc;return this.parsePropertyName(Qe),!ce&&!Xe&&this.options.ecmaVersion>=8&&!Ve&&this.isAsyncProp(Qe)?(qe=!0,Ve=this.options.ecmaVersion>=9&&this.eat(Ct.star),this.parsePropertyName(Qe)):qe=!1,this.parsePropertyValue(Qe,ce,Ve,qe,Ye,We,ze,Xe),this.finishNode(Qe,"Property")},Gn.parseGetterSetter=function(ce){ce.kind=ce.key.name,this.parsePropertyName(ce),ce.value=this.parseMethod(!1);var ze="get"===ce.kind?0:1;if(ce.value.params.length!==ze){var Ve=ce.value.start;"get"===ce.kind?this.raiseRecoverable(Ve,"getter should have no params"):this.raiseRecoverable(Ve,"setter should have exactly one param")}else"set"===ce.kind&&"RestElement"===ce.value.params[0].type&&this.raiseRecoverable(ce.value.params[0].start,"Setter cannot use rest params")},Gn.parsePropertyValue=function(ce,ze,Ve,qe,Ye,We,Qe,Xe){(Ve||qe)&&this.type===Ct.colon&&this.unexpected(),this.eat(Ct.colon)?(ce.value=ze?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Qe),ce.kind="init"):this.options.ecmaVersion>=6&&this.type===Ct.parenL?(ze&&this.unexpected(),ce.kind="init",ce.method=!0,ce.value=this.parseMethod(Ve,qe)):ze||Xe||!(this.options.ecmaVersion>=5)||ce.computed||"Identifier"!==ce.key.type||"get"!==ce.key.name&&"set"!==ce.key.name||this.type===Ct.comma||this.type===Ct.braceR||this.type===Ct.eq?this.options.ecmaVersion>=6&&!ce.computed&&"Identifier"===ce.key.type?((Ve||qe)&&this.unexpected(),this.checkUnreserved(ce.key),"await"!==ce.key.name||this.awaitIdentPos||(this.awaitIdentPos=Ye),ce.kind="init",ze?ce.value=this.parseMaybeDefault(Ye,We,this.copyNode(ce.key)):this.type===Ct.eq&&Qe?(Qe.shorthandAssign<0&&(Qe.shorthandAssign=this.start),ce.value=this.parseMaybeDefault(Ye,We,this.copyNode(ce.key))):ce.value=this.copyNode(ce.key),ce.shorthand=!0):this.unexpected():((Ve||qe)&&this.unexpected(),this.parseGetterSetter(ce))},Gn.parsePropertyName=function(ce){if(this.options.ecmaVersion>=6){if(this.eat(Ct.bracketL))return ce.computed=!0,ce.key=this.parseMaybeAssign(),this.expect(Ct.bracketR),ce.key;ce.computed=!1}return ce.key=this.type===Ct.num||this.type===Ct.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Gn.initFunction=function(ce){ce.id=null,this.options.ecmaVersion>=6&&(ce.generator=ce.expression=!1),this.options.ecmaVersion>=8&&(ce.async=!1)},Gn.parseMethod=function(ce,ze,Ve){var qe=this.startNode(),Ye=this.yieldPos,We=this.awaitPos,Qe=this.awaitIdentPos;return this.initFunction(qe),this.options.ecmaVersion>=6&&(qe.generator=ce),this.options.ecmaVersion>=8&&(qe.async=!!ze),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(ze,qe.generator)|(Ve?128:0)),this.expect(Ct.parenL),qe.params=this.parseBindingList(Ct.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(qe,!1,!0,!1),this.yieldPos=Ye,this.awaitPos=We,this.awaitIdentPos=Qe,this.finishNode(qe,"FunctionExpression")},Gn.parseArrowExpression=function(ce,ze,Ve,qe){var Ye=this.yieldPos,We=this.awaitPos,Qe=this.awaitIdentPos;return this.enterScope(16|functionFlags(Ve,!1)),this.initFunction(ce),this.options.ecmaVersion>=8&&(ce.async=!!Ve),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,ce.params=this.toAssignableList(ze,!0),this.parseFunctionBody(ce,!0,!1,qe),this.yieldPos=Ye,this.awaitPos=We,this.awaitIdentPos=Qe,this.finishNode(ce,"ArrowFunctionExpression")},Gn.parseFunctionBody=function(ce,ze,Ve,qe){var Ye=ze&&this.type!==Ct.braceL,We=this.strict,Qe=!1;if(Ye)ce.body=this.parseMaybeAssign(qe),ce.expression=!0,this.checkParams(ce,!1);else{var Xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(ce.params);We&&!Xe||(Qe=this.strictDirective(this.end))&&Xe&&this.raiseRecoverable(ce.start,"Illegal 'use strict' directive in function with non-simple parameter list");var ot=this.labels;this.labels=[],Qe&&(this.strict=!0),this.checkParams(ce,!We&&!Qe&&!ze&&!Ve&&this.isSimpleParamList(ce.params)),this.strict&&ce.id&&this.checkLValSimple(ce.id,5),ce.body=this.parseBlock(!1,void 0,Qe&&!We),ce.expression=!1,this.adaptDirectivePrologue(ce.body.body),this.labels=ot}this.exitScope()},Gn.isSimpleParamList=function(ce){for(var ze=0,Ve=ce;ze-1||Ye.functions.indexOf(ce)>-1||Ye.var.indexOf(ce)>-1,Ye.lexical.push(ce),this.inModule&&1&Ye.flags&&delete this.undefinedExports[ce]}else if(4===ze){this.currentScope().lexical.push(ce)}else if(3===ze){var We=this.currentScope();qe=this.treatFunctionsAsVar?We.lexical.indexOf(ce)>-1:We.lexical.indexOf(ce)>-1||We.var.indexOf(ce)>-1,We.functions.push(ce)}else for(var Qe=this.scopeStack.length-1;Qe>=0;--Qe){var Xe=this.scopeStack[Qe];if(Xe.lexical.indexOf(ce)>-1&&!(32&Xe.flags&&Xe.lexical[0]===ce)||!this.treatFunctionsAsVarInScope(Xe)&&Xe.functions.indexOf(ce)>-1){qe=!0;break}if(Xe.var.push(ce),this.inModule&&1&Xe.flags&&delete this.undefinedExports[ce],259&Xe.flags)break}qe&&this.raiseRecoverable(Ve,"Identifier '"+ce+"' has already been declared")},Zn.checkLocalExport=function(ce){-1===this.scopeStack[0].lexical.indexOf(ce.name)&&-1===this.scopeStack[0].var.indexOf(ce.name)&&(this.undefinedExports[ce.name]=ce)},Zn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Zn.currentVarScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(259&ze.flags)return ze}},Zn.currentThisScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(259&ze.flags&&!(16&ze.flags))return ze}};var ei=function Node(ce,ze,Ve){this.type="",this.start=ze,this.end=0,ce.options.locations&&(this.loc=new Ut(ce,Ve)),ce.options.directSourceFile&&(this.sourceFile=ce.options.directSourceFile),ce.options.ranges&&(this.range=[ze,0])},si=en.prototype;function finishNodeAt(ce,ze,Ve,qe){return ce.type=ze,ce.end=Ve,this.options.locations&&(ce.loc.end=qe),this.options.ranges&&(ce.range[1]=Ve),ce}si.startNode=function(){return new ei(this,this.start,this.startLoc)},si.startNodeAt=function(ce,ze){return new ei(this,ce,ze)},si.finishNode=function(ce,ze){return finishNodeAt.call(this,ce,ze,this.lastTokEnd,this.lastTokEndLoc)},si.finishNodeAt=function(ce,ze,Ve,qe){return finishNodeAt.call(this,ce,ze,Ve,qe)},si.copyNode=function(ce){var ze=new ei(this,ce.start,this.startLoc);for(var Ve in ce)ze[Ve]=ce[Ve];return ze};var _i="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ri=_i+" Extended_Pictographic",Ci=Ri+" EBase EComp EMod EPres ExtPict",Di={9:_i,10:Ri,11:Ri,12:Ci,13:Ci,14:Ci},Ei={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Oi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ti="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",er=Ti+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tr=er+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nr=tr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",rr=nr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ar={9:Ti,10:er,11:tr,12:nr,13:rr,14:rr+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},sr={};function buildUnicodeData(ce){var ze=sr[ce]={binary:wordsRegexp(Di[ce]+" "+Oi),binaryOfStrings:wordsRegexp(Ei[ce]),nonBinary:{General_Category:wordsRegexp(Oi),Script:wordsRegexp(ar[ce])}};ze.nonBinary.Script_Extensions=ze.nonBinary.Script,ze.nonBinary.gc=ze.nonBinary.General_Category,ze.nonBinary.sc=ze.nonBinary.Script,ze.nonBinary.scx=ze.nonBinary.Script_Extensions}for(var lr=0,dr=[9,10,11,12,13,14];lr=6?"uy":"")+(ce.options.ecmaVersion>=9?"s":"")+(ce.options.ecmaVersion>=13?"d":"")+(ce.options.ecmaVersion>=15?"v":""),this.unicodeProperties=sr[ce.options.ecmaVersion>=14?14:ce.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function hasProp(ce){for(var ze in ce)return!0;return!1}function isSyntaxCharacter(ce){return 36===ce||ce>=40&&ce<=43||46===ce||63===ce||ce>=91&&ce<=94||ce>=123&&ce<=125}function isRegExpIdentifierStart(ce){return isIdentifierStart(ce,!0)||36===ce||95===ce}function isRegExpIdentifierPart(ce){return isIdentifierChar(ce,!0)||36===ce||95===ce||8204===ce||8205===ce}function isControlLetter(ce){return ce>=65&&ce<=90||ce>=97&&ce<=122}vr.prototype.reset=function reset(ce,ze,Ve){var qe=-1!==Ve.indexOf("v"),Ye=-1!==Ve.indexOf("u");this.start=0|ce,this.source=ze+"",this.flags=Ve,qe&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Ye&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Ye&&this.parser.options.ecmaVersion>=9)},vr.prototype.raise=function raise(ce){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+ce)},vr.prototype.at=function at(ce,ze){void 0===ze&&(ze=!1);var Ve=this.source,qe=Ve.length;if(ce>=qe)return-1;var Ye=Ve.charCodeAt(ce);if(!ze&&!this.switchU||Ye<=55295||Ye>=57344||ce+1>=qe)return Ye;var We=Ve.charCodeAt(ce+1);return We>=56320&&We<=57343?(Ye<<10)+We-56613888:Ye},vr.prototype.nextIndex=function nextIndex(ce,ze){void 0===ze&&(ze=!1);var Ve=this.source,qe=Ve.length;if(ce>=qe)return qe;var Ye,We=Ve.charCodeAt(ce);return!ze&&!this.switchU||We<=55295||We>=57344||ce+1>=qe||(Ye=Ve.charCodeAt(ce+1))<56320||Ye>57343?ce+1:ce+2},vr.prototype.current=function current(ce){return void 0===ce&&(ce=!1),this.at(this.pos,ce)},vr.prototype.lookahead=function lookahead(ce){return void 0===ce&&(ce=!1),this.at(this.nextIndex(this.pos,ce),ce)},vr.prototype.advance=function advance(ce){void 0===ce&&(ce=!1),this.pos=this.nextIndex(this.pos,ce)},vr.prototype.eat=function eat(ce,ze){return void 0===ze&&(ze=!1),this.current(ze)===ce&&(this.advance(ze),!0)},vr.prototype.eatChars=function eatChars(ce,ze){void 0===ze&&(ze=!1);for(var Ve=this.pos,qe=0,Ye=ce;qe-1&&this.raise(ce.start,"Duplicate regular expression flag"),"u"===Qe&&(qe=!0),"v"===Qe&&(Ye=!0)}this.options.ecmaVersion>=15&&qe&&Ye&&this.raise(ce.start,"Invalid regular expression flag")},ur.validateRegExpPattern=function(ce){this.regexp_pattern(ce),!ce.switchN&&this.options.ecmaVersion>=9&&hasProp(ce.groupNames)&&(ce.switchN=!0,this.regexp_pattern(ce))},ur.regexp_pattern=function(ce){ce.pos=0,ce.lastIntValue=0,ce.lastStringValue="",ce.lastAssertionIsQuantifiable=!1,ce.numCapturingParens=0,ce.maxBackReference=0,ce.groupNames=Object.create(null),ce.backReferenceNames.length=0,ce.branchID=null,this.regexp_disjunction(ce),ce.pos!==ce.source.length&&(ce.eat(41)&&ce.raise("Unmatched ')'"),(ce.eat(93)||ce.eat(125))&&ce.raise("Lone quantifier brackets")),ce.maxBackReference>ce.numCapturingParens&&ce.raise("Invalid escape");for(var ze=0,Ve=ce.backReferenceNames;ze=16;for(ze&&(ce.branchID=new pr(ce.branchID,null)),this.regexp_alternative(ce);ce.eat(124);)ze&&(ce.branchID=ce.branchID.sibling()),this.regexp_alternative(ce);ze&&(ce.branchID=ce.branchID.parent),this.regexp_eatQuantifier(ce,!0)&&ce.raise("Nothing to repeat"),ce.eat(123)&&ce.raise("Lone quantifier brackets")},ur.regexp_alternative=function(ce){for(;ce.pos=9&&(Ve=ce.eat(60)),ce.eat(61)||ce.eat(33))return this.regexp_disjunction(ce),ce.eat(41)||ce.raise("Unterminated group"),ce.lastAssertionIsQuantifiable=!Ve,!0}return ce.pos=ze,!1},ur.regexp_eatQuantifier=function(ce,ze){return void 0===ze&&(ze=!1),!!this.regexp_eatQuantifierPrefix(ce,ze)&&(ce.eat(63),!0)},ur.regexp_eatQuantifierPrefix=function(ce,ze){return ce.eat(42)||ce.eat(43)||ce.eat(63)||this.regexp_eatBracedQuantifier(ce,ze)},ur.regexp_eatBracedQuantifier=function(ce,ze){var Ve=ce.pos;if(ce.eat(123)){var qe=0,Ye=-1;if(this.regexp_eatDecimalDigits(ce)&&(qe=ce.lastIntValue,ce.eat(44)&&this.regexp_eatDecimalDigits(ce)&&(Ye=ce.lastIntValue),ce.eat(125)))return-1!==Ye&&Ye=9?this.regexp_groupSpecifier(ce):63===ce.current()&&ce.raise("Invalid group"),this.regexp_disjunction(ce),ce.eat(41))return ce.numCapturingParens+=1,!0;ce.raise("Unterminated group")}return!1},ur.regexp_eatExtendedAtom=function(ce){return ce.eat(46)||this.regexp_eatReverseSolidusAtomEscape(ce)||this.regexp_eatCharacterClass(ce)||this.regexp_eatUncapturingGroup(ce)||this.regexp_eatCapturingGroup(ce)||this.regexp_eatInvalidBracedQuantifier(ce)||this.regexp_eatExtendedPatternCharacter(ce)},ur.regexp_eatInvalidBracedQuantifier=function(ce){return this.regexp_eatBracedQuantifier(ce,!0)&&ce.raise("Nothing to repeat"),!1},ur.regexp_eatSyntaxCharacter=function(ce){var ze=ce.current();return!!isSyntaxCharacter(ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},ur.regexp_eatPatternCharacters=function(ce){for(var ze=ce.pos,Ve=0;-1!==(Ve=ce.current())&&!isSyntaxCharacter(Ve);)ce.advance();return ce.pos!==ze},ur.regexp_eatExtendedPatternCharacter=function(ce){var ze=ce.current();return!(-1===ze||36===ze||ze>=40&&ze<=43||46===ze||63===ze||91===ze||94===ze||124===ze)&&(ce.advance(),!0)},ur.regexp_groupSpecifier=function(ce){if(ce.eat(63)){this.regexp_eatGroupName(ce)||ce.raise("Invalid group");var ze=this.options.ecmaVersion>=16,Ve=ce.groupNames[ce.lastStringValue];if(Ve)if(ze)for(var qe=0,Ye=Ve;qe=11,qe=ce.current(Ve);return ce.advance(Ve),92===qe&&this.regexp_eatRegExpUnicodeEscapeSequence(ce,Ve)&&(qe=ce.lastIntValue),isRegExpIdentifierStart(qe)?(ce.lastIntValue=qe,!0):(ce.pos=ze,!1)},ur.regexp_eatRegExpIdentifierPart=function(ce){var ze=ce.pos,Ve=this.options.ecmaVersion>=11,qe=ce.current(Ve);return ce.advance(Ve),92===qe&&this.regexp_eatRegExpUnicodeEscapeSequence(ce,Ve)&&(qe=ce.lastIntValue),isRegExpIdentifierPart(qe)?(ce.lastIntValue=qe,!0):(ce.pos=ze,!1)},ur.regexp_eatAtomEscape=function(ce){return!!(this.regexp_eatBackReference(ce)||this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)||ce.switchN&&this.regexp_eatKGroupName(ce))||(ce.switchU&&(99===ce.current()&&ce.raise("Invalid unicode escape"),ce.raise("Invalid escape")),!1)},ur.regexp_eatBackReference=function(ce){var ze=ce.pos;if(this.regexp_eatDecimalEscape(ce)){var Ve=ce.lastIntValue;if(ce.switchU)return Ve>ce.maxBackReference&&(ce.maxBackReference=Ve),!0;if(Ve<=ce.numCapturingParens)return!0;ce.pos=ze}return!1},ur.regexp_eatKGroupName=function(ce){if(ce.eat(107)){if(this.regexp_eatGroupName(ce))return ce.backReferenceNames.push(ce.lastStringValue),!0;ce.raise("Invalid named reference")}return!1},ur.regexp_eatCharacterEscape=function(ce){return this.regexp_eatControlEscape(ce)||this.regexp_eatCControlLetter(ce)||this.regexp_eatZero(ce)||this.regexp_eatHexEscapeSequence(ce)||this.regexp_eatRegExpUnicodeEscapeSequence(ce,!1)||!ce.switchU&&this.regexp_eatLegacyOctalEscapeSequence(ce)||this.regexp_eatIdentityEscape(ce)},ur.regexp_eatCControlLetter=function(ce){var ze=ce.pos;if(ce.eat(99)){if(this.regexp_eatControlLetter(ce))return!0;ce.pos=ze}return!1},ur.regexp_eatZero=function(ce){return 48===ce.current()&&!isDecimalDigit(ce.lookahead())&&(ce.lastIntValue=0,ce.advance(),!0)},ur.regexp_eatControlEscape=function(ce){var ze=ce.current();return 116===ze?(ce.lastIntValue=9,ce.advance(),!0):110===ze?(ce.lastIntValue=10,ce.advance(),!0):118===ze?(ce.lastIntValue=11,ce.advance(),!0):102===ze?(ce.lastIntValue=12,ce.advance(),!0):114===ze&&(ce.lastIntValue=13,ce.advance(),!0)},ur.regexp_eatControlLetter=function(ce){var ze=ce.current();return!!isControlLetter(ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},ur.regexp_eatRegExpUnicodeEscapeSequence=function(ce,ze){void 0===ze&&(ze=!1);var Ve,qe=ce.pos,Ye=ze||ce.switchU;if(ce.eat(117)){if(this.regexp_eatFixedHexDigits(ce,4)){var We=ce.lastIntValue;if(Ye&&We>=55296&&We<=56319){var Qe=ce.pos;if(ce.eat(92)&&ce.eat(117)&&this.regexp_eatFixedHexDigits(ce,4)){var Xe=ce.lastIntValue;if(Xe>=56320&&Xe<=57343)return ce.lastIntValue=1024*(We-55296)+(Xe-56320)+65536,!0}ce.pos=Qe,ce.lastIntValue=We}return!0}if(Ye&&ce.eat(123)&&this.regexp_eatHexDigits(ce)&&ce.eat(125)&&((Ve=ce.lastIntValue)>=0&&Ve<=1114111))return!0;Ye&&ce.raise("Invalid unicode escape"),ce.pos=qe}return!1},ur.regexp_eatIdentityEscape=function(ce){if(ce.switchU)return!!this.regexp_eatSyntaxCharacter(ce)||!!ce.eat(47)&&(ce.lastIntValue=47,!0);var ze=ce.current();return!(99===ze||ce.switchN&&107===ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},ur.regexp_eatDecimalEscape=function(ce){ce.lastIntValue=0;var ze=ce.current();if(ze>=49&&ze<=57){do{ce.lastIntValue=10*ce.lastIntValue+(ze-48),ce.advance()}while((ze=ce.current())>=48&&ze<=57);return!0}return!1};function isCharacterClassEscape(ce){return 100===ce||68===ce||115===ce||83===ce||119===ce||87===ce}function isUnicodePropertyNameCharacter(ce){return isControlLetter(ce)||95===ce}function isUnicodePropertyValueCharacter(ce){return isUnicodePropertyNameCharacter(ce)||isDecimalDigit(ce)}function isClassSetReservedDoublePunctuatorCharacter(ce){return 33===ce||ce>=35&&ce<=38||ce>=42&&ce<=44||46===ce||ce>=58&&ce<=64||94===ce||96===ce||126===ce}function isClassSetSyntaxCharacter(ce){return 40===ce||41===ce||45===ce||47===ce||ce>=91&&ce<=93||ce>=123&&ce<=125}function isClassSetReservedPunctuator(ce){return 33===ce||35===ce||37===ce||38===ce||44===ce||45===ce||ce>=58&&ce<=62||64===ce||96===ce||126===ce}function isDecimalDigit(ce){return ce>=48&&ce<=57}function isHexDigit(ce){return ce>=48&&ce<=57||ce>=65&&ce<=70||ce>=97&&ce<=102}function hexToInt(ce){return ce>=65&&ce<=70?ce-65+10:ce>=97&&ce<=102?ce-97+10:ce-48}function isOctalDigit(ce){return ce>=48&&ce<=55}ur.regexp_eatCharacterClassEscape=function(ce){var ze=ce.current();if(isCharacterClassEscape(ze))return ce.lastIntValue=-1,ce.advance(),1;var Ve=!1;if(ce.switchU&&this.options.ecmaVersion>=9&&((Ve=80===ze)||112===ze)){var qe;if(ce.lastIntValue=-1,ce.advance(),ce.eat(123)&&(qe=this.regexp_eatUnicodePropertyValueExpression(ce))&&ce.eat(125))return Ve&&2===qe&&ce.raise("Invalid property name"),qe;ce.raise("Invalid property name")}return 0},ur.regexp_eatUnicodePropertyValueExpression=function(ce){var ze=ce.pos;if(this.regexp_eatUnicodePropertyName(ce)&&ce.eat(61)){var Ve=ce.lastStringValue;if(this.regexp_eatUnicodePropertyValue(ce)){var qe=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(ce,Ve,qe),1}}if(ce.pos=ze,this.regexp_eatLoneUnicodePropertyNameOrValue(ce)){var Ye=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(ce,Ye)}return 0},ur.regexp_validateUnicodePropertyNameAndValue=function(ce,ze,Ve){Lt(ce.unicodeProperties.nonBinary,ze)||ce.raise("Invalid property name"),ce.unicodeProperties.nonBinary[ze].test(Ve)||ce.raise("Invalid property value")},ur.regexp_validateUnicodePropertyNameOrValue=function(ce,ze){return ce.unicodeProperties.binary.test(ze)?1:ce.switchV&&ce.unicodeProperties.binaryOfStrings.test(ze)?2:void ce.raise("Invalid property name")},ur.regexp_eatUnicodePropertyName=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyNameCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},ur.regexp_eatUnicodePropertyValue=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyValueCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},ur.regexp_eatLoneUnicodePropertyNameOrValue=function(ce){return this.regexp_eatUnicodePropertyValue(ce)},ur.regexp_eatCharacterClass=function(ce){if(ce.eat(91)){var ze=ce.eat(94),Ve=this.regexp_classContents(ce);return ce.eat(93)||ce.raise("Unterminated character class"),ze&&2===Ve&&ce.raise("Negated character class may contain strings"),!0}return!1},ur.regexp_classContents=function(ce){return 93===ce.current()?1:ce.switchV?this.regexp_classSetExpression(ce):(this.regexp_nonEmptyClassRanges(ce),1)},ur.regexp_nonEmptyClassRanges=function(ce){for(;this.regexp_eatClassAtom(ce);){var ze=ce.lastIntValue;if(ce.eat(45)&&this.regexp_eatClassAtom(ce)){var Ve=ce.lastIntValue;!ce.switchU||-1!==ze&&-1!==Ve||ce.raise("Invalid character class"),-1!==ze&&-1!==Ve&&ze>Ve&&ce.raise("Range out of order in character class")}}},ur.regexp_eatClassAtom=function(ce){var ze=ce.pos;if(ce.eat(92)){if(this.regexp_eatClassEscape(ce))return!0;if(ce.switchU){var Ve=ce.current();(99===Ve||isOctalDigit(Ve))&&ce.raise("Invalid class escape"),ce.raise("Invalid escape")}ce.pos=ze}var qe=ce.current();return 93!==qe&&(ce.lastIntValue=qe,ce.advance(),!0)},ur.regexp_eatClassEscape=function(ce){var ze=ce.pos;if(ce.eat(98))return ce.lastIntValue=8,!0;if(ce.switchU&&ce.eat(45))return ce.lastIntValue=45,!0;if(!ce.switchU&&ce.eat(99)){if(this.regexp_eatClassControlLetter(ce))return!0;ce.pos=ze}return this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)},ur.regexp_classSetExpression=function(ce){var ze,Ve=1;if(this.regexp_eatClassSetRange(ce));else if(ze=this.regexp_eatClassSetOperand(ce)){2===ze&&(Ve=2);for(var qe=ce.pos;ce.eatChars([38,38]);)38!==ce.current()&&(ze=this.regexp_eatClassSetOperand(ce))?2!==ze&&(Ve=1):ce.raise("Invalid character in character class");if(qe!==ce.pos)return Ve;for(;ce.eatChars([45,45]);)this.regexp_eatClassSetOperand(ce)||ce.raise("Invalid character in character class");if(qe!==ce.pos)return Ve}else ce.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(ce)){if(!(ze=this.regexp_eatClassSetOperand(ce)))return Ve;2===ze&&(Ve=2)}},ur.regexp_eatClassSetRange=function(ce){var ze=ce.pos;if(this.regexp_eatClassSetCharacter(ce)){var Ve=ce.lastIntValue;if(ce.eat(45)&&this.regexp_eatClassSetCharacter(ce)){var qe=ce.lastIntValue;return-1!==Ve&&-1!==qe&&Ve>qe&&ce.raise("Range out of order in character class"),!0}ce.pos=ze}return!1},ur.regexp_eatClassSetOperand=function(ce){return this.regexp_eatClassSetCharacter(ce)?1:this.regexp_eatClassStringDisjunction(ce)||this.regexp_eatNestedClass(ce)},ur.regexp_eatNestedClass=function(ce){var ze=ce.pos;if(ce.eat(91)){var Ve=ce.eat(94),qe=this.regexp_classContents(ce);if(ce.eat(93))return Ve&&2===qe&&ce.raise("Negated character class may contain strings"),qe;ce.pos=ze}if(ce.eat(92)){var Ye=this.regexp_eatCharacterClassEscape(ce);if(Ye)return Ye;ce.pos=ze}return null},ur.regexp_eatClassStringDisjunction=function(ce){var ze=ce.pos;if(ce.eatChars([92,113])){if(ce.eat(123)){var Ve=this.regexp_classStringDisjunctionContents(ce);if(ce.eat(125))return Ve}else ce.raise("Invalid escape");ce.pos=ze}return null},ur.regexp_classStringDisjunctionContents=function(ce){for(var ze=this.regexp_classString(ce);ce.eat(124);)2===this.regexp_classString(ce)&&(ze=2);return ze},ur.regexp_classString=function(ce){for(var ze=0;this.regexp_eatClassSetCharacter(ce);)ze++;return 1===ze?1:2},ur.regexp_eatClassSetCharacter=function(ce){var ze=ce.pos;if(ce.eat(92))return!(!this.regexp_eatCharacterEscape(ce)&&!this.regexp_eatClassSetReservedPunctuator(ce))||(ce.eat(98)?(ce.lastIntValue=8,!0):(ce.pos=ze,!1));var Ve=ce.current();return!(Ve<0||Ve===ce.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(Ve))&&(!isClassSetSyntaxCharacter(Ve)&&(ce.advance(),ce.lastIntValue=Ve,!0))},ur.regexp_eatClassSetReservedPunctuator=function(ce){var ze=ce.current();return!!isClassSetReservedPunctuator(ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},ur.regexp_eatClassControlLetter=function(ce){var ze=ce.current();return!(!isDecimalDigit(ze)&&95!==ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},ur.regexp_eatHexEscapeSequence=function(ce){var ze=ce.pos;if(ce.eat(120)){if(this.regexp_eatFixedHexDigits(ce,2))return!0;ce.switchU&&ce.raise("Invalid escape"),ce.pos=ze}return!1},ur.regexp_eatDecimalDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isDecimalDigit(Ve=ce.current());)ce.lastIntValue=10*ce.lastIntValue+(Ve-48),ce.advance();return ce.pos!==ze},ur.regexp_eatHexDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isHexDigit(Ve=ce.current());)ce.lastIntValue=16*ce.lastIntValue+hexToInt(Ve),ce.advance();return ce.pos!==ze},ur.regexp_eatLegacyOctalEscapeSequence=function(ce){if(this.regexp_eatOctalDigit(ce)){var ze=ce.lastIntValue;if(this.regexp_eatOctalDigit(ce)){var Ve=ce.lastIntValue;ze<=3&&this.regexp_eatOctalDigit(ce)?ce.lastIntValue=64*ze+8*Ve+ce.lastIntValue:ce.lastIntValue=8*ze+Ve}else ce.lastIntValue=ze;return!0}return!1},ur.regexp_eatOctalDigit=function(ce){var ze=ce.current();return isOctalDigit(ze)?(ce.lastIntValue=ze-48,ce.advance(),!0):(ce.lastIntValue=0,!1)},ur.regexp_eatFixedHexDigits=function(ce,ze){var Ve=ce.pos;ce.lastIntValue=0;for(var qe=0;qe=this.input.length?this.finishToken(Ct.eof):ce.override?ce.override(this):void this.readToken(this.fullCharCodeAtPos())},Rr.readToken=function(ce){return isIdentifierStart(ce,this.options.ecmaVersion>=6)||92===ce?this.readWord():this.getTokenFromCode(ce)},Rr.fullCharCodeAtPos=function(){var ce=this.input.charCodeAt(this.pos);if(ce<=55295||ce>=56320)return ce;var ze=this.input.charCodeAt(this.pos+1);return ze<=56319||ze>=57344?ce:(ce<<10)+ze-56613888},Rr.skipBlockComment=function(){var ce=this.options.onComment&&this.curPosition(),ze=this.pos,Ve=this.input.indexOf("*/",this.pos+=2);if(-1===Ve&&this.raise(this.pos-2,"Unterminated comment"),this.pos=Ve+2,this.options.locations)for(var qe=void 0,Ye=ze;(qe=nextLineBreak(this.input,Ye,this.pos))>-1;)++this.curLine,Ye=this.lineStart=qe;this.options.onComment&&this.options.onComment(!0,this.input.slice(ze+2,Ve),ze,this.pos,ce,this.curPosition())},Rr.skipLineComment=function(ce){for(var ze=this.pos,Ve=this.options.onComment&&this.curPosition(),qe=this.input.charCodeAt(this.pos+=ce);this.pos8&&ce<14||ce>=5760&&St.test(String.fromCharCode(ce))))break e;++this.pos}}},Rr.finishToken=function(ce,ze){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var Ve=this.type;this.type=ce,this.value=ze,this.updateContext(Ve)},Rr.readToken_dot=function(){var ce=this.input.charCodeAt(this.pos+1);if(ce>=48&&ce<=57)return this.readNumber(!0);var ze=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===ce&&46===ze?(this.pos+=3,this.finishToken(Ct.ellipsis)):(++this.pos,this.finishToken(Ct.dot))},Rr.readToken_slash=function(){var ce=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===ce?this.finishOp(Ct.assign,2):this.finishOp(Ct.slash,1)},Rr.readToken_mult_modulo_exp=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1,qe=42===ce?Ct.star:Ct.modulo;return this.options.ecmaVersion>=7&&42===ce&&42===ze&&(++Ve,qe=Ct.starstar,ze=this.input.charCodeAt(this.pos+2)),61===ze?this.finishOp(Ct.assign,Ve+1):this.finishOp(qe,Ve)},Rr.readToken_pipe_amp=function(ce){var ze=this.input.charCodeAt(this.pos+1);if(ze===ce){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Ct.assign,3);return this.finishOp(124===ce?Ct.logicalOR:Ct.logicalAND,2)}return 61===ze?this.finishOp(Ct.assign,2):this.finishOp(124===ce?Ct.bitwiseOR:Ct.bitwiseAND,1)},Rr.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Ct.assign,2):this.finishOp(Ct.bitwiseXOR,1)},Rr.readToken_plus_min=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?45!==ze||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Dt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Ct.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===ze?this.finishOp(Ct.assign,2):this.finishOp(Ct.plusMin,1)},Rr.readToken_lt_gt=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1;return ze===ce?(Ve=62===ce&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+Ve)?this.finishOp(Ct.assign,Ve+1):this.finishOp(Ct.bitShift,Ve)):33!==ze||60!==ce||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===ze&&(Ve=2),this.finishOp(Ct.relational,Ve)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Rr.readToken_eq_excl=function(ce){var ze=this.input.charCodeAt(this.pos+1);return 61===ze?this.finishOp(Ct.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===ce&&62===ze&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Ct.arrow)):this.finishOp(61===ce?Ct.eq:Ct.prefix,1)},Rr.readToken_question=function(){var ce=this.options.ecmaVersion;if(ce>=11){var ze=this.input.charCodeAt(this.pos+1);if(46===ze){var Ve=this.input.charCodeAt(this.pos+2);if(Ve<48||Ve>57)return this.finishOp(Ct.questionDot,2)}if(63===ze){if(ce>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Ct.assign,3);return this.finishOp(Ct.coalesce,2)}}return this.finishOp(Ct.question,1)},Rr.readToken_numberSign=function(){var ce=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(ce=this.fullCharCodeAtPos(),!0)||92===ce))return this.finishToken(Ct.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(ce)+"'")},Rr.getTokenFromCode=function(ce){switch(ce){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Ct.parenL);case 41:return++this.pos,this.finishToken(Ct.parenR);case 59:return++this.pos,this.finishToken(Ct.semi);case 44:return++this.pos,this.finishToken(Ct.comma);case 91:return++this.pos,this.finishToken(Ct.bracketL);case 93:return++this.pos,this.finishToken(Ct.bracketR);case 123:return++this.pos,this.finishToken(Ct.braceL);case 125:return++this.pos,this.finishToken(Ct.braceR);case 58:return++this.pos,this.finishToken(Ct.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Ct.backQuote);case 48:var ze=this.input.charCodeAt(this.pos+1);if(120===ze||88===ze)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===ze||79===ze)return this.readRadixNumber(8);if(98===ze||66===ze)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(ce);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(ce);case 124:case 38:return this.readToken_pipe_amp(ce);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(ce);case 60:case 62:return this.readToken_lt_gt(ce);case 61:case 33:return this.readToken_eq_excl(ce);case 63:return this.readToken_question();case 126:return this.finishOp(Ct.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(ce)+"'")},Rr.finishOp=function(ce,ze){var Ve=this.input.slice(this.pos,this.pos+ze);return this.pos+=ze,this.finishToken(ce,Ve)},Rr.readRegexp=function(){for(var ce,ze,Ve=this.pos;;){this.pos>=this.input.length&&this.raise(Ve,"Unterminated regular expression");var qe=this.input.charAt(this.pos);if(Dt.test(qe)&&this.raise(Ve,"Unterminated regular expression"),ce)ce=!1;else{if("["===qe)ze=!0;else if("]"===qe&&ze)ze=!1;else if("/"===qe&&!ze)break;ce="\\"===qe}++this.pos}var Ye=this.input.slice(Ve,this.pos);++this.pos;var We=this.pos,Qe=this.readWord1();this.containsEsc&&this.unexpected(We);var Xe=this.regexpState||(this.regexpState=new vr(this));Xe.reset(Ve,Ye,Qe),this.validateRegExpFlags(Xe),this.validateRegExpPattern(Xe);var ot=null;try{ot=new RegExp(Ye,Qe)}catch(ce){}return this.finishToken(Ct.regexp,{pattern:Ye,flags:Qe,value:ot})},Rr.readInt=function(ce,ze,Ve){for(var qe=this.options.ecmaVersion>=12&&void 0===ze,Ye=Ve&&48===this.input.charCodeAt(this.pos),We=this.pos,Qe=0,Xe=0,ot=0,st=null==ze?1/0:ze;ot=97?mt-97+10:mt>=65?mt-65+10:mt>=48&&mt<=57?mt-48:1/0)>=ce)break;Xe=mt,Qe=Qe*ce+gt}}return qe&&95===Xe&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===We||null!=ze&&this.pos-We!==ze?null:Qe},Rr.readRadixNumber=function(ce){var ze=this.pos;this.pos+=2;var Ve=this.readInt(ce);return null==Ve&&this.raise(this.start+2,"Expected number in radix "+ce),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(Ve=stringToBigInt(this.input.slice(ze,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ct.num,Ve)},Rr.readNumber=function(ce){var ze=this.pos;ce||null!==this.readInt(10,void 0,!0)||this.raise(ze,"Invalid number");var Ve=this.pos-ze>=2&&48===this.input.charCodeAt(ze);Ve&&this.strict&&this.raise(ze,"Invalid number");var qe=this.input.charCodeAt(this.pos);if(!Ve&&!ce&&this.options.ecmaVersion>=11&&110===qe){var Ye=stringToBigInt(this.input.slice(ze,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ct.num,Ye)}Ve&&/[89]/.test(this.input.slice(ze,this.pos))&&(Ve=!1),46!==qe||Ve||(++this.pos,this.readInt(10),qe=this.input.charCodeAt(this.pos)),69!==qe&&101!==qe||Ve||(43!==(qe=this.input.charCodeAt(++this.pos))&&45!==qe||++this.pos,null===this.readInt(10)&&this.raise(ze,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var We,Qe=(We=this.input.slice(ze,this.pos),Ve?parseInt(We,8):parseFloat(We.replace(/_/g,"")));return this.finishToken(Ct.num,Qe)},Rr.readCodePoint=function(){var ce;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var ze=++this.pos;ce=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,ce>1114111&&this.invalidStringToken(ze,"Code point out of bounds")}else ce=this.readHexChar(4);return ce},Rr.readString=function(ce){for(var ze="",Ve=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var qe=this.input.charCodeAt(this.pos);if(qe===ce)break;92===qe?(ze+=this.input.slice(Ve,this.pos),ze+=this.readEscapedChar(!1),Ve=this.pos):8232===qe||8233===qe?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(qe)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(Ct.string,ze)};var Cr={};Rr.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(ce){if(ce!==Cr)throw ce;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Rr.invalidStringToken=function(ce,ze){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Cr;this.raise(ce,ze)},Rr.readTmplToken=function(){for(var ce="",ze=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var Ve=this.input.charCodeAt(this.pos);if(96===Ve||36===Ve&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Ct.template&&this.type!==Ct.invalidTemplate?(ce+=this.input.slice(ze,this.pos),this.finishToken(Ct.template,ce)):36===Ve?(this.pos+=2,this.finishToken(Ct.dollarBraceL)):(++this.pos,this.finishToken(Ct.backQuote));if(92===Ve)ce+=this.input.slice(ze,this.pos),ce+=this.readEscapedChar(!0),ze=this.pos;else if(isNewLine(Ve)){switch(ce+=this.input.slice(ze,this.pos),++this.pos,Ve){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:ce+="\n";break;default:ce+=String.fromCharCode(Ve)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze=this.pos}else++this.pos}},Rr.readInvalidTemplateToken=function(){for(;this.pos=48&&ze<=55){var qe=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Ye=parseInt(qe,8);return Ye>255&&(qe=qe.slice(0,-1),Ye=parseInt(qe,8)),this.pos+=qe.length-1,ze=this.input.charCodeAt(this.pos),"0"===qe&&56!==ze&&57!==ze||!this.strict&&!ce||this.invalidStringToken(this.pos-1-qe.length,ce?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(Ye)}return isNewLine(ze)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(ze)}},Rr.readHexChar=function(ce){var ze=this.pos,Ve=this.readInt(16,ce);return null===Ve&&this.invalidStringToken(ze,"Bad character escape sequence"),Ve},Rr.readWord1=function(){this.containsEsc=!1;for(var ce="",ze=!0,Ve=this.pos,qe=this.options.ecmaVersion>=6;this.pos0&&qe===Ye)return getJsonPointer.call(this,Ve,ce);const We=(0,Qe.normalizeId)(qe),Xe=this.refs[We]||this.schemas[We];if("string"==typeof Xe){const ze=resolveSchema.call(this,ce,Xe);if("object"!=typeof(null==ze?void 0:ze.schema))return;return getJsonPointer.call(this,Ve,ze)}if("object"==typeof(null==Xe?void 0:Xe.schema)){if(Xe.validate||compileSchema.call(this,Xe),We===(0,Qe.normalizeId)(ze)){const{schema:ze}=Xe,{schemaId:Ve}=this.opts,qe=ze[Ve];return qe&&(Ye=(0,Qe.resolveUrl)(this.opts.uriResolver,Ye,qe)),new st({schema:ze,schemaId:Ve,root:ce,baseId:Ye})}return getJsonPointer.call(this,Ve,Xe)}}ze.SchemaEnv=st,ze.compileSchema=compileSchema,ze.resolveRef=function resolveRef(ce,ze,Ve){var qe;Ve=(0,Qe.resolveUrl)(this.opts.uriResolver,ze,Ve);const Ye=ce.refs[Ve];if(Ye)return Ye;let We=resolve.call(this,ce,Ve);if(void 0===We){const Ye=null===(qe=ce.localRefs)||void 0===qe?void 0:qe[Ve],{schemaId:Qe}=this.opts;Ye&&(We=new st({schema:Ye,schemaId:Qe,root:ce,baseId:ze}))}return void 0!==We?ce.refs[Ve]=inlineOrCompile.call(this,We):void 0},ze.getCompilingSchema=getCompilingSchema,ze.resolveSchema=resolveSchema;const mt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(ce,{baseId:ze,schema:Ve,root:qe}){var Ye;if("/"!==(null===(Ye=ce.fragment)||void 0===Ye?void 0:Ye[0]))return;for(const qe of ce.fragment.slice(1).split("/")){if("boolean"==typeof Ve)return;const ce=Ve[(0,Xe.unescapeFragment)(qe)];if(void 0===ce)return;const Ye="object"==typeof(Ve=ce)&&Ve[this.opts.schemaId];!mt.has(qe)&&Ye&&(ze=(0,Qe.resolveUrl)(this.opts.uriResolver,ze,Ye))}let We;if("boolean"!=typeof Ve&&Ve.$ref&&!(0,Xe.schemaHasRulesButRef)(Ve,this.RULES)){const ce=(0,Qe.resolveUrl)(this.opts.uriResolver,ze,Ve.$ref);We=resolveSchema.call(this,qe,ce)}const{schemaId:ot}=this.opts;return We=We||new st({schema:Ve,schemaId:ot,root:qe,baseId:ze}),We.schema!==We.root.schema?We:void 0}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(22);qe.code='require("ajv/dist/runtime/equal").default',ze.default=qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return We}));var qe=Ve(0),Ye=Ve.n(qe);Ve(438);class We extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:qe}=this.props;Ve(ce&&ze?[...qe,ze]:qe.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return Ye.a.createElement("div",{className:ce},Ye.a.Children.map(this.props.children,(ce=>Ye.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}We.defaultProps={disabled:!1}},function(ce,ze,Ve){"use strict";Ve(505).default},function(ce,ze,Ve){"use strict";let qe=Ve(1816),Ye=Ve(1040);class We extends Error{constructor(ce,ze,Ve,qe,Ye,Qe){super(ce),this.name="CssSyntaxError",this.reason=ce,Ye&&(this.file=Ye),qe&&(this.source=qe),Qe&&(this.plugin=Qe),void 0!==ze&&void 0!==Ve&&("number"==typeof ze?(this.line=ze,this.column=Ve):(this.line=ze.line,this.column=ze.column,this.endLine=Ve.line,this.endColumn=Ve.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,We)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(ce){if(!this.source)return"";let ze=this.source;null==ce&&(ce=qe.isColorSupported),Ye&&ce&&(ze=Ye(ze));let Ve,We,Qe=ze.split(/\r?\n/),Xe=Math.max(this.line-3,0),ot=Math.min(this.line+2,Qe.length),st=String(ot).length;if(ce){let{bold:ce,gray:ze,red:Ye}=qe.createColors(!0);Ve=ze=>ce(Ye(ze)),We=ce=>ze(ce)}else Ve=We=ce=>ce;return Qe.slice(Xe,ot).map(((ce,ze)=>{let qe=Xe+1+ze,Ye=" "+(" "+qe).slice(-st)+" | ";if(qe===this.line){let ze=We(Ye.replace(/\d/g," "))+ce.slice(0,this.column-1).replace(/[^\t]/g," ");return Ve(">")+We(Ye)+ce+"\n "+ze+Ve("^")}return" "+We(Ye)+ce})).join("\n")}toString(){let ce=this.showSourceCode();return ce&&(ce="\n\n"+ce+"\n"),this.name+": "+this.message+ce}}ce.exports=We,We.default=We},function(ce,ze,Ve){"use strict";ce.exports.isClean=Symbol("isClean"),ce.exports.my=Symbol("my")},function(ce,ze){},function(ce,ze){},function(ce,ze,Ve){"use strict";let qe,Ye,We=Ve(324);class Qe extends We{constructor(ce){super({type:"document",...ce}),this.nodes||(this.nodes=[])}toResult(ce={}){return new qe(new Ye,this,ce).stringify()}}Qe.registerLazyResult=ce=>{qe=ce},Qe.registerProcessor=ce=>{Ye=ce},ce.exports=Qe,Qe.default=Qe},function(ce,ze,Ve){"use strict";let qe=Ve(1047);class Ye{constructor(ce,ze,Ve){this.processor=ce,this.messages=[],this.root=ze,this.opts=Ve,this.css=void 0,this.map=void 0}toString(){return this.css}warn(ce,ze={}){ze.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(ze.plugin=this.lastPlugin.postcssPlugin);let Ve=new qe(ce,ze);return this.messages.push(Ve),Ve}warnings(){return this.messages.filter((ce=>"warning"===ce.type))}get content(){return this.css}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";let qe=Ve(324),Ye=Ve(1819),We=Ve(498);function parse(ce,ze){let Ve=new We(ce,ze),qe=new Ye(Ve);try{qe.parse()}catch(ce){throw ce}return qe.root}ce.exports=parse,parse.default=parse,qe.registerParse(parse)},function(ce,ze,Ve){"use strict";let qe=Ve(324);class Ye extends qe{constructor(ce){super(ce),this.type="atrule"}append(...ce){return this.proxyOf.nodes||(this.nodes=[]),super.append(...ce)}prepend(...ce){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...ce)}}ce.exports=Ye,Ye.default=Ye,qe.registerAtRule(Ye)},function(ce,ze,Ve){"use strict";let qe=Ve(324),Ye=Ve(1048);class We extends qe{constructor(ce){super(ce),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ye.comma(this.selector)}set selectors(ce){let ze=this.selector?this.selector.match(/,\s*/):null,Ve=ze?ze[0]:","+this.raw("between","beforeOpen");this.selector=ce.join(Ve)}}ce.exports=We,We.default=We,qe.registerRule(We)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return We}));var qe=Ve(0),Ye=Ve.n(qe);Ve(434);class We extends Ye.a.PureComponent{render(){return Ye.a.createElement("div",{className:this.props.className},Ye.a.Children.map(this.props.children,(ce=>Ye.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}We.defaultProps={disabled:!1}},function(ce,ze,Ve){var qe=Ve(879),Ye=Ve(1826);ce.exports=function forOwn(ce,ze){return ce&&qe(ce,Ye(ze))}},function(ce,ze){ce.exports=function(ce){if(!ce.webpackPolyfill){var ze=Object.create(ce);ze.children||(ze.children=[]),Object.defineProperty(ze,"loaded",{enumerable:!0,get:function(){return ze.l}}),Object.defineProperty(ze,"id",{enumerable:!0,get:function(){return ze.i}}),Object.defineProperty(ze,"exports",{enumerable:!0}),ze.webpackPolyfill=1}return ze}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return withToolbar}));var qe=Ve(1),Ye=Ve(9),We=Ve.n(Ye),Qe=Ve(96),Xe=Ve(230),ot=Ve(269);const st=1024;function withToolbar(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.a;const Ye=class extends ce{componentDidMount(){super.componentDidMount&&super.componentDidMount();const{router:ce}=this.props,Xe=Object(qe.autorun)((()=>{const ce=ze.call(this);ot.b.setToolbarConfig(Ve,ce),We.a.info((Ye.displayName||"")+' configured toolbar "'+Ve+'"',ce)}));this.updateRouteHookDisposer=ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:qe,route:Ye}=ce;return Object(Qe.a)(ze,Ve)!==Object(Qe.a)(Ye,qe)&&Xe(),!0}),st)}componentWillUnmount(){super.componentWillUnmount&&super.componentWillUnmount(),this.updateRouteHookDisposer(),ot.b.setToolbarConfig(Ve,{})}};return Ye.displayName=Object(Xe.a)("withToolbar",ce),Ye}},function(ce,ze,Ve){var qe,Ye;"undefined"!=typeof window&&window,void 0===(Ye="function"==typeof(qe=function(){"use strict";function EvEmitter(){}var ce=EvEmitter.prototype;return ce.on=function(ce,ze){if(ce&&ze){var Ve=this._events=this._events||{},qe=Ve[ce]=Ve[ce]||[];return-1==qe.indexOf(ze)&&qe.push(ze),this}},ce.once=function(ce,ze){if(ce&&ze){this.on(ce,ze);var Ve=this._onceEvents=this._onceEvents||{};return(Ve[ce]=Ve[ce]||{})[ze]=!0,this}},ce.off=function(ce,ze){var Ve=this._events&&this._events[ce];if(Ve&&Ve.length){var qe=Ve.indexOf(ze);return-1!=qe&&Ve.splice(qe,1),this}},ce.emitEvent=function(ce,ze){var Ve=this._events&&this._events[ce];if(Ve&&Ve.length){Ve=Ve.slice(0),ze=ze||[];for(var qe=this._onceEvents&&this._onceEvents[ce],Ye=0;Ye
b)","g");return"b"!==ce.exec("b").groups.a||"bc"!=="b".replace(ce,"$c")}))},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(472),We=Ve(147),Qe=Ve(319),Xe=Ve(208),ot=Ve(1158),st=Ve(149),mt=Ve(419),gt=Ve(473);Ye("search",(function(ce,ze,Ve){return[function search(ze){var Ve=Xe(this),Ye=Qe(ze)?void 0:mt(ze,ce);return Ye?qe(Ye,ze,Ve):new RegExp(ze)[ce](st(Ve))},function(ce){var qe=We(this),Ye=st(ce),Qe=Ve(ze,qe,Ye);if(Qe.done)return Qe.value;var Xe=qe.lastIndex;ot(Xe,0)||(qe.lastIndex=0);var mt=gt(qe,Ye);return ot(qe.lastIndex,Xe)||(qe.lastIndex=Xe),null===mt?-1:mt.index}]}))},function(ce,ze,Ve){"use strict";var qe=Ve(1162);ce.exports=function(ce,ze){return new(qe(ce))(0===ze?0:ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(61),We=Ve(106),Qe=Ve(470),Xe=Ve(246),ot=Ve(827),noop=function(){},st=Xe("Reflect","construct"),mt=/^\s*(?:class|function)\b/,gt=qe(mt.exec),yt=!mt.test(noop),bt=function isConstructor(ce){if(!We(ce))return!1;try{return st(noop,[],ce),!0}catch(ce){return!1}},vt=function isConstructor(ce){if(!We(ce))return!1;switch(Qe(ce)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yt||!!gt(mt,ot(ce))}catch(ce){return!0}};vt.sham=!0,ce.exports=!st||Ye((function(){var ce;return bt(bt.call)||!bt(Object)||!bt((function(){ce=!0}))||ce}))?vt:bt},function(ce,ze,Ve){"use strict";var qe=Ve(111),Ye=Ve(106),We=Ve(209),Qe=Ve(464),Xe=Ve(839),ot=Qe("IE_PROTO"),st=Object,mt=st.prototype;ce.exports=Xe?st.getPrototypeOf:function(ce){var ze=We(ce);if(qe(ze,ot))return ze[ot];var Ve=ze.constructor;return Ye(Ve)&&ze instanceof Ve?Ve.prototype:ze instanceof st?mt:null}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(ce,ze,Ve){"use strict";var qe=Ve(837),Ye=Ve(462),We=TypeError;ce.exports=function(ce){if(qe(ce))return ce;throw new We(Ye(ce)+" is not a constructor")}},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(111),We=Ve(343),Qe=Ve(742),Xe=RegExp.prototype;ce.exports=function(ce){var ze=ce.flags;return void 0!==ze||"flags"in Xe||Ye(ce,"flags")||!We(Xe,ce)?ze:qe(Qe,ce)}},function(ce,ze,Ve){(function(ze){var Ve="object"==typeof ze&&ze&&ze.Object===Object&&ze;ce.exports=Ve}).call(this,Ve(146))},function(ce,ze){var Ve=Function.prototype.toString;ce.exports=function toSource(ce){if(null!=ce){try{return Ve.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){var qe=Ve(754),Ye=Ve(424);ce.exports=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Ye(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&qe(ce,ze,Ve)}},function(ce,ze,Ve){var qe=Ve(320),Ye=function(){try{var ce=qe(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ce.exports=Ye},function(ce,ze,Ve){var qe=Ve(1196)();ce.exports=qe},function(ce,ze,Ve){(function(ce){var qe=Ve(171),Ye=ze&&!ze.nodeType&&ze,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=We&&We.exports===Ye?qe.Buffer:void 0,Xe=Qe?Qe.allocUnsafe:void 0;ce.exports=function cloneBuffer(ce,ze){if(ze)return ce.slice();var Ve=ce.length,qe=Xe?Xe(Ve):new ce.constructor(Ve);return ce.copy(qe),qe}}).call(this,Ve(322)(ce))},function(ce,ze,Ve){var qe=Ve(755);ce.exports=function cloneTypedArray(ce,ze){var Ve=ze?qe(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.length)}},function(ce,ze,Ve){var qe=Ve(171).Uint8Array;ce.exports=qe},function(ce,ze){ce.exports=function copyArray(ce,ze){var Ve=-1,qe=ce.length;for(ze||(ze=Array(qe));++Ve=97&&Qe<=122||Qe>=65&&Qe<=90||36===Qe||95===Qe;for(We=new Array(128),Qe=0;Qe<128;++Qe)We[Qe]=Qe>=97&&Qe<=122||Qe>=65&&Qe<=90||Qe>=48&&Qe<=57||36===Qe||95===Qe;ce.exports={isDecimalDigit:function isDecimalDigit(ce){return 48<=ce&&ce<=57},isHexDigit:function isHexDigit(ce){return 48<=ce&&ce<=57||97<=ce&&ce<=102||65<=ce&&ce<=70},isOctalDigit:function isOctalDigit(ce){return ce>=48&&ce<=55},isWhiteSpace:function isWhiteSpace(ce){return 32===ce||9===ce||11===ce||12===ce||160===ce||ce>=5760&&qe.indexOf(ce)>=0},isLineTerminator:function isLineTerminator(ce){return 10===ce||13===ce||8232===ce||8233===ce},isIdentifierStartES5:function isIdentifierStartES5(ce){return ce<128?Ye[ce]:Ve.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES5:function isIdentifierPartES5(ce){return ce<128?We[ce]:Ve.NonAsciiIdentifierPart.test(fromCodePoint(ce))},isIdentifierStartES6:function isIdentifierStartES6(ce){return ce<128?Ye[ce]:ze.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES6:function isIdentifierPartES6(ce){return ce<128?We[ce]:ze.NonAsciiIdentifierPart.test(fromCodePoint(ce))}}}()},function(ce,ze,Ve){!function(){"use strict";var ce,qe;function DoctrineError(ce){this.name="DoctrineError",this.message=ce}ce=Ve(1235).version,ze.VERSION=ce,DoctrineError.prototype=((qe=function(){}).prototype=Error.prototype,new qe),DoctrineError.prototype.constructor=DoctrineError,ze.DoctrineError=DoctrineError,ze.throwError=function throwError(ce){throw new DoctrineError(ce)},ze.assert=Ve(1236)}()},function(ce,ze,Ve){(function(ce){var qe=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(ce){for(var ze=Object.keys(ce),Ve={},qe=0;qe=We)return ce;switch(ce){case"%s":return String(qe[Ve++]);case"%d":return Number(qe[Ve++]);case"%j":try{return JSON.stringify(qe[Ve++])}catch(ce){return"[Circular]"}default:return ce}})),Xe=qe[Ve];Ve=3&&(qe.depth=arguments[2]),arguments.length>=4&&(qe.colors=arguments[3]),isBoolean(Ve)?qe.showHidden=Ve:Ve&&ze._extend(qe,Ve),isUndefined(qe.showHidden)&&(qe.showHidden=!1),isUndefined(qe.depth)&&(qe.depth=2),isUndefined(qe.colors)&&(qe.colors=!1),isUndefined(qe.customInspect)&&(qe.customInspect=!0),qe.colors&&(qe.stylize=stylizeWithColor),formatValue(qe,ce,qe.depth)}function stylizeWithColor(ce,ze){var Ve=inspect.styles[ze];return Ve?"["+inspect.colors[Ve][0]+"m"+ce+"["+inspect.colors[Ve][1]+"m":ce}function stylizeNoColor(ce,ze){return ce}function arrayToHash(ce){var ze={};return ce.forEach((function(ce,Ve){ze[ce]=!0})),ze}function formatValue(ce,Ve,qe){if(ce.customInspect&&Ve&&isFunction(Ve.inspect)&&Ve.inspect!==ze.inspect&&(!Ve.constructor||Ve.constructor.prototype!==Ve)){var Ye=Ve.inspect(qe,ce);return isString(Ye)||(Ye=formatValue(ce,Ye,qe)),Ye}var We=formatPrimitive(ce,Ve);if(We)return We;var Qe=Object.keys(Ve),Xe=arrayToHash(Qe);if(ce.showHidden&&(Qe=Object.getOwnPropertyNames(Ve)),isError(Ve)&&(Qe.indexOf("message")>=0||Qe.indexOf("description")>=0))return formatError(Ve);if(0===Qe.length){if(isFunction(Ve)){var ot=Ve.name?": "+Ve.name:"";return ce.stylize("[Function"+ot+"]","special")}if(isRegExp(Ve))return ce.stylize(RegExp.prototype.toString.call(Ve),"regexp");if(isDate(Ve))return ce.stylize(Date.prototype.toString.call(Ve),"date");if(isError(Ve))return formatError(Ve)}var st,mt="",gt=!1,yt=["{","}"];(isArray(Ve)&&(gt=!0,yt=["[","]"]),isFunction(Ve))&&(mt=" [Function"+(Ve.name?": "+Ve.name:"")+"]");return isRegExp(Ve)&&(mt=" "+RegExp.prototype.toString.call(Ve)),isDate(Ve)&&(mt=" "+Date.prototype.toUTCString.call(Ve)),isError(Ve)&&(mt=" "+formatError(Ve)),0!==Qe.length||gt&&0!=Ve.length?qe<0?isRegExp(Ve)?ce.stylize(RegExp.prototype.toString.call(Ve),"regexp"):ce.stylize("[Object]","special"):(ce.seen.push(Ve),st=gt?formatArray(ce,Ve,qe,Xe,Qe):Qe.map((function(ze){return formatProperty(ce,Ve,qe,Xe,ze,gt)})),ce.seen.pop(),reduceToSingleString(st,mt,yt)):yt[0]+mt+yt[1]}function formatPrimitive(ce,ze){if(isUndefined(ze))return ce.stylize("undefined","undefined");if(isString(ze)){var Ve="'"+JSON.stringify(ze).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(Ve,"string")}return isNumber(ze)?ce.stylize(""+ze,"number"):isBoolean(ze)?ce.stylize(""+ze,"boolean"):isNull(ze)?ce.stylize("null","null"):void 0}function formatError(ce){return"["+Error.prototype.toString.call(ce)+"]"}function formatArray(ce,ze,Ve,qe,Ye){for(var We=[],Qe=0,Xe=ze.length;Qe-1&&(Xe=We?Xe.split("\n").map((function(ce){return" "+ce})).join("\n").substr(2):"\n"+Xe.split("\n").map((function(ce){return" "+ce})).join("\n")):Xe=ce.stylize("[Circular]","special")),isUndefined(Qe)){if(We&&Ye.match(/^\d+$/))return Xe;(Qe=JSON.stringify(""+Ye)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=ce.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=ce.stylize(Qe,"string"))}return Qe+": "+Xe}function reduceToSingleString(ce,ze,Ve){return ce.reduce((function(ce,ze){return ze.indexOf("\n")>=0&&0,ce+ze.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?Ve[0]+(""===ze?"":ze+"\n ")+" "+ce.join(",\n ")+" "+Ve[1]:Ve[0]+ze+" "+ce.join(", ")+" "+Ve[1]}function isArray(ce){return Array.isArray(ce)}function isBoolean(ce){return"boolean"==typeof ce}function isNull(ce){return null===ce}function isNumber(ce){return"number"==typeof ce}function isString(ce){return"string"==typeof ce}function isUndefined(ce){return void 0===ce}function isRegExp(ce){return isObject(ce)&&"[object RegExp]"===objectToString(ce)}function isObject(ce){return"object"==typeof ce&&null!==ce}function isDate(ce){return isObject(ce)&&"[object Date]"===objectToString(ce)}function isError(ce){return isObject(ce)&&("[object Error]"===objectToString(ce)||ce instanceof Error)}function isFunction(ce){return"function"==typeof ce}function objectToString(ce){return Object.prototype.toString.call(ce)}function pad(ce){return ce<10?"0"+ce.toString(10):ce.toString(10)}ze.debuglog=function(Ve){if(isUndefined(We)&&(We=ce.env.NODE_DEBUG||""),Ve=Ve.toUpperCase(),!Qe[Ve])if(new RegExp("\\b"+Ve+"\\b","i").test(We)){var qe=ce.pid;Qe[Ve]=function(){var ce=ze.format.apply(ze,arguments);console.error("%s %d: %s",Ve,qe,ce)}}else Qe[Ve]=function(){};return Qe[Ve]},ze.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ze.isArray=isArray,ze.isBoolean=isBoolean,ze.isNull=isNull,ze.isNullOrUndefined=function isNullOrUndefined(ce){return null==ce},ze.isNumber=isNumber,ze.isString=isString,ze.isSymbol=function isSymbol(ce){return"symbol"==typeof ce},ze.isUndefined=isUndefined,ze.isRegExp=isRegExp,ze.isObject=isObject,ze.isDate=isDate,ze.isError=isError,ze.isFunction=isFunction,ze.isPrimitive=function isPrimitive(ce){return null===ce||"boolean"==typeof ce||"number"==typeof ce||"string"==typeof ce||"symbol"==typeof ce||void 0===ce},ze.isBuffer=Ve(1237);var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}ze.log=function(){var ce,Ve;console.log("%s - %s",(ce=new Date,Ve=[pad(ce.getHours()),pad(ce.getMinutes()),pad(ce.getSeconds())].join(":"),[ce.getDate(),Xe[ce.getMonth()],Ve].join(" ")),ze.format.apply(ze,arguments))},ze.inherits=Ve(1238),ze._extend=function(ce,ze){if(!ze||!isObject(ze))return ce;for(var Ve=Object.keys(ze),qe=Ve.length;qe--;)ce[Ve[qe]]=ze[Ve[qe]];return ce};var ot="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(ce,ze){if(!ce){var Ve=new Error("Promise was rejected with a falsy value");Ve.reason=ce,ce=Ve}return ze(ce)}ze.promisify=function promisify(ce){if("function"!=typeof ce)throw new TypeError('The "original" argument must be of type Function');if(ot&&ce[ot]){var ze;if("function"!=typeof(ze=ce[ot]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ze,ot,{value:ze,enumerable:!1,writable:!1,configurable:!0}),ze}function ze(){for(var ze,Ve,qe=new Promise((function(ce,qe){ze=ce,Ve=qe})),Ye=[],We=0;Wemt))return!1;var yt=ot.get(ce),bt=ot.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new qe:void 0;for(ot.set(ce,ze),ot.set(ze,ce);++vt@^][^\s!#%&*+<=>@^]*>/,ln=/a/g,mn=/a/g,gn=new Bt(ln)!==ln,bn=wt.MISSED_STICKY,wn=wt.UNSUPPORTED_Y,Cn=qe&&(!gn||bn||Tt||Lt||kt((function(){return mn[Ft]=!1,Bt(ln)!==ln||Bt(mn)===mn||"/a/i"!==String(Bt(ln,"i"))}))),handleDotAll=function(ce){for(var ze,Ve=ce.length,qe=0,Ye="",We=!1;qe<=Ve;qe++)"\\"!==(ze=Wt(ce,qe))?We||"."!==ze?("["===ze?We=!0:"]"===ze&&(We=!1),Ye+=ze):Ye+="[\\s\\S]":Ye+=ze+Wt(ce,++qe);return Ye},handleNCG=function(ce){for(var ze,Ve=ce.length,qe=0,Ye="",We=[],Qe=st(null),Xe=!1,ot=!1,mt=0,gt="";qe<=Ve;qe++){if("\\"===(ze=Wt(ce,qe)))ze+=Wt(ce,++qe);else if("]"===ze)Xe=!1;else if(!Xe)switch(!0){case"["===ze:Xe=!0;break;case"("===ze:if(Ye+=ze,"?:"===en(ce,qe+1,qe+3))continue;Ut(rn,en(ce,qe+1))&&(qe+=2,ot=!0),mt++;continue;case">"===ze&&ot:if(""===gt||St(Qe,gt))throw new Ht("Invalid capture group name");Qe[gt]=!0,We[We.length]=[gt,mt],ot=!1,gt="";continue}ot?gt+=ze:Ye+=ze}return[Ye,We]};if(Qe("RegExp",Cn)){for(var Sn=function RegExp(ce,ze){var Ve,qe,Ye,We,Qe,st,mt=gt(Vt,this),wt=yt(ce),Ct=void 0===ze,Dt=[],kt=ce;if(!mt&&wt&&Ct&&ce.constructor===Sn)return ce;if((wt||gt(Vt,ce))&&(ce=ce.source,Ct&&(ze=vt(kt))),ce=void 0===ce?"":bt(ce),ze=void 0===ze?"":bt(ze),kt=ce,Tt&&"dotAll"in ln&&(qe=!!ze&&Qt(ze,"s")>-1)&&(ze=Jt(ze,/s/g,"")),Ve=ze,bn&&"sticky"in ln&&(Ye=!!ze&&Qt(ze,"y")>-1)&&wn&&(ze=Jt(ze,/y/g,"")),Lt&&(ce=(We=handleNCG(ce))[0],Dt=We[1]),Qe=Xe(Bt(ce,ze),mt?this:Vt,Sn),(qe||Ye||Dt.length)&&(st=xt(Qe),qe&&(st.dotAll=!0,st.raw=Sn(handleDotAll(ce),Ve)),Ye&&(st.sticky=!0),Dt.length&&(st.groups=Dt)),ce!==kt)try{ot(Qe,"source",""===kt?"(?:)":kt)}catch(ce){}return Qe},En=mt(Bt),Tn=0;En.length>Tn;)Ct(Sn,Bt,En[Tn++]);Vt.constructor=Sn,Sn.prototype=Vt,Dt(Ye,"RegExp",Sn,{constructor:!0})}Et("RegExp")},function(ce,ze,Ve){"use strict";var qe=Ve(1274),Ye=Ve(121),We=Ve(208),Qe=Ve(1275);ce.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce,ze=!1,Ve={};try{(ce=qe(Object.prototype,"__proto__","set"))(Ve,[]),ze=Ve instanceof Array}catch(ce){}return function setPrototypeOf(Ve,qe){return We(Ve),Qe(qe),Ye(Ve)?(ze?ce(Ve,qe):Ve.__proto__=qe,Ve):Ve}}():void 0)},function(ce,ze,Ve){var qe=Ve(1282),Ye=Ve(186),We=Ve(485),Qe=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,st=parseInt;ce.exports=function toNumber(ce){if("number"==typeof ce)return ce;if(We(ce))return NaN;if(Ye(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=Ye(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=qe(ce);var Ve=Xe.test(ce);return Ve||ot.test(ce)?st(ce.slice(2),Ve?2:8):Qe.test(ce)?NaN:+ce}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(1284).trim;qe({target:"String",proto:!0,forced:Ve(1285)("trim")},{trim:function trim(){return Ye(this)}})},function(ce,ze,Ve){"use strict";ce.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(ce,ze,Ve){"use strict";var qe=Ve(429).forEach,Ye=Ve(484)("forEach");ce.exports=Ye?[].forEach:function forEach(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(ce,ze,Ve){},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ValueScope=ze.ValueScopeName=ze.Scope=ze.varKinds=ze.UsedValueState=void 0;const qe=Ve(491);class Ye extends Error{constructor(ce){super(`CodeGen: "code" for ${ce} not defined`),this.value=ce.value}}var We;!function(ce){ce[ce.Started=0]="Started",ce[ce.Completed=1]="Completed"}(We||(ze.UsedValueState=We={})),ze.varKinds={const:new qe.Name("const"),let:new qe.Name("let"),var:new qe.Name("var")};class Qe{constructor({prefixes:ce,parent:ze}={}){this._names={},this._prefixes=ce,this._parent=ze}toName(ce){return ce instanceof qe.Name?ce:this.name(ce)}name(ce){return new qe.Name(this._newName(ce))}_newName(ce){return`${ce}${(this._names[ce]||this._nameGroup(ce)).index++}`}_nameGroup(ce){var ze,Ve;if((null===(Ve=null===(ze=this._parent)||void 0===ze?void 0:ze._prefixes)||void 0===Ve?void 0:Ve.has(ce))||this._prefixes&&!this._prefixes.has(ce))throw new Error(`CodeGen: prefix "${ce}" is not allowed in this scope`);return this._names[ce]={prefix:ce,index:0}}}ze.Scope=Qe;class Xe extends qe.Name{constructor(ce,ze){super(ze),this.prefix=ce}setValue(ce,{property:ze,itemIndex:Ve}){this.value=ce,this.scopePath=qe._`.${new qe.Name(ze)}[${Ve}]`}}ze.ValueScopeName=Xe;const ot=qe._`\n`;ze.ValueScope=class extends Qe{constructor(ce){super(ce),this._values={},this._scope=ce.scope,this.opts={...ce,_n:ce.lines?ot:qe.nil}}get(){return this._scope}name(ce){return new Xe(ce,this._newName(ce))}value(ce,ze){var Ve;if(void 0===ze.ref)throw new Error("CodeGen: ref must be passed in value");const qe=this.toName(ce),{prefix:Ye}=qe,We=null!==(Ve=ze.key)&&void 0!==Ve?Ve:ze.ref;let Qe=this._values[Ye];if(Qe){const ce=Qe.get(We);if(ce)return ce}else Qe=this._values[Ye]=new Map;Qe.set(We,qe);const Xe=this._scope[Ye]||(this._scope[Ye]=[]),ot=Xe.length;return Xe[ot]=ze.ref,qe.setValue(ze,{property:Ye,itemIndex:ot}),qe}getValue(ce,ze){const Ve=this._values[ce];if(Ve)return Ve.get(ze)}scopeRefs(ce,ze=this._values){return this._reduceValues(ze,(ze=>{if(void 0===ze.scopePath)throw new Error(`CodeGen: name "${ze}" has no value`);return qe._`${ce}${ze.scopePath}`}))}scopeCode(ce=this._values,ze,Ve){return this._reduceValues(ce,(ce=>{if(void 0===ce.value)throw new Error(`CodeGen: name "${ce}" has no value`);return ce.value.code}),ze,Ve)}_reduceValues(ce,Ve,Qe={},Xe){let ot=qe.nil;for(const st in ce){const mt=ce[st];if(!mt)continue;const gt=Qe[st]=Qe[st]||new Map;mt.forEach((ce=>{if(gt.has(ce))return;gt.set(ce,We.Started);let Qe=Ve(ce);if(Qe){const Ve=this.opts.es5?ze.varKinds.var:ze.varKinds.const;ot=qe._`${ot}${Ve} ${ce} = ${Qe};${this.opts._n}`}else{if(!(Qe=null==Xe?void 0:Xe(ce)))throw new Ye(ce);ot=qe._`${ot}${Qe}${this.opts._n}`}gt.set(ce,We.Completed)}))}return ot}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getRules=ze.isJSONType=void 0;const qe=new Set(["string","number","integer","boolean","null","object","array"]);ze.isJSONType=function isJSONType(ce){return"string"==typeof ce&&qe.has(ce)},ze.getRules=function getRules(){const ce={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...ce,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},ce.number,ce.string,ce.array,ce.object],post:{rules:[]},all:{},keywords:{}}}},function(ce,ze,Ve){"use strict";function shouldUseGroup(ce,ze){return ze.rules.some((ze=>shouldUseRule(ce,ze)))}function shouldUseRule(ce,ze){var Ve;return void 0!==ce[ze.keyword]||(null===(Ve=ze.definition.implements)||void 0===Ve?void 0:Ve.some((ze=>void 0!==ce[ze])))}Object.defineProperty(ze,"__esModule",{value:!0}),ze.shouldUseRule=ze.shouldUseGroup=ze.schemaHasRulesForType=void 0,ze.schemaHasRulesForType=function schemaHasRulesForType({schema:ce,self:ze},Ve){const qe=ze.RULES.types[Ve];return qe&&!0!==qe&&shouldUseGroup(ce,qe)},ze.shouldUseGroup=shouldUseGroup,ze.shouldUseRule=shouldUseRule},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateAdditionalItems=void 0;const qe=Ve(50),Ye=Ve(69),We={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:ce}})=>qe.str`must NOT have more than ${ce} items`,params:({params:{len:ce}})=>qe._`{limit: ${ce}}`},code(ce){const{parentSchema:ze,it:Ve}=ce,{items:qe}=ze;Array.isArray(qe)?validateAdditionalItems(ce,qe):(0,Ye.checkStrictMode)(Ve,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(ce,ze){const{gen:Ve,schema:We,data:Qe,keyword:Xe,it:ot}=ce;ot.items=!0;const st=Ve.const("len",qe._`${Qe}.length`);if(!1===We)ce.setParams({len:ze.length}),ce.pass(qe._`${st} <= ${ze.length}`);else if("object"==typeof We&&!(0,Ye.alwaysValidSchema)(ot,We)){const Ye=Ve.var("valid",qe._`${st} <= ${ze.length}`);Ve.if((0,qe.not)(Ye),(()=>validateItems(Ye))),ce.ok(Ye)}function validateItems(We){Ve.forRange("i",ze.length,st,(ze=>{ce.subschema({keyword:Xe,dataProp:ze,dataPropType:Ye.Type.Num},We),ot.allErrors||Ve.if((0,qe.not)(We),(()=>Ve.break()))}))}}ze.validateAdditionalItems=validateAdditionalItems,ze.default=We},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateTuple=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(188),Qe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(ce){const{schema:ze,it:Ve}=ce;if(Array.isArray(ze))return validateTuple(ce,"additionalItems",ze);Ve.items=!0,(0,Ye.alwaysValidSchema)(Ve,ze)||ce.ok((0,We.validateArray)(ce))}};function validateTuple(ce,ze,Ve=ce.schema){const{gen:We,parentSchema:Qe,data:Xe,keyword:ot,it:st}=ce;!function checkStrictTuple(ce){const{opts:qe,errSchemaPath:We}=st,Qe=Ve.length,Xe=Qe===ce.minItems&&(Qe===ce.maxItems||!1===ce[ze]);if(qe.strictTuples&&!Xe){const ce=`"${ot}" is ${Qe}-tuple, but minItems or maxItems/${ze} are not specified or different at path "${We}"`;(0,Ye.checkStrictMode)(st,ce,qe.strictTuples)}}(Qe),st.opts.unevaluated&&Ve.length&&!0!==st.items&&(st.items=Ye.mergeEvaluated.items(We,Ve.length,st.items));const mt=We.name("valid"),gt=We.const("len",qe._`${Xe}.length`);Ve.forEach(((ze,Ve)=>{(0,Ye.alwaysValidSchema)(st,ze)||(We.if(qe._`${gt} > ${Ve}`,(()=>ce.subschema({keyword:ot,schemaProp:Ve,dataProp:Ve},mt))),ce.ok(mt))}))}ze.validateTuple=validateTuple,ze.default=Qe},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(188),Ye=Ve(50),We=Ve(276),Qe=Ve(69),Xe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:ce})=>Ye._`{additionalProperty: ${ce.additionalProperty}}`},code(ce){const{gen:ze,schema:Ve,parentSchema:Xe,data:ot,errsCount:st,it:mt}=ce;if(!st)throw new Error("ajv implementation error");const{allErrors:gt,opts:yt}=mt;if(mt.props=!0,"all"!==yt.removeAdditional&&(0,Qe.alwaysValidSchema)(mt,Ve))return;const bt=(0,qe.allSchemaProperties)(Xe.properties),vt=(0,qe.allSchemaProperties)(Xe.patternProperties);function isAdditional(Ve){let We;if(bt.length>8){const ce=(0,Qe.schemaRefOrVal)(mt,Xe.properties,"properties");We=(0,qe.isOwnProperty)(ze,ce,Ve)}else We=bt.length?(0,Ye.or)(...bt.map((ce=>Ye._`${Ve} === ${ce}`))):Ye.nil;return vt.length&&(We=(0,Ye.or)(We,...vt.map((ze=>Ye._`${(0,qe.usePattern)(ce,ze)}.test(${Ve})`)))),(0,Ye.not)(We)}function deleteAdditional(ce){ze.code(Ye._`delete ${ot}[${ce}]`)}function additionalPropertyCode(qe){if("all"===yt.removeAdditional||yt.removeAdditional&&!1===Ve)deleteAdditional(qe);else{if(!1===Ve)return ce.setParams({additionalProperty:qe}),ce.error(),void(gt||ze.break());if("object"==typeof Ve&&!(0,Qe.alwaysValidSchema)(mt,Ve)){const Ve=ze.name("valid");"failing"===yt.removeAdditional?(applyAdditionalSchema(qe,Ve,!1),ze.if((0,Ye.not)(Ve),(()=>{ce.reset(),deleteAdditional(qe)}))):(applyAdditionalSchema(qe,Ve),gt||ze.if((0,Ye.not)(Ve),(()=>ze.break())))}}}function applyAdditionalSchema(ze,Ve,qe){const Ye={keyword:"additionalProperties",dataProp:ze,dataPropType:Qe.Type.Str};!1===qe&&Object.assign(Ye,{compositeRule:!0,createErrors:!1,allErrors:!1}),ce.subschema(Ye,Ve)}!function checkAdditionalProperties(){ze.forIn("key",ot,(ce=>{bt.length||vt.length?ze.if(isAdditional(ce),(()=>additionalPropertyCode(ce))):additionalPropertyCode(ce)}))}(),ce.ok(Ye._`${st} === ${We.default.errors}`)}};ze.default=Xe},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return/^nm$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"vm":"VM":Ve?"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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},qe={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ve,Ye,We){var Qe=pluralForm(ze),Xe=qe[ce][pluralForm(ze)];return 2===Qe&&(Xe=Xe[Ve?0:1]),Xe.replace(/%d/i,ze)}},Ye=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar",{months:Ye,monthsShort:Ye,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},ze={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(Ve,qe,Ye,We){var Qe=pluralForm(Ve),Xe=ze[ce][pluralForm(Ve)];return 2===Qe&&(Xe=Xe[qe?0:1]),Xe.replace(/%d/i,Ve)}},Ve=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-dz",{months:Ve,monthsShort:Ve,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ve={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,qe,Ye,We){var Qe=pluralForm(ze),Xe=Ve[ce][pluralForm(ze)];return 2===Qe&&(Xe=Xe[qe?0:1]),Xe.replace(/%d/i,ze)}},qe=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-ly",{months:qe,monthsShort:qe,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-ps",{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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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ı"};ce.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:"bir neçə 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(ce){return/^(gündüz|axşam)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"gecə":ce<12?"səhər":ce<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(ce){if(0===ce)return ce+"-ıncı";var Ve=ce%10,qe=ce%100-Ve,Ye=ce>=100?100:null;return ce+(ze[Ve]||ze[qe]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвіліна":"хвіліну":"h"===Ve?ze?"гадзіна":"гадзіну":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:ze?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[Ve],+ce)}ce.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:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:relativeTimeWithPlural,hh:relativeTimeWithPlural,d:"дзень",dd:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(ce){return/^(дня|вечара)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночы":ce<12?"раніцы":ce<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce%10!=2&&ce%10!=3||ce%100==12||ce%100==13?ce+"-ы":ce+"-і";case"D":return ce+"-га";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.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(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze&&ce>=4||"দুপুর"===ze&&ce<5||"বিকাল"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<10?"সকাল":ce<17?"দুপুর":ce<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn-bd",{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(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze?ce<4?ce:ce+12:"ভোর"===ze||"সকাল"===ze?ce:"দুপুর"===ze?ce>=3?ce:ce+12:"বিকাল"===ze||"সন্ধ্যা"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<6?"ভোর":ce<12?"সকাল":ce<15?"দুপুর":ce<18?"বিকাল":ce<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Ve={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};ce.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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(ce){return ce.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"མཚན་མོ"===ze&&ce>=4||"ཉིན་གུང"===ze&&ce<5||"དགོང་དག"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"མཚན་མོ":ce<10?"ཞོགས་ཀས":ce<17?"ཉིན་གུང":ce<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithMutation(ce,ze,Ve){return ce+" "+mutation({mm:"munutenn",MM:"miz",dd:"devezh"}[Ve],ce)}function specialMutationForYears(ce){switch(lastNumber(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}function lastNumber(ce){return ce>9?lastNumber(ce%10):ce}function mutation(ce,ze){return 2===ze?softMutation(ce):ce}function softMutation(ce){var ze={m:"v",b:"v",d:"z"};return void 0===ze[ce.charAt(0)]?ce:ze[ce.charAt(0)]+ce.substring(1)}var ze=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Ve=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,qe=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,Ye=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,We=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Qe=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Xe=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];ce.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("_"),weekdaysParse:Xe,fullWeekdaysParse:We,shortWeekdaysParse:Qe,minWeekdaysParse:Xe,monthsRegex:Ve,monthsShortRegex:Ve,monthsStrictRegex:qe,monthsShortStrictRegex:Ye,monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:specialMutationForYears},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(ce){return ce+(1===ce?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,ze,Ve){return ce<12?"a.m.":"g.m."}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){if("m"===Ve)return ze?"jedna minuta":qe?"jednu minutu":"jedne minute"}function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"mm":return qe+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return"jedan sat";case"hh":return qe+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return qe+=1===ce?"dan":"dana";case"MM":return qe+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return qe+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.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:translate,m:processRelativeTime,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Ve="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),qe=[/^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],Ye=/^(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 plural(ce){return ce>1&&ce<5&&1!=~~(ce/10)}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"pár sekund":"pár sekundami";case"ss":return ze||qe?Ye+(plural(ce)?"sekundy":"sekund"):Ye+"sekundami";case"m":return ze?"minuta":qe?"minutu":"minutou";case"mm":return ze||qe?Ye+(plural(ce)?"minuty":"minut"):Ye+"minutami";case"h":return ze?"hodina":qe?"hodinu":"hodinou";case"hh":return ze||qe?Ye+(plural(ce)?"hodiny":"hodin"):Ye+"hodinami";case"d":return ze||qe?"den":"dnem";case"dd":return ze||qe?Ye+(plural(ce)?"dny":"dní"):Ye+"dny";case"M":return ze||qe?"měsíc":"měsícem";case"MM":return ze||qe?Ye+(plural(ce)?"měsíce":"měsíců"):Ye+"měsíci";case"y":return ze||qe?"rok":"rokem";case"yy":return ze||qe?Ye+(plural(ce)?"roky":"let"):Ye+"lety"}}ce.defineLocale("cs",{months:ze,monthsShort:Ve,monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce+(/сехет$/i.exec(ce)?"рен":/ҫул$/i.exec(ce)?"тан":"ран")},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze="";return ce>20?ze=40===ce||50===ce||60===ce||80===ce||100===ce?"fed":"ain":ce>0&&(ze=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][ce]),ce+ze},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Ve=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];ce.defineLocale("dv",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,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(ce){return"މފ"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:7,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function isFunction(ce){return"undefined"!=typeof Function&&ce instanceof Function||"[object Function]"===Object.prototype.toString.call(ce)}ce.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(ce,ze){return ce?"string"==typeof ze&&/D/.test(ze.substring(0,ze.indexOf("MMMM")))?this._monthsGenitiveEl[ce.month()]:this._monthsNominativeEl[ce.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(ce,ze,Ve){return ce>11?Ve?"μμ":"ΜΜ":Ve?"πμ":"ΠΜ"},isPM:function(ce){return"μ"===(ce+"").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(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(ce,ze){var Ve=this._calendarEl[ce],qe=ze&&ze.hours();return isFunction(Ve)&&(Ve=Ve.apply(ze)),Ve.replace("{}",qe%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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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",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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-in",{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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(ce){return"p"===ce.charAt(0).toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"p.t.m.":"P.T.M.":Ve?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[ce+"sekundi",ce+"sekundit"],m:["ühe minuti","üks minut"],mm:[ce+" minuti",ce+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[ce+" tunni",ce+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[ce+" kuu",ce+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[ce+" aasta",ce+" aastat"]};return ze?Ye[Ve][2]?Ye[Ve][2]:Ye[Ve][1]:qe?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:"%d päeva",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Ve={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};ce.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(ce){return/بعد از ظهر/.test(ce)},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[۰-۹]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Ve=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ze[7],ze[8],ze[9]];function translate(ce,ze,Ve,qe){var Ye="";switch(Ve){case"s":return qe?"muutaman sekunnin":"muutama sekunti";case"ss":Ye=qe?"sekunnin":"sekuntia";break;case"m":return qe?"minuutin":"minuutti";case"mm":Ye=qe?"minuutin":"minuuttia";break;case"h":return qe?"tunnin":"tunti";case"hh":Ye=qe?"tunnin":"tuntia";break;case"d":return qe?"päivän":"päivä";case"dd":Ye=qe?"päivän":"päivää";break;case"M":return qe?"kuukauden":"kuukausi";case"MM":Ye=qe?"kuukauden":"kuukautta";break;case"y":return qe?"vuoden":"vuosi";case"yy":Ye=qe?"vuoden":"vuotta"}return Ye=verbalNumber(ce,qe)+" "+Ye}function verbalNumber(ce,qe){return ce<10?qe?Ve[ce]:ze[ce]:ce}ce.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:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fil",{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(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ve=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,qe=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ye=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];ce.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("_"),monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:ze,monthsShortStrictRegex:Ve,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,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",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(ce,ze){switch(ze){case"D":return ce+(1===ce?"er":"");default:case"M":case"Q":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Ve="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");ce.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Ve=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],qe=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],Ye=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],We=["Do","Lu","Má","Cé","Dé","A","Sa"];ce.defineLocale("ga",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:qe,weekdaysShort:Ye,weekdaysMin:We,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é ag] 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íonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["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"],Ve=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],qe=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],Ye=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],We=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];ce.defineLocale("gd",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:qe,weekdaysShort:Ye,weekdaysMin:We,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(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return 0===ce.indexOf("un")?"n"+ce:"en "+ce},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[ce+" सॅकंडांनी",ce+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[ce+" मिणटांनी",ce+" मिणटां"],h:["एका वरान","एक वर"],hh:[ce+" वरांनी",ce+" वरां"],d:["एका दिसान","एक दीस"],dd:[ce+" दिसांनी",ce+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[ce+" म्हयन्यानी",ce+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[ce+" वर्सांनी",ce+" वर्सां"]};return qe?Ye[Ve][0]:Ye[Ve][1]}ce.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(ce,ze){return"D"===ze?ce+"वेर":ce},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राती"===ze?ce<4?ce:ce+12:"सकाळीं"===ze?ce:"दनपारां"===ze?ce>12?ce:ce+12:"सांजे"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"राती":ce<12?"सकाळीं":ce<16?"दनपारां":ce<20?"सांजे":"राती"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["thoddea sekondamni","thodde sekond"],ss:[ce+" sekondamni",ce+" sekond"],m:["eka mintan","ek minut"],mm:[ce+" mintamni",ce+" mintam"],h:["eka voran","ek vor"],hh:[ce+" voramni",ce+" voram"],d:["eka disan","ek dis"],dd:[ce+" disamni",ce+" dis"],M:["eka mhoinean","ek mhoino"],MM:[ce+" mhoineamni",ce+" mhoine"],y:["eka vorsan","ek voros"],yy:[ce+" vorsamni",ce+" vorsam"]};return qe?Ye[Ve][0]:Ye[Ve][1]}ce.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(ce,ze){return"D"===ze?ce+"er":ce},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"rati"===ze?ce<4?ce:ce+12:"sokallim"===ze?ce:"donparam"===ze?ce>12?ce:ce+12:"sanje"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"rati":ce<12?"sokallim":ce<16?"donparam":ce<20?"sanje":"rati"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Ve={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};ce.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(ce){return ce.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"રાત"===ze?ce<4?ce:ce+12:"સવાર"===ze?ce:"બપોર"===ze?ce>=10?ce:ce+12:"સાંજ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"રાત":ce<10?"સવાર":ce<17?"બપોર":ce<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return 2===ce?"שעתיים":ce+" שעות"},d:"יום",dd:function(ce){return 2===ce?"יומיים":ce+" ימים"},M:"חודש",MM:function(ce){return 2===ce?"חודשיים":ce+" חודשים"},y:"שנה",yy:function(ce){return 2===ce?"שנתיים":ce%10==0&&10!==ce?ce+" שנה":ce+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(ce){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<5?"לפנות בוקר":ce<10?"בבוקר":ce<12?Ve?'לפנה"צ':"לפני הצהריים":ce<18?Ve?'אחה"צ':"אחרי הצהריים":"בערב"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},qe=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],Ye=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];ce.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:qe,longMonthsParse:qe,shortMonthsParse:Ye,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"रात"===ze?ce<4?ce:ce+12:"सुबह"===ze?ce:"दोपहर"===ze?ce>=10?ce:ce+12:"शाम"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"रात":ce<10?"सुबह":ce<17?"दोपहर":ce<20?"शाम":"रात"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"m":return ze?"jedna minuta":"jedne minute";case"mm":return qe+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return ze?"jedan sat":"jednog sata";case"hh":return qe+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return qe+=1===ce?"dan":"dana";case"MM":return qe+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return qe+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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:translate,m:translate,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function translate(ce,ze,Ve,qe){var Ye=ce;switch(Ve){case"s":return qe||ze?"néhány másodperc":"néhány másodperce";case"ss":return Ye+(qe||ze)?" másodperc":" másodperce";case"m":return"egy"+(qe||ze?" perc":" perce");case"mm":return Ye+(qe||ze?" perc":" perce");case"h":return"egy"+(qe||ze?" óra":" órája");case"hh":return Ye+(qe||ze?" óra":" órája");case"d":return"egy"+(qe||ze?" nap":" napja");case"dd":return Ye+(qe||ze?" nap":" napja");case"M":return"egy"+(qe||ze?" hónap":" hónapja");case"MM":return Ye+(qe||ze?" hónap":" hónapja");case"y":return"egy"+(qe||ze?" év":" éve");case"yy":return Ye+(qe||ze?" év":" éve")}return""}function week(ce){return(ce?"":"[múlt] ")+"["+ze[this.day()]+"] LT[-kor]"}ce.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("_"),monthsParseExact:!0,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(ce){return"u"===ce.charAt(1).toLowerCase()},meridiem:function(ce,ze,Ve){return ce<12?!0===Ve?"de":"DE":!0===Ve?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return/^(ցերեկվա|երեկոյան)$/.test(ce)},meridiem:function(ce){return ce<4?"գիշերվա":ce<12?"առավոտվա":ce<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(ce,ze){switch(ze){case"DDD":case"w":case"W":case"DDDo":return 1===ce?ce+"-ին":ce+"-րդ";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"siang"===ze?ce>=11?ce:ce+12:"sore"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"siang":ce<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:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce){return ce%100==11||ce%10!=1}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return plural(ce)?Ye+(ze||qe?"sekúndur":"sekúndum"):Ye+"sekúnda";case"m":return ze?"mínúta":"mínútu";case"mm":return plural(ce)?Ye+(ze||qe?"mínútur":"mínútum"):ze?Ye+"mínúta":Ye+"mínútu";case"hh":return plural(ce)?Ye+(ze||qe?"klukkustundir":"klukkustundum"):Ye+"klukkustund";case"d":return ze?"dagur":qe?"dag":"degi";case"dd":return plural(ce)?ze?Ye+"dagar":Ye+(qe?"daga":"dögum"):ze?Ye+"dagur":Ye+(qe?"dag":"degi");case"M":return ze?"mánuður":qe?"mánuð":"mánuði";case"MM":return plural(ce)?ze?Ye+"mánuðir":Ye+(qe?"mánuði":"mánuðum"):ze?Ye+"mánuður":Ye+(qe?"mánuð":"mánuði");case"y":return ze||qe?"ár":"ári";case"yy":return plural(ce)?Ye+(ze||qe?"ár":"árum"):Ye+(ze||qe?"ár":"ári")}}ce.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:translate,ss:translate,m:translate,mm:translate,h:"klukkustund",hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(ce){return(/^[0-9].+$/.test(ce)?"tra":"in")+" "+ce},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(ce,ze){return"元"===ze[1]?1:parseInt(ze[1]||ce,10)},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:"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(ce){return"午後"===ce},meridiem:function(ce,ze,Ve){return ce<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(ce){return ce.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(ce){return this.week()!==ce.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(ce,ze){switch(ze){case"y":return 1===ce?"元年":ce+"年";case"d":case"D":case"DDD":return ce+"日";default:return ce}},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年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"enjing"===ze?ce:"siyang"===ze?ce>=11?ce:ce+12:"sonten"===ze||"ndalu"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"enjing":ce<15?"siyang":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:function(ce){return ce.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(ce,ze,Ve){return"ი"===Ve?ze+"ში":ze+Ve+"ში"}))},past:function(ce){return/(წამი|წუთი|საათი|დღე|თვე)/.test(ce)?ce.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(ce)?ce.replace(/წელი$/,"წლის წინ"):ce},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(ce){return 0===ce?ce:1===ce?ce+"-ლი":ce<20||ce<=100&&ce%20==0||ce%100==0?"მე-"+ce:ce+"-ე"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};ce.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(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Ve={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};ce.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(ce){return"ល្ងាច"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Ve={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};ce.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(ce){return ce.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ರಾತ್ರಿ"===ze?ce<4?ce:ce+12:"ಬೆಳಿಗ್ಗೆ"===ze?ce:"ಮಧ್ಯಾಹ್ನ"===ze?ce>=10?ce:ce+12:"ಸಂಜೆ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ರಾತ್ರಿ":ce<10?"ಬೆಳಿಗ್ಗೆ":ce<17?"ಮಧ್ಯಾಹ್ನ":ce<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(ce){return ce+"ನೇ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"일";case"M":return ce+"월";case"w":case"W":return ce+"주";default:return ce}},meridiemParse:/오전|오후/,isPM:function(ce){return"오후"===ce},meridiem:function(ce,ze,Ve){return ce<12?"오전":"오후"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},qe=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];ce.defineLocale("ku",{months:qe,monthsShort:qe,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(ce){return/ئێواره‌/.test(ce)},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["çend sanîye","çend sanîyeyan"],ss:[ce+" sanîye",ce+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[ce+" deqîqe",ce+" deqîqeyan"],h:["saetek","saetekê"],hh:[ce+" saet",ce+" saetan"],d:["rojek","rojekê"],dd:[ce+" roj",ce+" rojan"],w:["hefteyek","hefteyekê"],ww:[ce+" hefte",ce+" hefteyan"],M:["mehek","mehekê"],MM:[ce+" meh",ce+" mehan"],y:["salek","salekê"],yy:[ce+" sal",ce+" salan"]};return ze?Ye[Ve][0]:Ye[Ve][1]}function ezafeNumSuffix(ce){var ze=(ce=""+ce).substring(ce.length-1),Ve=ce.length>1?ce.substring(ce.length-2):"";return 12==Ve||13==Ve||"2"!=ze&&"3"!=ze&&"50"!=Ve&&"70"!=ze&&"80"!=ze?"ê":"yê"}ce.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"bn":"BN":Ve?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(ce,ze){var Ve=ze.toLowerCase();return Ve.includes("w")||Ve.includes("m")?ce+".":ce+ezafeNumSuffix(ce)},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};ce.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(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={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 ze?Ye[Ve][0]:Ye[Ve][1]}function processFutureTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"a "+ce:"an "+ce}function processPastTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"viru "+ce:"virun "+ce}function eifelerRegelAppliesToNumber(ce){if(ce=parseInt(ce,10),isNaN(ce))return!1;if(ce<0)return!0;if(ce<10)return 4<=ce&&ce<=7;if(ce<100){var ze=ce%10;return eifelerRegelAppliesToNumber(0===ze?ce/10:ze)}if(ce<1e4){for(;ce>=10;)ce/=10;return eifelerRegelAppliesToNumber(ce)}return eifelerRegelAppliesToNumber(ce/=1e3)}ce.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:processFutureTime,past:processPastTime,s:"e puer Sekonnen",ss:"%d Sekonnen",m:processRelativeTime,mm:"%d Minutten",h:processRelativeTime,hh:"%d Stonnen",d:processRelativeTime,dd:"%d Deeg",M:processRelativeTime,MM:"%d Méint",y:processRelativeTime,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"ຕອນແລງ"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return"ທີ່"+ce}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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 translateSeconds(ce,ze,Ve,qe){return ze?"kelios sekundės":qe?"kelių sekundžių":"kelias sekundes"}function translateSingular(ce,ze,Ve,qe){return ze?forms(Ve)[0]:qe?forms(Ve)[1]:forms(Ve)[2]}function special(ce){return ce%10==0||ce>10&&ce<20}function forms(ce){return ze[ce].split("_")}function translate(ce,ze,Ve,qe){var Ye=ce+" ";return 1===ce?Ye+translateSingular(ce,ze,Ve[0],qe):ze?Ye+(special(ce)?forms(Ve)[1]:forms(Ve)[0]):qe?Ye+forms(Ve)[1]:Ye+(special(ce)?forms(Ve)[1]:forms(Ve)[2])}ce.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:translateSeconds,ss:translate,m:translateSingular,mm:translate,h:translateSingular,hh:translate,d:translateSingular,dd:translate,M:translateSingular,MM:translate,y:translateSingular,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ce){return ce+"-oji"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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 format(ce,ze,Ve){return Ve?ze%10==1&&ze%100!=11?ce[2]:ce[3]:ze%10==1&&ze%100!=11?ce[0]:ce[1]}function relativeTimeWithPlural(ce,Ve,qe){return ce+" "+format(ze[qe],ce,Ve)}function relativeTimeWithSingular(ce,Ve,qe){return format(ze[qe],ce,Ve)}function relativeSeconds(ce,ze){return ze?"dažas sekundes":"dažām sekundēm"}ce.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:relativeSeconds,ss:relativeTimeWithPlural,m:relativeTimeWithSingular,mm:relativeTimeWithPlural,h:relativeTimeWithSingular,hh:relativeTimeWithPlural,d:relativeTimeWithSingular,dd:relativeTimeWithPlural,M:relativeTimeWithSingular,MM:relativeTimeWithPlural,y:relativeTimeWithSingular,yy:relativeTimeWithPlural},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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(ce,ze){return 1===ce?ze[0]:ce>=2&&ce<=4?ze[1]:ze[2]},translate:function(ce,Ve,qe){var Ye=ze.words[qe];return 1===qe.length?Ve?Ye[0]:Ye[1]:ce+" "+ze.correctGrammaticalCase(ce,Ye)}};ce.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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:"dan",dd:ze.translate,M:"mjesec",MM:ze.translate,y:"godinu",yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"രാത്രി"===ze&&ce>=4||"ഉച്ച കഴിഞ്ഞ്"===ze||"വൈകുന്നേരം"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"രാത്രി":ce<12?"രാവിലെ":ce<17?"ഉച്ച കഴിഞ്ഞ്":ce<20?"വൈകുന്നേരം":"രാത്രി"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve,qe){switch(Ve){case"s":return ze?"хэдхэн секунд":"хэдхэн секундын";case"ss":return ce+(ze?" секунд":" секундын");case"m":case"mm":return ce+(ze?" минут":" минутын");case"h":case"hh":return ce+(ze?" цаг":" цагийн");case"d":case"dd":return ce+(ze?" өдөр":" өдрийн");case"M":case"MM":return ce+(ze?" сар":" сарын");case"y":case"yy":return ce+(ze?" жил":" жилийн");default:return ce}}ce.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(ce){return"ҮХ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+" өдөр";default:return ce}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function relativeTimeMr(ce,ze,Ve,qe){var Ye="";if(ze)switch(Ve){case"s":Ye="काही सेकंद";break;case"ss":Ye="%d सेकंद";break;case"m":Ye="एक मिनिट";break;case"mm":Ye="%d मिनिटे";break;case"h":Ye="एक तास";break;case"hh":Ye="%d तास";break;case"d":Ye="एक दिवस";break;case"dd":Ye="%d दिवस";break;case"M":Ye="एक महिना";break;case"MM":Ye="%d महिने";break;case"y":Ye="एक वर्ष";break;case"yy":Ye="%d वर्षे"}else switch(Ve){case"s":Ye="काही सेकंदां";break;case"ss":Ye="%d सेकंदां";break;case"m":Ye="एका मिनिटा";break;case"mm":Ye="%d मिनिटां";break;case"h":Ye="एका तासा";break;case"hh":Ye="%d तासां";break;case"d":Ye="एका दिवसा";break;case"dd":Ye="%d दिवसां";break;case"M":Ye="एका महिन्या";break;case"MM":Ye="%d महिन्यां";break;case"y":Ye="एका वर्षा";break;case"yy":Ye="%d वर्षां"}return Ye.replace(/%d/i,ce)}ce.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:relativeTimeMr,ss:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"पहाटे"===ze||"सकाळी"===ze?ce:"दुपारी"===ze||"सायंकाळी"===ze||"रात्री"===ze?ce>=12?ce:ce+12:void 0},meridiem:function(ce,ze,Ve){return ce>=0&&ce<6?"पहाटे":ce<12?"सकाळी":ce<17?"दुपारी":ce<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},Ve={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};ce.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(ce){return ce.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};ce.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(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राति"===ze?ce<4?ce:ce+12:"बिहान"===ze?ce:"दिउँसो"===ze?ce>=10?ce:ce+12:"साँझ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<3?"राति":ce<12?"बिहान":ce<16?"दिउँसो":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qe=[/^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],Ye=/^(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;ce.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qe=[/^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],Ye=/^(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;ce.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Ve={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};ce.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(ce){return ce.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ਰਾਤ"===ze?ce<4?ce:ce+12:"ਸਵੇਰ"===ze?ce:"ਦੁਪਹਿਰ"===ze?ce>=10?ce:ce+12:"ਸ਼ਾਮ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ਰਾਤ":ce<10?"ਸਵੇਰ":ce<17?"ਦੁਪਹਿਰ":ce<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Ve="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),qe=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function plural(ce){return ce%10<5&&ce%10>1&&~~(ce/10)%10!=1}function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+(plural(ce)?"sekundy":"sekund");case"m":return ze?"minuta":"minutę";case"mm":return qe+(plural(ce)?"minuty":"minut");case"h":return ze?"godzina":"godzinę";case"hh":return qe+(plural(ce)?"godziny":"godzin");case"ww":return qe+(plural(ce)?"tygodnie":"tygodni");case"MM":return qe+(plural(ce)?"miesiące":"miesięcy");case"yy":return qe+(plural(ce)?"lata":"lat")}}ce.defineLocale("pl",{months:function(ce,qe){return ce?/D MMMM/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:qe,longMonthsParse:qe,shortMonthsParse:qe,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:translate,m:translate,mm:translate,h:translate,hh:translate,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:translate,M:"miesiąc",MM:translate,y:"rok",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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º",invalidDate:"Data inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithPlural(ce,ze,Ve){var qe=" ";return(ce%100>=20||ce>=100&&ce%100==0)&&(qe=" de "),ce+qe+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[Ve]}ce.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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:relativeTimeWithPlural,m:"un minut",mm:relativeTimeWithPlural,h:"o oră",hh:relativeTimeWithPlural,d:"o zi",dd:relativeTimeWithPlural,w:"o săptămână",ww:relativeTimeWithPlural,M:"o lună",MM:relativeTimeWithPlural,y:"un an",yy:relativeTimeWithPlural},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"минута":"минуту":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[Ve],+ce)}var ze=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];ce.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,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(ce){if(ce.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(ce){if(ce.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:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"час",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,w:"неделя",ww:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(ce){return/^(дня|вечера)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночи":ce<12?"утра":ce<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":return ce+"-й";case"D":return ce+"-го";case"w":case"W":return ce+"-я";default:return ce}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Ve=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];ce.defineLocale("sd",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,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(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(ce){return"ප.ව."===ce||"පස් වරු"===ce},meridiem:function(ce,ze,Ve){return ce>11?Ve?"ප.ව.":"පස් වරු":Ve?"පෙ.ව.":"පෙර වරු"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Ve="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function plural(ce){return ce>1&&ce<5}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"pár sekúnd":"pár sekundami";case"ss":return ze||qe?Ye+(plural(ce)?"sekundy":"sekúnd"):Ye+"sekundami";case"m":return ze?"minúta":qe?"minútu":"minútou";case"mm":return ze||qe?Ye+(plural(ce)?"minúty":"minút"):Ye+"minútami";case"h":return ze?"hodina":qe?"hodinu":"hodinou";case"hh":return ze||qe?Ye+(plural(ce)?"hodiny":"hodín"):Ye+"hodinami";case"d":return ze||qe?"deň":"dňom";case"dd":return ze||qe?Ye+(plural(ce)?"dni":"dní"):Ye+"dňami";case"M":return ze||qe?"mesiac":"mesiacom";case"MM":return ze||qe?Ye+(plural(ce)?"mesiace":"mesiacov"):Ye+"mesiacmi";case"y":return ze||qe?"rok":"rokom";case"yy":return ze||qe?Ye+(plural(ce)?"roky":"rokov"):Ye+"rokmi"}}ce.defineLocale("sk",{months:ze,monthsShort:Ve,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:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"nekaj sekund":"nekaj sekundami";case"ss":return Ye+=1===ce?ze?"sekundo":"sekundi":2===ce?ze||qe?"sekundi":"sekundah":ce<5?ze||qe?"sekunde":"sekundah":"sekund";case"m":return ze?"ena minuta":"eno minuto";case"mm":return Ye+=1===ce?ze?"minuta":"minuto":2===ce?ze||qe?"minuti":"minutama":ce<5?ze||qe?"minute":"minutami":ze||qe?"minut":"minutami";case"h":return ze?"ena ura":"eno uro";case"hh":return Ye+=1===ce?ze?"ura":"uro":2===ce?ze||qe?"uri":"urama":ce<5?ze||qe?"ure":"urami":ze||qe?"ur":"urami";case"d":return ze||qe?"en dan":"enim dnem";case"dd":return Ye+=1===ce?ze||qe?"dan":"dnem":2===ce?ze||qe?"dni":"dnevoma":ze||qe?"dni":"dnevi";case"M":return ze||qe?"en mesec":"enim mesecem";case"MM":return Ye+=1===ce?ze||qe?"mesec":"mesecem":2===ce?ze||qe?"meseca":"mesecema":ce<5?ze||qe?"mesece":"meseci":ze||qe?"mesecev":"meseci";case"y":return ze||qe?"eno leto":"enim letom";case"yy":return Ye+=1===ce?ze||qe?"leto":"letom":2===ce?ze||qe?"leti":"letoma":ce<5?ze||qe?"leta":"leti":ze||qe?"let":"leti"}}ce.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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"M"===ce.charAt(0)},meridiem:function(ce,ze,Ve){return ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,qe,Ye){var We,Qe=ze.words[qe];return 1===qe.length?"y"===qe&&Ve?"jedna godina":Ye||Ve?Qe[0]:Qe[1]:(We=ze.correctGrammaticalCase(ce,Qe),"yy"===qe&&Ve&&"godinu"===We?ce+" godina":ce+" "+We)}};ce.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:"D. M. 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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,qe,Ye){var We,Qe=ze.words[qe];return 1===qe.length?"y"===qe&&Ve?"једна година":Ye||Ve?Qe[0]:Qe[1]:(We=ze.correctGrammaticalCase(ce,Qe),"yy"===qe&&Ve&&"годину"===We?ce+" година":ce+" "+We)}};ce.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:"D. M. 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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze,Ve){return ce<11?"ekuseni":ce<15?"emini":ce<19?"entsambama":"ebusuku"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ekuseni"===ze?ce:"emini"===ze?ce>=11?ce:ce+12:"entsambama"===ze||"ebusuku"===ze?0===ce?0:ce+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?":e":1===ze||2===ze?":a":":e")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Ve={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};ce.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(ce){return ce+"வது"},preparse:function(ce){return ce.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(ce,ze,Ve){return ce<2?" யாமம்":ce<6?" வைகறை":ce<10?" காலை":ce<14?" நண்பகல்":ce<18?" எற்பாடு":ce<22?" மாலை":" யாமம்"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"யாமம்"===ze?ce<2?ce:ce+12:"வைகறை"===ze||"காலை"===ze||"நண்பகல்"===ze&&ce>=10?ce:ce+12},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"రాత్రి"===ze?ce<4?ce:ce+12:"ఉదయం"===ze?ce:"మధ్యాహ్నం"===ze?ce>=10?ce:ce+12:"సాయంత్రం"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"రాత్రి":ce<10?"ఉదయం":ce<17?"మధ్యాహ్నం":ce<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:"segundu balun",ss:"segundu %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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};ce.defineLocale("tg",{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:"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(ce,ze){return 12===ce&&(ce=0),"шаб"===ze?ce<4?ce:ce+12:"субҳ"===ze?ce:"рӯз"===ze?ce>=11?ce:ce+12:"бегоҳ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"шаб":ce<11?"субҳ":ce<16?"рӯз":ce<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"หลังเที่ยง"===ce},meridiem:function(ce,ze,Ve){return ce<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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};ce.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'unjy";var qe=ce%10,Ye=ce%100-qe,We=ce>=100?100:null;return ce+(ze[qe]||ze[Ye]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function translateFuture(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"leS":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"waQ":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"nem":ze+" pIq"}function translatePast(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"Hu’":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"wen":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"ben":ze+" ret"}function translate(ce,ze,Ve,qe){var Ye=numberAsNoun(ce);switch(Ve){case"ss":return Ye+" lup";case"mm":return Ye+" tup";case"hh":return Ye+" rep";case"dd":return Ye+" jaj";case"MM":return Ye+" jar";case"yy":return Ye+" DIS"}}function numberAsNoun(ce){var Ve=Math.floor(ce%1e3/100),qe=Math.floor(ce%100/10),Ye=ce%10,We="";return Ve>0&&(We+=ze[Ve]+"vatlh"),qe>0&&(We+=(""!==We?" ":"")+ze[qe]+"maH"),Ye>0&&(We+=(""!==We?" ":"")+ze[Ye]),""===We?"pagh":We}ce.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:translateFuture,past:translatePast,s:"puS lup",ss:translate,m:"wa’ tup",mm:translate,h:"wa’ rep",hh:translate,d:"wa’ jaj",dd:translate,M:"wa’ jar",MM:translate,y:"wa’ DIS",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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ı"};ce.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_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"öö":"ÖÖ":Ve?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(ce){return"ös"===ce||"ÖS"===ce},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'ıncı";var qe=ce%10,Ye=ce%100-qe,We=ce>=100?100:null;return ce+(ze[qe]||ze[Ye]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["viensas secunds","'iensas secunds"],ss:[ce+" secunds",ce+" secunds"],m:["'n míut","'iens míut"],mm:[ce+" míuts",ce+" míuts"],h:["'n þora","'iensa þora"],hh:[ce+" þoras",ce+" þoras"],d:["'n ziua","'iensa ziua"],dd:[ce+" ziuas",ce+" ziuas"],M:["'n mes","'iens mes"],MM:[ce+" mesen",ce+" mesen"],y:["'n ar","'iens ar"],yy:[ce+" ars",ce+" ars"]};return qe||ze?Ye[Ve][0]:Ye[Ve][1]}ce.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(ce){return"d'o"===ce.toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"d'o":"D'O":Ve?"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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"يېرىم كېچە"===ze||"سەھەر"===ze||"چۈشتىن بۇرۇن"===ze?ce:"چۈشتىن كېيىن"===ze||"كەچ"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"يېرىم كېچە":qe<900?"سەھەر":qe<1130?"چۈشتىن بۇرۇن":qe<1230?"چۈش":qe<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(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"-كۈنى";case"w":case"W":return ce+"-ھەپتە";default:return ce}},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвилина":"хвилину":"h"===Ve?ze?"година":"годину":ce+" "+plural({ss:ze?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:ze?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:ze?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[Ve],+ce)}function weekdaysCaseReplace(ce,ze){var Ve={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===ce?Ve.nominative.slice(1,7).concat(Ve.nominative.slice(0,1)):ce?Ve[/(\[[ВвУу]\]) ?dddd/.test(ze)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(ze)?"genitive":"nominative"][ce.day()]:Ve.nominative}function processHoursFunction(ce){return function(){return ce+"о"+(11===this.hours()?"б":"")+"] LT"}}ce.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:weekdaysCaseReplace,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:processHoursFunction("[Сьогодні "),nextDay:processHoursFunction("[Завтра "),lastDay:processHoursFunction("[Вчора "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[Минулої] dddd [").call(this);case 1:case 2:case 4:return processHoursFunction("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"годину",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,M:"місяць",MM:relativeTimeWithPlural,y:"рік",yy:relativeTimeWithPlural},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(ce){return/^(дня|вечора)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночі":ce<12?"ранку":ce<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce+"-й";case"D":return ce+"-го";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Ve=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];ce.defineLocale("ur",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,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(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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(ce){return/^ch$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"sa":"SA":Ve?"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 trước 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",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"下午"===ze||"晚上"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(ce){return ce.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(ce){return this.week()!==ce.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"周";default:return ce}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1200?"上午":1200===qe?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){var qe=Ve(1033).default,Ye=Ve(1790);ce.exports=function toPropertyKey(ce){var ze=Ye(ce,"string");return"symbol"==qe(ze)?ze:ze+""},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){function _typeof(ze){return ce.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},ce.exports.__esModule=!0,ce.exports.default=ce.exports,_typeof(ze)}ce.exports=_typeof,ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){ce.exports=function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,qe=Array(ze);Ve=ze;)this._cursor=Ve,Ve=Ve._parent;var qe={type:"BinaryExpression",operator:ce.value,left:this._cursor};this._setParent(this._cursor,qe),this._cursor=Ve,this._placeAtCursor(qe)},ze.dot=function(){this._nextIdentEncapsulate=this._cursor&&"UnaryExpression"!==this._cursor.type&&("BinaryExpression"!==this._cursor.type||"BinaryExpression"===this._cursor.type&&this._cursor.right),this._nextIdentRelative=!this._cursor||this._cursor&&!this._nextIdentEncapsulate,this._nextIdentRelative&&(this._relative=!0)},ze.filter=function(ce){this._placeBeforeCursor({type:"FilterExpression",expr:ce,relative:this._subParser.isRelative(),subject:this._cursor})},ze.functionCall=function(){this._placeBeforeCursor({type:"FunctionCall",name:this._cursor.value,args:[],pool:"functions"})},ze.identifier=function(ce){var ze={type:"Identifier",value:ce.value};this._nextIdentEncapsulate?(ze.from=this._cursor,this._placeBeforeCursor(ze),this._nextIdentEncapsulate=!1):(this._nextIdentRelative&&(ze.relative=!0,this._nextIdentRelative=!1),this._placeAtCursor(ze))},ze.literal=function(ce){this._placeAtCursor({type:"Literal",value:ce.value})},ze.objKey=function(ce){this._curObjKey=ce.value},ze.objStart=function(){this._placeAtCursor({type:"ObjectLiteral",value:{}})},ze.objVal=function(ce){this._cursor.value[this._curObjKey]=ce},ze.subExpression=function(ce){this._placeAtCursor(ce)},ze.ternaryEnd=function(ce){this._cursor.alternate=ce},ze.ternaryMid=function(ce){this._cursor.consequent=ce},ze.ternaryStart=function(){this._tree={type:"ConditionalExpression",test:this._tree},this._cursor=this._tree},ze.transform=function(ce){this._placeBeforeCursor({type:"FunctionCall",name:ce.value,args:[this._cursor],pool:"transforms"})},ze.unaryOp=function(ce){this._placeAtCursor({type:"UnaryExpression",operator:ce.value})}},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1806),Xe=Ve(120),ot=Ve(105),st=Ve(106),mt=Ve(121),gt=Ve(111),yt=Ve(470),bt=Ve(462),vt=Ve(346),wt=Ve(273),Ct=Ve(347),Dt=Ve(343),kt=Ve(838),St=Ve(881),xt=Ve(122),Et=Ve(420),Pt=Ve(421),Tt=Pt.enforce,Lt=Pt.get,Ft=ot.Int8Array,Bt=Ft&&Ft.prototype,Vt=ot.Uint8ClampedArray,Ht=Vt&&Vt.prototype,Ut=Ft&&kt(Ft),Wt=Bt&&kt(Bt),Jt=Object.prototype,Qt=ot.TypeError,en=xt("toStringTag"),rn=Et("TYPED_ARRAY_TAG"),ln="TypedArrayConstructor",mn=Qe&&!!St&&"Opera"!==yt(ot.opera),gn=!1,bn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wn={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(ce){var ze=kt(ce);if(mt(ze)){var Ve=Lt(ze);return Ve&>(Ve,ln)?Ve[ln]:getTypedArrayConstructor(ze)}},isTypedArray=function(ce){if(!mt(ce))return!1;var ze=yt(ce);return gt(bn,ze)||gt(wn,ze)};for(qe in bn)(We=(Ye=ot[qe])&&Ye.prototype)?Tt(We)[ln]=Ye:mn=!1;for(qe in wn)(We=(Ye=ot[qe])&&Ye.prototype)&&(Tt(We)[ln]=Ye);if((!mn||!st(Ut)||Ut===Function.prototype)&&(Ut=function TypedArray(){throw new Qt("Incorrect invocation")},mn))for(qe in bn)ot[qe]&&St(ot[qe],Ut);if((!mn||!Wt||Wt===Jt)&&(Wt=Ut.prototype,mn))for(qe in bn)ot[qe]&&St(ot[qe].prototype,Wt);if(mn&&kt(Ht)!==Wt&&St(Ht,Wt),Xe&&!gt(Wt,en))for(qe in gn=!0,Ct(Wt,en,{configurable:!0,get:function(){return mt(this)?this[rn]:void 0}}),bn)ot[qe]&&vt(ot[qe],rn,qe);ce.exports={NATIVE_ARRAY_BUFFER_VIEWS:mn,TYPED_ARRAY_TAG:gn&&rn,aTypedArray:function(ce){if(isTypedArray(ce))return ce;throw new Qt("Target is not a typed array")},aTypedArrayConstructor:function(ce){if(st(ce)&&(!St||Dt(Ut,ce)))return ce;throw new Qt(bt(ce)+" is not a typed array constructor")},exportTypedArrayMethod:function(ce,ze,Ve,qe){if(Xe){if(Ve)for(var Ye in bn){var We=ot[Ye];if(We&>(We.prototype,ce))try{delete We.prototype[ce]}catch(Ve){try{We.prototype[ce]=ze}catch(ce){}}}Wt[ce]&&!Ve||wt(Wt,ce,Ve?ze:mn&&Bt[ce]||ze,qe)}},exportTypedArrayStaticMethod:function(ce,ze,Ve){var qe,Ye;if(Xe){if(St){if(Ve)for(qe in bn)if((Ye=ot[qe])&>(Ye,ce))try{delete Ye[ce]}catch(ce){}if(Ut[ce]&&!Ve)return;try{return wt(Ut,ce,Ve?ze:mn&&Ut[ce]||ze)}catch(ce){}}for(qe in bn)!(Ye=ot[qe])||Ye[ce]&&!Ve||wt(Ye,ce,ze)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(ce){if(!mt(ce))return!1;var ze=yt(ce);return"DataView"===ze||gt(bn,ze)||gt(wn,ze)},isTypedArray:isTypedArray,TypedArray:Ut,TypedArrayPrototype:Wt}},function(ce,ze,Ve){"use strict";var qe=Ve(859),Ye=Ve(418),We=Ve(209),Qe=Ve(466),createMethod=function(ce){var ze=1===ce;return function(Ve,Xe,ot){for(var st,mt=We(Ve),gt=Ye(mt),yt=Qe(gt),bt=qe(Xe,ot);yt-- >0;)if(bt(st=gt[yt],yt,mt))switch(ce){case 0:return st;case 1:return yt}return ze?-1:void 0}};ce.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},function(ce,ze,Ve){"use strict";var qe;Object.defineProperty(ze,"__esModule",{value:!0}),ze.replaceCodePoint=ze.fromCodePoint=void 0;var Ye=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function replaceCodePoint(ce){var ze;return ce>=55296&&ce<=57343||ce>1114111?65533:null!==(ze=Ye.get(ce))&&void 0!==ze?ze:ce}ze.fromCodePoint=null!==(qe=String.fromCodePoint)&&void 0!==qe?qe:function(ce){var ze="";return ce>65535&&(ce-=65536,ze+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|1023&ce),ze+=String.fromCharCode(ce)},ze.replaceCodePoint=replaceCodePoint,ze.default=function decodeCodePoint(ce){return(0,ze.fromCodePoint)(replaceCodePoint(ce))}},function(ce,ze){},function(ce,ze,Ve){"use strict";const qe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class Ye{constructor(ce){this.builder=ce}atrule(ce,ze){let Ve="@"+ce.name,qe=ce.params?this.rawValue(ce,"params"):"";if(void 0!==ce.raws.afterName?Ve+=ce.raws.afterName:qe&&(Ve+=" "),ce.nodes)this.block(ce,Ve+qe);else{let Ye=(ce.raws.between||"")+(ze?";":"");this.builder(Ve+qe+Ye,ce)}}beforeAfter(ce,ze){let Ve;Ve="decl"===ce.type?this.raw(ce,null,"beforeDecl"):"comment"===ce.type?this.raw(ce,null,"beforeComment"):"before"===ze?this.raw(ce,null,"beforeRule"):this.raw(ce,null,"beforeClose");let qe=ce.parent,Ye=0;for(;qe&&"root"!==qe.type;)Ye+=1,qe=qe.parent;if(Ve.includes("\n")){let ze=this.raw(ce,null,"indent");if(ze.length)for(let ce=0;ce0&&"comment"===ce.nodes[ze].type;)ze-=1;let Ve=this.raw(ce,"semicolon");for(let qe=0;qe{if(Ye=ce.raws[ze],void 0!==Ye)return!1}))}var Xe;return void 0===Ye&&(Ye=qe[Ve]),Qe.rawCache[Ve]=Ye,Ye}rawBeforeClose(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length>0&&void 0!==ce.raws.after)return ze=ce.raws.after,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawBeforeComment(ce,ze){let Ve;return ce.walkComments((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeDecl"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeDecl(ce,ze){let Ve;return ce.walkDecls((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeRule"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeOpen(ce){let ze;return ce.walk((ce=>{if("decl"!==ce.type&&(ze=ce.raws.between,void 0!==ze))return!1})),ze}rawBeforeRule(ce){let ze;return ce.walk((Ve=>{if(Ve.nodes&&(Ve.parent!==ce||ce.first!==Ve)&&void 0!==Ve.raws.before)return ze=Ve.raws.before,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawColon(ce){let ze;return ce.walkDecls((ce=>{if(void 0!==ce.raws.between)return ze=ce.raws.between.replace(/[^\s:]/g,""),!1})),ze}rawEmptyBody(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&0===ce.nodes.length&&(ze=ce.raws.after,void 0!==ze))return!1})),ze}rawIndent(ce){if(ce.raws.indent)return ce.raws.indent;let ze;return ce.walk((Ve=>{let qe=Ve.parent;if(qe&&qe!==ce&&qe.parent&&qe.parent===ce&&void 0!==Ve.raws.before){let ce=Ve.raws.before.split("\n");return ze=ce[ce.length-1],ze=ze.replace(/\S/g,""),!1}})),ze}rawSemicolon(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length&&"decl"===ce.last.type&&(ze=ce.raws.semicolon,void 0!==ze))return!1})),ze}rawValue(ce,ze){let Ve=ce[ze],qe=ce.raws[ze];return qe&&qe.value===Ve?qe.raw:Ve}root(ce){this.body(ce),ce.raws.after&&this.builder(ce.raws.after)}rule(ce){this.block(ce,this.rawValue(ce,"selector")),ce.raws.ownSemicolon&&this.builder(ce.raws.ownSemicolon,ce,"end")}stringify(ce,ze){if(!this[ce.type])throw new Error("Unknown AST node type "+ce.type+". Maybe you need to change PostCSS stringifier.");this[ce.type](ce,ze)}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";let{isClean:qe,my:Ye}=Ve(775),We=Ve(1043),Qe=Ve(497),Xe=Ve(324),ot=Ve(778),st=(Ve(1046),Ve(779)),mt=Ve(780),gt=Ve(433);const yt={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bt={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vt={Once:!0,postcssPlugin:!0,prepare:!0},wt=0;function isPromise(ce){return"object"==typeof ce&&"function"==typeof ce.then}function getEvents(ce){let ze=!1,Ve=yt[ce.type];return"decl"===ce.type?ze=ce.prop.toLowerCase():"atrule"===ce.type&&(ze=ce.name.toLowerCase()),ze&&ce.append?[Ve,Ve+"-"+ze,wt,Ve+"Exit",Ve+"Exit-"+ze]:ze?[Ve,Ve+"-"+ze,Ve+"Exit",Ve+"Exit-"+ze]:ce.append?[Ve,wt,Ve+"Exit"]:[Ve,Ve+"Exit"]}function toStack(ce){let ze;return ze="document"===ce.type?["Document",wt,"DocumentExit"]:"root"===ce.type?["Root",wt,"RootExit"]:getEvents(ce),{eventIndex:0,events:ze,iterator:0,node:ce,visitorIndex:0,visitors:[]}}function cleanMarks(ce){return ce[qe]=!1,ce.nodes&&ce.nodes.forEach((ce=>cleanMarks(ce))),ce}let Ct={};class Dt{constructor(ce,ze,Ve){let qe;if(this.stringified=!1,this.processed=!1,"object"!=typeof ze||null===ze||"root"!==ze.type&&"document"!==ze.type)if(ze instanceof Dt||ze instanceof st)qe=cleanMarks(ze.root),ze.map&&(void 0===Ve.map&&(Ve.map={}),Ve.map.inline||(Ve.map.inline=!1),Ve.map.prev=ze.map);else{let ce=mt;Ve.syntax&&(ce=Ve.syntax.parse),Ve.parser&&(ce=Ve.parser),ce.parse&&(ce=ce.parse);try{qe=ce(ze,Ve)}catch(ce){this.processed=!0,this.error=ce}qe&&!qe[Ye]&&Xe.rebuild(qe)}else qe=cleanMarks(ze);this.result=new st(ce,qe,Ve),this.helpers={...Ct,postcss:Ct,result:this.result},this.plugins=this.processor.plugins.map((ce=>"object"==typeof ce&&ce.prepare?{...ce,...ce.prepare(this.result)}:ce))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(ce){return this.async().catch(ce)}finally(ce){return this.async().then(ce,ce)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(ce,ze){let Ve=this.result.lastPlugin;try{ze&&ze.addToError(ce),this.error=ce,"CssSyntaxError"!==ce.name||ce.plugin?Ve.postcssVersion:(ce.plugin=Ve.postcssPlugin,ce.setMessage())}catch(ce){console&&console.error&&console.error(ce)}return ce}prepareVisitors(){this.listeners={};let add=(ce,ze,Ve)=>{this.listeners[ze]||(this.listeners[ze]=[]),this.listeners[ze].push([ce,Ve])};for(let ce of this.plugins)if("object"==typeof ce)for(let ze in ce){if(!bt[ze]&&/^[A-Z]/.test(ze))throw new Error(`Unknown event ${ze} in ${ce.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vt[ze])if("object"==typeof ce[ze])for(let Ve in ce[ze])add(ce,"*"===Ve?ze:ze+"-"+Ve.toLowerCase(),ce[ze][Ve]);else"function"==typeof ce[ze]&&add(ce,ze,ce[ze])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let ce=0;ce0;){let ce=this.visitTick(ze);if(isPromise(ce))try{await ce}catch(ce){let Ve=ze[ze.length-1].node;throw this.handleError(ce,Ve)}}}if(this.listeners.OnceExit)for(let[ze,Ve]of this.listeners.OnceExit){this.result.lastPlugin=ze;try{if("document"===ce.type){let ze=ce.nodes.map((ce=>Ve(ce,this.helpers)));await Promise.all(ze)}else await Ve(ce,this.helpers)}catch(ce){throw this.handleError(ce)}}}return this.processed=!0,this.stringify()}runOnRoot(ce){this.result.lastPlugin=ce;try{if("object"==typeof ce&&ce.Once){if("document"===this.result.root.type){let ze=this.result.root.nodes.map((ze=>ce.Once(ze,this.helpers)));return isPromise(ze[0])?Promise.all(ze):ze}return ce.Once(this.result.root,this.helpers)}if("function"==typeof ce)return ce(this.result.root,this.result)}catch(ce){throw this.handleError(ce)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let ce=this.result.opts,ze=Qe;ce.syntax&&(ze=ce.syntax.stringify),ce.stringifier&&(ze=ce.stringifier),ze.stringify&&(ze=ze.stringify);let Ve=new We(ze,this.result.root,this.result.opts).generate();return this.result.css=Ve[0],this.result.map=Ve[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let ce of this.plugins){if(isPromise(this.runOnRoot(ce)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let ce=this.result.root;for(;!ce[qe];)ce[qe]=!0,this.walkSync(ce);if(this.listeners.OnceExit)if("document"===ce.type)for(let ze of ce.nodes)this.visitSync(this.listeners.OnceExit,ze);else this.visitSync(this.listeners.OnceExit,ce)}return this.result}then(ce,ze){return this.async().then(ce,ze)}toString(){return this.css}visitSync(ce,ze){for(let[Ve,qe]of ce){let ce;this.result.lastPlugin=Ve;try{ce=qe(ze,this.helpers)}catch(ce){throw this.handleError(ce,ze.proxyOf)}if("root"!==ze.type&&"document"!==ze.type&&!ze.parent)return!0;if(isPromise(ce))throw this.getAsyncError()}}visitTick(ce){let ze=ce[ce.length-1],{node:Ve,visitors:Ye}=ze;if("root"!==Ve.type&&"document"!==Ve.type&&!Ve.parent)return void ce.pop();if(Ye.length>0&&ze.visitorIndex{ce[qe]||this.walkSync(ce)}));else{let ze=this.listeners[Ve];if(ze&&this.visitSync(ze,ce.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Dt.registerPostcss=ce=>{Ct=ce},ce.exports=Dt,Dt.default=Dt,gt.registerLazyResult(Dt),ot.registerLazyResult(Dt)},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:qe,SourceMapGenerator:Ye}=Ve(776),{dirname:We,relative:Qe,resolve:Xe,sep:ot}=Ve(777),{pathToFileURL:st}=Ve(1044),mt=Ve(498),gt=Boolean(qe&&Ye),yt=Boolean(We&&Xe&&Qe&&ot);ce.exports=class{constructor(ce,ze,Ve,qe){this.stringify=ce,this.mapOpts=Ve.map||{},this.root=ze,this.opts=Ve,this.css=qe,this.originalCSS=qe,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let ce;ce=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let ze="\n";this.css.includes("\r\n")&&(ze="\r\n"),this.css+=ze+"/*# sourceMappingURL="+ce+" */"}applyPrevMaps(){for(let ce of this.previous()){let ze,Ve=this.toUrl(this.path(ce.file)),Ye=ce.root||We(ce.file);!1===this.mapOpts.sourcesContent?(ze=new qe(ce.text),ze.sourcesContent&&(ze.sourcesContent=null)):ze=ce.consumer(),this.map.applySourceMap(ze,Ve,this.toUrl(this.path(Ye)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let ce;for(let ze=this.root.nodes.length-1;ze>=0;ze--)ce=this.root.nodes[ze],"comment"===ce.type&&0===ce.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(ze)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yt&>&&this.isMap())return this.generateMap();{let ce="";return this.stringify(this.root,(ze=>{ce+=ze})),[ce]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let ce=this.previous()[0].consumer();ce.file=this.outputFile(),this.map=Ye.fromSourceMap(ce,{ignoreInvalidMapping:!0})}else this.map=new Ye({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Ye({file:this.outputFile(),ignoreInvalidMapping:!0});let ce,ze,Ve=1,qe=1,We="",Qe={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((Ye,Xe,ot)=>{if(this.css+=Ye,Xe&&"end"!==ot&&(Qe.generated.line=Ve,Qe.generated.column=qe-1,Xe.source&&Xe.source.start?(Qe.source=this.sourcePath(Xe),Qe.original.line=Xe.source.start.line,Qe.original.column=Xe.source.start.column-1,this.map.addMapping(Qe)):(Qe.source=We,Qe.original.line=1,Qe.original.column=0,this.map.addMapping(Qe))),ce=Ye.match(/\n/g),ce?(Ve+=ce.length,ze=Ye.lastIndexOf("\n"),qe=Ye.length-ze):qe+=Ye.length,Xe&&"start"!==ot){let ce=Xe.parent||{raws:{}};("decl"===Xe.type||"atrule"===Xe.type&&!Xe.nodes)&&Xe===ce.last&&!ce.raws.semicolon||(Xe.source&&Xe.source.end?(Qe.source=this.sourcePath(Xe),Qe.original.line=Xe.source.end.line,Qe.original.column=Xe.source.end.column-1,Qe.generated.line=Ve,Qe.generated.column=qe-2,this.map.addMapping(Qe)):(Qe.source=We,Qe.original.line=1,Qe.original.column=0,Qe.generated.line=Ve,Qe.generated.column=qe-1,this.map.addMapping(Qe)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((ce=>ce.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let ce=this.mapOpts.annotation;return(void 0===ce||!0===ce)&&(!this.previous().length||this.previous().some((ce=>ce.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((ce=>ce.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(ce){if(this.mapOpts.absolute)return ce;if(60===ce.charCodeAt(0))return ce;if(/^\w+:\/\//.test(ce))return ce;let ze=this.memoizedPaths.get(ce);if(ze)return ze;let Ve=this.opts.to?We(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(Ve=We(Xe(Ve,this.mapOpts.annotation)));let qe=Qe(Ve,ce);return this.memoizedPaths.set(ce,qe),qe}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((ce=>{if(ce.source&&ce.source.input.map){let ze=ce.source.input.map;this.previousMaps.includes(ze)||this.previousMaps.push(ze)}}));else{let ce=new mt(this.originalCSS,this.opts);ce.map&&this.previousMaps.push(ce.map)}return this.previousMaps}setSourcesContent(){let ce={};if(this.root)this.root.walk((ze=>{if(ze.source){let Ve=ze.source.input.from;if(Ve&&!ce[Ve]){ce[Ve]=!0;let qe=this.usesFileUrls?this.toFileUrl(Ve):this.toUrl(this.path(Ve));this.map.setSourceContent(qe,ze.source.input.css)}}}));else if(this.css){let ce=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(ce,this.css)}}sourcePath(ce){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(ce.source.input.from):this.toUrl(this.path(ce.source.input.from))}toBase64(ce){return ze?ze.from(ce).toString("base64"):window.btoa(unescape(encodeURIComponent(ce)))}toFileUrl(ce){let ze=this.memoizedFileURLs.get(ce);if(ze)return ze;if(st){let ze=st(ce).toString();return this.memoizedFileURLs.set(ce,ze),ze}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(ce){let ze=this.memoizedURLs.get(ce);if(ze)return ze;"\\"===ot&&(ce=ce.replace(/\\/g,"/"));let Ve=encodeURI(ce).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(ce,Ve),Ve}}}).call(this,Ve(487).Buffer)},function(ce,ze){},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:qe,SourceMapGenerator:Ye}=Ve(776),{existsSync:We,readFileSync:Qe}=Ve(1818),{dirname:Xe,join:ot}=Ve(777);class st{constructor(ce,ze){if(!1===ze.map)return;this.loadAnnotation(ce),this.inline=this.startWith(this.annotation,"data:");let Ve=ze.map?ze.map.prev:void 0,qe=this.loadMap(ze.from,Ve);!this.mapFile&&ze.from&&(this.mapFile=ze.from),this.mapFile&&(this.root=Xe(this.mapFile)),qe&&(this.text=qe)}consumer(){return this.consumerCache||(this.consumerCache=new qe(this.text)),this.consumerCache}decodeInline(ce){let Ve=ce.match(/^data:application\/json;charset=utf-?8,/)||ce.match(/^data:application\/json,/);if(Ve)return decodeURIComponent(ce.substr(Ve[0].length));let qe=ce.match(/^data:application\/json;charset=utf-?8;base64,/)||ce.match(/^data:application\/json;base64,/);if(qe)return Ye=ce.substr(qe[0].length),ze?ze.from(Ye,"base64").toString():window.atob(Ye);var Ye;let We=ce.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+We)}getAnnotationURL(ce){return ce.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(ce){return"object"==typeof ce&&("string"==typeof ce.mappings||"string"==typeof ce._mappings||Array.isArray(ce.sections))}loadAnnotation(ce){let ze=ce.match(/\/\*\s*# sourceMappingURL=/g);if(!ze)return;let Ve=ce.lastIndexOf(ze.pop()),qe=ce.indexOf("*/",Ve);Ve>-1&&qe>-1&&(this.annotation=this.getAnnotationURL(ce.substring(Ve,qe)))}loadFile(ce){if(this.root=Xe(ce),We(ce))return this.mapFile=ce,Qe(ce,"utf-8").toString().trim()}loadMap(ce,ze){if(!1===ze)return!1;if(ze){if("string"==typeof ze)return ze;if("function"!=typeof ze){if(ze instanceof qe)return Ye.fromSourceMap(ze).toString();if(ze instanceof Ye)return ze.toString();if(this.isMap(ze))return JSON.stringify(ze);throw new Error("Unsupported previous source map format: "+ze.toString())}{let Ve=ze(ce);if(Ve){let ce=this.loadFile(Ve);if(!ce)throw new Error("Unable to load previous source map: "+Ve.toString());return ce}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let ze=this.annotation;return ce&&(ze=ot(Xe(ce),ze)),this.loadFile(ze)}}}startWith(ce,ze){return!!ce&&ce.substr(0,ze.length)===ze}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}ce.exports=st,st.default=st}).call(this,Ve(487).Buffer)},function(ce,ze,Ve){"use strict";let qe={};ce.exports=function warnOnce(ce){qe[ce]||(qe[ce]=!0,"undefined"!=typeof console&&console.warn&&console.warn(ce))}},function(ce,ze,Ve){"use strict";class qe{constructor(ce,ze={}){if(this.type="warning",this.text=ce,ze.node&&ze.node.source){let ce=ze.node.rangeBy(ze);this.line=ce.start.line,this.column=ce.start.column,this.endLine=ce.end.line,this.endColumn=ce.end.column}for(let ce in ze)this[ce]=ze[ce]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let qe={comma:ce=>qe.split(ce,[","],!0),space:ce=>qe.split(ce,[" ","\n","\t"]),split(ce,ze,Ve){let qe=[],Ye="",We=!1,Qe=0,Xe=!1,ot="",st=!1;for(let Ve of ce)st?st=!1:"\\"===Ve?st=!0:Xe?Ve===ot&&(Xe=!1):'"'===Ve||"'"===Ve?(Xe=!0,ot=Ve):"("===Ve?Qe+=1:")"===Ve?Qe>0&&(Qe-=1):0===Qe&&ze.includes(Ve)&&(We=!0),We?(""!==Ye&&qe.push(Ye.trim()),Ye="",We=!1):Ye+=Ve;return(Ve||""!==Ye)&&qe.push(Ye.trim()),qe}};ce.exports=qe,qe.default=qe},function(ce,ze,Ve){var qe=Ve(871),Ye=Ve(756),We=Ve(762),Qe=Ve(872),Xe=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)qe(ze,We(ce)),ce=Ye(ce);return ze}:Qe;ce.exports=Xe},function(ce,ze){ce.exports={L:1,M:0,Q:3,H:2}},function(ce,ze){ce.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},function(ce,ze,Ve){var qe=Ve(1053);function QRPolynomial(ce,ze){if(null==ce.length)throw new Error(ce.length+"/"+ze);for(var Ve=0;Ve=256;)ce-=255;return Ve.EXP_TABLE[ce]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},qe=0;qe<8;qe++)Ve.EXP_TABLE[qe]=1<{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:qe,noneSelectedText:Ye,onClose:We,values:Qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{allSelectedText:ce,disabled:ze,noneSelectedText:Ye,onChange:this.handleChange,onClose:We,values:Qe},this.resourceListStore.data.map(((ce,ze)=>st.a.createElement(vt.a.Option,{key:ze,value:ce[qe]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,qe={limit:"",...Ve};this.resourceListStore=new wt.a(ze,qe,ce)}}}),qe=Ye))||qe;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.Input,{disabled:Ve,icon:"su-earth",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Qe,type:"text",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0},ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.Input,{disabled:Ve,icon:"su-credit-card",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Qe,type:"text",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0},ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(34),bt=Ve(6),vt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let wt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce){_initializerDefineProperty(this,"teaserItemIds",Ye,this),_initializerDefineProperty(this,"teaserItems",We,this),_initializerDefineProperty(this,"loading",Qe,this),this.loadTeasers=()=>{this.setLoading(!0),vt.a.getList("teasers",{ids:this.teaserItemIds.map((ce=>ce.type+";"+ce.id)),locale:this.locale.get()}).then(Object(st.action)((ce=>{this.teaserItems.splice(0,this.teaserItems.length,...ce._embedded.teasers),this.setLoading(!1)})))},this.locale=ce,this.teaserDisposer=Object(st.autorun)(this.loadTeasers)}destroy(){this.teaserDisposer()}add(ce,ze){this.teaserItemIds.find((Ve=>Ve.type===ce&&Ve.id===ze))||this.teaserItemIds.push({type:ce,id:ze})}findById(ce,ze){return this.teaserItems.find((Ve=>Ve.type===ce&&Ve.id===ze))}setLoading(ce){this.loading=ce}}).prototype,"teaserItemIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"teaserItems",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"setLoading",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);var Ct,Dt,kt,St,xt=Ve(399),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(369),Ft=Ve(684),Bt=Ve.n(Ft),Vt="item--2CQ2j6heU-",Ht="copy-text--pC-hRYnzMn",Ut="copying--O9G9yRuaRj",Wt="content--ffvABah0Q2";function DownloadListItem_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jt=Object(mt.b)((St=class extends ot.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="copying",qe=this,(Ve=kt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:qe}=this.props,Ye=Tt()(Vt,{[Ut]:this.copying}),We=ot.a.createElement("span",{className:Wt},ze,ot.a.createElement("span",{className:Ht},Ve));return ot.a.createElement("li",{className:Ye,onAnimationEnd:this.handleClick},qe?ot.a.createElement(Bt.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},St.defaultProps={copyUrlOnClick:!1},kt=DownloadListItem_applyDecoratedDescriptor((Dt=St).prototype,"copying",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),DownloadListItem_applyDecoratedDescriptor(Dt.prototype,"copyUrl",[st.action],Object.getOwnPropertyDescriptor(Dt.prototype,"copyUrl"),Dt.prototype),Ct=Dt))||Ct;var Qt=Jt;class en extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:qe}=this.props;return[ot.a.createElement(Qt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},qe),ot.a.createElement(gt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Qt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(gt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(gt.Menu,{menuRef:ce,style:ze},Ve)))}}var rn,ln,mn,gn,bn,wn,Cn,Sn,En,Tn,Ln="media-card--D92EE5mvsd",Fn="checkbox--MKIozPb6bM",Yn="selected--QROWDCoc1q",Un="header--0TdKHqjoQQ",Gn="description--XSXHL74Hyq",Kn="no-download-list--gDs609BRRg",Jn="download-button--+eRFFB7ZwO",Zn="active--N8fkEDCK+r",Xn="ghost-indicator--QLJ5yOS00K",ei="title--xrCe2tQi-k",si="meta--LEq0mfMu2Y",_i="title-text--+MERqWAJoz",Ri="media--ejbY2jJ4HC",Ci="cover--raBSTujlbG",Di="show-cover--LKt9WlXWk7",Ei="media-icon--SrMzuKPepI";function MediaCard_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(mt.b)(((Tn=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",mn,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",gn,this),MediaCard_initializerDefineProperty(this,"imageLoading",bn,this),MediaCard_initializerDefineProperty(this,"imageError",wn,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Cn,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleKeypress=ce=>{const{id:ze,onClick:Ve,selected:qe}=this.props;Ve&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),Ve(ze,!qe)))},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&Ve(ce,!ze)},this.handleHeaderKeypress=ce=>{const{id:ze,selected:Ve,onSelectionChange:qe}=this.props;qe&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),qe(ze,!Ve)))},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Sn,this),MediaCard_initializerDefineProperty(this,"handleImageError",En,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:qe,icon:Ye,id:We,image:Qe,imageSizes:st,meta:mt,mimeType:yt,onSelectionChange:bt,selected:vt,title:wt,showCover:Ct}=this.props,Dt=Tt()(Ln,{[Yn]:!!vt,[Di]:!!Ct,[Kn]:!st.length}),kt=Tt()(Jn,{[Zn]:!!this.downloadListOpen}),St=ot.a.createElement("div",{className:_i},qe&&ot.a.createElement(gt.GhostIndicator,{className:Xn,locale:qe}),ot.a.createElement(gt.CroppedText,null,wt));return ot.a.createElement("div",{className:Dt},ot.a.createElement("div",{className:Un},ot.a.createElement("div",{className:Gn,onClick:this.handleHeaderClick,onKeyPress:this.handleHeaderKeypress,role:"button",tabIndex:"0"},ot.a.createElement("div",{className:ei},bt?ot.a.createElement(gt.Checkbox,{checked:!!vt,className:Fn,value:We},St):St),mt&&ot.a.createElement("div",{className:si},ot.a.createElement(gt.CroppedText,null,mt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:kt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(gt.Icon,{name:"su-download"})),ot.a.createElement(en,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Ri,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe&&!this.imageError?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("img",{alt:wt,src:this.image.src}),this.imageLoading&&ot.a.createElement(gt.Loader,null)):ot.a.createElement(Lt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Ci},!!Ye&&ot.a.createElement(gt.Icon,{className:Ei,name:Ye}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},mn=MediaCard_applyDecoratedDescriptor((ln=Tn).prototype,"downloadButtonRef",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=MediaCard_applyDecoratedDescriptor(ln.prototype,"downloadListOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageLoading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageError",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cn=MediaCard_applyDecoratedDescriptor(ln.prototype,"setDownloadButtonRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(ln.prototype,"openDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"openDownloadList"),ln.prototype),MediaCard_applyDecoratedDescriptor(ln.prototype,"closeDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"closeDownloadList"),ln.prototype),Sn=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageLoad",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),En=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),rn=ln));var Oi,Ti,er=Ve(315);Object(mt.b)(((Ti=class extends ot.a.Component{constructor(ce){super(ce),this.collectionId=st.observable.box();const ze=Object(st.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:st.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=er.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=er.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:qe,locale:Ye}=this.props;return ot.a.createElement(er.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:Ye,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:qe})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},Oi=Ti));var tr,nr=Ve(633);var rr,ar,sr,lr,dr,ur,pr,vr,_r,Rr,Cr,Dr,Er=new(function teaserProviderRegistry_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((tr=class{constructor(){this.clear()}clear(){this.teaserProviders={}}get keys(){return Object.keys(this.teaserProviders)}add(ce,ze){if(ce in this.teaserProviders)throw new Error('The key "'+ce+'" has already been used for another TeaserProvider');this.teaserProviders[ce]=ze}get(ce){if(!(ce in this.teaserProviders))throw new Error('There is no TeaserProvider with key "'+ce+'" registered');return this.teaserProviders[ce]}}).prototype,"keys",[st.computed],Object.getOwnPropertyDescriptor(tr.prototype,"keys"),tr.prototype),tr),Tr={"edit-form":"edit-form--jUydKjOEhk",editForm:"edit-form--jUydKjOEhk",form:"form--iac0hwTY9X","media-column":"media-column--pFBXSsmF7i",mediaColumn:"media-column--pFBXSsmF7i","media-button":"media-button--7J5CPHOgHd",mediaButton:"media-button--7J5CPHOgHd","media-button-edit-icon":"media-button-edit-icon--ye3GvevG-a",mediaButtonEditIcon:"media-button-edit-icon--ye3GvevG-a","media-button-icon":"media-button-icon--09OtjUuwf+",mediaButtonIcon:"media-button-icon--09OtjUuwf+","title-input":"title-input--JsyWuzsBsP",titleInput:"title-input--JsyWuzsBsP","description-text-area":"description-text-area--JJN79lWtjl",descriptionTextArea:"description-text-area--JJN79lWtjl",buttons:"buttons--KN4g5u-qF7",item:"item--4BMEjTy751",media:"media--wtwvHogrDV",title:"title--1XUUR3Opt4",content:"content--EQoWqSOM3j",description:"description--swgZ6YyGKp",type:"type--FAPh7fJTR-"};function Item_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Item_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ar=Object(mt.b)((Dr=class ce extends ot.a.Component{constructor(){super(...arguments),Item_initializerDefineProperty(this,"title",sr,this),Item_initializerDefineProperty(this,"description",lr,this),Item_initializerDefineProperty(this,"mediaId",dr,this),Item_initializerDefineProperty(this,"mediaOverlayOpen",ur,this),Item_initializerDefineProperty(this,"handleMediaClick",pr,this),Item_initializerDefineProperty(this,"handleMediaConfirm",vr,this),Item_initializerDefineProperty(this,"handleMediaOverlayClose",_r,this),Item_initializerDefineProperty(this,"handleTitleChange",Rr,this),Item_initializerDefineProperty(this,"handleDescriptionChange",Cr,this),this.handleCancel=()=>{const{id:ce,onCancel:ze,type:Ve}=this.props;ze(Ve,ce)},this.handleReset=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({id:ce,type:Ve})},this.handleApply=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({description:this.description,id:ce,mediaId:this.mediaId,title:this.title,type:Ve})}}componentDidMount(){this.setStateFromProps()}componentDidUpdate(ce){ce.title===this.props.title&&ce.description===this.props.description&&ce.mediaId===this.props.mediaId||this.setStateFromProps(),!0===ce.editing&&!1===this.props.editing&&this.setStateFromProps()}setStateFromProps(){const{description:ce,mediaId:ze,title:Ve}=this.props;this.title=Ve,this.description=ce,this.mediaId=ze}render(){const{edited:ze,editing:Ve,locale:qe,type:Ye}=this.props,{mediaUrl:We}=ce;return Ve?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("div",{className:Tr.editForm},ot.a.createElement("div",{className:Tr.form},ot.a.createElement("div",{className:Tr.mediaColumn},We&&ot.a.createElement("button",{className:Tr.mediaButton,onClick:this.handleMediaClick,type:"button"},this.mediaId?ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())}):ot.a.createElement(Lt.a,{iconSize:16,mimeType:"image"}),ot.a.createElement(gt.Icon,{className:Tr.mediaButtonIcon,name:"su-pen"}))),ot.a.createElement("div",{className:Tr.formColumn},ot.a.createElement("div",{className:Tr.titleInput},ot.a.createElement(gt.Input,{onChange:this.handleTitleChange,value:this.title})),ot.a.createElement("div",{className:Tr.descriptionTextArea},ot.a.createElement(yt.h,{adapter:"ckeditor5",locale:qe,onChange:this.handleDescriptionChange,value:this.description})))),ot.a.createElement("div",{className:Tr.buttons},ot.a.createElement(gt.Button,{onClick:this.handleCancel},Object(bt.translate)("sulu_admin.cancel")),ot.a.createElement(gt.Button,{onClick:this.handleReset,skin:"link"},Object(bt.translate)("sulu_admin.reset")),ot.a.createElement(gt.Button,{onClick:this.handleApply,skin:"primary"},Object(bt.translate)("sulu_admin.apply")))),ot.a.createElement(nr.a,{locale:qe,onClose:this.handleMediaOverlayClose,onConfirm:this.handleMediaConfirm,open:this.mediaOverlayOpen})):ot.a.createElement("div",{className:Tr.item},ot.a.createElement("div",{className:Tr.media},We&&this.mediaId&&ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())})),ot.a.createElement("div",{className:Tr.content},ot.a.createElement("p",{className:Tr.title},this.title),ot.a.createElement("p",{className:Tr.description},this.description&&Et()(this.description))),ot.a.createElement("p",{className:Tr.type},Er.get(Ye).title,ze&&" ("+Object(bt.translate)("sulu_page.edited")+")"))}},Dr.mediaUrl=void 0,sr=Item_applyDecoratedDescriptor((ar=Dr).prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),lr=Item_applyDecoratedDescriptor(ar.prototype,"description",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),dr=Item_applyDecoratedDescriptor(ar.prototype,"mediaId",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ur=Item_applyDecoratedDescriptor(ar.prototype,"mediaOverlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Item_applyDecoratedDescriptor(ar.prototype,"setStateFromProps",[st.action],Object.getOwnPropertyDescriptor(ar.prototype,"setStateFromProps"),ar.prototype),pr=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!0}}}),vr=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mediaId=ce.id,this.mediaOverlayOpen=!1}}}),_r=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaOverlayClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!1}}}),Rr=Item_applyDecoratedDescriptor(ar.prototype,"handleTitleChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Cr=Item_applyDecoratedDescriptor(ar.prototype,"handleDescriptionChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.description=ce}}}),rr=ar))||rr;var Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr,Yr,Ur,Wr=Ar;function TeaserSelection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TeaserSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getUniqueId(ce){return ce.type+";"+ce.id}function extractUniqueId(ce){const ze=ce.split(";");return{id:ze[1],type:ze[0]}}let $r=Object(mt.b)((Ur=class extends ot.a.Component{constructor(ce){super(ce),TeaserSelection_initializerDefineProperty(this,"editIds",jr,this),TeaserSelection_initializerDefineProperty(this,"openedOverlay",Ir,this),TeaserSelection_initializerDefineProperty(this,"handleCancel",zr,this),TeaserSelection_initializerDefineProperty(this,"handleEdit",Br,this),TeaserSelection_initializerDefineProperty(this,"handleApply",Nr,this),this.handleRemove=ce=>{const{onChange:ze,value:Ve}=this.props,qe=extractUniqueId(ce);ze({...Ve,items:Ve.items.filter((ce=>ce.id.toString()!==qe.id||ce.type!==qe.type))})},this.handleSorted=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,items:Object(bt.arrayMove)(qe.items,ce,ze)})},TeaserSelection_initializerDefineProperty(this,"handleClose",Vr,this),TeaserSelection_initializerDefineProperty(this,"handleConfirm",Hr,this),TeaserSelection_initializerDefineProperty(this,"handleAddClick",qr,this),TeaserSelection_initializerDefineProperty(this,"handlePresentationClick",Yr,this),Object(st.action)((()=>{const{locale:ce,value:ze}=this.props;this.teaserStore=new wt(ce),ze.items.forEach((ce=>{this.teaserStore.add(ce.type,ce.id)}))}))()}componentWillUnmount(){this.teaserStore.destroy()}get teaserItems(){return this.props.value.items.map((ce=>({...this.teaserStore.findById(ce.type,ce.id),...Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{}),edited:!!(ce.description||ce.mediaId||ce.title)})))}get presentationOptions(){const{presentations:ce}=this.props;if(ce)return ce.map((ce=>({label:ce.label,value:ce.value})))}get selectedPresentation(){const{presentations:ce,value:ze}=this.props;if(ce)return ce.find((ce=>ce.value===ze.presentAs))}openItemEdit(ce){this.editIds.push(ce)}closeItemEdit(ce){this.editIds.splice(this.editIds.findIndex((ze=>ze===ce)),1)}render(){const{disabled:ce,locale:ze,onItemClick:Ve,value:qe}=this.props,Ye=Er.keys.map((ce=>({label:Er.get(ce).title,value:ce}))),We=this.presentationOptions?{icon:"su-eye",label:this.selectedPresentation&&this.selectedPresentation.label,onClick:this.handlePresentationClick,options:this.presentationOptions}:void 0;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.MultiItemSelection,{disabled:ce,leftButton:{icon:"su-plus-circle",onClick:this.handleAddClick,options:Ye},loading:this.teaserStore.loading,onItemsSorted:this.handleSorted,rightButton:We},this.teaserItems.map(((ce,qe)=>{const Ye=getUniqueId(ce);return ot.a.createElement(gt.MultiItemSelection.Item,{id:Ye,index:qe+1,key:Ye,onClick:this.editIds.includes(Ye)?void 0:Ve,onEdit:this.editIds.includes(Ye)?void 0:this.handleEdit,onRemove:this.handleRemove,value:ce},ot.a.createElement(Wr,{description:ce.description,edited:ce.edited,editing:this.editIds.includes(Ye),id:ce.id,locale:ze,mediaId:ce.mediaId,onApply:this.handleApply,onCancel:this.handleCancel,title:ce.title,type:ce.type}))}))),Er.keys.map((ce=>ot.a.createElement(yt.d,{adapter:Er.get(ce).listAdapter,key:ce,listKey:ce,locale:ze,onClose:this.handleClose,onConfirm:this.handleConfirm,open:this.openedOverlay===ce,preloadSelectedItems:!1,preSelectedItems:qe.items.filter((ze=>ze.type===ce)),resourceKey:ce,title:Er.get(ce).overlayTitle}))))}},Ur.defaultProps={disabled:!1,value:{presentAs:void 0,items:[]}},Ur.Item=Wr,jr=TeaserSelection_applyDecoratedDescriptor((Lr=Ur).prototype,"editIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ir=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"openedOverlay",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"teaserItems",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"teaserItems"),Lr.prototype),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"presentationOptions",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"presentationOptions"),Lr.prototype),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"selectedPresentation",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"selectedPresentation"),Lr.prototype),zr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.closeItemEdit(getUniqueId({id:ze,type:ce}))}}}),Br=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openItemEdit(ce)}}}),Nr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleApply",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props,Ve={...this.props.value},qe=Ve.items.findIndex((ze=>ze.id===ce.id));Ve.items[qe]=ce,ze(Ve),this.closeItemEdit(getUniqueId(ce))}}}),Vr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedOverlay=void 0}}}),Hr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{openedOverlay:ze}=this;if(!ze)throw new Error("There was no opened overlay defined! This should not happen and is likely a bug.");const{onChange:Ve,value:qe}=this.props,Ye=qe.items.filter((Ve=>Ve.type!==ze||ce.find((ce=>ce.id===Ve.id)))),We=ce.filter((ce=>!Ye.find((Ve=>Ve.id===ce.id&&Ve.type===ze)))).map((ce=>({id:ce.id,type:ze})));Ve({...qe,items:[...Ye,...We]}),ce.forEach((ce=>{this.teaserStore.add(ze,ce.id)})),this.openedOverlay=void 0}}}),qr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleAddClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openedOverlay=ce}}}),Yr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handlePresentationClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,presentAs:ce})}}}),Mr=Lr))||Mr;ze.default=$r},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(3),mt=Ve(1),gt=Ve(7),yt=Ve(76),bt=Ve(6),vt=Ve(377),wt=Ve(572).default,Ct=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Dt="media_formats";var kt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce,ze){_initializerDefineProperty(this,"mediaFormats",Ye,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"saving",Qe,this),this.id=ce,this.locale=ze,this.loading=!0,Ct.c.getList(Dt,{id:ce,locale:ze}).then(Object(mt.action)((ce=>{this.loading=!1,this.mediaFormats=ce})))}getFormatOptions(ce){if(this.mediaFormats)return this.mediaFormats[ce]}updateFormatOptions(ce){return this.saving=!0,Ct.c.patch(Dt,ce,{id:this.id,locale:this.locale}).then(Object(mt.action)((ce=>{this.saving=!1;const ze={...this.mediaFormats,...ce};this.mediaFormats=Object.keys(ze).reduce(((ce,Ve)=>{const qe=ze[Ve];return 0===Object.keys(qe).length||(ce[Ve]=qe),ce}),{})})))}}).prototype,"mediaFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"saving",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"updateFormatOptions",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateFormatOptions"),qe.prototype),qe);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht=new class{sendRequest(){if(!yt.e.user)throw new Error("A user must be logged in to load the webspaces with the correct locale");return this.formatPromise||(this.formatPromise=Ct.c.getList("formats",{locale:yt.e.user.locale})),this.formatPromise}loadFormats(){return this.sendRequest().then((ce=>ce._embedded.formats))}},Ut="crop-overlay-container--qkxzrPorU8",Wt="format-select--McX7zwzEdG";function CropOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CropOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Jt,Qt,en,rn,ln,mn,gn,bn=Object(st.b)((xt=class extends ot.a.Component{constructor(ce){super(ce),CropOverlay_initializerDefineProperty(this,"rawFormats",Et,this),CropOverlay_initializerDefineProperty(this,"formatKey",Pt,this),CropOverlay_initializerDefineProperty(this,"changedFormatCroppings",Tt,this),CropOverlay_initializerDefineProperty(this,"dirty",Lt,this),CropOverlay_initializerDefineProperty(this,"handleClose",Ft,this),this.handleConfirm=()=>{const{onConfirm:ce}=this.props,ze={};this.changedFormatCroppings.forEach(((ce,Ve)=>{ze[Ve]=this.convertSelectionToFormatOptions(ce)})),this.mediaFormatStore.updateFormatOptions(ze).then(Object(mt.action)((()=>{ce(),this.changedFormatCroppings.clear()})))},CropOverlay_initializerDefineProperty(this,"handleFormatChange",Bt,this),CropOverlay_initializerDefineProperty(this,"handleSelectionChange",Vt,this);const{id:ze,locale:Ve}=this.props;this.mediaFormatStore=new kt(ze,Ve)}get currentSelection(){const{formatKey:ce}=this;if(ce)return this.changedFormatCroppings.has(ce)?this.changedFormatCroppings.get(ce):this.convertFormatOptionsToSelection(this.mediaFormatStore.getFormatOptions(ce))}get availableFormats(){return this.rawFormats?this.rawFormats.filter((ce=>!ce.internal)):[]}get selectedFormat(){if(!this.availableFormats)throw new Error("Cannot access format as long as formats have not finished loading!");const ce=this.availableFormats.find((ce=>ce.key===this.formatKey));if(ce)return ce}componentDidMount(){Ht.loadFormats().then(Object(mt.action)((ce=>{this.rawFormats=ce,this.formatKey=this.availableFormats.length>0?this.availableFormats[0].key:void 0})))}convertSelectionToFormatOptions(ce){return ce?{cropX:ce.left,cropY:ce.top,cropWidth:ce.width,cropHeight:ce.height}:{}}convertFormatOptionsToSelection(ce){if(ce)return{left:ce.cropX,top:ce.cropY,width:ce.cropWidth,height:ce.cropHeight}}render(){const{availableFormats:ce,mediaFormatStore:ze,selectedFormat:Ve}=this,{image:qe,open:Ye}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.changedFormatCroppings.size<=0,confirmLoading:this.mediaFormatStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,size:"large",title:Object(bt.translate)("sulu_media.define_crops")},ce?ot.a.createElement("div",{className:Ut},ot.a.createElement("div",{className:Wt},ot.a.createElement(gt.SingleSelect,{onChange:this.handleFormatChange,value:this.formatKey},ce.map((ce=>ot.a.createElement(gt.SingleSelect.Option,{key:ce.key,value:ce.key},ce.title+(ze.getFormatOptions(ce.key)?" ("+Object(bt.translate)("sulu_media.cropped")+")":"")))))),Ve&&!ze.loading&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.ImageRectangleSelection,{image:qe,minHeight:Ve.scale.y,minWidth:Ve.scale.x,onChange:this.handleSelectionChange,value:this.currentSelection}),ot.a.createElement("p",null,"(",Object(bt.translate)("sulu_media.double_click_crop_and_maximize"),")"))):ot.a.createElement(gt.Loader,null))}},Et=CropOverlay_applyDecoratedDescriptor(xt.prototype,"rawFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"formatKey",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"changedFormatCroppings",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Lt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"dirty",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CropOverlay_applyDecoratedDescriptor(xt.prototype,"currentSelection",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"currentSelection"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"availableFormats",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"availableFormats"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"selectedFormat",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"selectedFormat"),xt.prototype),Ft=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.onClose(),this.changedFormatCroppings.clear()}}}),Bt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleFormatChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.formatKey=ce}}}),Vt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleSelectionChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formatKey:ze}=this;if(!ze)throw new Error("It is not possible to change the selection without a selected format. This should not happen and is likely a bug.");this.changedFormatCroppings.set(ze,ce)}}}),St=xt))||St,wn=Ve(561).default,Cn="focus-point-container--PCOnnfwBqK";function FocusPointOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FocusPointOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Sn,En,Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn,Zn,Xn,ei,si,_i,Ri=Object(st.b)((Qt=class extends ot.a.Component{get confirmDisabled(){const{resourceStore:{data:{focusPointX:ce,focusPointY:ze}}}=this.props;return this.focusPointX===ce&&this.focusPointY===ze}constructor(ce){super(ce),FocusPointOverlay_initializerDefineProperty(this,"focusPointX",en,this),FocusPointOverlay_initializerDefineProperty(this,"focusPointY",rn,this),FocusPointOverlay_initializerDefineProperty(this,"resourceStore",ln,this),FocusPointOverlay_initializerDefineProperty(this,"updateFocusPoint",mn,this),this.handleClose=()=>{this.props.onClose()},this.handleConfirm=()=>{const{resourceStore:ce}=this;if(!ce)throw new Error("There is no resourceStore defined! This should not happen and is likely a bug.");ce.change("focusPointX",this.focusPointX),ce.change("focusPointY",this.focusPointY),ce.save().then((()=>{this.props.resourceStore.set("focusPointX",this.focusPointX),this.props.resourceStore.set("focusPointY",this.focusPointY),this.props.onConfirm()}))},FocusPointOverlay_initializerDefineProperty(this,"handleFocusPointChange",gn,this),this.updateFocusPoint()}componentDidUpdate(ce){!ce.open&&this.props.open&&(this.resourceStore=this.props.resourceStore.clone(),this.updateFocusPoint()),ce.open&&!this.props.open&&this.resourceStore&&(this.resourceStore.destroy(),this.resourceStore=void 0)}render(){const{open:ce}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.confirmDisabled,confirmLoading:!!this.resourceStore&&this.resourceStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:ce,size:"large",title:Object(bt.translate)("sulu_media.set_focus_point")},ot.a.createElement("div",{className:Cn},!!this.resourceStore&&ot.a.createElement(wn,{image:this.resourceStore.data.adminUrl?this.resourceStore.data.adminUrl:this.resourceStore.data.url,onChange:this.handleFocusPointChange,value:{x:this.focusPointX,y:this.focusPointY}})))}},en=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointX",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointY",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"resourceStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"confirmDisabled",[mt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"confirmDisabled"),Qt.prototype),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"componentDidUpdate"),Qt.prototype),mn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"updateFocusPoint",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceStore:ce}=this.props,{focusPointX:ze=1,focusPointY:Ve=1}=ce.data;this.focusPointX=ze,this.focusPointY=Ve}}}),gn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"handleFocusPointChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.focusPointX=ce.x,this.focusPointY=ce.y}}}),Jt=Qt))||Jt,Ci="buttons--J8ESgl4tWt";function MediaVersionUpload_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaVersionUpload_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Di=Object(st.b)((En=class extends ot.a.Component{constructor(ce){super(ce),MediaVersionUpload_initializerDefineProperty(this,"showFocusPointOverlay",Tn,this),MediaVersionUpload_initializerDefineProperty(this,"showCropOverlay",Ln,this),MediaVersionUpload_initializerDefineProperty(this,"showDeletePreviewDialog",Fn,this),MediaVersionUpload_initializerDefineProperty(this,"deletingPreview",Yn,this),this.handleUploadComplete=ce=>{this.props.resourceStore.setMultiple(ce),this.callSuccess()},this.handlePreviewUploadClick=ce=>{this.mediaUploadStore.updatePreviewImage(ce).then(this.callSuccess)},MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewClick",Un,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewConfirm",Gn,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewCancel",Kn,this),this.callSuccess=()=>{const{onSuccess:ce}=this.props;ce&&ce()},MediaVersionUpload_initializerDefineProperty(this,"handleCropButtonClick",Jn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayClose",Zn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayConfirm",Xn,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointButtonClick",ei,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayClose",si,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayConfirm",_i,this);const{resourceStore:ze}=this.props,Ve=ze.locale;if(!Ve)throw new Error("The resourceStore for the MediaVersionUpload must have a locale");Object(mt.when)((()=>!ze.loading),(()=>{this.mediaUploadStore=new vt.a(ze.data,Ve)}))}render(){if(!this.mediaUploadStore)return null;const{resourceStore:ce}=this.props,{data:{adminUrl:ze,previewImageId:Ve,isImage:qe,url:Ye},id:We,locale:Qe}=ce;if(!We)return null;if(!Qe)throw new Error('The "MediaVersionUpload" field type only works with a locale!');return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(wt,{deletable:!1,downloadable:!1,imageSize:"sulu-400x400-inset",mediaUploadStore:this.mediaUploadStore,onUploadComplete:this.handleUploadComplete,uploadText:Object(bt.translate)("sulu_media.upload_new_version")}),ot.a.createElement("div",{className:Ci},qe&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.Button,{icon:"su-focus",onClick:this.handleFocusPointButtonClick,skin:"link"},Object(bt.translate)("sulu_media.set_focus_point")),ot.a.createElement(gt.Button,{icon:"su-cut",onClick:this.handleCropButtonClick,skin:"link"},Object(bt.translate)("sulu_media.define_crops"))),!qe&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.FileUploadButton,{icon:"su-image",onUpload:this.handlePreviewUploadClick,skin:"link"},Object(bt.translate)("sulu_media.upload_preview_image")),ot.a.createElement(gt.Button,{disabled:!Ve,icon:"su-trash-alt",onClick:this.handleDeletePreviewClick,skin:"link"},Object(bt.translate)("sulu_media.delete_preview_image")))),ot.a.createElement(Ri,{onClose:this.handleFocusPointOverlayClose,onConfirm:this.handleFocusPointOverlayConfirm,open:this.showFocusPointOverlay,resourceStore:ce}),ot.a.createElement(bn,{id:We,image:ze||Ye,locale:Qe.get(),onClose:this.handleCropOverlayClose,onConfirm:this.handleCropOverlayConfirm,open:this.showCropOverlay}),ot.a.createElement(gt.Dialog,{cancelText:Object(bt.translate)("sulu_admin.cancel"),confirmLoading:this.deletingPreview,confirmText:Object(bt.translate)("sulu_admin.ok"),onCancel:this.handleDeletePreviewCancel,onConfirm:this.handleDeletePreviewConfirm,open:this.showDeletePreviewDialog,title:Object(bt.translate)("sulu_media.delete_preview_image_warning_title")},Object(bt.translate)("sulu_media.delete_preview_image_warning_text")))}},Tn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showFocusPointOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ln=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showCropOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showDeletePreviewDialog",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"deletingPreview",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Un=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!0}}}),Gn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deletingPreview=!0,this.mediaUploadStore.deletePreviewImage().then(Object(mt.action)((()=>{this.deletingPreview=!1,this.showDeletePreviewDialog=!1,this.callSuccess()})))}}}),Kn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewCancel",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!1}}}),Jn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!0}}}),Zn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1}}}),Xn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1,this.callSuccess()}}}),ei=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!0}}}),si=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1}}}),_i=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1,this.callSuccess()}}}),Sn=En))||Sn;ze.default=Di},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(3),Ye=Ve(1),We=Ve(5),Qe=Ve.n(We),Xe=Ve(0),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st),gt=Ve(502),yt=(Ve(352),gt.default),bt=Ve(217),vt=Ve(47),wt=Ve(200),Ct=(Ve(96),Ve(27)),Dt=Ve(539).default,kt=Ve(793).default,St=Ve(617),xt=Ve(202);Ve(441),Ve(230);var Et=St.default,Pt=Ve(618),Tt=(Ve(436),Ve(786),Pt.default);Ve(279);var Lt,Ft,Bt,Vt,Ht=Ve(619).default,Ut=(Ve(803),Ve(621).default),Wt=Ve(455),Jt=Ve(255),Qt={loader:"loader--y8-9qdEcv1",root:"root--ndwWFpufaW",visible:"visible--52gh7fB4vn","navigation-visible":"navigation-visible--FG+c3T2PuS",navigationVisible:"navigation-visible--FG+c3T2PuS",content:"content--SL6jyXNyDT","with-pinned-navigation":"with-pinned-navigation--TxNlrp0NHA",withPinnedNavigation:"with-pinned-navigation--TxNlrp0NHA","with-sidebar":"with-sidebar--b0ksAB552Q",withSidebar:"with-sidebar--b0ksAB552Q","view-container":"view-container--WXXFgJ0OJc",viewContainer:"view-container--WXXFgJ0OJc",main:"main--XUnDr5av2Y",sidebar:"sidebar--EmDUwvVe2c",small:"small--tgNhccNnc6",medium:"medium--AiPe0XX8oB",large:"large--Af-nEi2iC2",snackbar:"snackbar--YooL2nT3tG",isNavigationVisible:"isNavigationVisible--n0Zsi9OEsQ",isNavigationPinned:"isNavigationPinned---PdrXYzpw2",navigation:"navigation--v6IVfnigCS"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const en="sulu_admin.application.navigation_pinned";let rn=Object(qe.b)((Ft=class extends ot.a.Component{openProfileFormOverlay(){this.openedProfileFormOverlay=!0}closeProfileFormOverlay(){this.openedProfileFormOverlay=!1}get navigationPinned(){return"pinned"===this.navigationState}get navigationVisible(){return this.navigationPinned||"visible"===this.navigationState}setNavigationState(ce){this.navigationState=ce}set navigationPinned(ce){this.setNavigationState(ce?"pinned":"hidden")}set navigationVisible(ce){this.navigationPinned?mt.a.warn("Changing the visibility of the navigation is not allowed while navigation is pinned!"):this.setNavigationState(ce?"visible":"hidden")}constructor(ce){super(ce),_initializerDefineProperty(this,"openedProfileFormOverlay",Bt,this),_initializerDefineProperty(this,"navigationState",Vt,this),this.handleNavigationButtonClick=()=>{this.toggleNavigation()},this.handlePinToggle=()=>{this.toggleNavigationPinned()},this.handleNavigate=()=>{this.navigationPinned||this.toggleNavigation()},this.handleLoginSuccess=()=>{this.props.router.reload()},this.handleLogout=()=>{Ct.a.logout().then((()=>{this.navigationVisible&&!this.navigationPinned&&this.toggleNavigation()}))},this.handleProfileOverlayClose=()=>{this.closeProfileFormOverlay()},this.handleProfileEditClick=()=>{this.openProfileFormOverlay()},this.navigationPinnedDisposer=Object(Ye.autorun)((()=>this.navigationPinned=Ct.a.getPersistentSetting(en)))}componentWillUnmount(){this.navigationPinnedDisposer()}toggleNavigation(){this.navigationVisible=!this.navigationVisible}toggleNavigationPinned(){this.navigationPinned=!this.navigationPinned,Ct.a.setPersistentSetting(en,this.navigationPinned)}render(){const{appVersion:ce,router:ze,suluVersion:Ve}=this.props,{loggedIn:qe}=Ct.a,Ye=Qe()(Qt.root,{[Qt.visible]:qe,[Qt.navigationVisible]:this.navigationVisible,[Qt.navigationPinned]:this.navigationPinned}),We=Qe()(Qt.sidebar,{[Qt[xt.a.size]]:xt.a.size}),st=Qe()(Qt.snackbar,{[Qt.isNavigationVisible]:this.navigationVisible,[Qt.isNavigationPinned]:this.navigationPinned,[Qt[xt.a.size]]:xt.a.size}),mt=Qe()(Qt.content,{[Qt.withSidebar]:xt.a.view,[Qt.withPinnedNavigation]:this.navigationPinned});return ot.a.createElement(Xe.Fragment,null,!qe&&ot.a.createElement(Dt,{backLink:"/",initialized:!wt.a.loading&&!!wt.a.initializedTranslationsLocale,onLoginSuccess:this.handleLoginSuccess,router:ze}),wt.a.initialized&&wt.a.initializedTranslationsLocale?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("div",{className:Ye},ot.a.createElement("nav",{className:Qt.navigation},ot.a.createElement(yt,{appVersion:ce,onLogout:this.handleLogout,onNavigate:this.handleNavigate,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.navigationPinned,router:ze,suluVersion:Ve})),ot.a.createElement("div",{className:mt},ot.a.createElement("main",{className:Qt.main},ot.a.createElement("div",{className:Qt.viewContainer},ze.route&&ot.a.createElement(Ht,{router:ze})),ot.a.createElement("header",null,ot.a.createElement(Tt,{navigationOpen:this.navigationVisible,onNavigationButtonClick:this.navigationPinned?void 0:this.handleNavigationButtonClick}))),ot.a.createElement(Et,{className:We}),this.navigationVisible&&!this.navigationPinned&&ot.a.createElement(bt.a,{fixed:!1,onClick:this.handleNavigationButtonClick,visible:!1}))),ot.a.createElement(kt,{onClose:this.handleProfileOverlayClose,open:this.openedProfileFormOverlay}),Wt.a.messages.length?ot.a.createElement(Ut,{className:st},Wt.a.messages.map(((ce,ze)=>ot.a.createElement(Jt.a,{icon:ce.icon,key:ze,message:ce.text,skin:"floating",type:ce.type})))):null):ot.a.createElement("div",{className:Qt.loader},ot.a.createElement(vt.a,null)))}},Bt=_applyDecoratedDescriptor(Ft.prototype,"openedProfileFormOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ft.prototype,"openProfileFormOverlay",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openProfileFormOverlay"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"closeProfileFormOverlay",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeProfileFormOverlay"),Ft.prototype),Vt=_applyDecoratedDescriptor(Ft.prototype,"navigationState",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ft.prototype,"navigationPinned",[Ye.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationPinned"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"navigationVisible",[Ye.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationVisible"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"setNavigationState",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"setNavigationState"),Ft.prototype),Lt=Ft))||Lt;ze.default=rn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(3),mt=Ve(1),gt=Ve(5),yt=Ve.n(gt),bt=Ve(569).default,vt=Ve(51),wt=Ve.n(vt),Ct=Ve(7),Dt=Ve(133),kt=Ve.n(Dt),St="image-renderer--68AwrvlUdt",xt="image-renderer-wrapper--Gr2Q3kdl5+",Et="image--0YgULR9iGv";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.imageWrapperRef=ce},this.handleSelectionChange=ce=>{const{onSelectionChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.getCommonSelectionProps=(ce,ze)=>{const{disabled:Ve,onFinish:qe,selectedIndex:Ye}=this.props,We=Object.entries(ce.hotspot).filter((ce=>{let[ze]=ce;return"type"!==ze})),Qe=0!==We.length?Object.fromEntries(We):void 0;return{containerHeight:this.imageWrapperSize.height,containerWidth:this.imageWrapperSize.width,disabled:Ve||ze!==Ye,key:ze,label:(ze+1).toString(),onChange:this.handleSelectionChange,onFinish:qe,usePercentageValues:!0,round:!1,value:Qe}},this.renderCircleSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!0,skin:"outlined"})),this.renderPointSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!1,skin:"filled"})),this.renderRectangleSelection=(ce,ze)=>ot.a.createElement(Ct.RectangleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{backdrop:!1,minSizeNotification:!1}))}componentDidMount(){this.setImageWrapperSize();const ce=new ResizeObserver(wt()((()=>{this.setImageWrapperSize()}),200));this.imageWrapperRef&&ce.observe(this.imageWrapperRef)}get imageUrl(){const{value:{imageId:ce},locale:ze}=this.props;if(ce)return kt.a.generate("sulu_media.redirect",{id:ce,locale:ze.get()})}get sortedHotspots(){const{value:ce,selectedIndex:ze}=this.props,Ve=Array.from(Object(mt.toJS)(ce.hotspots).entries());return Ve.sort(((ce,Ve)=>{let[qe]=ce,[Ye]=Ve;return qe===ze?1:Ye===ze?-1:0})),Ve}render(){const{imageUrl:ce}=this;return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:xt,ref:this.setImageWrapperRef},ce&&ot.a.createElement("img",{className:Et,key:ce,src:ce}),this.sortedHotspots.map((ce=>{let[ze,Ve]=ce;switch(Ve.hotspot.type){case"circle":return this.renderCircleSelection(Ve,ze);case"point":return this.renderPointSelection(Ve,ze);case"rectangle":return this.renderRectangleSelection(Ve,ze);default:throw new Error(`Unexpected hotspot type "${Ve.hotspot.type}".`)}}))))}},We=_applyDecoratedDescriptor(Ye.prototype,"imageWrapperSize",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{width:0,height:0}}}),_applyDecoratedDescriptor(Ye.prototype,"imageUrl",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"imageUrl"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"setImageWrapperSize",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.imageWrapperRef)return;const{width:ce,height:ze}=this.imageWrapperRef.getBoundingClientRect();this.imageWrapperSize={width:ce,height:ze}}}}),_applyDecoratedDescriptor(Ye.prototype,"sortedHotspots",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"sortedHotspots"),Ye.prototype),qe=Ye))||qe;var Tt=Pt,Lt=Ve(6),Ft="button--AcwCoOucCr";class Bt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()}}render(){const{disabled:ce,icon:ze}=this.props;return ot.a.createElement("button",{className:Ft,disabled:ce,onClick:this.handleClick,type:"button"},ot.a.createElement(Ct.Icon,{name:ze}))}}Bt.defaultProps={disabled:!1};var Vt,Ht,Ut=Bt,Wt="hotspots-form-renderer--HndG2F6JNv",Jt="toolbar--wmOWTuh49X",Qt="empty-tabs-label--82JTk6SWUu",en="tabs--HNDgqf5g83",rn="content--kGwHYXeaI3",ln="settings--P1acmiK6Xv",mn="form--yMXe3A13mS",gn="remove-button--lV+5Y6QqY5";const bn={circle:"sulu_media.circle",point:"sulu_media.point",rectangle:"sulu_media.rectangle"};let wn=Object(st.b)((Ht=class extends ot.a.Component{constructor(){super(...arguments),this.handleTypeChange=ce=>{const{onTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotTypeChange=ce=>{const{onHotspotTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotRemove=()=>{const{onHotspotRemove:ce,selectedIndex:ze}=this.props;ce(ze)}}get selectedHotspot(){const{value:ce,selectedIndex:ze}=this.props;return ce[ze]}render(){const{children:ce,disabled:ze,onHotspotAdd:Ve,onHotspotSelect:qe,selectedIndex:Ye,types:We,value:Qe}=this.props;return ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{label:Object(Lt.translate)("sulu_media.hotspots")},ot.a.createElement("div",{className:Wt},ot.a.createElement("div",{className:Jt},ot.a.createElement(Ut,{disabled:ze,icon:"su-plus-circle",onClick:Ve}),!Qe.length&&ot.a.createElement("div",{className:Qt},Object(Lt.translate)("sulu_media.add_hotspot")),ot.a.createElement(Ct.Tabs,{className:en,onSelect:qe,selectedIndex:Ye,type:"inline"},Qe.map(((ce,ze)=>ot.a.createElement(Ct.Tabs.Tab,{key:ze},"#"+(ze+1)))))),!!Qe.length&&ot.a.createElement("div",{className:rn},ot.a.createElement("div",{className:ln},ot.a.createElement("div",{className:mn},ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.hotspot_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleHotspotTypeChange,value:this.selectedHotspot.hotspot&&this.selectedHotspot.hotspot.type},Object.keys(bn).map((ce=>ot.a.createElement(Ct.SingleSelect.Option,{key:ce,value:ce},Object(Lt.translate)(bn[ce])))))),Object.keys(We).length>1&&ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.form_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleTypeChange,value:this.selectedHotspot.type},Object.entries(We).map((ce=>{let[ze,Ve]=ce;return ot.a.createElement(Ct.SingleSelect.Option,{key:ze,value:ze},Ve)})))))),ot.a.createElement("button",{className:gn,disabled:ze,onClick:this.handleHotspotRemove,type:"button"},ot.a.createElement(Ct.Icon,{name:"su-trash-alt"}))),ce))))}},function HotspotsFormRenderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Ht.prototype,"selectedHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"selectedHotspot"),Ht.prototype),Vt=Ht))||Vt;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Gn=wn,Kn="single-item-selection--UPGv3XeeIM",Jn="image-map--2tJqq4h9fJ",Zn="error--gdABpmMvk1",Xn="form--QDp77sKwGO";function ImageMap_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ImageMap_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ei=["image"];let si=Object(st.b)((Un=class extends ot.a.Component{constructor(){super(...arguments),ImageMap_initializerDefineProperty(this,"selectedIndex",En,this),ImageMap_initializerDefineProperty(this,"imageValue",Tn,this),this.handleFinish=()=>{const{onFinish:ce}=this.props;ce&&ce()},this.handleImageChange=ce=>{let{id:ze}=ce;const{onChange:Ve}=this.props;Ve({imageId:ze,hotspots:[]}),this.handleFinish()},this.handleSelectionChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].hotspot={...Ye[ce].hotspot,...ze},Ve({...qe,hotspots:Ye})},this.handleHotspotTypeChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].hotspot={type:ze},Ve({...qe,hotspots:Ye}),this.handleFinish()},this.handleTypeChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].type=ze,Ve({...qe,hotspots:Ye}),this.handleFinish()},ImageMap_initializerDefineProperty(this,"handleHotspotRemove",Ln,this),ImageMap_initializerDefineProperty(this,"handleHotspotSelect",Fn,this),this.getDefaultHotspotData=()=>{const{defaultFormType:ce}=this.props;return{hotspot:{type:"point"},type:ce}},ImageMap_initializerDefineProperty(this,"handleHotspotAdd",Yn,this)}componentDidMount(){const{value:{imageId:ce},types:ze}=this.props;if(this.imageValue={displayOption:void 0,id:ce},0===Object.keys(ze).length)throw new Error("There needs to be at least one form type specified!")}componentDidUpdate(){const{value:{imageId:ce}}=this.props;this.imageValue.id!==ce&&(this.imageValue={displayOption:void 0,id:ce})}get currentHotspot(){const{value:ce}=this.props;return ce.hotspots.length?ce.hotspots[this.selectedIndex]:void 0}render(){const{disabled:ce,locale:ze,onFinish:Ve,renderHotspotForm:qe,types:Ye,valid:We,value:Qe}=this.props,st=yt()(Jn,{[Zn]:!We});return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(bt,{className:!!Qe.imageId&&Kn||void 0,disabled:ce,locale:ze,onChange:this.handleImageChange,types:ei,valid:We,value:this.imageValue}),!!Qe.imageId&&ot.a.createElement("div",{className:st},ot.a.createElement(Tt,{disabled:ce,locale:ze,onFinish:Ve,onSelectionChange:this.handleSelectionChange,selectedIndex:this.selectedIndex,value:Qe}),ot.a.createElement("div",{className:Xn},ot.a.createElement(Gn,{disabled:ce,onHotspotAdd:this.handleHotspotAdd,onHotspotRemove:this.handleHotspotRemove,onHotspotSelect:this.handleHotspotSelect,onHotspotTypeChange:this.handleHotspotTypeChange,onTypeChange:this.handleTypeChange,selectedIndex:this.selectedIndex,types:Ye,value:Qe.hotspots},this.currentHotspot?qe(this.currentHotspot,this.currentHotspot.type,this.selectedIndex):null))))}},Un.defaultProps={disabled:!1,valid:!0,value:{imageId:void 0,hotspots:[]}},En=ImageMap_applyDecoratedDescriptor((Sn=Un).prototype,"selectedIndex",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"imageValue",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{displayOption:void 0,id:void 0}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidMount"),Sn.prototype),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Ln=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotRemove",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,hotspots:Object(mt.toJS)(Ve.hotspots).filter(((ze,Ve)=>Ve!==ce))}),this.handleFinish(),this.selectedIndex=Math.max(0,this.selectedIndex-1)}}}),Fn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotSelect",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedIndex=ce}}}),Yn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotAdd",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,value:ze}=this.props;ce({...ze,hotspots:[...ze.hotspots,this.getDefaultHotspotData()]}),this.handleFinish(),this.selectedIndex=ze.hotspots.length}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"currentHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"currentHotspot"),Sn.prototype),Cn=Sn))||Cn;ze.default=si},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(7),bt=Ve(30),vt=Ve(6),wt=Ve(28),Ct=Ve.n(wt);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Dt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"query",Ye,this),_initializerDefineProperty(this,"indexName",We,this),_initializerDefineProperty(this,"result",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),Object(mt.autorun)((()=>{this.query?(this.setLoading(!0),bt.c.getList("search",{q:this.query,index:this.indexName}).then(Object(mt.action)((ce=>{this.setLoading(!1),this.result=ce._embedded.result})))):this.resetResults()}))}search(ce,ze){this.query=ce,this.indexName=ze}resetResults(){this.result.splice(0,this.result.length)}setLoading(ce){this.loading=ce}}).prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),We=_applyDecoratedDescriptor(qe.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"result",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"search",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"search"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"resetResults",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"resetResults"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);var kt,St,xt,Et,Pt,Tt,Lt,Ft=new class{clear(){this.indexPromise=void 0}sendRequest(){return this.indexPromise||(this.indexPromise=bt.c.getList("search_indexes")),this.indexPromise}loadIndexes(){return this.sendRequest().then((ce=>ce._embedded.search_indexes))}},Bt="search-field--lVAKEYrvC-",Vt="index-button--hm24MCp1d3",Ht="index--inag7LZj5+",Ut="input-container--k-aSgfG8PL",Wt="input--bKQbjEVO3w",Jt="clear-icon--HZJxCClRSS",Qt="search-icon--KNlhoQQlVq",en="hint--8j1bJ+5Q+B";function SearchField_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SearchField_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let rn=Object(gt.b)((Lt=class extends st.a.Component{constructor(){super(...arguments),SearchField_initializerDefineProperty(this,"showIndexes",xt,this),SearchField_initializerDefineProperty(this,"handleIndexClick",Et,this),SearchField_initializerDefineProperty(this,"handleIndexClose",Pt,this),SearchField_initializerDefineProperty(this,"handleIndexChange",Tt,this),this.handleQueryChange=ce=>{const{onQueryChange:ze}=this.props;ze(ce.currentTarget.value)},this.handleQueryKeyPress=ce=>{if("Enter"===ce.key){const{onSearch:ce}=this.props;ce()}},this.handleClearClick=()=>{const{onQueryChange:ce,onSearch:ze}=this.props;ce(void 0),ze()}}get allIndexes(){const{indexes:ce}=this.props;if(ce)return Object.values(ce)}get index(){const{indexName:ce,indexes:ze}=this.props;if(ce&&ze)return ze[ce]}render(){const{onSearch:ce,query:ze}=this.props,Ve=Object(vt.translate)("sulu_search.everything");return st.a.createElement(ot.Fragment,null,st.a.createElement("div",{className:Bt},st.a.createElement(yt.ArrowMenu,{anchorElement:st.a.createElement("button",{className:Vt,onClick:this.handleIndexClick,type:"button"},st.a.createElement("span",{className:Ht},this.index?this.index.name:Ve),st.a.createElement(yt.Icon,{name:"su-angle-down"})),onClose:this.handleIndexClose,open:this.showIndexes},st.a.createElement(yt.ArrowMenu.SingleItemSection,{onChange:this.handleIndexChange,value:this.index?this.index.indexName:void 0},st.a.createElement(yt.ArrowMenu.Item,{value:void 0},Ve),this.allIndexes?this.allIndexes.map((ce=>st.a.createElement(yt.ArrowMenu.Item,{key:ce.indexName,value:ce.indexName},ce.name))):[])),st.a.createElement("div",{className:Ut},st.a.createElement("input",{autoFocus:!0,className:Wt,onChange:this.handleQueryChange,onKeyPress:this.handleQueryKeyPress,value:ze}),ze&&st.a.createElement(yt.Icon,{className:Jt,name:"su-times",onClick:this.handleClearClick}),st.a.createElement(yt.Icon,{className:Qt,name:"su-search",onClick:ce}))),st.a.createElement("p",{className:en},Object(vt.translate)("sulu_search.search_hint")))}},Lt.defaultProps={query:""},xt=SearchField_applyDecoratedDescriptor((St=Lt).prototype,"showIndexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SearchField_applyDecoratedDescriptor(St.prototype,"allIndexes",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"allIndexes"),St.prototype),SearchField_applyDecoratedDescriptor(St.prototype,"index",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"index"),St.prototype),Et=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!0}}}),Pt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!1}}}),Tt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onIndexChange:ze,onSearch:Ve}=this.props;this.showIndexes=!1,ze(ce),Ve()}}}),kt=St))||kt;var ln=rn,mn=Ve(399),gn=Ve.n(mn),bn="search-result--6JRB6QWb9f",wn="image-container--ME4qdEj4jT",Cn="image--oGJMeQIWRR",Sn="icon--hT3d4p95wt",En="result-container--6vhfa+BKE9",Tn="resource--hd6mFCVdzo",Ln="title-container--+Ba+2tfuen",Fn="title--bce-XaFMhM",Yn="locale--6D6kU2-BYR",Un="description--qCt7RloB3N";class Gn extends st.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{description:ce,icon:ze,image:Ve,locale:qe,resource:Ye,title:We}=this.props;return st.a.createElement("div",{className:bn,onClick:this.handleClick,role:"button"},st.a.createElement("div",{className:wn},Ve&&st.a.createElement("img",{className:Cn,src:Ve}),!Ve&&ze&&st.a.createElement("div",{className:Sn},st.a.createElement(yt.Icon,{name:ze}))),st.a.createElement("div",{className:En},Ye&&st.a.createElement("div",{className:Tn},Ye),st.a.createElement("div",{className:Ln},st.a.createElement("div",{className:Fn},We),qe&&st.a.createElement("div",{className:Yn}," (",qe,")")),ce&&st.a.createElement("div",{className:Un},gn()(ce))))}}var Kn,Jn,Zn,Xn,ei,si,_i,Ri="search--9AQX9ecm8S",Ci="nothing-hint--EJ+gaLffs8",Di="nothing-icon--HtisG9XvqW";function Search_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Search_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ei=Object(gt.b)((Jn=class extends st.a.Component{constructor(){super(...arguments),Search_initializerDefineProperty(this,"query",Zn,this),Search_initializerDefineProperty(this,"indexes",Xn,this),Search_initializerDefineProperty(this,"indexName",ei,this),Search_initializerDefineProperty(this,"handleIndexChange",si,this),Search_initializerDefineProperty(this,"handleQueryChange",_i,this),this.handleSearch=()=>{Dt.search(this.query,this.indexName)},this.handleResultClick=ce=>{if(!this.indexes)throw new Error("The indexes must be available to route to a search result! This should not happen and is likely a bug.");const ze=Dt.result[ce],{route:{name:Ve,resultToRoute:qe}}=this.indexes[ze.document.index],{router:Ye}=this.props;Ye.navigate(Ve,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=Ct.a.get(ze.document,"/"+Ve),ce)),{}))}}componentDidMount(){this.query=Dt.query,this.indexName=Dt.indexName,Ft.loadIndexes().then(Object(mt.action)((ce=>{this.indexes=ce.reduce(((ce,ze)=>(ce[ze.indexName]=ze,ce)),{})})))}render(){const{indexes:ce}=this;return ce?st.a.createElement("div",{className:Ri},st.a.createElement(ln,{indexes:ce,indexName:this.indexName,onIndexChange:this.handleIndexChange,onQueryChange:this.handleQueryChange,onSearch:this.handleSearch,query:this.query||void 0}),Dt.loading&&st.a.createElement(yt.Loader,null),!Dt.loading&&Dt.query&&0===Dt.result.length&&st.a.createElement("div",{className:Ci},st.a.createElement("div",{className:Di},st.a.createElement(yt.Icon,{name:"su-battery-low"})),Object(vt.translate)("sulu_search.nothing_found")),!Dt.loading&&Dt.result.length>0&&Dt.result.map(((ze,Ve)=>st.a.createElement(Gn,{description:ze.document.description,icon:ce[ze.document.index].icon,image:ze.document.imageUrl,index:Ve,key:ze.document.index+"_"+ze.document.id+"_"+ze.document.locale,locale:ze.document.locale,onClick:this.handleResultClick,resource:ce[ze.document.index]?ce[ze.document.index].name:"",title:ze.document.title})))):st.a.createElement(yt.Loader,null)}},Zn=Search_applyDecoratedDescriptor(Jn.prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xn=Search_applyDecoratedDescriptor(Jn.prototype,"indexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ei=Search_applyDecoratedDescriptor(Jn.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Search_applyDecoratedDescriptor(Jn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Jn.prototype,"componentDidMount"),Jn.prototype),si=Search_applyDecoratedDescriptor(Jn.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.indexName=ce}}}),_i=Search_applyDecoratedDescriptor(Jn.prototype,"handleQueryChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Kn=Jn))||Kn;ze.default=Ei},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(0),Xe=Ve.n(Qe),ot=Ve(1),st=Ve(3),mt=Ve(7),gt=Ve(6),yt="field--78188N2u-b",bt="remove-icon--u6Q3XIYX5F";class vt extends Xe.a.Component{constructor(){super(...arguments),this.handleRemove=()=>{const{index:ce,onRemove:ze}=this.props;ze(ce)},this.handleTypeChange=ce=>{const{index:ze,onTypeChange:Ve}=this.props;Ve(ze,ce)}}render(){const{children:ce,label:ze,type:Ve,types:qe}=this.props;return Xe.a.createElement(mt.Form.Field,{colSpan:6,label:ze,onTypeChange:this.handleTypeChange,type:Ve,types:qe},Xe.a.createElement("div",{className:yt},ce,Xe.a.createElement(mt.Icon,{className:bt,name:"su-trash-alt",onClick:this.handleRemove})))}}class wt extends Xe.a.Component{constructor(){super(...arguments),this.handleEmailChange=ce=>{const{index:ze,onEmailChange:Ve}=this.props;Ve(ze,ce)}}render(){const{email:ce,index:ze,onBlur:Ve,onRemove:qe,onTypeChange:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.email"),onRemove:qe,onTypeChange:Ye,type:We,types:wt.types},Xe.a.createElement(mt.Email,{onBlur:Ve,onChange:this.handleEmailChange,value:ce}))}}class Ct extends Xe.a.Component{constructor(){super(...arguments),this.handleFaxChange=ce=>{const{index:ze,onFaxChange:Ve}=this.props;Ve(ze,ce)}}render(){const{fax:ce,index:ze,onBlur:Ve,onRemove:qe,onTypeChange:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.fax"),onRemove:qe,onTypeChange:Ye,type:We,types:Ct.types},Xe.a.createElement(mt.Phone,{onBlur:Ve,onChange:this.handleFaxChange,value:ce}))}}class Dt extends Xe.a.Component{constructor(){super(...arguments),this.handlePhoneChange=ce=>{const{index:ze,onPhoneChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,phone:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.phone"),onRemove:Ve,onTypeChange:qe,type:We,types:Dt.types},Xe.a.createElement(mt.Phone,{onBlur:ze,onChange:this.handlePhoneChange,value:Ye}))}}class kt extends Xe.a.Component{constructor(){super(...arguments),this.handleInputChange=ce=>{const{index:ze,onUsernameChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,type:Ye,username:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.social_media"),onRemove:Ve,onTypeChange:qe,type:Ye,types:kt.types},Xe.a.createElement(mt.Input,{icon:"su-user",onBlur:ze,onChange:this.handleInputChange,value:We}))}}class St extends Xe.a.Component{constructor(){super(...arguments),this.handleUrlChange=ce=>{const{index:ze,onWebsiteChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,type:Ye,website:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.website"),onRemove:Ve,onTypeChange:qe,type:Ye,types:St.types},Xe.a.createElement(mt.Url,{onBlur:ze,onChange:this.handleUrlChange,value:We}))}}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let xt=Object(st.b)((We=class extends Xe.a.Component{constructor(){super(...arguments),this.addEntry=ce=>{const{onBlur:ze,onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:qe[ce].concat(this.getEmptyEntry(ce))}),ze()},this.handleEmailAddClick=()=>{this.addEntry("emails")},this.handlePhoneAddClick=()=>{this.addEntry("phones")},this.handleWebsiteAddClick=()=>{this.addEntry("websites")},this.handleFaxAddClick=()=>{this.addEntry("faxes")},this.handleSocialMediaAddClick=()=>{this.addEntry("socialMedia")},this.updateValue=(ce,ze,Ve,qe)=>{const{onChange:Ye,value:We}=this.props,Qe=Object(ot.toJS)(We),Xe=Qe[ce];void 0===Xe[ze]&&(Xe[ze]=this.getEmptyEntry(ce)),Xe[ze][Ve]=qe,Ye(Qe)},this.handleEmailChange=(ce,ze)=>{this.updateValue("emails",ce,"email",ze)},this.handlePhoneChange=(ce,ze)=>{this.updateValue("phones",ce,"phone",ze)},this.handleWebsiteChange=(ce,ze)=>{this.updateValue("websites",ce,"website",ze)},this.handleFaxChange=(ce,ze)=>{this.updateValue("faxes",ce,"fax",ze)},this.handleUsernameChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"username",ze)},this.removeEntry=(ce,ze)=>{const{onBlur:Ve,onChange:qe,value:Ye}=this.props;qe({...Ye,[ce]:Ye[ce].filter(((ce,Ve)=>Ve!==ze))}),Ve()},this.handleEmailRemove=ce=>{this.removeEntry("emails",ce)},this.handlePhoneRemove=ce=>{this.removeEntry("phones",ce)},this.handleWebsiteRemove=ce=>{this.removeEntry("websites",ce)},this.handleFaxRemove=ce=>{this.removeEntry("faxes",ce)},this.handleSocialMediaRemove=ce=>{this.removeEntry("socialMedia",ce)},this.handleEmailTypeChange=(ce,ze)=>{this.updateValue("emails",ce,"emailType",ze),this.props.onBlur()},this.handlePhoneTypeChange=(ce,ze)=>{this.updateValue("phones",ce,"phoneType",ze),this.props.onBlur()},this.handleWebsiteTypeChange=(ce,ze)=>{this.updateValue("websites",ce,"websiteType",ze),this.props.onBlur()},this.handleFaxTypeChange=(ce,ze)=>{this.updateValue("faxes",ce,"faxType",ze),this.props.onBlur()},this.handleSocialMediaTypeChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"socialMediaType",ze),this.props.onBlur()}}getEmptyEntry(ce){switch(ce){case"emails":return{email:void 0,emailType:wt.types[0].value};case"phones":return{phone:void 0,phoneType:Dt.types[0].value};case"websites":return{website:void 0,websiteType:St.types[0].value};case"faxes":return{fax:void 0,faxType:Ct.types[0].value};case"socialMedia":return{socialMediaType:kt.types[0].value,username:void 0}}}get emails(){const{value:{emails:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("emails")]:ce}get phones(){const{value:{phones:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("phones")]:ce}render(){const{onBlur:ce,value:ze}=this.props,{faxes:Ve,socialMedia:qe,websites:Ye}=ze;return Xe.a.createElement(mt.Form,null,this.emails.map(((ze,Ve)=>Xe.a.createElement(wt,{email:ze.email,index:Ve,key:Ve,onBlur:ce,onEmailChange:this.handleEmailChange,onRemove:this.handleEmailRemove,onTypeChange:this.handleEmailTypeChange,type:ze.emailType}))),this.phones.map(((ze,Ve)=>Xe.a.createElement(Dt,{index:Ve,key:Ve,onBlur:ce,onPhoneChange:this.handlePhoneChange,onRemove:this.handlePhoneRemove,onTypeChange:this.handlePhoneTypeChange,phone:ze.phone,type:ze.phoneType}))),Ve.map(((ze,Ve)=>Xe.a.createElement(Ct,{fax:ze.fax,index:Ve,key:Ve,onBlur:ce,onFaxChange:this.handleFaxChange,onRemove:this.handleFaxRemove,onTypeChange:this.handleFaxTypeChange,type:ze.faxType}))),Ye.map(((ze,Ve)=>Xe.a.createElement(St,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleWebsiteRemove,onTypeChange:this.handleWebsiteTypeChange,onWebsiteChange:this.handleWebsiteChange,type:ze.websiteType,website:ze.website}))),qe.map(((ze,Ve)=>Xe.a.createElement(kt,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleSocialMediaRemove,onTypeChange:this.handleSocialMediaTypeChange,onUsernameChange:this.handleUsernameChange,type:ze.socialMediaType,username:ze.username}))),Xe.a.createElement(mt.Form.Field,{colSpan:6,label:Object(gt.translate)("sulu_contact.contact_details")},Xe.a.createElement(mt.DropdownButton,{icon:"su-plus",label:Object(gt.translate)("sulu_admin.add")},Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleEmailAddClick},Object(gt.translate)("sulu_contact.email")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handlePhoneAddClick},Object(gt.translate)("sulu_contact.phone")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleFaxAddClick},Object(gt.translate)("sulu_contact.fax")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleWebsiteAddClick},Object(gt.translate)("sulu_contact.website")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleSocialMediaAddClick},Object(gt.translate)("sulu_contact.social_media")))))}},We.defaultProps={value:{emails:[],faxes:[],phones:[],socialMedia:[],websites:[]}},_applyDecoratedDescriptor((Ye=We).prototype,"emails",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"emails"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"phones",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"phones"),Ye.prototype),qe=Ye))||qe;ze.default=xt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(3),xt=Ve(51),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(7),Ft=Ve(34),Bt=Ve(30),Vt=Ve(76),Ht=Ve(6),Ut=Ve(454),Wt={container:"container--nXN0aRrl7B",auto:"auto--pHqGdJozG0",iframe:"iframe--LDzIFoQ-Wz",desktop:"desktop--g3pIaAI3pO",tablet:"tablet--74aAiCaJcN","iframe-container":"iframe-container--8jKNsHLx7I",iframeContainer:"iframe-container--8jKNsHLx7I",smartphone:"smartphone--TQYOwZd26q","preview-container":"preview-container--BpqSjJuvYl",previewContainer:"preview-container--BpqSjJuvYl","loader-container":"loader-container--1IHIWL0n-u",loaderContainer:"loader-container--1IHIWL0n-u","date-time-form":"date-time-form--oRzIF6mgXa",dateTimeForm:"date-time-form--oRzIF6mgXa"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const generateRoute=(ce,ze)=>Jt.endpoints[ce]+Object(Ht.buildQueryString)(ze);let Jt=((wt=class{constructor(ce,ze,Ve,qe,wt){_initializerDefineProperty(this,"locale",Ye,this),_initializerDefineProperty(this,"webspace",We,this),_initializerDefineProperty(this,"segment",Qe,this),_initializerDefineProperty(this,"targetGroup",Xe,this),_initializerDefineProperty(this,"dateTime",ot,this),_initializerDefineProperty(this,"token",st,this),_initializerDefineProperty(this,"setToken",mt,this),_initializerDefineProperty(this,"setWebspace",gt,this),_initializerDefineProperty(this,"setTargetGroup",yt,this),_initializerDefineProperty(this,"setSegment",bt,this),_initializerDefineProperty(this,"setDateTime",vt,this),"string"!=typeof Ve&&(Ve=Object(kt.toJS)(Ve)),this.resourceKey=ce,this.id=ze,this.locale=Ve,this.webspace=qe,this.segment=wt}get starting(){return!this.token}get renderRoute(){return generateRoute("render",{webspaceKey:this.webspace,segmentKey:this.segment,provider:this.resourceKey,id:this.id,locale:this.locale,token:this.token,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)})}start(){const ce=generateRoute("start",{provider:this.resourceKey,id:this.id,locale:this.locale});return Bt.b.post(ce).then((ce=>{this.setToken(ce.token)}))}restart(ce){return this.stop().then((()=>(ce&&(this.locale=ce),this.start())))}update(ce){const ze=generateRoute("update",{locale:this.locale,webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Bt.b.post(ze,{data:ce}).then((ce=>ce.content))}updateContext(ce,ze){const Ve=generateRoute("update-context",{webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,locale:this.locale,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Bt.b.post(Ve,{data:ze,context:{template:ce}}).then((ce=>ce.content))}stop(){const ce=generateRoute("stop",{token:this.token});return Bt.b.post(ce).then((()=>this.setToken(null)))}}).endpoints={},Ye=_applyDecoratedDescriptor((qe=wt).prototype,"locale",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"webspace",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"segment",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"targetGroup",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),ot=_applyDecoratedDescriptor(qe.prototype,"dateTime",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),st=_applyDecoratedDescriptor(qe.prototype,"token",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"starting",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"starting"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"renderRoute",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"renderRoute"),qe.prototype),mt=_applyDecoratedDescriptor(qe.prototype,"setToken",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.token=ce}}}),gt=_applyDecoratedDescriptor(qe.prototype,"setWebspace",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.webspace=ce}}}),yt=_applyDecoratedDescriptor(qe.prototype,"setTargetGroup",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.targetGroup=ce}}}),bt=_applyDecoratedDescriptor(qe.prototype,"setSegment",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.segment=ce}}}),vt=_applyDecoratedDescriptor(qe.prototype,"setDateTime",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dateTime=ce}}}),_applyDecoratedDescriptor(qe.prototype,"restart",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"restart"),qe.prototype),qe);var Qt,en,rn,ln,mn,gn,bn,wn,Cn=Ve(1092),Sn=Ve.n(Cn),En=Ve(40),Tn=Ve(289),Ln="container--eF0X8qTzGA",Fn="input-container--K61EGzqvhh",Yn="label--zoUOrPsyO3",Un="input--xgXFKONP45",Gn="copy-button--hFXs5EWvEZ",Kn="revoke--ndJ4keI6ql",Jn="revoke-button--M6aJfutraC";function PreviewLinkPopover_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PreviewLinkPopover_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Zn=Object(St.b)((en=class extends Dt.a.Component{constructor(){super(...arguments),PreviewLinkPopover_initializerDefineProperty(this,"previewLink",rn,this),PreviewLinkPopover_initializerDefineProperty(this,"loading",ln,this),PreviewLinkPopover_initializerDefineProperty(this,"generating",mn,this),PreviewLinkPopover_initializerDefineProperty(this,"copying",gn,this),PreviewLinkPopover_initializerDefineProperty(this,"handleGenerateClick",bn,this),this.handleRevokeClick=ce=>{ce.preventDefault();const{previewStore:ze}=this.props;Bt.c.post("preview_links",{},{action:"revoke",resourceKey:ze.resourceKey,resourceId:ze.id,locale:ze.locale}).then(Object(kt.action)((()=>{this.previewLink=null})))},PreviewLinkPopover_initializerDefineProperty(this,"handleCopyClick",wn,this)}componentDidMount(){this.loadPreviewLink()}loadPreviewLink(){const{previewStore:ce}=this.props;this.loading=!0,Bt.c.get("preview_links",{resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale}).then(Object(kt.action)((ce=>{this.previewLink=ce,this.loading=!1}))).catch(Object(kt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.loading=!1})))}get link(){return this.previewLink?Jt.endpoints["preview-link"].replace(":token",this.previewLink.token):""}render(){return this.loading?null:Dt.a.createElement("div",{className:Ln},this.previewLink&&Dt.a.createElement(Dt.a.Fragment,null,Dt.a.createElement("div",null,Dt.a.createElement("label",{className:Yn},Object(Ht.translate)("sulu_preview.copy_preview_link")),Dt.a.createElement("div",{className:Fn},Dt.a.createElement("input",{className:Un,readOnly:!0,value:this.link}),Dt.a.createElement(En.a,{className:Gn,loading:this.copying,onClick:this.handleCopyClick,skin:"primary"},Object(Ht.translate)("sulu_preview.copy")))),Dt.a.createElement("div",{className:Kn},Dt.a.createElement("button",{className:Jn,onClick:this.handleRevokeClick,type:"button"},Object(Ht.translate)("sulu_preview.revoke")))),!this.previewLink&&Dt.a.createElement(Dt.a.Fragment,null,Dt.a.createElement(En.a,{loading:this.generating,onClick:this.handleGenerateClick,skin:"primary"},Object(Ht.translate)("sulu_preview.generate_link"))))}},rn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"previewLink",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"loading",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"generating",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"copying",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"loadPreviewLink",[kt.action],Object.getOwnPropertyDescriptor(en.prototype,"loadPreviewLink"),en.prototype),bn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"handleGenerateClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{previewStore:ce}=this.props;this.generating=!0,Bt.c.post("preview_links",{},{action:"generate",resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale,webspaceKey:ce.webspace,segmentKey:ce.segment,targetGroupId:ce.targetGroup,dateTime:ce.dateTime&&Object(Tn.a)(ce.dateTime)}).then(Object(kt.action)((ce=>{this.previewLink=ce}))).finally(Object(kt.action)((()=>this.generating=!1)))}}}),wn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"handleCopyClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.copying=!0,setTimeout(Object(kt.action)((()=>this.copying=!1)),125),Sn()(this.link)}}}),PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"link",[kt.computed],Object.getOwnPropertyDescriptor(en.prototype,"link"),en.prototype),Qt=en))||Qt;var Xn,ei,si,_i,Ri,Ci,Di,Ei,Oi,Ti,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=Zn;function Preview_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Preview_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let vr=Object(St.b)(((ur=class ce extends Dt.a.Component{get webspaceKey(){const{router:{attributes:{webspace:ce}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "webspace" router attribute must be a string if set!');return ce||this.webspaceOptions[0].value}get segments(){return this.webspaceKey?Ut.a.getWebspace(this.webspaceKey).segments:[]}get shouldUpdateFormStore(){return this.props.formStore.resourceKey===this.previewStore.resourceKey}constructor(ze){super(ze),this.availableDeviceOptions=[{label:Object(Ht.translate)("sulu_preview.auto"),value:"auto"},{label:Object(Ht.translate)("sulu_preview.desktop"),value:"desktop"},{label:Object(Ht.translate)("sulu_preview.tablet"),value:"tablet"},{label:Object(Ht.translate)("sulu_preview.smartphone"),value:"smartphone"}],Preview_initializerDefineProperty(this,"iframeRef",si,this),Preview_initializerDefineProperty(this,"started",_i,this),Preview_initializerDefineProperty(this,"selectedDeviceOption",Ri,this),Preview_initializerDefineProperty(this,"targetGroupsStore",Ci,this),Preview_initializerDefineProperty(this,"previewStore",Di,this),Preview_initializerDefineProperty(this,"previewWindow",Ei,this),Preview_initializerDefineProperty(this,"webspaceOptions",Oi,this),Preview_initializerDefineProperty(this,"reloadCounter",Ti,this),Preview_initializerDefineProperty(this,"createPreviewStore",er,this),Preview_initializerDefineProperty(this,"setStarted",tr,this),this.startPreview=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.start(),Object(kt.when)((()=>!(ze.loading||ce.starting||null===this.iframeRef||this.targetGroupsStore&&this.targetGroupsStore.loading)),this.initializeFormStoreReactions),this.setStarted(!0)},this.initializeFormStoreReactions=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;this.localeDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.locale)),(ce=>{this.previewStore.restart(ce)})),ce.resourceKey===ze.resourceKey&&(this.dataDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.data)),(ce=>{(null!==this.iframeRef||this.previewWindow)&&this.updatePreview(ce)})),this.schemaDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.schema)),(()=>{ze.type&&ce.updateContext(Object(kt.toJS)(ze.type),Object(kt.toJS)(ze.data)).then(this.setContent)})))},this.updatePreview=Et()((ce=>{if(this.shouldUpdateFormStore&&this.previewStore.token){const{previewStore:ze}=this;ze.update(ce).then(this.setContent)}}),ce.debounceDelay),this.setContent=ce=>{const ze=this.getPreviewDocument();if(!ze)return;const Ve=this.getPreviewScrollPosition();ze.open(),ze.write(ce),ze.close(),Ve&&setTimeout((()=>this.setPreviewScrollPosition(Ve)),0)},this.getPreviewDocument=()=>this.previewWindow?this.previewWindow.document:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentDocument:void 0,this.getPreviewWindow=()=>this.previewWindow?this.previewWindow:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentWindow:void 0,this.getPreviewScrollPosition=()=>{const ce=this.getPreviewWindow();var ze,Ve,qe,Ye;if(ce)return(null===(ze=ce.document)||void 0===ze||null===(Ve=ze.documentElement)||void 0===Ve?void 0:Ve.scrollTop)||ce.pageYOffset||(null===(qe=ce.document)||void 0===qe||null===(Ye=qe.body)||void 0===Ye?void 0:Ye.scrollTop)},this.setPreviewScrollPosition=ce=>{const ze=this.getPreviewWindow();ze&&ze.scrollTo({top:ce})},Preview_initializerDefineProperty(this,"setIframe",nr,this),this.handleToggleSidebarClick=()=>{if("medium"===Ft.k.size)return Ft.k.setSize("large");Ft.k.setSize("medium")},Preview_initializerDefineProperty(this,"handleDeviceSelectChange",rr,this),Preview_initializerDefineProperty(this,"handleDateTimeChange",ar,this),Preview_initializerDefineProperty(this,"handleWebspaceChange",sr,this),this.handleTargetGroupChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setTargetGroup(ce),this.updatePreview(Object(kt.toJS)(ze.data))},this.handleSegmentChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setSegment(ce),this.updatePreview(Object(kt.toJS)(ze.data))},Preview_initializerDefineProperty(this,"handleRefreshClick",lr,this),this.handleStartClick=()=>{this.startPreview()},Preview_initializerDefineProperty(this,"handlePreviewWindowClick",dr,this),ce.audienceTargeting&&(this.targetGroupsStore=new Vt.b("target_groups")),this.webspaceOptions=Ut.a.grantedWebspaces.map((ce=>({label:ce.name,value:ce.key}))),this.createPreviewStore(),"auto"===ce.mode&&this.startPreview()}componentDidUpdate(ce){const{formStore:ze}=this.props;this.props.formStore!==ce.formStore&&(this.disposeFormStoreReactions(),this.updatePreview(Object(kt.toJS)(ze.data)),this.initializeFormStoreReactions())}componentWillUnmount(){this.disposeFormStoreReactions(),this.started&&(this.updatePreview.clear(),this.previewStore.stop())}disposeFormStoreReactions(){this.schemaDisposer&&this.schemaDisposer(),this.dataDisposer&&this.dataDisposer(),this.localeDisposer&&this.localeDisposer()}render(){var ze;const{router:Ve}=this.props,{previewWebspaceChooser:qe=!0}=Ve.route.options;if(this.previewWindow||this.targetGroupsStore&&this.targetGroupsStore.loading)return null;if("auto"!==ce.mode&&!this.started)return Dt.a.createElement("button",{onClick:this.handleStartClick,type:"button"},"Start");const Ye=Tt()(Wt.container,{[Wt[this.selectedDeviceOption]]:this.selectedDeviceOption});return Dt.a.createElement("div",{className:Ye},this.previewStore.starting?Dt.a.createElement("div",{className:Wt.loaderContainer},Dt.a.createElement(Lt.Loader,null)):Dt.a.createElement("div",{className:Wt.previewContainer},Dt.a.createElement("div",{className:Wt.iframeContainer},Dt.a.createElement("iframe",{className:Wt.iframe,key:this.reloadCounter,ref:this.setIframe,src:this.previewStore.renderRoute}))),Dt.a.createElement(Lt.Toolbar,{skin:"dark"},Dt.a.createElement(Lt.Toolbar.Controls,{grow:!0},Dt.a.createElement(Lt.Toolbar.Button,{icon:"medium"===Ft.k.size?"su-arrow-left":"su-arrow-right",onClick:this.handleToggleSidebarClick}),Dt.a.createElement(Lt.Toolbar.Items,null,Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-expand",onChange:this.handleDeviceSelectChange,options:this.availableDeviceOptions,value:this.selectedDeviceOption}),Dt.a.createElement(Lt.Toolbar.Popover,{icon:"su-calendar",label:((null===(ze=this.previewStore)||void 0===ze?void 0:ze.dateTime)||new Date).toLocaleString()},(()=>{var ce;return Dt.a.createElement("div",{className:Wt.dateTimeForm},Dt.a.createElement(Lt.Form,{skin:"dark"},Dt.a.createElement(Lt.Form.Field,{description:Object(Ht.translate)("sulu_admin.preview_date_time_description"),label:Object(Ht.translate)("sulu_admin.preview_date_time")},Dt.a.createElement(Lt.DatePicker,{onChange:this.handleDateTimeChange,options:{dateFormat:!0,timeFormat:!0},value:null===(ce=this.previewStore)||void 0===ce?void 0:ce.dateTime}))))})),qe&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-webspace",onChange:this.handleWebspaceChange,options:this.webspaceOptions,value:this.previewStore.webspace}),!!this.targetGroupsStore&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-user",loading:this.targetGroupsStore.loading,onChange:this.handleTargetGroupChange,options:[{label:Object(Ht.translate)("sulu_audience_targeting.no_target_group"),value:-1},...this.targetGroupsStore?this.targetGroupsStore.data.map((ce=>({label:ce.title,value:ce.id}))):[]],value:this.previewStore&&this.previewStore.targetGroup}),this.segments.length>0&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-focus",onChange:this.handleSegmentChange,options:this.segments.map((ce=>{let{title:ze,key:Ve}=ce;return{label:ze,value:Ve}})),value:this.previewStore&&this.previewStore.segment}),Dt.a.createElement(Lt.Toolbar.Button,{icon:"su-sync",onClick:this.handleRefreshClick},Object(Ht.translate)("sulu_preview.reload")),Dt.a.createElement(Lt.Toolbar.Popover,{icon:"su-share",label:Object(Ht.translate)("sulu_preview.preview_link")},(()=>Dt.a.createElement(pr,{previewStore:this.previewStore}))),Dt.a.createElement(Lt.Toolbar.Button,{icon:"su-link",onClick:this.handlePreviewWindowClick},Object(Ht.translate)("sulu_preview.open_in_window"))))))}}).debounceDelay=250,ur.mode="auto",ur.audienceTargeting=!1,si=Preview_applyDecoratedDescriptor((ei=ur).prototype,"iframeRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_i=Preview_applyDecoratedDescriptor(ei.prototype,"started",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ri=Preview_applyDecoratedDescriptor(ei.prototype,"selectedDeviceOption",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.availableDeviceOptions[0].value}}),Ci=Preview_applyDecoratedDescriptor(ei.prototype,"targetGroupsStore",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Di=Preview_applyDecoratedDescriptor(ei.prototype,"previewStore",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=Preview_applyDecoratedDescriptor(ei.prototype,"previewWindow",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oi=Preview_applyDecoratedDescriptor(ei.prototype,"webspaceOptions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ti=Preview_applyDecoratedDescriptor(ei.prototype,"reloadCounter",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Preview_applyDecoratedDescriptor(ei.prototype,"webspaceKey",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"webspaceKey"),ei.prototype),Preview_applyDecoratedDescriptor(ei.prototype,"segments",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"segments"),ei.prototype),Preview_applyDecoratedDescriptor(ei.prototype,"shouldUpdateFormStore",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"shouldUpdateFormStore"),ei.prototype),er=Preview_applyDecoratedDescriptor(ei.prototype,"createPreviewStore",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var ce;const{formStore:{resourceKey:ze,id:Ve,locale:qe},router:{route:{options:{previewResourceKey:Ye=null}}}}=this.props;this.previewStore=new Jt(Ye||ze,Ve,qe,this.webspaceKey,null===(ce=this.segments.find((ce=>!0===ce.default)))||void 0===ce?void 0:ce.key)}}}),tr=Preview_applyDecoratedDescriptor(ei.prototype,"setStarted",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.started=ce}}}),nr=Preview_applyDecoratedDescriptor(ei.prototype,"setIframe",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.iframeRef=ce}}}),rr=Preview_applyDecoratedDescriptor(ei.prototype,"handleDeviceSelectChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedDeviceOption=ce}}}),ar=Preview_applyDecoratedDescriptor(ei.prototype,"handleDateTimeChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Et()((ce=>{const{formStore:ze}=this.props;this.previewStore.setDateTime(ce||new Date),this.updatePreview(Object(kt.toJS)(ze.data))}),vr.debounceDelay)}}),sr=Preview_applyDecoratedDescriptor(ei.prototype,"handleWebspaceChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formStore:ze}=this.props;this.previewStore.setWebspace(ce),this.updatePreview(Object(kt.toJS)(ze.data))}}}),lr=Preview_applyDecoratedDescriptor(ei.prototype,"handleRefreshClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{++this.reloadCounter}}}),dr=Preview_applyDecoratedDescriptor(ei.prototype,"handlePreviewWindowClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.previewWindow=window.open(this.previewStore.renderRoute),this.previewWindow.addEventListener("beforeunload",Object(kt.action)((()=>{this.previewWindow=void 0})))}}}),Xn=ei))||Xn;ze.default=vr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Dt}));var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(9),st=Ve.n(ot);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var mt,gt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="allWebspaces",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return st.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return st.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setWebspaces",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setWebspaces"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"grantedWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"grantedWebspaces"),qe.prototype),qe),yt=Ve(7),bt=Ve(184),vt=Ve(6),wt="webspace-section--xzm7EmsgBk";class Ct extends Qe.a.Component{constructor(){super(...arguments),this.handleSelectChange=ce=>{const{onChange:ze,webspace:Ve}=this.props;ze(Ve.key,ce)}}render(){const{disabled:ce,value:ze,webspace:Ve,webspaceNameVisible:qe}=this.props;return Qe.a.createElement("div",{className:wt},Qe.a.createElement("label",{className:bt.a.label},qe&&Ve.name+" - ",Object(vt.translate)("sulu_admin.segment")),Qe.a.createElement(yt.SingleSelect,{disabled:!!ce,onChange:this.handleSelectChange,value:ze},Qe.a.createElement(yt.SingleSelect.Option,null,Object(vt.translate)("sulu_admin.none_selected")),Ve.segments.map((ce=>{let{key:ze,title:Ve}=ce;return Qe.a.createElement(yt.SingleSelect.Option,{key:ze,value:ze},Ve)}))))}}let Dt=(mt=class extends Qe.a.Component{constructor(){super(...arguments),this.handleWebspaceSegmentChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:ze})}}get visibleWebspaces(){const{webspace:ce}=this.props;return(ce?[gt.getWebspace(ce)]:gt.grantedWebspaces).filter((ce=>ce.segments.length>0))}render(){const{disabled:ce,value:ze}=this.props;return Qe.a.createElement(We.Fragment,null,this.visibleWebspaces.map((Ve=>Qe.a.createElement(Ct,{disabled:!!ce,key:Ve.key,onChange:this.handleWebspaceSegmentChange,value:ze?ze[Ve.key]:void 0,webspace:Ve,webspaceNameVisible:this.visibleWebspaces.length>1}))))}},function SegmentSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(mt.prototype,"visibleWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(mt.prototype,"visibleWebspaces"),mt.prototype),mt)},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(5),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(7),vt=Ve(303),wt=Ve(684),Ct=Ve.n(wt),Dt="item--3SFlofcpvB",kt="copy-text--IZxZjEbIXL",St="copying--mdwIXUTMfu",xt="content--bec162OW6Q";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=Object(gt.b)((Qe=class extends ot.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="copying",qe=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:qe}=this.props,Ye=mt()(Dt,{[St]:this.copying}),We=ot.a.createElement("span",{className:xt},ze,ot.a.createElement("span",{className:kt},Ve));return ot.a.createElement("li",{className:Ye,onAnimationEnd:this.handleClick},qe?ot.a.createElement(Ct.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},Qe.defaultProps={copyUrlOnClick:!1},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"copying",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"copyUrl",[yt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"copyUrl"),Ye.prototype),qe=Ye))||qe;var Pt=Et;class Tt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:qe}=this.props;return[ot.a.createElement(Pt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},qe),ot.a.createElement(bt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Pt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(bt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(bt.Menu,{menuRef:ce,style:ze},Ve)))}}var Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn="media-card--kRx0FCOGtP",ln="checkbox--s+DHWfU-T0",mn="selected--8xPgKeNogN",gn="header--wxMZldryOF",bn="description--l4YbBQ6Kiw",wn="no-download-list--lTScdkvs6Y",Cn="download-button--If+JPwu6uD",Sn="active--vZE91Lekka",En="ghost-indicator--rUUpG63yG5",Tn="title--Fh1QFnADkj",Ln="meta--1zzs9Umjqm",Fn="title-text---mPV8Qmyok",Yn="media--izJTs1Yud-",Un="cover--XTAD1mLWWE",Gn="show-cover--R4b0DQas9n",Kn="media-icon--purRfkU1wQ";function MediaCard_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jn=Object(gt.b)(((en=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",Bt,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",Vt,this),MediaCard_initializerDefineProperty(this,"imageLoading",Ht,this),MediaCard_initializerDefineProperty(this,"imageError",Ut,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Wt,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleKeypress=ce=>{const{id:ze,onClick:Ve,selected:qe}=this.props;Ve&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),Ve(ze,!qe)))},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&Ve(ce,!ze)},this.handleHeaderKeypress=ce=>{const{id:ze,selected:Ve,onSelectionChange:qe}=this.props;qe&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),qe(ze,!Ve)))},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Jt,this),MediaCard_initializerDefineProperty(this,"handleImageError",Qt,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:qe,icon:Ye,id:We,image:Qe,imageSizes:st,meta:gt,mimeType:yt,onSelectionChange:wt,selected:Ct,title:Dt,showCover:kt}=this.props,St=mt()(rn,{[mn]:!!Ct,[Gn]:!!kt,[wn]:!st.length}),xt=mt()(Cn,{[Sn]:!!this.downloadListOpen}),Et=ot.a.createElement("div",{className:Fn},qe&&ot.a.createElement(bt.GhostIndicator,{className:En,locale:qe}),ot.a.createElement(bt.CroppedText,null,Dt));return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:gn},ot.a.createElement("div",{className:bn,onClick:this.handleHeaderClick,onKeyPress:this.handleHeaderKeypress,role:"button",tabIndex:"0"},ot.a.createElement("div",{className:Tn},wt?ot.a.createElement(bt.Checkbox,{checked:!!Ct,className:ln,value:We},Et):Et),gt&&ot.a.createElement("div",{className:Ln},ot.a.createElement(bt.CroppedText,null,gt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:xt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(bt.Icon,{name:"su-download"})),ot.a.createElement(Tt,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Yn,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe&&!this.imageError?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("img",{alt:Dt,src:this.image.src}),this.imageLoading&&ot.a.createElement(bt.Loader,null)):ot.a.createElement(vt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Un},!!Ye&&ot.a.createElement(bt.Icon,{className:Kn,name:Ye}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},Bt=MediaCard_applyDecoratedDescriptor((Ft=en).prototype,"downloadButtonRef",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"downloadListOpen",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ht=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageLoading",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ut=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageError",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"setDownloadButtonRef",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(Ft.prototype,"openDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openDownloadList"),Ft.prototype),MediaCard_applyDecoratedDescriptor(Ft.prototype,"closeDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeDownloadList"),Ft.prototype),Jt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageLoad",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),Qt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageError",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),Lt=Ft))||Lt;ze.default=Jn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(22),Xe=Ve.n(Qe),ot=Ve(28),st=Ve.n(ot),mt=Ve(0),gt=Ve.n(mt),yt=Ve(1),bt=Ve(3),vt=Ve(538).default,wt=Ve(15),Ct=Ve(336),Dt=Ve(645),kt=Ve(455);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let St=(qe=class{constructor(){_initializerDefineProperty(this,"blockPreviewTransformers",Ye,this),_initializerDefineProperty(this,"priority",We,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Ye=_applyDecoratedDescriptor(qe.prototype,"blockPreviewTransformers",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"priority",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"blockPreviewTransformerKeysByPriority",[yt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"blockPreviewTransformerKeysByPriority"),qe.prototype),qe);var xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht=new St;Ve(96);class Ut extends gt.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:qe}=this.props;qe(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onFieldFinish:Ye,onSuccess:We,router:Qe,schema:Xe,schemaPath:ot,showAllErrors:st,value:mt}=this.props;return gt.a.createElement(Ct.a,{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onChange:this.handleChange,onFieldFinish:Ye,onSuccess:We,router:Qe,schema:Xe,schemaPath:ot,showAllErrors:st,value:mt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Ut.defaultProps={showAllErrors:!1};const Wt='The "block" field type needs at least one type to be configured!',Jt="sulu.block_preview",Qt="settings";let en=Object(bt.b)((Et=class extends gt.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Pt,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Tt,this),FieldBlocks_initializerDefineProperty(this,"value",Lt,this),FieldBlocks_initializerDefineProperty(this,"setValue",Ft,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:qe}=this.props,Ye=this.value;if(!Ye)return;const We=Object(yt.toJS)(Ye);st.a.set(We[ce],"/"+ze,Ve),this.setValue(We),qe(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:qe}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!qe)throw new Error(Wt);if(qe[ce])return qe[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!qe[ze])throw new Error('The default type should exist in block "'+Ve+'".');return qe[ze]},this.renderBlockContent=(ce,ze,Ve,qe)=>qe?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:qe,dataPath:Ye,error:We,formInspector:Qe,onFinish:Xe,onSuccess:ot,router:st,schemaPath:mt,showAllErrors:bt}=this.props,vt=this.getBlockSchemaType(ze),wt=Object(yt.toJS)(We);return gt.a.createElement(Ut,{data:qe,dataPath:Ye+"/"+Ve,errors:wt&&wt.length>Ve&&wt[Ve]?wt[Ve]:void 0,formInspector:Qe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:Xe,onSuccess:ot,router:st,schema:vt.form,schemaPath:mt+"/types/"+ze+"/form",showAllErrors:bt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const qe=this.getBlockSchemaType(ze),Ye=this.removeSections(qe.form),We=Object.keys(Ye).filter((ze=>{const Ve=Ye[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===Jt))})).sort(((ce,ze)=>{const Ve=Ye[ce].tags,qe=Ye[ze].tags;if(!Ve||!qe)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const We=Ve.find((ce=>ce.name===Jt)),Qe=qe.find((ce=>ce.name===Jt));if(!We||!Qe)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(Qe.priority||0)-(We.priority||0)}));if(0===We.length)for(const ze of Ht.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Ye))if(Ye[Ve].type===ze&&ce[Ve]){We.push(Ve);break}if(We.length>=3)break}return gt.a.createElement(mt.Fragment,null,We.map((ze=>Ht.has(Ye[ze].type)&&ce[ze]&>.a.createElement(mt.Fragment,{key:ze},Ht.get(Ye[ze].type).transform(ce[ze],Ye[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",Bt,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},this.handleDisplaySnackbar=ce=>{kt.a.add(ce,2500)},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Vt,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:qe}=this;if(!Ve||null==qe||!ze)return;const Ye=[...ze.slice(0,qe),{...ze[qe],[Qt]:Ve.data},...ze.slice(qe+1)];this.setValue(Ye),ce(Ye)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Ct.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:qe,value:Ye}=this.props,{types:We}=ce;if(Xe()(Object(yt.toJS)(ce.value),Object(yt.toJS)(Ye))||this.setValue(Ye),!qe||!We)throw new Error(Wt);let Qe=Object(yt.toJS)(Ye);if(Qe&&qe!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Qe=Qe.map((ce=>qe[ce.type]?ce:{...ce,type:ze}))}Xe()(Object(yt.toJS)(Ye),Qe)||Ve(Qe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get pasteButtonText(){const{schemaOptions:{paste_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "paste_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,qe)=>{const Ye="/"+ce+qe;if(!st.a.has(ze,Ye))return Ve;const We=st.a.get(ze,Ye);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(qe+"/items/"),Ve);const Qe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Qe&&(Ve["/settings/"+qe]=Qe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(st.a.has(ce,Ve)&&st.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:qe,types:Ye}=this.props,We=this.value||[],Qe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!Ye)throw new Error(Wt);const Xe=Object.keys(Ye).reduce(((ce,ze)=>(ce[ze]=Ye[ze].title,ce)),{});return gt.a.createElement(gt.a.Fragment,null,gt.a.createElement(vt,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:qe,movable:this.movable,onChange:this.handleBlocksChange,onDisplaySnackbar:this.handleDisplaySnackbar,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,pasteButtonText:this.pasteButtonText,renderBlockContent:this.renderBlockContent,types:Xe,value:We}),void 0!==this.openedBlockSettingsIndex&&Qe&>.a.createElement(Dt.a,{confirmDisabled:!Qe.dirty,confirmText:Object(wt.b)("sulu_admin.apply"),formStore:Qe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Qe,size:"small",title:Object(wt.b)("sulu_admin.block_settings")}))}},Pt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"openedBlockSettingsIndex",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"blockSettingsFormStore",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"value",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"componentDidMount",[yt.action],Object.getOwnPropertyDescriptor(Et.prototype,"componentDidMount"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"settingsFormKey",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"settingsFormKey"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"addButtonText",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"addButtonText"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"pasteButtonText",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"pasteButtonText"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"collapsable",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"collapsable"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"movable",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"movable"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"iconsMapping",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"iconsMapping"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"icons",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"icons"),Et.prototype),Ft=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"setValue",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Bt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"handleSettingsClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Ct.c.createFromFormKey(Ve,{...this.value[ce][Qt]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Vt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"closeSettingsOverlay",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),xt=Et))||xt;ze.default=en},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(22),yt=Ve.n(gt),bt=Ve(7),vt=Ve(6),wt=Ve(76),Ct=Ve(316),Dt=Ve(530).default,kt=Ve(303),St="media-item--Z7DKvJ2AYB",xt="thumbnail-image--PhMsGkHbu7",Et="media-title--BcpSGD6ROr";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="sulu-25x25";let Tt=Object(mt.b)(((Qe=class extends ot.a.Component{constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="overlayOpen",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleRemove=ce=>{this.mediaSelectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.mediaSelectionStore.move(ce,ze)},this.handleOverlayOpen=()=>{this.openMediaOverlay()},this.handleOverlayClose=()=>{this.closeMediaOverlay()},this.handleOverlayConfirm=ce=>{this.mediaSelectionStore.set([...this.mediaSelectionStore.items,...ce]),this.closeMediaOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Qe,value:Xe}=this.props;this.mediaSelectionStore=new wt.a("media",Xe.ids,Qe),this.changeDisposer=Object(st.reaction)((()=>this.mediaSelectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;yt()(Object(st.toJS)(Ve.ids),Object(st.toJS)(ce))||ze({...Ve,ids:ce})}))}componentDidUpdate(){const ce=Object(st.toJS)(this.props.value.ids),ze=Object(st.toJS)(this.mediaSelectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),yt()(ce,ze)||this.mediaSelectionStore.loadItems(ce)}componentWillUnmount(){this.changeDisposer()}openMediaOverlay(){this.overlayOpen=!0}closeMediaOverlay(){this.overlayOpen=!1}getLabel(ce){return 1===ce?`1 ${Object(vt.translate)("sulu_media.media_selected_singular")}`:ce>1?`${ce} ${Object(vt.translate)("sulu_media.media_selected_plural")}`:Object(vt.translate)("sulu_media.select_media_plural")}render(){const{locale:ce,disabled:ze,displayOptions:Ve,sortable:qe,types:Ye,value:We}=this.props,{loading:Qe,items:st}=this.mediaSelectionStore,mt=Qe?"":this.getLabel(st.length),gt=Ve.length>0?{icon:Object(Ct.a)(We.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(Ct.a)(ce),label:Object(Ct.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(bt.MultiItemSelection,{disabled:!!ze,label:mt,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:Qe,onItemClick:this.handleItemClick,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,rightButton:gt,sortable:qe},st.map(((ce,ze)=>ot.a.createElement(bt.MultiItemSelection.Item,{id:ce.id,index:ze+1,key:ce.id,value:ce},ot.a.createElement("div",{className:St},ce.thumbnails&&ce.thumbnails[Pt]?ot.a.createElement("img",{alt:ce.title,className:xt,src:ce.thumbnails[Pt]}):ot.a.createElement(kt.a,{height:25,iconSize:16,mimeType:ce.mimeType,width:25}),ot.a.createElement("div",{className:Et},ot.a.createElement(bt.CroppedText,null,ce.title))))))),ot.a.createElement(Dt,{excludedIds:st.map((ce=>ce.id)),locale:ce,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:Ye}))}}).defaultProps={disabled:!1,displayOptions:[],sortable:!0,types:[],value:{displayOption:void 0,ids:[]}},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"overlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"openMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openMediaOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"closeMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeMediaOverlay"),Ye.prototype),qe=Ye))||qe;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(7),mt=Ve(454),gt=Ve(312),yt="matrix-container--9YtoGgAUwq",bt="select-container--3IJRFtemRt",vt=Ve(6),wt=Ve(714);let Ct=Object(ot.b)((Ye=class extends Qe.a.Component{constructor(){super(...arguments),this.getMatrixValueFromContextPermission=ce=>{for(const ze of this.props.contextPermissions)if(ce===ze.context)return ze.permissions;return{}},this.handleMatrixChange=ce=>{const{onChange:ze,contextPermissions:Ve}=this.props,qe=Object(Xe.toJS)(Ve);Object.keys(ce).map((ze=>{const Ve=ce[ze];for(const ce of qe)if(ze===ce.context)return void(ce.permissions=Ve);qe.push({id:void 0,context:ze,permissions:Ve})})),ze(qe)}}renderMatrixRow(ce,ze,Ve){const qe=ze.indexOf(".",ze.indexOf(".")+1)+1,Ye=ze.substring(qe);return Qe.a.createElement(st.Matrix.Row,{key:"row-"+ce,name:ze,title:Ye},Ve.map(((ce,ze)=>Qe.a.createElement(st.Matrix.Item,{icon:Object(wt.a)(ce),key:"item-"+ze,name:ce,title:Object(vt.translate)("sulu_security."+ce)}))))}render(){const{disabled:ce,title:ze,subTitle:Ve,securityContexts:qe}=this.props,Ye={},We=[];return Object.keys(qe).map(((ce,ze)=>{const Ve=qe[ce];Ye[ce]=this.getMatrixValueFromContextPermission(ce),We.push(this.renderMatrixRow(ze,ce,Ve))})),Qe.a.createElement("div",{className:yt},ze&&Qe.a.createElement("h2",null,ze),Ve&&Qe.a.createElement("h3",null,Ve),Qe.a.createElement(st.Matrix,{disabled:ce,onChange:this.handleMatrixChange,values:Ye},We))}},Ye.defaultProps={disabled:!1},qe=Ye))||qe;var Dt,kt,St,xt,Et,Pt=Ct;function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Tt=Object(ot.b)((Et=class ce extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"securityContextGroups",St,this),this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleWebspaceChange",xt,this)}componentDidMount(){this.systemDisposer=Object(Xe.autorun)((()=>this.setSecurityContextGroups(gt.a.getSecurityContextGroups(this.system))))}setSecurityContextGroups(ce){this.securityContextGroups=ce}componentWillUnmount(){this.systemDisposer()}get system(){return this.props.system}get webspaceContextPermissionPrefix(){if(this.webspaceSecurityContextGroupKey){const ze=this.securityContextGroups[this.webspaceSecurityContextGroupKey];for(const Ve of Object.keys(ze))if(Ve.includes(ce.webspacePlaceholder))return Ve.substring(0,Ve.indexOf("#"))}throw new Error("Webspace context permission prefix not found")}get webspaceSecurityContextGroupKey(){for(const ze of Object.keys(this.securityContextGroups)){const Ve=this.securityContextGroups[ze];for(const qe of Object.keys(Ve))if(qe.includes(ce.webspacePlaceholder))return ze}return null}get selectedWebspaces(){const ce=[];for(const ze of this.props.value)if(ze.context.startsWith(this.webspaceContextPermissionPrefix)){const Ve=ze.context.replace(this.webspaceContextPermissionPrefix,"");if(Ve.includes("."))continue;ce.push(Ve)}return ce.sort()}getWebspaceSecurityContexts(ze){if(!this.webspaceSecurityContextGroupKey)return{};const Ve=this.securityContextGroups[this.webspaceSecurityContextGroupKey],qe={};return Object.keys(Ve).sort().map((Ye=>{qe[Ye.replace(ce.webspacePlaceholder,ze)]=Ve[Ye]})),qe}renderWebspaceMatrixes(){const{disabled:ce,value:ze}=this.props;return this.webspaceSecurityContextGroupKey?Qe.a.createElement(We.Fragment,null,Qe.a.createElement("h2",null,this.webspaceSecurityContextGroupKey),Qe.a.createElement("div",{className:bt},Qe.a.createElement(st.MultiSelect,{disabled:ce,onChange:this.handleWebspaceChange,values:this.selectedWebspaces},mt.a.allWebspaces.map((ce=>Qe.a.createElement(st.MultiSelect.Option,{key:ce.key,value:ce.key},ce.name))))),Qe.a.createElement("div",{className:yt},this.selectedWebspaces.map(((Ve,qe)=>Qe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:qe,onChange:this.handleChange,securityContexts:this.getWebspaceSecurityContexts(Ve),subTitle:Ve}))))):null}renderMatrixes(){const{disabled:ce,value:ze}=this.props;return Object.keys(this.securityContextGroups).sort().map(((Ve,qe)=>{if(this.webspaceSecurityContextGroupKey&&this.webspaceSecurityContextGroupKey===Ve)return null;const Ye=this.securityContextGroups[Ve];return Qe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:qe,onChange:this.handleChange,securityContexts:Ye,title:Ve})}))}render(){return this.securityContextGroups?Qe.a.createElement(We.Fragment,null,this.renderWebspaceMatrixes(),this.renderMatrixes()):Qe.a.createElement(st.Loader,null)}},Et.defaultProps={disabled:!1},Et.webspacePlaceholder="#webspace#",St=_applyDecoratedDescriptor((kt=Et).prototype,"securityContextGroups",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(kt.prototype,"componentDidMount",[Xe.action],Object.getOwnPropertyDescriptor(kt.prototype,"componentDidMount"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"setSecurityContextGroups",[Xe.action],Object.getOwnPropertyDescriptor(kt.prototype,"setSecurityContextGroups"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"system",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"system"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceContextPermissionPrefix",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceContextPermissionPrefix"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceSecurityContextGroupKey",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceSecurityContextGroupKey"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"selectedWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"selectedWebspaces"),kt.prototype),xt=_applyDecoratedDescriptor(kt.prototype,"handleWebspaceChange",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];for(const Ve of this.props.value){if(Ve.context.startsWith(this.webspaceContextPermissionPrefix)){const ze=Ve.context.replace(this.webspaceContextPermissionPrefix,""),qe=ze.includes(".")?ze.substring(0,ze.indexOf(".")):ze;if(!ce.includes(qe))continue}ze.push(Ve)}const Ve=ce.filter((ce=>!this.selectedWebspaces.includes(ce)));for(const ce of Ve){const Ve=this.getWebspaceSecurityContexts(ce.toString());Object.keys(Ve).map((ce=>{const qe={},Ye=Ve[ce];for(const ce of Ye)qe[ce]=!1;const We={id:void 0,context:ce,permissions:qe};ze.push(We)}))}this.handleChange(ze)}}}),Dt=kt))||Dt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{index:ze,onChange:Ve}=this.props;Ve(ce,ze)}}render(){const{onBlur:ce,value:ze}=this.props;return Ye.a.createElement(We.Input,{onBlur:ce,onChange:this.handleChange,value:ze})}}var Xe="custom-url--ZWDbe1XJIh";class ot extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve}=this.props,qe=[...this.props.value];qe[ze]=ce,Ve(qe)}}render(){const{baseDomain:ce,onBlur:ze,value:Ve}=this.props;return Ye.a.createElement("div",{className:Xe},ce.split("*").map(((ce,We)=>Ye.a.createElement(qe.Fragment,{key:We},0!==We&&Ye.a.createElement(Qe,{index:We-1,onBlur:ze,onChange:this.handleChange,value:We<=Ve.length?Ve[We-1]:void 0}),ce&&Ye.a.createElement("span",null,ce)))))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));Ve(1953);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(6),Qe="address-card-preview--714S0paCKw",Xe="title--CmBgU7Y7u2",ot="flags--J76ReslUp-";class st extends Ye.a.Component{render(){const{billingAddress:ce,country:ze,city:Ve,deliveryAddress:st,number:mt,primaryAddress:gt,state:yt,street:bt,title:vt,type:wt,zip:Ct}=this.props,Dt=[wt,gt?Object(We.translate)("sulu_contact.primary_address"):null,ce?Object(We.translate)("sulu_contact.billing_address"):null,st?Object(We.translate)("sulu_contact.delivery_address"):null].filter((ce=>null!==ce));return Ye.a.createElement("section",{className:Qe},Ye.a.createElement("div",{className:Xe},Ye.a.createElement("strong",null,vt||" ")),Ye.a.createElement("div",{className:ot},Dt.join("・")),(bt||mt)&&Ye.a.createElement(qe.Fragment,null,bt," ",mt,Ye.a.createElement("br",null)),(Ve||Ct)&&Ye.a.createElement(qe.Fragment,null,Ct," ",Ve,Ye.a.createElement("br",null)),yt&&Ye.a.createElement(qe.Fragment,null,yt,Ye.a.createElement("br",null)),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We="bank-card-preview--CFkKw5kbSx",Qe="bank-name--tmk22VVjQx";class Xe extends Ye.a.Component{render(){const{bankName:ce,bic:ze,iban:Ve}=this.props;return Ye.a.createElement("section",{className:We},Ye.a.createElement("div",{className:Qe},Ye.a.createElement("strong",null,ce||" ")),Ve,Ye.a.createElement("br",null),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(7),vt="webspace-select--8U5GMwi5k-",wt="button--wOTGMqDq1A",Ct="button-icon--DSnawm5dcf",Dt="button-value--KoxSKJ-lu+";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let kt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"openMenu",Qe,this),_initializerDefineProperty(this,"closeMenu",Xe,this),this.handleButtonClick=this.openMenu,this.handleMenuClose=this.closeMenu,this.handleChange=ce=>{this.closeMenu(),this.props.onChange(ce)}}get displayValue(){const{children:ce,value:ze}=this.props;let Ve="";return mt.a.Children.forEach(ce,(ce=>{ze===ce.props.value&&(Ve=ce.props.children)})),Ve}renderButton(){return mt.a.createElement("div",{className:vt},mt.a.createElement("button",{className:wt,onClick:this.handleButtonClick,type:"button"},mt.a.createElement(bt.Icon,{className:Ct,name:"su-webspace"}),mt.a.createElement("span",{className:Dt},this.displayValue),mt.a.createElement(bt.Icon,{className:Ct,name:"su-angle-down"})))}render(){const{value:ce,children:ze}=this.props;return mt.a.createElement(bt.ArrowMenu,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},mt.a.createElement(bt.ArrowMenu.SingleItemSection,{icon:"su-webspace",onChange:this.handleChange,title:"Webspaces",value:ce},ze))}},ot.Item=bt.ArrowMenu.Item,We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"openMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"closeMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;ze.default=kt},function(ce,ze,Ve){"use strict";(function(ce){Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(ce,ze){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ze||"object"!=typeof ze&&"function"!=typeof ze?ce:ze}function _inherits(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);ce.prototype=Object.create(ze&&ze.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,ze):ce.__proto__=ze)}var Qe="navigator"in ce&&/Win/i.test(navigator.platform),Xe="navigator"in ce&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ot="npm__react-simple-code-editor__textarea",st="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+ot+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+ot+" {\n color: transparent !important;\n }\n\n ."+ot+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",mt=function(ce){function Editor(){var ce,ze,Ve;_classCallCheck(this,Editor);for(var Ye=arguments.length,We=Array(Ye),ot=0;ot1&&void 0!==arguments[1]&&arguments[1],Ye=Ve._history,We=Ye.stack,Qe=Ye.offset;if(We.length&&Qe>-1){Ve._history.stack=We.slice(0,Qe+1);var Xe=Ve._history.stack.length;if(Xe>100){var ot=Xe-100;Ve._history.stack=We.slice(ot,Xe),Ve._history.offset=Math.max(Ve._history.offset-ot,0)}}var st=Date.now();if(ze){var mt=Ve._history.stack[Ve._history.offset];if(mt&&st-mt.timestamp<3e3){var gt=/[^a-z0-9]([a-z0-9]+)$/i,yt=Ve._getLines(mt.value,mt.selectionStart).pop().match(gt),bt=Ve._getLines(ce.value,ce.selectionStart).pop().match(gt);if(yt&&bt&&bt[1].startsWith(yt[1]))return void(Ve._history.stack[Ve._history.offset]=qe({},ce,{timestamp:st}))}}Ve._history.stack.push(qe({},ce,{timestamp:st})),Ve._history.offset++},Ve._updateInput=function(ce){var ze=Ve._input;ze&&(ze.value=ce.value,ze.selectionStart=ce.selectionStart,ze.selectionEnd=ce.selectionEnd,Ve.props.onValueChange(ce.value))},Ve._applyEdits=function(ce){var ze=Ve._input,Ye=Ve._history.stack[Ve._history.offset];Ye&&ze&&(Ve._history.stack[Ve._history.offset]=qe({},Ye,{selectionStart:ze.selectionStart,selectionEnd:ze.selectionEnd})),Ve._recordChange(ce),Ve._updateInput(ce)},Ve._undoEdit=function(){var ce=Ve._history,ze=ce.stack,qe=ce.offset,Ye=ze[qe-1];Ye&&(Ve._updateInput(Ye),Ve._history.offset=Math.max(qe-1,0))},Ve._redoEdit=function(){var ce=Ve._history,ze=ce.stack,qe=ce.offset,Ye=ze[qe+1];Ye&&(Ve._updateInput(Ye),Ve._history.offset=Math.min(qe+1,ze.length-1))},Ve._handleKeyDown=function(ce){var ze=Ve.props,qe=ze.tabSize,Ye=ze.insertSpaces,We=ze.ignoreTabKey,ot=ze.onKeyDown;if(!ot||(ot(ce),!ce.defaultPrevented)){27===ce.keyCode&&ce.target.blur();var st=ce.target,mt=st.value,gt=st.selectionStart,yt=st.selectionEnd,bt=(Ye?" ":"\t").repeat(qe);if(9===ce.keyCode&&!We&&Ve.state.capture)if(ce.preventDefault(),ce.shiftKey){var vt=Ve._getLines(mt,gt),wt=vt.length-1,Ct=Ve._getLines(mt,yt).length-1,Dt=mt.split("\n").map((function(ce,ze){return ze>=wt&&ze<=Ct&&ce.startsWith(bt)?ce.substring(bt.length):ce})).join("\n");if(mt!==Dt){var kt=vt[wt];Ve._applyEdits({value:Dt,selectionStart:kt.startsWith(bt)?gt-bt.length:gt,selectionEnd:yt-(mt.length-Dt.length)})}}else if(gt!==yt){var St=Ve._getLines(mt,gt),xt=St.length-1,Et=Ve._getLines(mt,yt).length-1,Pt=St[xt];Ve._applyEdits({value:mt.split("\n").map((function(ce,ze){return ze>=xt&&ze<=Et?bt+ce:ce})).join("\n"),selectionStart:/\S/.test(Pt)?gt+bt.length:gt,selectionEnd:yt+bt.length*(Et-xt+1)})}else{var Tt=gt+bt.length;Ve._applyEdits({value:mt.substring(0,gt)+bt+mt.substring(yt),selectionStart:Tt,selectionEnd:Tt})}else if(8===ce.keyCode){var Lt=gt!==yt;if(mt.substring(0,gt).endsWith(bt)&&!Lt){ce.preventDefault();var Ft=gt-bt.length;Ve._applyEdits({value:mt.substring(0,gt-bt.length)+mt.substring(yt),selectionStart:Ft,selectionEnd:Ft})}}else if(13===ce.keyCode){if(gt===yt){var Bt=Ve._getLines(mt,gt).pop().match(/^\s+/);if(Bt&&Bt[0]){ce.preventDefault();var Vt="\n"+Bt[0],Ht=gt+Vt.length;Ve._applyEdits({value:mt.substring(0,gt)+Vt+mt.substring(yt),selectionStart:Ht,selectionEnd:Ht})}}}else if(57===ce.keyCode||219===ce.keyCode||222===ce.keyCode||192===ce.keyCode){var Ut=void 0;57===ce.keyCode&&ce.shiftKey?Ut=["(",")"]:219===ce.keyCode?Ut=ce.shiftKey?["{","}"]:["[","]"]:222===ce.keyCode?Ut=ce.shiftKey?['"','"']:["'","'"]:192!==ce.keyCode||ce.shiftKey||(Ut=["`","`"]),gt!==yt&&Ut&&(ce.preventDefault(),Ve._applyEdits({value:mt.substring(0,gt)+Ut[0]+mt.substring(gt,yt)+Ut[1]+mt.substring(yt),selectionStart:gt,selectionEnd:yt+2}))}else!(Xe?ce.metaKey&&90===ce.keyCode:ce.ctrlKey&&90===ce.keyCode)||ce.shiftKey||ce.altKey?(Xe?ce.metaKey&&90===ce.keyCode&&ce.shiftKey:Qe?ce.ctrlKey&&89===ce.keyCode:ce.ctrlKey&&90===ce.keyCode&&ce.shiftKey)&&!ce.altKey?(ce.preventDefault(),Ve._redoEdit()):77!==ce.keyCode||!ce.ctrlKey||Xe&&!ce.shiftKey||(ce.preventDefault(),Ve.setState((function(ce){return{capture:!ce.capture}}))):(ce.preventDefault(),Ve._undoEdit())}},Ve._handleChange=function(ce){var ze=ce.target,qe=ze.value,Ye=ze.selectionStart,We=ze.selectionEnd;Ve._recordChange({value:qe,selectionStart:Ye,selectionEnd:We},!0),Ve.props.onValueChange(qe)},Ve._history={stack:[],offset:-1},_possibleConstructorReturn(Ve,ze)}return _inherits(Editor,ce),Ye(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var ce=this,ze=this.props,Ve=ze.value,Ye=ze.style,Qe=ze.padding,Xe=ze.highlight,mt=ze.textareaId,yt=ze.autoFocus,bt=ze.disabled,vt=ze.form,wt=ze.maxLength,Ct=ze.minLength,Dt=ze.name,kt=ze.placeholder,St=ze.readOnly,xt=ze.required,Et=ze.onClick,Pt=ze.onFocus,Tt=ze.onBlur,Lt=ze.onKeyUp,Ft=(ze.onKeyDown,ze.onValueChange,ze.tabSize,ze.insertSpaces,ze.ignoreTabKey,_objectWithoutProperties(ze,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),Bt={paddingTop:Qe,paddingRight:Qe,paddingBottom:Qe,paddingLeft:Qe},Vt=Xe(Ve);return We.createElement("div",qe({},Ft,{style:qe({},gt.container,Ye)}),We.createElement("textarea",{ref:function ref(ze){return ce._input=ze},style:qe({},gt.editor,gt.textarea,Bt),className:ot,id:mt,value:Ve,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:Et,onKeyUp:Lt,onFocus:Pt,onBlur:Tt,disabled:bt,form:vt,maxLength:wt,minLength:Ct,name:Dt,placeholder:kt,readOnly:St,required:xt,autoFocus:yt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),We.createElement("pre",qe({"aria-hidden":"true",style:qe({},gt.editor,gt.highlight,Bt)},"string"==typeof Vt?{dangerouslySetInnerHTML:{__html:Vt+"
"}}:{children:Vt})),We.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:st}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(ce){this._history=ce.history}}]),Editor}(We.Component);mt.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},ze.default=mt;var gt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,Ve(146))},function(ce,ze){var Ve=/[\'\"]/;ce.exports=function unquote(ce){return ce?(Ve.test(ce.charAt(0))&&(ce=ce.substr(1)),Ve.test(ce.charAt(ce.length-1))&&(ce=ce.substr(0,ce.length-1)),ce):""}},function(ce,ze,Ve){"use strict";ce.exports=function stripHtmlComments(ce){if("string"!=typeof ce)throw new TypeError("strip-html-comments expected a string");return ce.replace(/)/g,"")}},function(ce,ze,Ve){!function(){"use strict";var ce,qe,Ye,We,Qe,Xe;function sliceSource(ce,ze,Ve){return ce.slice(ze,Ve)}function isParamTitle(ce){return"param"===ce||"argument"===ce||"arg"===ce}function isReturnTitle(ce){return"return"===ce||"returns"===ce}function isProperty(ce){return"property"===ce||"prop"===ce}function isNameParameterRequired(ce){return isParamTitle(ce)||isProperty(ce)||"alias"===ce||"this"===ce||"mixes"===ce||"requires"===ce}function isAllowedNested(ce){return isProperty(ce)||isParamTitle(ce)}function isAllowedOptional(ce){return isProperty(ce)||isParamTitle(ce)}function isTypeParameterRequired(ce){return isParamTitle(ce)||isReturnTitle(ce)||"define"===ce||"enum"===ce||"implements"===ce||"this"===ce||"type"===ce||"typedef"===ce||isProperty(ce)}We=Ve(862),ce=Ve(1234),qe=Ve(864),Xe=Object.prototype.hasOwnProperty,Qe=function hasOwnProperty(ce,ze){return Xe.call(ce,ze)};var ot="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",st="("+ot+"*(?:\\*"+ot+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(ce){return ce.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(st,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(ce,ze){for(var Ve,qe=ce.replace(/^\/\*\*?/,""),Ye=0,We=new RegExp(st,"g");Ve=We.exec(qe);)if(Ye+=Ve[1].length,Ve.index+Ve[0].length>ze+Ye)return ze+Ye+ce.length-qe.length;return ce.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(ze){var Ve,Ye,Xe,ot,st,mt,gt,yt,bt;function advance(){var ce=st.charCodeAt(Ye);return Ye+=1,!We.code.isLineTerminator(ce)||13===ce&&10===st.charCodeAt(Ye)||(Xe+=1),String.fromCharCode(ce)}function scanTitle(){var ce,ze="";for(advance();Ye=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57);)ze+=advance();return ze}function seekContent(){var ce,ze,Ve=Ye;for(ze=!1;Ve=ce)return null;if(91===st.charCodeAt(Ye)){if(!ze)return null;qe=!0,Xe=advance()}if(Xe+=scanIdentifier(ce),Ve)for(58!==st.charCodeAt(Ye)||"module"!==Xe&&"external"!==Xe&&"event"!==Xe||(Xe+=advance(),Xe+=scanIdentifier(ce)),91===st.charCodeAt(Ye)&&93===st.charCodeAt(Ye+1)&&(Xe+=advance(),Xe+=advance());46===st.charCodeAt(Ye)||47===st.charCodeAt(Ye)||35===st.charCodeAt(Ye)||45===st.charCodeAt(Ye)||126===st.charCodeAt(Ye);)Xe+=advance(),Xe+=scanIdentifier(ce);if(qe){if(skipWhiteSpace(ce),61===st.charCodeAt(Ye)){var ot;Xe+=advance(),skipWhiteSpace(ce);for(var mt=1;Ye=ce||93!==st.charCodeAt(Ye))return null;Xe+=advance()}return Xe}function skipToTag(){for(;Ye=ot)&&(qe.assert(64===st.charCodeAt(Ye)),!0)}function convertIndex(ce){return st===mt?ce:convertUnwrappedCommentIndex(mt,ce)}function TagParser(ce,ze){this._options=ce,this._title=ze.toLowerCase(),this._tag={title:ze,description:null},this._options.lineNumbers&&(this._tag.lineNumber=Xe),this._first=Ye-ze.length-1,this._last=0,this._extra={}}function parseTag(ce){var ze,Ve;if(!skipToTag())return null;for(Ve=(ze=new TagParser(ce,scanTitle())).parse();Ye1&&(this._tag.default=ce.slice(1).join("=")),this._tag.name=ce[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var ce=sliceSource(st,Ye,this._last).trim();return ce&&(/^-\s+/.test(ce)&&(ce=ce.substring(2)),this._tag.description=ce),!0},TagParser.prototype.parseCaption=function parseDescription(){var ce=sliceSource(st,Ye,this._last).trim(),ze="",Ve="",qe=ce.indexOf(ze),We=ce.indexOf(Ve);return qe>=0&&We>=0?(this._tag.caption=ce.substring(qe+9,We).trim(),this._tag.description=ce.substring(We+10).trim()):this._tag.description=ce,!0},TagParser.prototype.parseKind=function parseKind(){var ce,ze;return ze={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},ce=sliceSource(st,Ye,this._last).trim(),this._tag.kind=ce,!(!Qe(ze,ce)&&!this.addError("Invalid kind name '%0'",ce))},TagParser.prototype.parseAccess=function parseAccess(){var ce;return ce=sliceSource(st,Ye,this._last).trim(),this._tag.access=ce,!("private"!==ce&&"protected"!==ce&&"public"!==ce&&!this.addError("Invalid access name '%0'",ce))},TagParser.prototype.parseThis=function parseThis(){var ce=sliceSource(st,Ye,this._last).trim();return ce&&"{"===ce.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var ce,ze;return ze=sliceSource(st,Ye,this._last).trim(),ce=parseFloat(ze,10),this._tag.variation=ce,!(isNaN(ce)&&!this.addError("Invalid variation '%0'",ze))},TagParser.prototype.ensureEnd=function(){var ce=sliceSource(st,Ye,this._last).trim();return!(ce&&!this.addError("Unknown content '%0'",ce))},TagParser.prototype.epilogue=function epilogue(){var ce;return ce=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&ce&&"["===ce.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!yt&&!this.addError("Missing or invalid tag name")))},Ve={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var ce,ze,qe;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,st.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),ce=0,ze=(qe=Qe(Ve,this._title)?Ve[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;ce=ze||Ve<0||Ct&&ce-vt>=mt}function timerExpired(){var ce=Ye();if(shouldInvoke(ce))return trailingEdge(ce);yt=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return yt=void 0,Dt&&ot?invokeFunc(ce):(ot=st=void 0,gt)}function debounced(){var ce=Ye(),Ve=shouldInvoke(ce);if(ot=arguments,st=this,bt=ce,Ve){if(void 0===yt)return leadingEdge(bt);if(Ct)return clearTimeout(yt),yt=setTimeout(timerExpired,ze),invokeFunc(bt)}return void 0===yt&&(yt=setTimeout(timerExpired,ze)),gt}return ze=We(ze)||0,qe(Ve)&&(wt=!!Ve.leading,mt=(Ct="maxWait"in Ve)?Qe(We(Ve.maxWait)||0,ze):mt,Dt="trailing"in Ve?!!Ve.trailing:Dt),debounced.cancel=function cancel(){void 0!==yt&&clearTimeout(yt),vt=0,ot=bt=st=yt=void 0},debounced.flush=function flush(){return void 0===yt?gt:trailingEdge(Ye())},debounced}},function(ce,ze,Ve){"use strict";const qe=Ve(1286),Ye=/^[\da-fA-F]+$/,We=/^\d+$/,Qe=new WeakMap;function getJsxTokens(ce){ce=ce.Parser.acorn||ce;let ze=Qe.get(ce);if(!ze){const Ve=ce.tokTypes,qe=ce.TokContext,Ye=ce.TokenType,We=new qe("...",!0,!0),st={tc_oTag:We,tc_cTag:Xe,tc_expr:ot},mt={jsxName:new Ye("jsxName"),jsxText:new Ye("jsxText",{beforeExpr:!0}),jsxTagStart:new Ye("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Ye("jsxTagEnd")};mt.jsxTagStart.updateContext=function(){this.context.push(ot),this.context.push(We),this.exprAllowed=!1},mt.jsxTagEnd.updateContext=function(ce){let ze=this.context.pop();ze===We&&ce===Ve.slash||ze===Xe?(this.context.pop(),this.exprAllowed=this.curContext()===ot):this.exprAllowed=!0},ze={tokContexts:st,tokTypes:mt},Qe.set(ce,ze)}return ze}function getQualifiedJSXName(ce){return ce?"JSXIdentifier"===ce.type?ce.name:"JSXNamespacedName"===ce.type?ce.namespace.name+":"+ce.name.name:"JSXMemberExpression"===ce.type?getQualifiedJSXName(ce.object)+"."+getQualifiedJSXName(ce.property):void 0:ce}function plugin(ce,ze){const Qe=ze.acorn||Ve(766),Xe=getJsxTokens(Qe),ot=Qe.tokTypes,st=Xe.tokTypes,mt=Qe.tokContexts,gt=Xe.tokContexts.tc_oTag,yt=Xe.tokContexts.tc_cTag,bt=Xe.tokContexts.tc_expr,vt=Qe.isNewLine,wt=Qe.isIdentifierStart,Ct=Qe.isIdentifierChar;return class extends ze{static get acornJsx(){return Xe}jsx_readToken(){let ce="",ze=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let Ve=this.input.charCodeAt(this.pos);switch(Ve){case 60:case 123:return this.pos===this.start?60===Ve&&this.exprAllowed?(++this.pos,this.finishToken(st.jsxTagStart)):this.getTokenFromCode(Ve):(ce+=this.input.slice(ze,this.pos),this.finishToken(st.jsxText,ce));case 38:ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readEntity(),ze=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===Ve?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:vt(Ve)?(ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readNewLine(!0),ze=this.pos):++this.pos}}}jsx_readNewLine(ce){let ze,Ve=this.input.charCodeAt(this.pos);return++this.pos,13===Ve&&10===this.input.charCodeAt(this.pos)?(++this.pos,ze=ce?"\n":"\r\n"):ze=String.fromCharCode(Ve),this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze}jsx_readString(ce){let ze="",Ve=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let qe=this.input.charCodeAt(this.pos);if(qe===ce)break;38===qe?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readEntity(),Ve=this.pos):vt(qe)?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readNewLine(!1),Ve=this.pos):++this.pos}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(ot.string,ze)}jsx_readEntity(){let ce,ze="",Ve=0,Qe=this.input[this.pos];"&"!==Qe&&this.raise(this.pos,"Entity must start with an ampersand");let Xe=++this.pos;for(;this.pos")}let Qe=Ye.name?"Element":"Fragment";return Ve["opening"+Qe]=Ye,Ve["closing"+Qe]=We,Ve.children=qe,this.type===ot.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(Ve,"JSX"+Qe)}jsx_parseText(){let ce=this.parseLiteral(this.value);return ce.type="JSXText",ce}jsx_parseElement(){let ce=this.start,ze=this.startLoc;return this.next(),this.jsx_parseElementAt(ce,ze)}parseExprAtom(ce){return this.type===st.jsxText?this.jsx_parseText():this.type===st.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(ce)}readToken(ce){let ze=this.curContext();if(ze===bt)return this.jsx_readToken();if(ze===gt||ze===yt){if(wt(ce))return this.jsx_readWord();if(62==ce)return++this.pos,this.finishToken(st.jsxTagEnd);if((34===ce||39===ce)&&ze==gt)return this.jsx_readString(ce)}return 60===ce&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(st.jsxTagStart)):super.readToken(ce)}updateContext(ce){if(this.type==ot.braceL){var ze=this.curContext();ze==gt?this.context.push(mt.b_expr):ze==bt?this.context.push(mt.b_tmpl):super.updateContext(ce),this.exprAllowed=!0}else{if(this.type!==ot.slash||ce!==st.jsxTagStart)return super.updateContext(ce);this.context.length-=2,this.context.push(yt),this.exprAllowed=!1}}}}ce.exports=function(ce){return ce=ce||{},function(ze){return plugin({allowNamespaces:!1!==ce.allowNamespaces,allowNamespacedObjects:!!ce.allowNamespacedObjects},ze)}},Object.defineProperty(ce.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(Ve(766)).tokTypes},configurable:!0,enumerable:!0})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.DynamicImportKey=void 0;var qe=function(){function defineProperties(ce,ze){for(var Ve=0;Ve>5]|=1<<(31&ce)},Ye.prototype.has=function has(ce){return!!(this.bits[ce>>5]&1<<(31&ce))};var We=function Chunk(ce,ze,Ve){this.start=ce,this.end=ze,this.original=Ve,this.intro="",this.outro="",this.content=Ve,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};We.prototype.appendLeft=function appendLeft(ce){this.outro+=ce},We.prototype.appendRight=function appendRight(ce){this.intro=this.intro+ce},We.prototype.clone=function clone(){var ce=new We(this.start,this.end,this.original);return ce.intro=this.intro,ce.outro=this.outro,ce.content=this.content,ce.storeName=this.storeName,ce.edited=this.edited,ce},We.prototype.contains=function contains(ce){return this.start=qe.length)return"\t";var Ye=qe.reduce((function(ce,ze){var Ve=/^ +/.exec(ze)[0].length;return Math.min(Ve,ce)}),1/0);return new Array(Ye+1).join(" ")}function getRelativePath(ce,ze){var Ve=ce.split(/[/\\]/),qe=ze.split(/[/\\]/);for(Ve.pop();Ve[0]===qe[0];)Ve.shift(),qe.shift();if(Ve.length)for(var Ye=Ve.length;Ye--;)Ve[Ye]="..";return Ve.concat(qe).join("/")}Qe.prototype.toString=function toString(){return JSON.stringify(this)},Qe.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var Xe=Object.prototype.toString;function isObject(ce){return"[object Object]"===Xe.call(ce)}function getLocator(ce){for(var ze=ce.split("\n"),Ve=[],qe=0,Ye=0;qe>1;ce=0&&Ye.push(qe),this.rawSegments.push(Ye)}else this.pending&&this.rawSegments.push(this.pending);this.advance(ze),this.pending=null},ot.prototype.addUneditedChunk=function addUneditedChunk(ce,ze,Ve,qe,Ye){for(var We=ze.start,Qe=!0;We1){for(var Ve=0;Ve=ce&&Ve<=ze)throw new Error("Cannot move a selection inside itself");this._split(ce),this._split(ze),this._split(Ve);var qe=this.byStart[ce],Ye=this.byEnd[ze],We=qe.previous,Qe=Ye.next,Xe=this.byStart[Ve];if(!Xe&&Ye===this.lastChunk)return this;var ot=Xe?Xe.previous:this.lastChunk;return We&&(We.next=Qe),Qe&&(Qe.previous=We),ot&&(ot.next=qe),Xe&&(Xe.previous=Ye),qe.previous||(this.firstChunk=Ye.next),Ye.next||(this.lastChunk=qe.previous,this.lastChunk.next=null),qe.previous=ot,Ye.next=Xe||null,ot||(this.firstChunk=qe),Xe||(this.lastChunk=Ye),this},gt.prototype.overwrite=function overwrite(ce,ze,Ve,qe){if("string"!=typeof Ve)throw new TypeError("replacement content must be a string");for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ze>this.original.length)throw new Error("end is out of bounds");if(ce===ze)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(ce),this._split(ze),!0===qe&&(mt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),mt.storeName=!0),qe={storeName:!0});var Ye=void 0!==qe&&qe.storeName,Qe=void 0!==qe&&qe.contentOnly;if(Ye){var Xe=this.original.slice(ce,ze);Object.defineProperty(this.storedNames,Xe,{writable:!0,value:!0,enumerable:!0})}var ot=this.byStart[ce],st=this.byEnd[ze];if(ot){for(var gt=ot;gt!==st;){if(gt.next!==this.byStart[gt.end])throw new Error("Cannot overwrite across a split point");(gt=gt.next).edit("",!1)}ot.edit(Ve,Ye,Qe)}else{var yt=new We(ce,ze,"").edit(Ve,Ye);st.next=yt,yt.previous=st}return this},gt.prototype.prepend=function prepend(ce){if("string"!=typeof ce)throw new TypeError("outro content must be a string");return this.intro=ce+this.intro,this},gt.prototype.prependLeft=function prependLeft(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byEnd[ce];return Ve?Ve.prependLeft(ze):this.intro=ze+this.intro,this},gt.prototype.prependRight=function prependRight(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byStart[ce];return Ve?Ve.prependRight(ze):this.outro=ze+this.outro,this},gt.prototype.remove=function remove(ce,ze){for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ce===ze)return this;if(ce<0||ze>this.original.length)throw new Error("Character is out of bounds");if(ce>ze)throw new Error("end must be greater than start");this._split(ce),this._split(ze);for(var Ve=this.byStart[ce];Ve;)Ve.intro="",Ve.outro="",Ve.edit(""),Ve=ze>Ve.end?this.byStart[Ve.end]:null;return this},gt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var ce=this.lastChunk;do{if(ce.outro.length)return ce.outro[ce.outro.length-1];if(ce.content.length)return ce.content[ce.content.length-1];if(ce.intro.length)return ce.intro[ce.intro.length-1]}while(ce=ce.previous);return this.intro.length?this.intro[this.intro.length-1]:""},gt.prototype.lastLine=function lastLine(){var ce=this.outro.lastIndexOf(st);if(-1!==ce)return this.outro.substr(ce+1);var ze=this.outro,Ve=this.lastChunk;do{if(Ve.outro.length>0){if(-1!==(ce=Ve.outro.lastIndexOf(st)))return Ve.outro.substr(ce+1)+ze;ze=Ve.outro+ze}if(Ve.content.length>0){if(-1!==(ce=Ve.content.lastIndexOf(st)))return Ve.content.substr(ce+1)+ze;ze=Ve.content+ze}if(Ve.intro.length>0){if(-1!==(ce=Ve.intro.lastIndexOf(st)))return Ve.intro.substr(ce+1)+ze;ze=Ve.intro+ze}}while(Ve=Ve.previous);return-1!==(ce=this.intro.lastIndexOf(st))?this.intro.substr(ce+1)+ze:this.intro+ze},gt.prototype.slice=function slice(ce,ze){for(void 0===ce&&(ce=0),void 0===ze&&(ze=this.original.length);ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;for(var Ve="",qe=this.firstChunk;qe&&(qe.start>ce||qe.end<=ce);){if(qe.start=ze)return Ve;qe=qe.next}if(qe&&qe.edited&&qe.start!==ce)throw new Error("Cannot use replaced character "+ce+" as slice start anchor.");for(var Ye=qe;qe;){!qe.intro||Ye===qe&&qe.start!==ce||(Ve+=qe.intro);var We=qe.start=ze;if(We&&qe.edited&&qe.end!==ze)throw new Error("Cannot use replaced character "+ze+" as slice end anchor.");var Qe=Ye===qe?ce-qe.start:0,Xe=We?qe.content.length+ze-qe.end:qe.content.length;if(Ve+=qe.content.slice(Qe,Xe),!qe.outro||We&&qe.end!==ze||(Ve+=qe.outro),We)break;qe=qe.next}return Ve},gt.prototype.snip=function snip(ce,ze){var Ve=this.clone();return Ve.remove(0,ce),Ve.remove(ze,Ve.original.length),Ve},gt.prototype._split=function _split(ce){if(!this.byStart[ce]&&!this.byEnd[ce])for(var ze=this.lastSearchedChunk,Ve=ce>ze.end;ze;){if(ze.contains(ce))return this._splitChunk(ze,ce);ze=Ve?this.byStart[ze.end]:this.byEnd[ze.start]}},gt.prototype._splitChunk=function _splitChunk(ce,ze){if(ce.edited&&ce.content.length){var Ve=getLocator(this.original)(ze);throw new Error("Cannot split a chunk that has already been edited ("+Ve.line+":"+Ve.column+' – "'+ce.original+'")')}var qe=ce.split(ze);return this.byEnd[ze]=ce,this.byStart[ze]=qe,this.byEnd[qe.end]=qe,ce===this.lastChunk&&(this.lastChunk=qe),this.lastSearchedChunk=ce,!0},gt.prototype.toString=function toString(){for(var ce=this.intro,ze=this.firstChunk;ze;)ce+=ze.toString(),ze=ze.next;return ce+this.outro},gt.prototype.isEmpty=function isEmpty(){var ce=this.firstChunk;do{if(ce.intro.length&&ce.intro.trim()||ce.content.length&&ce.content.trim()||ce.outro.length&&ce.outro.trim())return!1}while(ce=ce.next);return!0},gt.prototype.length=function length(){var ce=this.firstChunk,length=0;do{length+=ce.intro.length+ce.content.length+ce.outro.length}while(ce=ce.next);return length},gt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},gt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},gt.prototype.trimEndAborted=function trimEndAborted(ce){var ze=new RegExp((ce||"\\s")+"+$");if(this.outro=this.outro.replace(ze,""),this.outro.length)return!0;var Ve=this.lastChunk;do{var qe=Ve.end,Ye=Ve.trimEnd(ze);if(Ve.end!==qe&&(this.lastChunk===Ve&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),Ye)return!0;Ve=Ve.previous}while(Ve);return!1},gt.prototype.trimEnd=function trimEnd(ce){return this.trimEndAborted(ce),this},gt.prototype.trimStartAborted=function trimStartAborted(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),this.intro.length)return!0;var Ve=this.firstChunk;do{var qe=Ve.end,Ye=Ve.trimStart(ze);if(Ve.end!==qe&&(Ve===this.lastChunk&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),Ye)return!0;Ve=Ve.next}while(Ve);return!1},gt.prototype.trimStart=function trimStart(ce){return this.trimStartAborted(ce),this};var yt=Object.prototype.hasOwnProperty,bt=function Bundle(ce){void 0===ce&&(ce={}),this.intro=ce.intro||"",this.separator=void 0!==ce.separator?ce.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};bt.prototype.addSource=function addSource(ce){if(ce instanceof gt)return this.addSource({content:ce,filename:ce.filename,separator:this.separator});if(!isObject(ce)||!ce.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(ze){yt.call(ce,ze)||(ce[ze]=ce.content[ze])})),void 0===ce.separator&&(ce.separator=this.separator),ce.filename)if(yt.call(this.uniqueSourceIndexByFilename,ce.filename)){var ze=this.uniqueSources[this.uniqueSourceIndexByFilename[ce.filename]];if(ce.content.original!==ze.content)throw new Error("Illegal source: same filename ("+ce.filename+"), different contents")}else this.uniqueSourceIndexByFilename[ce.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:ce.filename,content:ce.content.original});return this.sources.push(ce),this},bt.prototype.append=function append(ce,ze){return this.addSource({content:new gt(ce),separator:ze&&ze.separator||""}),this},bt.prototype.clone=function clone(){var ce=new bt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(ze){ce.addSource({filename:ze.filename,content:ze.content.clone(),separator:ze.separator})})),ce},bt.prototype.generateDecodedMap=function generateDecodedMap(ce){var ze=this;void 0===ce&&(ce={});var Ve=[];this.sources.forEach((function(ce){Object.keys(ce.content.storedNames).forEach((function(ce){~Ve.indexOf(ce)||Ve.push(ce)}))}));var qe=new ot(ce.hires);return this.intro&&qe.advance(this.intro),this.sources.forEach((function(ce,Ye){Ye>0&&qe.advance(ze.separator);var We=ce.filename?ze.uniqueSourceIndexByFilename[ce.filename]:-1,Qe=ce.content,Xe=getLocator(Qe.original);Qe.intro&&qe.advance(Qe.intro),Qe.firstChunk.eachNext((function(ze){var Ye=Xe(ze.start);ze.intro.length&&qe.advance(ze.intro),ce.filename?ze.edited?qe.addEdit(We,ze.content,Ye,ze.storeName?Ve.indexOf(ze.original):-1):qe.addUneditedChunk(We,ze,Qe.original,Ye,Qe.sourcemapLocations):qe.advance(ze.content),ze.outro.length&&qe.advance(ze.outro)})),Qe.outro&&qe.advance(Qe.outro)})),{file:ce.file?ce.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(ze){return ce.file?getRelativePath(ce.file,ze.filename):ze.filename})),sourcesContent:this.uniqueSources.map((function(ze){return ce.includeContent?ze.content:null})),names:Ve,mappings:qe.raw}},bt.prototype.generateMap=function generateMap(ce){return new Qe(this.generateDecodedMap(ce))},bt.prototype.getIndentString=function getIndentString(){var ce={};return this.sources.forEach((function(ze){var Ve=ze.content.indentStr;null!==Ve&&(ce[Ve]||(ce[Ve]=0),ce[Ve]+=1)})),Object.keys(ce).sort((function(ze,Ve){return ce[ze]-ce[Ve]}))[0]||"\t"},bt.prototype.indent=function indent(ce){var ze=this;if(arguments.length||(ce=this.getIndentString()),""===ce)return this;var Ve=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(qe,Ye){var We=void 0!==qe.separator?qe.separator:ze.separator,Qe=Ve||Ye>0&&/\r?\n$/.test(We);qe.content.indent(ce,{exclude:qe.indentExclusionRanges,indentStart:Qe}),Ve="\n"===qe.content.lastChar()})),this.intro&&(this.intro=ce+this.intro.replace(/^[^\n]/gm,(function(ze,Ve){return Ve>0?ce+ze:ze}))),this},bt.prototype.prepend=function prepend(ce){return this.intro=ce+this.intro,this},bt.prototype.toString=function toString(){var ce=this,ze=this.sources.map((function(ze,Ve){var qe=void 0!==ze.separator?ze.separator:ce.separator;return(Ve>0?qe:"")+ze.content.toString()})).join("");return this.intro+ze},bt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(ce){return!ce.content.isEmpty()}))},bt.prototype.length=function length(){return this.sources.reduce((function(ce,ze){return ce+ze.content.length()}),this.intro.length)},bt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},bt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},bt.prototype.trimStart=function trimStart(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),!this.intro){var Ve,qe=0;do{if(!(Ve=this.sources[qe++]))break}while(!Ve.content.trimStartAborted(ce))}return this},bt.prototype.trimEnd=function trimEnd(ce){var ze,Ve=new RegExp((ce||"\\s")+"+$"),qe=this.sources.length-1;do{if(!(ze=this.sources[qe--])){this.intro=this.intro.replace(Ve,"");break}}while(!ze.content.trimEndAborted(ce));return this}}).call(this,Ve(487).Buffer)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return encode}));for(var qe={},Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=0;We0&&(We+=";"),0!==Xe.length){for(var ot=0,st=[],mt=0,gt=Xe;mt1&&(bt+=encodeInteger(yt[1]-ze)+encodeInteger(yt[2]-Ve)+encodeInteger(yt[3]-qe),ze=yt[1],Ve=yt[2],qe=yt[3]),5===yt.length&&(bt+=encodeInteger(yt[4]-Ye),Ye=yt[4]),st.push(bt)}We+=st.join(",")}}return We}function encodeInteger(ce){var ze="";ce=ce<0?-ce<<1|1:ce<<1;do{var Ve=31&ce;(ce>>>=5)>0&&(Ve|=32),ze+=Ye[Ve]}while(ce>0);return ze}},function(ce,ze,Ve){"use strict";const qe=Ve(1290).generate,Ye=Ve(1291).parse,We=Ve(4),Qe=Ve(1292),Xe=Ve(1295),ot=Ve(1297),st=Ve(1298),mt=We().addRange(0,1114111),gt=We().addRange(0,65535),yt=mt.clone().remove(10,13,8232,8233),bt=yt.clone().intersection(gt),getCharacterClassEscapeSet=(ce,ze,Ve)=>ze?Ve?st.UNICODE_IGNORE_CASE.get(ce):st.UNICODE.get(ce):st.REGULAR.get(ce),getUnicodePropertyValueSet=(ce,ze)=>{const qe=ze?`${ce}/${ze}`:`Binary_Property/${ce}`;try{return Ve(1299)(`./${qe}.js`)}catch(Ve){throw new Error(`Failed to recognize value \`${ze}\` for property \`${ce}\`.`)}},handleLoneUnicodePropertyNameOrValue=ce=>{try{const ze="General_Category",Ve=Xe(ze,ce);return getUnicodePropertyValueSet(ze,Ve)}catch(ce){}const ze=Qe(ce);return getUnicodePropertyValueSet(ze)},getUnicodePropertyEscapeSet=(ce,ze)=>{const Ve=ce.split("="),qe=Ve[0];let Ye;if(1==Ve.length)Ye=handleLoneUnicodePropertyNameOrValue(qe);else{const ce=Qe(qe),ze=Xe(ce,Ve[1]);Ye=getUnicodePropertyValueSet(ce,ze)}return ze?mt.clone().remove(Ye):Ye.clone()};We.prototype.iuAddRange=function(ce,ze){const Ve=this;do{const ze=caseFold(ce);ze&&Ve.add(ze)}while(++ce<=ze);return Ve};const update=(ce,ze)=>{let Ve=Ye(ze,vt.useUnicodeFlag?"u":"");switch(Ve.type){case"characterClass":case"group":case"value":break;default:Ve=wrap(Ve,ze)}Object.assign(ce,Ve)},wrap=(ce,ze)=>({type:"group",behavior:"ignore",body:[ce],raw:`(?:${ze})`}),caseFold=ce=>ot.get(ce)||!1,processCharacterClass=(ce,ze)=>{let Ve=We();for(const ze of ce.body)switch(ze.type){case"value":if(Ve.add(ze.codePoint),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(ze.codePoint);ce&&Ve.add(ce)}break;case"characterClassRange":const ce=ze.min.codePoint,qe=ze.max.codePoint;Ve.addRange(ce,qe),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag&&Ve.iuAddRange(ce,qe);break;case"characterClassEscape":Ve.add(getCharacterClassEscapeSet(ze.value,vt.unicode,vt.ignoreCase));break;case"unicodePropertyEscape":Ve.add(getUnicodePropertyEscapeSet(ze.value,ze.negative));break;default:throw new Error(`Unknown term type: ${ze.type}`)}return ce.negative&&(Ve=(vt.unicode?mt:gt).clone().remove(Ve)),update(ce,Ve.toString(ze)),ce},updateNamedReference=(ce,ze)=>{delete ce.name,ce.matchIndex=ze},assertNoUnmatchedReferences=ce=>{const ze=Object.keys(ce.unmatchedReferences);if(ze.length>0)throw new Error(`Unknown group names: ${ze}`)},processTerm=(ce,ze,Ve)=>{switch(ce.type){case"dot":update(ce,(qe=vt.unicode,Ye=vt.dotAll,Ye?qe?mt:gt:qe?yt:bt).toString(ze));break;case"characterClass":ce=processCharacterClass(ce,ze);break;case"unicodePropertyEscape":update(ce,getUnicodePropertyEscapeSet(ce.value,ce.negative).toString(ze));break;case"characterClassEscape":update(ce,getCharacterClassEscapeSet(ce.value,vt.unicode,vt.ignoreCase).toString(ze));break;case"group":if(Ve.lastIndex++,ce.name){const ze=ce.name.value;if(Ve.names[ze])throw new Error(`Multiple groups with the same name (${ze}) are not allowed.`);const qe=Ve.lastIndex;delete ce.name,Ve.names[ze]=qe,Ve.onNamedGroup&&Ve.onNamedGroup.call(null,ze,qe),Ve.unmatchedReferences[ze]&&(Ve.unmatchedReferences[ze].forEach((ce=>{updateNamedReference(ce,qe)})),delete Ve.unmatchedReferences[ze])}case"alternative":case"disjunction":case"quantifier":ce.body=ce.body.map((ce=>processTerm(ce,ze,Ve)));break;case"value":const Qe=ce.codePoint,Xe=We(Qe);if(vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(Qe);ce&&Xe.add(ce)}update(ce,Xe.toString(ze));break;case"reference":if(ce.name){const ze=ce.name.value,qe=Ve.names[ze];if(qe){updateNamedReference(ce,qe);break}Ve.unmatchedReferences[ze]||(Ve.unmatchedReferences[ze]=[]),Ve.unmatchedReferences[ze].push(ce)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${ce.type}`)}var qe,Ye;return ce},vt={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};ce.exports=(ce,ze,Ve)=>{const We={unicodePropertyEscape:Ve&&Ve.unicodePropertyEscape,namedGroups:Ve&&Ve.namedGroup,lookbehind:Ve&&Ve.lookbehind};vt.ignoreCase=ze&&ze.includes("i"),vt.unicode=ze&&ze.includes("u");const Qe=Ve&&Ve.dotAllFlag;vt.dotAll=Qe&&ze&&ze.includes("s"),vt.useUnicodeFlag=Ve&&Ve.useUnicodeFlag;const Xe={hasUnicodeFlag:vt.useUnicodeFlag,bmpOnly:!vt.unicode},ot={onNamedGroup:Ve&&Ve.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},st=Ye(ce,ze,We);return processTerm(st,Xe,ot),assertNoUnmatchedReferences(ot),qe(st)}},function(ce,ze){ce.exports=function clipboardCopy(ce){if(navigator.clipboard)return navigator.clipboard.writeText(ce).catch((function(ce){throw void 0!==ce?ce:new DOMException("The request is not allowed","NotAllowedError")}));var ze=document.createElement("span");ze.textContent=ce,ze.style.whiteSpace="pre",ze.style.webkitUserSelect="auto",ze.style.userSelect="all",document.body.appendChild(ze);var Ve=window.getSelection(),qe=window.document.createRange();Ve.removeAllRanges(),qe.selectNode(ze),Ve.addRange(qe);var Ye=!1;try{Ye=window.document.execCommand("copy")}catch(ce){console.log("error",ce)}return Ve.removeAllRanges(),window.document.body.removeChild(ze),Ye?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(ce,ze,Ve){var qe=Ve(171).isFinite;ce.exports=function isFinite(ce){return"number"==typeof ce&&qe(ce)}},function(ce,ze,Ve){"use strict";ze.a=function stubFalse(){return!1}},function(ce,ze,Ve){"use strict";var qe=Ve(695),Ye=Ve(71);ze.a=function throttle(ce,ze,Ve){var We=!0,Qe=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");return Object(Ye.a)(Ve)&&(We="leading"in Ve?!!Ve.leading:We,Qe="trailing"in Ve?!!Ve.trailing:Qe),Object(qe.a)(ce,ze,{leading:We,maxWait:ze,trailing:Qe})}},function(ce,ze,Ve){"use strict";var qe=Ve(397);ze.a=function get(ce,ze,Ve){var Ye=null==ce?void 0:Object(qe.a)(ce,ze);return void 0===Ye?Ve:Ye}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Qe=void 0===We?24:We,Xe=ce.height,ot=void 0===Xe?24:Xe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return Ye.default.createElement("svg",qe({viewBox:"0 0 24 24",style:qe({fill:Ve,width:Qe,height:ot},mt)},gt),Ye.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Qe=void 0===We?24:We,Xe=ce.height,ot=void 0===Xe?24:Xe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return Ye.default.createElement("svg",qe({viewBox:"0 0 24 24",style:qe({fill:Ve,width:Qe,height:ot},mt)},gt),Ye.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.default=function(ce,ze){if(ce&&ze){var Ve=Array.isArray(ze)?ze:ze.split(","),qe=ce.name||"",Ye=(ce.type||"").toLowerCase(),We=Ye.replace(/\/.*$/,"");return Ve.some((function(ce){var ze=ce.trim().toLowerCase();return"."===ze.charAt(0)?qe.toLowerCase().endsWith(ze):ze.endsWith("/*")?We===ze.replace(/\/.*$/,""):Ye===ze}))}return!0}},function(ce,ze,Ve){"use strict";var qe=Ve(1908),Ye={"text/plain":"Text","text/html":"Url",default:"Text"};function format(ce){var ze=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return ce.replace(/#{\s*key\s*}/g,ze)}ce.exports=function copy(ce,ze){var Ve,We,Qe,Xe,ot,st,mt=!1;ze||(ze={}),Ve=ze.debug||!1;try{if(Qe=qe(),Xe=document.createRange(),ot=document.getSelection(),(st=document.createElement("span")).textContent=ce,st.ariaHidden="true",st.style.all="unset",st.style.position="fixed",st.style.top=0,st.style.clip="rect(0, 0, 0, 0)",st.style.whiteSpace="pre",st.style.webkitUserSelect="text",st.style.MozUserSelect="text",st.style.msUserSelect="text",st.style.userSelect="text",st.addEventListener("copy",(function(qe){if(qe.stopPropagation(),ze.format)if(qe.preventDefault(),void 0===qe.clipboardData){Ve&&console.warn("unable to use e.clipboardData"),Ve&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var We=Ye[ze.format]||Ye.default;window.clipboardData.setData(We,ce)}else qe.clipboardData.clearData(),qe.clipboardData.setData(ze.format,ce);ze.onCopy&&(qe.preventDefault(),ze.onCopy(qe.clipboardData))})),document.body.appendChild(st),Xe.selectNodeContents(st),ot.addRange(Xe),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");mt=!0}catch(qe){Ve&&console.error("unable to copy using execCommand: ",qe),Ve&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ze.format||"text",ce),ze.onCopy&&ze.onCopy(window.clipboardData),mt=!0}catch(qe){Ve&&console.error("unable to copy using clipboardData: ",qe),Ve&&console.error("falling back to prompt"),We=format("message"in ze?ze.message:"Copy to clipboard: #{key}, Enter"),window.prompt(We,ce)}}finally{ot&&("function"==typeof ot.removeRange?ot.removeRange(Xe):ot.removeAllRanges()),st&&document.body.removeChild(st),Qe()}return mt}},function(ce,ze,Ve){"use strict";var qe=Ve(98),Ye=Ve(268);ze.a=function isElement(ce){return Object(qe.a)(ce)&&1===ce.nodeType&&!Object(Ye.a)(ce)}},,,,function(ce,ze,Ve){Ve(803),Ve(1098),Ve(1099),Ve(1100),ce.exports=Ve(2123)},function(ce,ze,Ve){"use strict";Ve.r(ze),ze.default={}},function(ce,ze){globalThis.STYLEGUIDE_CURRENT_VERSION="2.5",globalThis.STYLEGUIDE_AVAILABLE_VERSIONS=["latest","2.5","2.4","2.3","2.2","2.1","2.0"]},function(ce,ze,Ve){"use strict";Ve.r(ze);Ve(1101),Ve(1119),Ve(1138);!function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,n),qe.l=!0,qe.exports}n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)n.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=19)}([function(ce,ze,Ve){ce.exports=Ve(13)},function(ce,ze,Ve){(function(ce){var qe=Ve(2),Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(7),Xe=Ve.n(Qe),ot=Ve(8),st=Ve(9),mt=Ve(4),gt=Ve(3),yt=Ve.n(gt);function p(){return(p=Object.assign||function(ce){for(var ze=1;ze1?ze-1:0),qe=1;qe0?" Args: "+Ve.join(", "):""))}var kt=function(){function e(ce){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=ce}var ce=e.prototype;return ce.indexOfGroup=function(ce){for(var ze=0,Ve=0;Ve=this.groupSizes.length){for(var Ve=this.groupSizes,qe=Ve.length,Ye=qe;ce>=Ye;)(Ye<<=1)<0&&E(16,""+ce);this.groupSizes=new Uint32Array(Ye),this.groupSizes.set(Ve),this.length=Ye;for(var We=qe;We=this.length||0===this.groupSizes[ce])return ze;for(var Ve=this.groupSizes[ce],qe=this.indexOfGroup(ce),Ye=qe+Ve,We=qe;We=Et&&(Et=ze+1),St.set(ce,ze),xt.set(ze,ce)},Pt="style["+wt+'][data-styled-version="5.3.3"]',Tt=new RegExp("^"+wt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(ce,ze,Ve){for(var qe,Ye=Ve.split(","),We=0,Qe=Ye.length;We=0;Ve--){var qe=ze[Ve];if(qe&&1===qe.nodeType&&qe.hasAttribute(wt))return qe}}(Ve),We=void 0!==Ye?Ye.nextSibling:null;qe.setAttribute(wt,"active"),qe.setAttribute("data-styled-version","5.3.3");var Qe=j();return Qe&&qe.setAttribute("nonce",Qe),Ve.insertBefore(qe,We),qe},Lt=function(){function e(ce){var ze=this.element=D(ce);ze.appendChild(document.createTextNode("")),this.sheet=function(ce){if(ce.sheet)return ce.sheet;for(var ze=document.styleSheets,Ve=0,qe=ze.length;Ve=0){var Ve=document.createTextNode(ze),qe=this.nodes[ce];return this.element.insertBefore(Ve,qe||null),this.length++,!0}return!1},ce.deleteRule=function(ce){this.element.removeChild(this.nodes[ce]),this.length--},ce.getRule=function(ce){return ce0&&(st+=ce+",")})),qe+=""+Xe+ot+'{content:"'+st+'"}/*!sc*/\n'}}}return qe}(this)},e}(),Wt=/(a)(d)/gi,H=function(ce){return String.fromCharCode(ce+(ce>25?39:97))};function Q(ce){var ze,Ve="";for(ze=Math.abs(ce);ze>52;ze=ze/52|0)Ve=H(ze%52)+Ve;return(H(ze%52)+Ve).replace(Wt,"$1-$2")}var q=function(ce,ze){for(var Ve=ze.length;Ve;)ce=33*ce^ze.charCodeAt(--Ve);return ce},Y=function(ce){return q(5381,ce)};function K(ce){for(var ze=0;ze>>0);if(!ze.hasNameForId(qe,Qe)){var Xe=Ve(We,"."+Qe,void 0,qe);ze.insertRules(qe,Qe,Xe)}Ye.push(Qe),this.staticRulesId=Qe}else{for(var ot=this.rules.length,st=q(this.baseHash,Ve.hash),mt="",gt=0;gt>>0);if(!ze.hasNameForId(qe,wt)){var Ct=Ve(mt,"."+wt,void 0,qe);ze.insertRules(qe,wt,Ct)}Ye.push(wt)}}return Ye.join(" ")},e}(),en=/^\s*\/\/.*$/gm,rn=[":","[",".","#"];function ee(ce){var ze,Ve,qe,Ye,We=void 0===ce?vt:ce,Qe=We.options,Xe=void 0===Qe?vt:Qe,st=We.plugins,mt=void 0===st?bt:st,gt=new ot.a(Xe),yt=[],wt=function(ce){function t(ze){if(ze)try{ce(ze+"}")}catch(ce){}}return function(ze,Ve,qe,Ye,We,Qe,Xe,ot,st,mt){switch(ze){case 1:if(0===st&&64===Ve.charCodeAt(0))return ce(Ve+";"),"";break;case 2:if(0===ot)return Ve+"/*|*/";break;case 3:switch(ot){case 102:case 112:return ce(qe[0]+Ve),"";default:return Ve+(0===mt?"/*|*/":"")}case-2:Ve.split("/*|*/}").forEach(t)}}}((function(ce){yt.push(ce)})),h=function(ce,qe,We){return 0===qe&&-1!==rn.indexOf(We[Ve.length])||We.match(Ye)?ce:"."+ze};function m(ce,We,Qe,Xe){void 0===Xe&&(Xe="&");var ot=ce.replace(en,""),st=We&&Qe?Qe+" "+We+" { "+ot+" }":ot;return ze=Xe,Ve=We,qe=new RegExp("\\"+Ve+"\\b","g"),Ye=new RegExp("(\\"+Ve+"\\b){2,}"),gt(Qe||!We?"":We,st)}return gt.use([].concat(mt,[function(ce,ze,Ye){2===ce&&Ye.length&&Ye[0].lastIndexOf(Ve)>0&&(Ye[0]=Ye[0].replace(qe,h))},wt,function(ce){if(-2===ce){var ze=yt;return yt=[],ze}}])),m.hash=mt.length?mt.reduce((function(ce,ze){return ze.name||E(15),q(ce,ze.name)}),5381).toString():"",m}var ln=We.a.createContext(),mn=(ln.Consumer,We.a.createContext()),gn=(mn.Consumer,new Ut),bn=ee();function oe(){return Object(Ye.useContext)(ln)||gn}function ae(){return Object(Ye.useContext)(mn)||bn}function le(ce){var ze=Object(Ye.useState)(ce.stylisPlugins),Ve=ze[0],qe=ze[1],Qe=oe(),ot=Object(Ye.useMemo)((function(){var ze=Qe;return ce.sheet?ze=ce.sheet:ce.target&&(ze=ze.reconstructWithOptions({target:ce.target},!1)),ce.disableCSSOMInjection&&(ze=ze.reconstructWithOptions({useCSSOMInjection:!1})),ze}),[ce.disableCSSOMInjection,ce.sheet,ce.target]),st=Object(Ye.useMemo)((function(){return ee({options:{prefix:!ce.disableVendorPrefixes},plugins:Ve})}),[ce.disableVendorPrefixes,Ve]);return Object(Ye.useEffect)((function(){Xe()(Ve,ce.stylisPlugins)||qe(ce.stylisPlugins)}),[ce.stylisPlugins]),We.a.createElement(ln.Provider,{value:ot},We.a.createElement(mn.Provider,{value:st},ce.children))}var wn=function(){function e(ce,ze){var Ve=this;this.inject=function(ce,ze){void 0===ze&&(ze=bn);var qe=Ve.name+ze.hash;ce.hasNameForId(Ve.id,qe)||ce.insertRules(Ve.id,qe,ze(Ve.rules,qe,"@keyframes"))},this.toString=function(){return E(12,String(Ve.name))},this.name=ce,this.id="sc-keyframes-"+ce,this.rules=ze}return e.prototype.getName=function(ce){return void 0===ce&&(ce=bn),this.name+ce.hash},e}(),Cn=/([A-Z])/,Sn=/([A-Z])/g,En=/^ms-/,de=function(ce){return"-"+ce.toLowerCase()};function pe(ce){return Cn.test(ce)?ce.replace(Sn,de).replace(En,"-ms-"):ce}var he=function(ce){return null==ce||!1===ce||""===ce};function me(ce,ze,Ve,qe){if(Array.isArray(ce)){for(var Ye,We=[],Qe=0,Xe=ce.length;Qe1?ze-1:0),qe=1;qe?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function ke(ce){return ce.replace(Tn,"-").replace(Ln,"")}var xe=function(ce){return Q(Y(ce)>>>0)};function Se(ce){return"string"==typeof ce&&!0}var Ee=function(ce){return"function"==typeof ce||"object"==typeof ce&&null!==ce&&!Array.isArray(ce)},Te=function(ce){return"__proto__"!==ce&&"constructor"!==ce&&"prototype"!==ce};function Ce(ce,ze,Ve){var qe=ce[Ve];Ee(ze)&&Ee(qe)?Pe(qe,ze):ce[Ve]=ze}function Pe(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe=0||(Ye[Ve]=ce[Ve]);return Ye}(ze,["componentId"]),We=qe&&qe+"-"+(Se(ce)?ce:ke(b(ce)));return Ae(ce,p({},Ye,{attrs:kt,componentId:We}),Ve)},Object.defineProperty(xt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(ze){this._foldedDefaultProps=qe?Pe({},ce.defaultProps,ze):ze}}),xt.toString=function(){return"."+xt.styledComponentId},Qe&&yt()(xt,ce,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),xt}var Ne=function(ce){return function e(ce,ze,Ve){if(void 0===Ve&&(Ve=vt),!Object(qe.isValidElementType)(ze))return E(1,String(ze));var o=function(){return ce(ze,Ve,ve.apply(void 0,arguments))};return o.withConfig=function(qe){return e(ce,ze,p({},Ve,{},qe))},o.attrs=function(qe){return e(ce,ze,p({},Ve,{attrs:Array.prototype.concat(Ve.attrs,qe).filter(Boolean)}))},o}(Ae,ce)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(ce){Ne[ce]=Ne(ce)})),function(){var ce=function e(ce,ze){this.rules=ce,this.componentId=ze,this.isStatic=K(ce),Ut.registerId(this.componentId+1)}.prototype;ce.createStyles=function(ce,ze,Ve,qe){var Ye=qe(me(this.rules,ze,Ve,qe).join(""),""),We=this.componentId+ce;Ve.insertRules(We,We,Ye)},ce.removeStyles=function(ce,ze){ze.clearRules(this.componentId+ce)},ce.renderStyles=function(ce,ze,Ve,qe){ce>2&&Ut.registerId(this.componentId+ce),this.removeStyles(ce,Ve),this.createStyles(ce,ze,Ve,qe)}}(),function(){var ce=function e(){var ce=this;this._emitSheetCSS=function(){var ze=ce.instance.toString();if(!ze)return"";var Ve=j();return""},this.getStyleTags=function(){return ce.sealed?E(2):ce._emitSheetCSS()},this.getStyleElement=function(){var ze;if(ce.sealed)return E(2);var Ve=((ze={})[wt]="",ze["data-styled-version"]="5.3.3",ze.dangerouslySetInnerHTML={__html:ce.instance.toString()},ze),qe=j();return qe&&(Ve.nonce=qe),[We.a.createElement("style",p({},Ve,{key:"sc-0-0"}))]},this.seal=function(){ce.sealed=!0},this.instance=new Ut({isServer:!0}),this.sealed=!1}.prototype;ce.collectStyles=function(ce){return this.sealed?E(2):We.a.createElement(le,{sheet:this.instance},ce)},ce.interleaveWithNodeStream=function(ce){return E(3)}}(),ze.a=Ne}).call(this,Ve(17))},function(ce,ze,Ve){ce.exports=Ve(18)},function(ce,ze,Ve){var qe=Ve(2),Ye={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},We={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xe={};function u(ce){return qe.isMemo(ce)?Qe:Xe[ce.$$typeof]||Ye}Xe[qe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xe[qe.Memo]=Qe;var ot=Object.defineProperty,st=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,gt=Object.getOwnPropertyDescriptor,yt=Object.getPrototypeOf,bt=Object.prototype;ce.exports=function e(ce,ze,Ve){if("string"!=typeof ze){if(bt){var qe=yt(ze);qe&&qe!==bt&&e(ce,qe,Ve)}var Ye=st(ze);mt&&(Ye=Ye.concat(mt(ze)));for(var Qe=u(ce),Xe=u(ze),vt=0;vtqe&&(qe=(ze=ze.trim()).charCodeAt(0)),qe){case 38:return ze.replace(Xe,"$1"+ce.trim());case 58:return ce.trim()+ze.replace(Xe,"$1"+ce.trim());default:if(0<1*Ve&&0st.charCodeAt(8))break;case 115:Xe=Xe.replace(st,"-webkit-"+st)+";"+Xe;break;case 207:case 102:Xe=Xe.replace(st,"-webkit-"+(102Ye.charCodeAt(0)&&(Ye=Ye.trim()),Ye=[Ye],0Xe)&&(en=(mn=mn.replace(" ",":")).length),0Lt.length&&Lt.push(ce)}function I(ce,ze,Ve){return null==ce?0:function e(ce,ze,Ve,qe){var Ye=typeof ce;"undefined"!==Ye&&"boolean"!==Ye||(ce=null);var Xe=!1;if(null===ce)Xe=!0;else switch(Ye){case"string":case"number":Xe=!0;break;case"object":switch(ce.$$typeof){case We:case Qe:Xe=!0}}if(Xe)return Ve(qe,ce,""===ze?"."+z(ce,0):ze),1;if(Xe=0,ze=""===ze?".":ze+":",Array.isArray(ce))for(var ot=0;ot
b)","g");return"b"!==ce.exec("b").groups.a||"bc"!=="b".replace(ce,"$c")}))},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(472),We=Ve(147),Qe=Ve(319),Xe=Ve(208),ot=Ve(1158),st=Ve(149),mt=Ve(419),gt=Ve(473);Ye("search",(function(ce,ze,Ve){return[function search(ze){var Ve=Xe(this),Ye=Qe(ze)?void 0:mt(ze,ce);return Ye?qe(Ye,ze,Ve):new RegExp(ze)[ce](st(Ve))},function(ce){var qe=We(this),Ye=st(ce),Qe=Ve(ze,qe,Ye);if(Qe.done)return Qe.value;var Xe=qe.lastIndex;ot(Xe,0)||(qe.lastIndex=0);var mt=gt(qe,Ye);return ot(qe.lastIndex,Xe)||(qe.lastIndex=Xe),null===mt?-1:mt.index}]}))},function(ce,ze,Ve){"use strict";var qe=Ve(1162);ce.exports=function(ce,ze){return new(qe(ce))(0===ze?0:ze)}},function(ce,ze,Ve){"use strict";var qe=Ve(70),Ye=Ve(61),We=Ve(106),Qe=Ve(470),Xe=Ve(246),ot=Ve(827),noop=function(){},st=Xe("Reflect","construct"),mt=/^\s*(?:class|function)\b/,gt=qe(mt.exec),yt=!mt.test(noop),bt=function isConstructor(ce){if(!We(ce))return!1;try{return st(noop,[],ce),!0}catch(ce){return!1}},vt=function isConstructor(ce){if(!We(ce))return!1;switch(Qe(ce)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yt||!!gt(mt,ot(ce))}catch(ce){return!0}};vt.sham=!0,ce.exports=!st||Ye((function(){var ce;return bt(bt.call)||!bt(Object)||!bt((function(){ce=!0}))||ce}))?vt:bt},function(ce,ze,Ve){"use strict";var qe=Ve(111),Ye=Ve(106),We=Ve(209),Qe=Ve(464),Xe=Ve(839),ot=Qe("IE_PROTO"),st=Object,mt=st.prototype;ce.exports=Xe?st.getPrototypeOf:function(ce){var ze=We(ce);if(qe(ze,ot))return ze[ot];var Ve=ze.constructor;return Ye(Ve)&&ze instanceof Ve?Ve.prototype:ze instanceof st?mt:null}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(ce,ze,Ve){"use strict";var qe=Ve(837),Ye=Ve(462),We=TypeError;ce.exports=function(ce){if(qe(ce))return ce;throw new We(Ye(ce)+" is not a constructor")}},function(ce,ze,Ve){"use strict";var qe=Ve(136),Ye=Ve(111),We=Ve(343),Qe=Ve(742),Xe=RegExp.prototype;ce.exports=function(ce){var ze=ce.flags;return void 0!==ze||"flags"in Xe||Ye(ce,"flags")||!We(Xe,ce)?ze:qe(Qe,ce)}},function(ce,ze,Ve){(function(ze){var Ve="object"==typeof ze&&ze&&ze.Object===Object&&ze;ce.exports=Ve}).call(this,Ve(146))},function(ce,ze){var Ve=Function.prototype.toString;ce.exports=function toSource(ce){if(null!=ce){try{return Ve.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){var qe=Ve(754),Ye=Ve(424);ce.exports=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Ye(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&qe(ce,ze,Ve)}},function(ce,ze,Ve){var qe=Ve(320),Ye=function(){try{var ce=qe(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ce.exports=Ye},function(ce,ze,Ve){var qe=Ve(1196)();ce.exports=qe},function(ce,ze,Ve){(function(ce){var qe=Ve(171),Ye=ze&&!ze.nodeType&&ze,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=We&&We.exports===Ye?qe.Buffer:void 0,Xe=Qe?Qe.allocUnsafe:void 0;ce.exports=function cloneBuffer(ce,ze){if(ze)return ce.slice();var Ve=ce.length,qe=Xe?Xe(Ve):new ce.constructor(Ve);return ce.copy(qe),qe}}).call(this,Ve(322)(ce))},function(ce,ze,Ve){var qe=Ve(755);ce.exports=function cloneTypedArray(ce,ze){var Ve=ze?qe(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.length)}},function(ce,ze,Ve){var qe=Ve(171).Uint8Array;ce.exports=qe},function(ce,ze){ce.exports=function copyArray(ce,ze){var Ve=-1,qe=ce.length;for(ze||(ze=Array(qe));++Ve=97&&Qe<=122||Qe>=65&&Qe<=90||36===Qe||95===Qe;for(We=new Array(128),Qe=0;Qe<128;++Qe)We[Qe]=Qe>=97&&Qe<=122||Qe>=65&&Qe<=90||Qe>=48&&Qe<=57||36===Qe||95===Qe;ce.exports={isDecimalDigit:function isDecimalDigit(ce){return 48<=ce&&ce<=57},isHexDigit:function isHexDigit(ce){return 48<=ce&&ce<=57||97<=ce&&ce<=102||65<=ce&&ce<=70},isOctalDigit:function isOctalDigit(ce){return ce>=48&&ce<=55},isWhiteSpace:function isWhiteSpace(ce){return 32===ce||9===ce||11===ce||12===ce||160===ce||ce>=5760&&qe.indexOf(ce)>=0},isLineTerminator:function isLineTerminator(ce){return 10===ce||13===ce||8232===ce||8233===ce},isIdentifierStartES5:function isIdentifierStartES5(ce){return ce<128?Ye[ce]:Ve.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES5:function isIdentifierPartES5(ce){return ce<128?We[ce]:Ve.NonAsciiIdentifierPart.test(fromCodePoint(ce))},isIdentifierStartES6:function isIdentifierStartES6(ce){return ce<128?Ye[ce]:ze.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES6:function isIdentifierPartES6(ce){return ce<128?We[ce]:ze.NonAsciiIdentifierPart.test(fromCodePoint(ce))}}}()},function(ce,ze,Ve){!function(){"use strict";var ce,qe;function DoctrineError(ce){this.name="DoctrineError",this.message=ce}ce=Ve(1235).version,ze.VERSION=ce,DoctrineError.prototype=((qe=function(){}).prototype=Error.prototype,new qe),DoctrineError.prototype.constructor=DoctrineError,ze.DoctrineError=DoctrineError,ze.throwError=function throwError(ce){throw new DoctrineError(ce)},ze.assert=Ve(1236)}()},function(ce,ze,Ve){(function(ce){var qe=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(ce){for(var ze=Object.keys(ce),Ve={},qe=0;qe=We)return ce;switch(ce){case"%s":return String(qe[Ve++]);case"%d":return Number(qe[Ve++]);case"%j":try{return JSON.stringify(qe[Ve++])}catch(ce){return"[Circular]"}default:return ce}})),Xe=qe[Ve];Ve=3&&(qe.depth=arguments[2]),arguments.length>=4&&(qe.colors=arguments[3]),isBoolean(Ve)?qe.showHidden=Ve:Ve&&ze._extend(qe,Ve),isUndefined(qe.showHidden)&&(qe.showHidden=!1),isUndefined(qe.depth)&&(qe.depth=2),isUndefined(qe.colors)&&(qe.colors=!1),isUndefined(qe.customInspect)&&(qe.customInspect=!0),qe.colors&&(qe.stylize=stylizeWithColor),formatValue(qe,ce,qe.depth)}function stylizeWithColor(ce,ze){var Ve=inspect.styles[ze];return Ve?"["+inspect.colors[Ve][0]+"m"+ce+"["+inspect.colors[Ve][1]+"m":ce}function stylizeNoColor(ce,ze){return ce}function arrayToHash(ce){var ze={};return ce.forEach((function(ce,Ve){ze[ce]=!0})),ze}function formatValue(ce,Ve,qe){if(ce.customInspect&&Ve&&isFunction(Ve.inspect)&&Ve.inspect!==ze.inspect&&(!Ve.constructor||Ve.constructor.prototype!==Ve)){var Ye=Ve.inspect(qe,ce);return isString(Ye)||(Ye=formatValue(ce,Ye,qe)),Ye}var We=formatPrimitive(ce,Ve);if(We)return We;var Qe=Object.keys(Ve),Xe=arrayToHash(Qe);if(ce.showHidden&&(Qe=Object.getOwnPropertyNames(Ve)),isError(Ve)&&(Qe.indexOf("message")>=0||Qe.indexOf("description")>=0))return formatError(Ve);if(0===Qe.length){if(isFunction(Ve)){var ot=Ve.name?": "+Ve.name:"";return ce.stylize("[Function"+ot+"]","special")}if(isRegExp(Ve))return ce.stylize(RegExp.prototype.toString.call(Ve),"regexp");if(isDate(Ve))return ce.stylize(Date.prototype.toString.call(Ve),"date");if(isError(Ve))return formatError(Ve)}var st,mt="",gt=!1,yt=["{","}"];(isArray(Ve)&&(gt=!0,yt=["[","]"]),isFunction(Ve))&&(mt=" [Function"+(Ve.name?": "+Ve.name:"")+"]");return isRegExp(Ve)&&(mt=" "+RegExp.prototype.toString.call(Ve)),isDate(Ve)&&(mt=" "+Date.prototype.toUTCString.call(Ve)),isError(Ve)&&(mt=" "+formatError(Ve)),0!==Qe.length||gt&&0!=Ve.length?qe<0?isRegExp(Ve)?ce.stylize(RegExp.prototype.toString.call(Ve),"regexp"):ce.stylize("[Object]","special"):(ce.seen.push(Ve),st=gt?formatArray(ce,Ve,qe,Xe,Qe):Qe.map((function(ze){return formatProperty(ce,Ve,qe,Xe,ze,gt)})),ce.seen.pop(),reduceToSingleString(st,mt,yt)):yt[0]+mt+yt[1]}function formatPrimitive(ce,ze){if(isUndefined(ze))return ce.stylize("undefined","undefined");if(isString(ze)){var Ve="'"+JSON.stringify(ze).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(Ve,"string")}return isNumber(ze)?ce.stylize(""+ze,"number"):isBoolean(ze)?ce.stylize(""+ze,"boolean"):isNull(ze)?ce.stylize("null","null"):void 0}function formatError(ce){return"["+Error.prototype.toString.call(ce)+"]"}function formatArray(ce,ze,Ve,qe,Ye){for(var We=[],Qe=0,Xe=ze.length;Qe-1&&(Xe=We?Xe.split("\n").map((function(ce){return" "+ce})).join("\n").substr(2):"\n"+Xe.split("\n").map((function(ce){return" "+ce})).join("\n")):Xe=ce.stylize("[Circular]","special")),isUndefined(Qe)){if(We&&Ye.match(/^\d+$/))return Xe;(Qe=JSON.stringify(""+Ye)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=ce.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=ce.stylize(Qe,"string"))}return Qe+": "+Xe}function reduceToSingleString(ce,ze,Ve){return ce.reduce((function(ce,ze){return ze.indexOf("\n")>=0&&0,ce+ze.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?Ve[0]+(""===ze?"":ze+"\n ")+" "+ce.join(",\n ")+" "+Ve[1]:Ve[0]+ze+" "+ce.join(", ")+" "+Ve[1]}function isArray(ce){return Array.isArray(ce)}function isBoolean(ce){return"boolean"==typeof ce}function isNull(ce){return null===ce}function isNumber(ce){return"number"==typeof ce}function isString(ce){return"string"==typeof ce}function isUndefined(ce){return void 0===ce}function isRegExp(ce){return isObject(ce)&&"[object RegExp]"===objectToString(ce)}function isObject(ce){return"object"==typeof ce&&null!==ce}function isDate(ce){return isObject(ce)&&"[object Date]"===objectToString(ce)}function isError(ce){return isObject(ce)&&("[object Error]"===objectToString(ce)||ce instanceof Error)}function isFunction(ce){return"function"==typeof ce}function objectToString(ce){return Object.prototype.toString.call(ce)}function pad(ce){return ce<10?"0"+ce.toString(10):ce.toString(10)}ze.debuglog=function(Ve){if(isUndefined(We)&&(We=ce.env.NODE_DEBUG||""),Ve=Ve.toUpperCase(),!Qe[Ve])if(new RegExp("\\b"+Ve+"\\b","i").test(We)){var qe=ce.pid;Qe[Ve]=function(){var ce=ze.format.apply(ze,arguments);console.error("%s %d: %s",Ve,qe,ce)}}else Qe[Ve]=function(){};return Qe[Ve]},ze.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ze.isArray=isArray,ze.isBoolean=isBoolean,ze.isNull=isNull,ze.isNullOrUndefined=function isNullOrUndefined(ce){return null==ce},ze.isNumber=isNumber,ze.isString=isString,ze.isSymbol=function isSymbol(ce){return"symbol"==typeof ce},ze.isUndefined=isUndefined,ze.isRegExp=isRegExp,ze.isObject=isObject,ze.isDate=isDate,ze.isError=isError,ze.isFunction=isFunction,ze.isPrimitive=function isPrimitive(ce){return null===ce||"boolean"==typeof ce||"number"==typeof ce||"string"==typeof ce||"symbol"==typeof ce||void 0===ce},ze.isBuffer=Ve(1237);var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}ze.log=function(){var ce,Ve;console.log("%s - %s",(ce=new Date,Ve=[pad(ce.getHours()),pad(ce.getMinutes()),pad(ce.getSeconds())].join(":"),[ce.getDate(),Xe[ce.getMonth()],Ve].join(" ")),ze.format.apply(ze,arguments))},ze.inherits=Ve(1238),ze._extend=function(ce,ze){if(!ze||!isObject(ze))return ce;for(var Ve=Object.keys(ze),qe=Ve.length;qe--;)ce[Ve[qe]]=ze[Ve[qe]];return ce};var ot="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(ce,ze){if(!ce){var Ve=new Error("Promise was rejected with a falsy value");Ve.reason=ce,ce=Ve}return ze(ce)}ze.promisify=function promisify(ce){if("function"!=typeof ce)throw new TypeError('The "original" argument must be of type Function');if(ot&&ce[ot]){var ze;if("function"!=typeof(ze=ce[ot]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ze,ot,{value:ze,enumerable:!1,writable:!1,configurable:!0}),ze}function ze(){for(var ze,Ve,qe=new Promise((function(ce,qe){ze=ce,Ve=qe})),Ye=[],We=0;Wemt))return!1;var yt=ot.get(ce),bt=ot.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new qe:void 0;for(ot.set(ce,ze),ot.set(ze,ce);++vt@^][^\s!#%&*+<=>@^]*>/,ln=/a/g,mn=/a/g,gn=new Bt(ln)!==ln,bn=wt.MISSED_STICKY,wn=wt.UNSUPPORTED_Y,Cn=qe&&(!gn||bn||Tt||Lt||kt((function(){return mn[Ft]=!1,Bt(ln)!==ln||Bt(mn)===mn||"/a/i"!==String(Bt(ln,"i"))}))),handleDotAll=function(ce){for(var ze,Ve=ce.length,qe=0,Ye="",We=!1;qe<=Ve;qe++)"\\"!==(ze=Wt(ce,qe))?We||"."!==ze?("["===ze?We=!0:"]"===ze&&(We=!1),Ye+=ze):Ye+="[\\s\\S]":Ye+=ze+Wt(ce,++qe);return Ye},handleNCG=function(ce){for(var ze,Ve=ce.length,qe=0,Ye="",We=[],Qe=st(null),Xe=!1,ot=!1,mt=0,gt="";qe<=Ve;qe++){if("\\"===(ze=Wt(ce,qe)))ze+=Wt(ce,++qe);else if("]"===ze)Xe=!1;else if(!Xe)switch(!0){case"["===ze:Xe=!0;break;case"("===ze:if(Ye+=ze,"?:"===en(ce,qe+1,qe+3))continue;Ut(rn,en(ce,qe+1))&&(qe+=2,ot=!0),mt++;continue;case">"===ze&&ot:if(""===gt||St(Qe,gt))throw new Ht("Invalid capture group name");Qe[gt]=!0,We[We.length]=[gt,mt],ot=!1,gt="";continue}ot?gt+=ze:Ye+=ze}return[Ye,We]};if(Qe("RegExp",Cn)){for(var Sn=function RegExp(ce,ze){var Ve,qe,Ye,We,Qe,st,mt=gt(Vt,this),wt=yt(ce),Ct=void 0===ze,Dt=[],kt=ce;if(!mt&&wt&&Ct&&ce.constructor===Sn)return ce;if((wt||gt(Vt,ce))&&(ce=ce.source,Ct&&(ze=vt(kt))),ce=void 0===ce?"":bt(ce),ze=void 0===ze?"":bt(ze),kt=ce,Tt&&"dotAll"in ln&&(qe=!!ze&&Qt(ze,"s")>-1)&&(ze=Jt(ze,/s/g,"")),Ve=ze,bn&&"sticky"in ln&&(Ye=!!ze&&Qt(ze,"y")>-1)&&wn&&(ze=Jt(ze,/y/g,"")),Lt&&(ce=(We=handleNCG(ce))[0],Dt=We[1]),Qe=Xe(Bt(ce,ze),mt?this:Vt,Sn),(qe||Ye||Dt.length)&&(st=xt(Qe),qe&&(st.dotAll=!0,st.raw=Sn(handleDotAll(ce),Ve)),Ye&&(st.sticky=!0),Dt.length&&(st.groups=Dt)),ce!==kt)try{ot(Qe,"source",""===kt?"(?:)":kt)}catch(ce){}return Qe},En=mt(Bt),Tn=0;En.length>Tn;)Ct(Sn,Bt,En[Tn++]);Vt.constructor=Sn,Sn.prototype=Vt,Dt(Ye,"RegExp",Sn,{constructor:!0})}Et("RegExp")},function(ce,ze,Ve){"use strict";var qe=Ve(1274),Ye=Ve(121),We=Ve(208),Qe=Ve(1275);ce.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce,ze=!1,Ve={};try{(ce=qe(Object.prototype,"__proto__","set"))(Ve,[]),ze=Ve instanceof Array}catch(ce){}return function setPrototypeOf(Ve,qe){return We(Ve),Qe(qe),Ye(Ve)?(ze?ce(Ve,qe):Ve.__proto__=qe,Ve):Ve}}():void 0)},function(ce,ze,Ve){var qe=Ve(1282),Ye=Ve(186),We=Ve(485),Qe=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,st=parseInt;ce.exports=function toNumber(ce){if("number"==typeof ce)return ce;if(We(ce))return NaN;if(Ye(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=Ye(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=qe(ce);var Ve=Xe.test(ce);return Ve||ot.test(ce)?st(ce.slice(2),Ve?2:8):Qe.test(ce)?NaN:+ce}},function(ce,ze,Ve){"use strict";var qe=Ve(88),Ye=Ve(1284).trim;qe({target:"String",proto:!0,forced:Ve(1285)("trim")},{trim:function trim(){return Ye(this)}})},function(ce,ze,Ve){"use strict";ce.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(ce,ze,Ve){"use strict";var qe=Ve(429).forEach,Ye=Ve(484)("forEach");ce.exports=Ye?[].forEach:function forEach(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}},function(ce,ze,Ve){"use strict";var qe=Ve(61);ce.exports=!qe((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(ce,ze,Ve){},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ValueScope=ze.ValueScopeName=ze.Scope=ze.varKinds=ze.UsedValueState=void 0;const qe=Ve(491);class Ye extends Error{constructor(ce){super(`CodeGen: "code" for ${ce} not defined`),this.value=ce.value}}var We;!function(ce){ce[ce.Started=0]="Started",ce[ce.Completed=1]="Completed"}(We||(ze.UsedValueState=We={})),ze.varKinds={const:new qe.Name("const"),let:new qe.Name("let"),var:new qe.Name("var")};class Qe{constructor({prefixes:ce,parent:ze}={}){this._names={},this._prefixes=ce,this._parent=ze}toName(ce){return ce instanceof qe.Name?ce:this.name(ce)}name(ce){return new qe.Name(this._newName(ce))}_newName(ce){return`${ce}${(this._names[ce]||this._nameGroup(ce)).index++}`}_nameGroup(ce){var ze,Ve;if((null===(Ve=null===(ze=this._parent)||void 0===ze?void 0:ze._prefixes)||void 0===Ve?void 0:Ve.has(ce))||this._prefixes&&!this._prefixes.has(ce))throw new Error(`CodeGen: prefix "${ce}" is not allowed in this scope`);return this._names[ce]={prefix:ce,index:0}}}ze.Scope=Qe;class Xe extends qe.Name{constructor(ce,ze){super(ze),this.prefix=ce}setValue(ce,{property:ze,itemIndex:Ve}){this.value=ce,this.scopePath=qe._`.${new qe.Name(ze)}[${Ve}]`}}ze.ValueScopeName=Xe;const ot=qe._`\n`;ze.ValueScope=class extends Qe{constructor(ce){super(ce),this._values={},this._scope=ce.scope,this.opts={...ce,_n:ce.lines?ot:qe.nil}}get(){return this._scope}name(ce){return new Xe(ce,this._newName(ce))}value(ce,ze){var Ve;if(void 0===ze.ref)throw new Error("CodeGen: ref must be passed in value");const qe=this.toName(ce),{prefix:Ye}=qe,We=null!==(Ve=ze.key)&&void 0!==Ve?Ve:ze.ref;let Qe=this._values[Ye];if(Qe){const ce=Qe.get(We);if(ce)return ce}else Qe=this._values[Ye]=new Map;Qe.set(We,qe);const Xe=this._scope[Ye]||(this._scope[Ye]=[]),ot=Xe.length;return Xe[ot]=ze.ref,qe.setValue(ze,{property:Ye,itemIndex:ot}),qe}getValue(ce,ze){const Ve=this._values[ce];if(Ve)return Ve.get(ze)}scopeRefs(ce,ze=this._values){return this._reduceValues(ze,(ze=>{if(void 0===ze.scopePath)throw new Error(`CodeGen: name "${ze}" has no value`);return qe._`${ce}${ze.scopePath}`}))}scopeCode(ce=this._values,ze,Ve){return this._reduceValues(ce,(ce=>{if(void 0===ce.value)throw new Error(`CodeGen: name "${ce}" has no value`);return ce.value.code}),ze,Ve)}_reduceValues(ce,Ve,Qe={},Xe){let ot=qe.nil;for(const st in ce){const mt=ce[st];if(!mt)continue;const gt=Qe[st]=Qe[st]||new Map;mt.forEach((ce=>{if(gt.has(ce))return;gt.set(ce,We.Started);let Qe=Ve(ce);if(Qe){const Ve=this.opts.es5?ze.varKinds.var:ze.varKinds.const;ot=qe._`${ot}${Ve} ${ce} = ${Qe};${this.opts._n}`}else{if(!(Qe=null==Xe?void 0:Xe(ce)))throw new Ye(ce);ot=qe._`${ot}${Qe}${this.opts._n}`}gt.set(ce,We.Completed)}))}return ot}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getRules=ze.isJSONType=void 0;const qe=new Set(["string","number","integer","boolean","null","object","array"]);ze.isJSONType=function isJSONType(ce){return"string"==typeof ce&&qe.has(ce)},ze.getRules=function getRules(){const ce={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...ce,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},ce.number,ce.string,ce.array,ce.object],post:{rules:[]},all:{},keywords:{}}}},function(ce,ze,Ve){"use strict";function shouldUseGroup(ce,ze){return ze.rules.some((ze=>shouldUseRule(ce,ze)))}function shouldUseRule(ce,ze){var Ve;return void 0!==ce[ze.keyword]||(null===(Ve=ze.definition.implements)||void 0===Ve?void 0:Ve.some((ze=>void 0!==ce[ze])))}Object.defineProperty(ze,"__esModule",{value:!0}),ze.shouldUseRule=ze.shouldUseGroup=ze.schemaHasRulesForType=void 0,ze.schemaHasRulesForType=function schemaHasRulesForType({schema:ce,self:ze},Ve){const qe=ze.RULES.types[Ve];return qe&&!0!==qe&&shouldUseGroup(ce,qe)},ze.shouldUseGroup=shouldUseGroup,ze.shouldUseRule=shouldUseRule},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateAdditionalItems=void 0;const qe=Ve(50),Ye=Ve(69),We={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:ce}})=>qe.str`must NOT have more than ${ce} items`,params:({params:{len:ce}})=>qe._`{limit: ${ce}}`},code(ce){const{parentSchema:ze,it:Ve}=ce,{items:qe}=ze;Array.isArray(qe)?validateAdditionalItems(ce,qe):(0,Ye.checkStrictMode)(Ve,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(ce,ze){const{gen:Ve,schema:We,data:Qe,keyword:Xe,it:ot}=ce;ot.items=!0;const st=Ve.const("len",qe._`${Qe}.length`);if(!1===We)ce.setParams({len:ze.length}),ce.pass(qe._`${st} <= ${ze.length}`);else if("object"==typeof We&&!(0,Ye.alwaysValidSchema)(ot,We)){const Ye=Ve.var("valid",qe._`${st} <= ${ze.length}`);Ve.if((0,qe.not)(Ye),(()=>validateItems(Ye))),ce.ok(Ye)}function validateItems(We){Ve.forRange("i",ze.length,st,(ze=>{ce.subschema({keyword:Xe,dataProp:ze,dataPropType:Ye.Type.Num},We),ot.allErrors||Ve.if((0,qe.not)(We),(()=>Ve.break()))}))}}ze.validateAdditionalItems=validateAdditionalItems,ze.default=We},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateTuple=void 0;const qe=Ve(50),Ye=Ve(69),We=Ve(188),Qe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(ce){const{schema:ze,it:Ve}=ce;if(Array.isArray(ze))return validateTuple(ce,"additionalItems",ze);Ve.items=!0,(0,Ye.alwaysValidSchema)(Ve,ze)||ce.ok((0,We.validateArray)(ce))}};function validateTuple(ce,ze,Ve=ce.schema){const{gen:We,parentSchema:Qe,data:Xe,keyword:ot,it:st}=ce;!function checkStrictTuple(ce){const{opts:qe,errSchemaPath:We}=st,Qe=Ve.length,Xe=Qe===ce.minItems&&(Qe===ce.maxItems||!1===ce[ze]);if(qe.strictTuples&&!Xe){const ce=`"${ot}" is ${Qe}-tuple, but minItems or maxItems/${ze} are not specified or different at path "${We}"`;(0,Ye.checkStrictMode)(st,ce,qe.strictTuples)}}(Qe),st.opts.unevaluated&&Ve.length&&!0!==st.items&&(st.items=Ye.mergeEvaluated.items(We,Ve.length,st.items));const mt=We.name("valid"),gt=We.const("len",qe._`${Xe}.length`);Ve.forEach(((ze,Ve)=>{(0,Ye.alwaysValidSchema)(st,ze)||(We.if(qe._`${gt} > ${Ve}`,(()=>ce.subschema({keyword:ot,schemaProp:Ve,dataProp:Ve},mt))),ce.ok(mt))}))}ze.validateTuple=validateTuple,ze.default=Qe},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const qe=Ve(188),Ye=Ve(50),We=Ve(276),Qe=Ve(69),Xe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:ce})=>Ye._`{additionalProperty: ${ce.additionalProperty}}`},code(ce){const{gen:ze,schema:Ve,parentSchema:Xe,data:ot,errsCount:st,it:mt}=ce;if(!st)throw new Error("ajv implementation error");const{allErrors:gt,opts:yt}=mt;if(mt.props=!0,"all"!==yt.removeAdditional&&(0,Qe.alwaysValidSchema)(mt,Ve))return;const bt=(0,qe.allSchemaProperties)(Xe.properties),vt=(0,qe.allSchemaProperties)(Xe.patternProperties);function isAdditional(Ve){let We;if(bt.length>8){const ce=(0,Qe.schemaRefOrVal)(mt,Xe.properties,"properties");We=(0,qe.isOwnProperty)(ze,ce,Ve)}else We=bt.length?(0,Ye.or)(...bt.map((ce=>Ye._`${Ve} === ${ce}`))):Ye.nil;return vt.length&&(We=(0,Ye.or)(We,...vt.map((ze=>Ye._`${(0,qe.usePattern)(ce,ze)}.test(${Ve})`)))),(0,Ye.not)(We)}function deleteAdditional(ce){ze.code(Ye._`delete ${ot}[${ce}]`)}function additionalPropertyCode(qe){if("all"===yt.removeAdditional||yt.removeAdditional&&!1===Ve)deleteAdditional(qe);else{if(!1===Ve)return ce.setParams({additionalProperty:qe}),ce.error(),void(gt||ze.break());if("object"==typeof Ve&&!(0,Qe.alwaysValidSchema)(mt,Ve)){const Ve=ze.name("valid");"failing"===yt.removeAdditional?(applyAdditionalSchema(qe,Ve,!1),ze.if((0,Ye.not)(Ve),(()=>{ce.reset(),deleteAdditional(qe)}))):(applyAdditionalSchema(qe,Ve),gt||ze.if((0,Ye.not)(Ve),(()=>ze.break())))}}}function applyAdditionalSchema(ze,Ve,qe){const Ye={keyword:"additionalProperties",dataProp:ze,dataPropType:Qe.Type.Str};!1===qe&&Object.assign(Ye,{compositeRule:!0,createErrors:!1,allErrors:!1}),ce.subschema(Ye,Ve)}!function checkAdditionalProperties(){ze.forIn("key",ot,(ce=>{bt.length||vt.length?ze.if(isAdditional(ce),(()=>additionalPropertyCode(ce))):additionalPropertyCode(ce)}))}(),ce.ok(Ye._`${st} === ${We.default.errors}`)}};ze.default=Xe},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return/^nm$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"vm":"VM":Ve?"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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},qe={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ve,Ye,We){var Qe=pluralForm(ze),Xe=qe[ce][pluralForm(ze)];return 2===Qe&&(Xe=Xe[Ve?0:1]),Xe.replace(/%d/i,ze)}},Ye=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar",{months:Ye,monthsShort:Ye,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},ze={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(Ve,qe,Ye,We){var Qe=pluralForm(Ve),Xe=ze[ce][pluralForm(Ve)];return 2===Qe&&(Xe=Xe[qe?0:1]),Xe.replace(/%d/i,Ve)}},Ve=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-dz",{months:Ve,monthsShort:Ve,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ve={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,qe,Ye,We){var Qe=pluralForm(ze),Xe=Ve[ce][pluralForm(ze)];return 2===Qe&&(Xe=Xe[qe?0:1]),Xe.replace(/%d/i,ze)}},qe=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-ly",{months:qe,monthsShort:qe,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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-ps",{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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.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(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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ı"};ce.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:"bir neçə 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(ce){return/^(gündüz|axşam)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"gecə":ce<12?"səhər":ce<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(ce){if(0===ce)return ce+"-ıncı";var Ve=ce%10,qe=ce%100-Ve,Ye=ce>=100?100:null;return ce+(ze[Ve]||ze[qe]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвіліна":"хвіліну":"h"===Ve?ze?"гадзіна":"гадзіну":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:ze?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[Ve],+ce)}ce.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:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:relativeTimeWithPlural,hh:relativeTimeWithPlural,d:"дзень",dd:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(ce){return/^(дня|вечара)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночы":ce<12?"раніцы":ce<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce%10!=2&&ce%10!=3||ce%100==12||ce%100==13?ce+"-ы":ce+"-і";case"D":return ce+"-га";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.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(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze&&ce>=4||"দুপুর"===ze&&ce<5||"বিকাল"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<10?"সকাল":ce<17?"দুপুর":ce<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn-bd",{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(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze?ce<4?ce:ce+12:"ভোর"===ze||"সকাল"===ze?ce:"দুপুর"===ze?ce>=3?ce:ce+12:"বিকাল"===ze||"সন্ধ্যা"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<6?"ভোর":ce<12?"সকাল":ce<15?"দুপুর":ce<18?"বিকাল":ce<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Ve={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};ce.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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(ce){return ce.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"མཚན་མོ"===ze&&ce>=4||"ཉིན་གུང"===ze&&ce<5||"དགོང་དག"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"མཚན་མོ":ce<10?"ཞོགས་ཀས":ce<17?"ཉིན་གུང":ce<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithMutation(ce,ze,Ve){return ce+" "+mutation({mm:"munutenn",MM:"miz",dd:"devezh"}[Ve],ce)}function specialMutationForYears(ce){switch(lastNumber(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}function lastNumber(ce){return ce>9?lastNumber(ce%10):ce}function mutation(ce,ze){return 2===ze?softMutation(ce):ce}function softMutation(ce){var ze={m:"v",b:"v",d:"z"};return void 0===ze[ce.charAt(0)]?ce:ze[ce.charAt(0)]+ce.substring(1)}var ze=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Ve=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,qe=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,Ye=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,We=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Qe=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Xe=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];ce.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("_"),weekdaysParse:Xe,fullWeekdaysParse:We,shortWeekdaysParse:Qe,minWeekdaysParse:Xe,monthsRegex:Ve,monthsShortRegex:Ve,monthsStrictRegex:qe,monthsShortStrictRegex:Ye,monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:specialMutationForYears},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(ce){return ce+(1===ce?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,ze,Ve){return ce<12?"a.m.":"g.m."}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){if("m"===Ve)return ze?"jedna minuta":qe?"jednu minutu":"jedne minute"}function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"mm":return qe+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return"jedan sat";case"hh":return qe+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return qe+=1===ce?"dan":"dana";case"MM":return qe+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return qe+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.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:translate,m:processRelativeTime,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Ve="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),qe=[/^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],Ye=/^(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 plural(ce){return ce>1&&ce<5&&1!=~~(ce/10)}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"pár sekund":"pár sekundami";case"ss":return ze||qe?Ye+(plural(ce)?"sekundy":"sekund"):Ye+"sekundami";case"m":return ze?"minuta":qe?"minutu":"minutou";case"mm":return ze||qe?Ye+(plural(ce)?"minuty":"minut"):Ye+"minutami";case"h":return ze?"hodina":qe?"hodinu":"hodinou";case"hh":return ze||qe?Ye+(plural(ce)?"hodiny":"hodin"):Ye+"hodinami";case"d":return ze||qe?"den":"dnem";case"dd":return ze||qe?Ye+(plural(ce)?"dny":"dní"):Ye+"dny";case"M":return ze||qe?"měsíc":"měsícem";case"MM":return ze||qe?Ye+(plural(ce)?"měsíce":"měsíců"):Ye+"měsíci";case"y":return ze||qe?"rok":"rokem";case"yy":return ze||qe?Ye+(plural(ce)?"roky":"let"):Ye+"lety"}}ce.defineLocale("cs",{months:ze,monthsShort:Ve,monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce+(/сехет$/i.exec(ce)?"рен":/ҫул$/i.exec(ce)?"тан":"ран")},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze="";return ce>20?ze=40===ce||50===ce||60===ce||80===ce||100===ce?"fed":"ain":ce>0&&(ze=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][ce]),ce+ze},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Ve=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];ce.defineLocale("dv",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,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(ce){return"މފ"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:7,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function isFunction(ce){return"undefined"!=typeof Function&&ce instanceof Function||"[object Function]"===Object.prototype.toString.call(ce)}ce.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(ce,ze){return ce?"string"==typeof ze&&/D/.test(ze.substring(0,ze.indexOf("MMMM")))?this._monthsGenitiveEl[ce.month()]:this._monthsNominativeEl[ce.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(ce,ze,Ve){return ce>11?Ve?"μμ":"ΜΜ":Ve?"πμ":"ΠΜ"},isPM:function(ce){return"μ"===(ce+"").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(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(ce,ze){var Ve=this._calendarEl[ce],qe=ze&&ze.hours();return isFunction(Ve)&&(Ve=Ve.apply(ze)),Ve.replace("{}",qe%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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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",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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-in",{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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(ce){return"p"===ce.charAt(0).toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"p.t.m.":"P.T.M.":Ve?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),qe=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ye=/^(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;ce.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"una semana",ww:"%d semanas",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[ce+"sekundi",ce+"sekundit"],m:["ühe minuti","üks minut"],mm:[ce+" minuti",ce+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[ce+" tunni",ce+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[ce+" kuu",ce+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[ce+" aasta",ce+" aastat"]};return ze?Ye[Ve][2]?Ye[Ve][2]:Ye[Ve][1]:qe?Ye[Ve][0]:Ye[Ve][1]}ce.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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:"%d päeva",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Ve={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};ce.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(ce){return/بعد از ظهر/.test(ce)},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[۰-۹]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Ve=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ze[7],ze[8],ze[9]];function translate(ce,ze,Ve,qe){var Ye="";switch(Ve){case"s":return qe?"muutaman sekunnin":"muutama sekunti";case"ss":Ye=qe?"sekunnin":"sekuntia";break;case"m":return qe?"minuutin":"minuutti";case"mm":Ye=qe?"minuutin":"minuuttia";break;case"h":return qe?"tunnin":"tunti";case"hh":Ye=qe?"tunnin":"tuntia";break;case"d":return qe?"päivän":"päivä";case"dd":Ye=qe?"päivän":"päivää";break;case"M":return qe?"kuukauden":"kuukausi";case"MM":Ye=qe?"kuukauden":"kuukautta";break;case"y":return qe?"vuoden":"vuosi";case"yy":Ye=qe?"vuoden":"vuotta"}return Ye=verbalNumber(ce,qe)+" "+Ye}function verbalNumber(ce,qe){return ce<10?qe?Ve[ce]:ze[ce]:ce}ce.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:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fil",{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(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ve=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,qe=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ye=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];ce.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("_"),monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:ze,monthsShortStrictRegex:Ve,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,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",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(ce,ze){switch(ze){case"D":return ce+(1===ce?"er":"");default:case"M":case"Q":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Ve="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");ce.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Ve=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],qe=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],Ye=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],We=["Do","Lu","Má","Cé","Dé","A","Sa"];ce.defineLocale("ga",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:qe,weekdaysShort:Ye,weekdaysMin:We,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é ag] 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íonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["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"],Ve=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],qe=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],Ye=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],We=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];ce.defineLocale("gd",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:qe,weekdaysShort:Ye,weekdaysMin:We,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(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return 0===ce.indexOf("un")?"n"+ce:"en "+ce},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[ce+" सॅकंडांनी",ce+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[ce+" मिणटांनी",ce+" मिणटां"],h:["एका वरान","एक वर"],hh:[ce+" वरांनी",ce+" वरां"],d:["एका दिसान","एक दीस"],dd:[ce+" दिसांनी",ce+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[ce+" म्हयन्यानी",ce+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[ce+" वर्सांनी",ce+" वर्सां"]};return qe?Ye[Ve][0]:Ye[Ve][1]}ce.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(ce,ze){return"D"===ze?ce+"वेर":ce},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राती"===ze?ce<4?ce:ce+12:"सकाळीं"===ze?ce:"दनपारां"===ze?ce>12?ce:ce+12:"सांजे"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"राती":ce<12?"सकाळीं":ce<16?"दनपारां":ce<20?"सांजे":"राती"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["thoddea sekondamni","thodde sekond"],ss:[ce+" sekondamni",ce+" sekond"],m:["eka mintan","ek minut"],mm:[ce+" mintamni",ce+" mintam"],h:["eka voran","ek vor"],hh:[ce+" voramni",ce+" voram"],d:["eka disan","ek dis"],dd:[ce+" disamni",ce+" dis"],M:["eka mhoinean","ek mhoino"],MM:[ce+" mhoineamni",ce+" mhoine"],y:["eka vorsan","ek voros"],yy:[ce+" vorsamni",ce+" vorsam"]};return qe?Ye[Ve][0]:Ye[Ve][1]}ce.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(ce,ze){return"D"===ze?ce+"er":ce},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"rati"===ze?ce<4?ce:ce+12:"sokallim"===ze?ce:"donparam"===ze?ce>12?ce:ce+12:"sanje"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"rati":ce<12?"sokallim":ce<16?"donparam":ce<20?"sanje":"rati"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Ve={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};ce.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(ce){return ce.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"રાત"===ze?ce<4?ce:ce+12:"સવાર"===ze?ce:"બપોર"===ze?ce>=10?ce:ce+12:"સાંજ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"રાત":ce<10?"સવાર":ce<17?"બપોર":ce<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return 2===ce?"שעתיים":ce+" שעות"},d:"יום",dd:function(ce){return 2===ce?"יומיים":ce+" ימים"},M:"חודש",MM:function(ce){return 2===ce?"חודשיים":ce+" חודשים"},y:"שנה",yy:function(ce){return 2===ce?"שנתיים":ce%10==0&&10!==ce?ce+" שנה":ce+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(ce){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<5?"לפנות בוקר":ce<10?"בבוקר":ce<12?Ve?'לפנה"צ':"לפני הצהריים":ce<18?Ve?'אחה"צ':"אחרי הצהריים":"בערב"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},qe=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],Ye=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];ce.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:qe,longMonthsParse:qe,shortMonthsParse:Ye,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"रात"===ze?ce<4?ce:ce+12:"सुबह"===ze?ce:"दोपहर"===ze?ce>=10?ce:ce+12:"शाम"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"रात":ce<10?"सुबह":ce<17?"दोपहर":ce<20?"शाम":"रात"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"m":return ze?"jedna minuta":"jedne minute";case"mm":return qe+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return ze?"jedan sat":"jednog sata";case"hh":return qe+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return qe+=1===ce?"dan":"dana";case"MM":return qe+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return qe+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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:translate,m:translate,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function translate(ce,ze,Ve,qe){var Ye=ce;switch(Ve){case"s":return qe||ze?"néhány másodperc":"néhány másodperce";case"ss":return Ye+(qe||ze)?" másodperc":" másodperce";case"m":return"egy"+(qe||ze?" perc":" perce");case"mm":return Ye+(qe||ze?" perc":" perce");case"h":return"egy"+(qe||ze?" óra":" órája");case"hh":return Ye+(qe||ze?" óra":" órája");case"d":return"egy"+(qe||ze?" nap":" napja");case"dd":return Ye+(qe||ze?" nap":" napja");case"M":return"egy"+(qe||ze?" hónap":" hónapja");case"MM":return Ye+(qe||ze?" hónap":" hónapja");case"y":return"egy"+(qe||ze?" év":" éve");case"yy":return Ye+(qe||ze?" év":" éve")}return""}function week(ce){return(ce?"":"[múlt] ")+"["+ze[this.day()]+"] LT[-kor]"}ce.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("_"),monthsParseExact:!0,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(ce){return"u"===ce.charAt(1).toLowerCase()},meridiem:function(ce,ze,Ve){return ce<12?!0===Ve?"de":"DE":!0===Ve?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return/^(ցերեկվա|երեկոյան)$/.test(ce)},meridiem:function(ce){return ce<4?"գիշերվա":ce<12?"առավոտվա":ce<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(ce,ze){switch(ze){case"DDD":case"w":case"W":case"DDDo":return 1===ce?ce+"-ին":ce+"-րդ";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"siang"===ze?ce>=11?ce:ce+12:"sore"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"siang":ce<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:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce){return ce%100==11||ce%10!=1}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return plural(ce)?Ye+(ze||qe?"sekúndur":"sekúndum"):Ye+"sekúnda";case"m":return ze?"mínúta":"mínútu";case"mm":return plural(ce)?Ye+(ze||qe?"mínútur":"mínútum"):ze?Ye+"mínúta":Ye+"mínútu";case"hh":return plural(ce)?Ye+(ze||qe?"klukkustundir":"klukkustundum"):Ye+"klukkustund";case"d":return ze?"dagur":qe?"dag":"degi";case"dd":return plural(ce)?ze?Ye+"dagar":Ye+(qe?"daga":"dögum"):ze?Ye+"dagur":Ye+(qe?"dag":"degi");case"M":return ze?"mánuður":qe?"mánuð":"mánuði";case"MM":return plural(ce)?ze?Ye+"mánuðir":Ye+(qe?"mánuði":"mánuðum"):ze?Ye+"mánuður":Ye+(qe?"mánuð":"mánuði");case"y":return ze||qe?"ár":"ári";case"yy":return plural(ce)?Ye+(ze||qe?"ár":"árum"):Ye+(ze||qe?"ár":"ári")}}ce.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:translate,ss:translate,m:translate,mm:translate,h:"klukkustund",hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(ce){return(/^[0-9].+$/.test(ce)?"tra":"in")+" "+ce},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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(ce,ze){return"元"===ze[1]?1:parseInt(ze[1]||ce,10)},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:"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(ce){return"午後"===ce},meridiem:function(ce,ze,Ve){return ce<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(ce){return ce.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(ce){return this.week()!==ce.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(ce,ze){switch(ze){case"y":return 1===ce?"元年":ce+"年";case"d":case"D":case"DDD":return ce+"日";default:return ce}},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年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"enjing"===ze?ce:"siyang"===ze?ce>=11?ce:ce+12:"sonten"===ze||"ndalu"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"enjing":ce<15?"siyang":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:function(ce){return ce.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(ce,ze,Ve){return"ი"===Ve?ze+"ში":ze+Ve+"ში"}))},past:function(ce){return/(წამი|წუთი|საათი|დღე|თვე)/.test(ce)?ce.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(ce)?ce.replace(/წელი$/,"წლის წინ"):ce},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(ce){return 0===ce?ce:1===ce?ce+"-ლი":ce<20||ce<=100&&ce%20==0||ce%100==0?"მე-"+ce:ce+"-ე"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};ce.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(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Ve={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};ce.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(ce){return"ល្ងាច"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Ve={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};ce.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(ce){return ce.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ರಾತ್ರಿ"===ze?ce<4?ce:ce+12:"ಬೆಳಿಗ್ಗೆ"===ze?ce:"ಮಧ್ಯಾಹ್ನ"===ze?ce>=10?ce:ce+12:"ಸಂಜೆ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ರಾತ್ರಿ":ce<10?"ಬೆಳಿಗ್ಗೆ":ce<17?"ಮಧ್ಯಾಹ್ನ":ce<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(ce){return ce+"ನೇ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"일";case"M":return ce+"월";case"w":case"W":return ce+"주";default:return ce}},meridiemParse:/오전|오후/,isPM:function(ce){return"오후"===ce},meridiem:function(ce,ze,Ve){return ce<12?"오전":"오후"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},qe=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];ce.defineLocale("ku",{months:qe,monthsShort:qe,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(ce){return/ئێواره‌/.test(ce)},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["çend sanîye","çend sanîyeyan"],ss:[ce+" sanîye",ce+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[ce+" deqîqe",ce+" deqîqeyan"],h:["saetek","saetekê"],hh:[ce+" saet",ce+" saetan"],d:["rojek","rojekê"],dd:[ce+" roj",ce+" rojan"],w:["hefteyek","hefteyekê"],ww:[ce+" hefte",ce+" hefteyan"],M:["mehek","mehekê"],MM:[ce+" meh",ce+" mehan"],y:["salek","salekê"],yy:[ce+" sal",ce+" salan"]};return ze?Ye[Ve][0]:Ye[Ve][1]}function ezafeNumSuffix(ce){var ze=(ce=""+ce).substring(ce.length-1),Ve=ce.length>1?ce.substring(ce.length-2):"";return 12==Ve||13==Ve||"2"!=ze&&"3"!=ze&&"50"!=Ve&&"70"!=ze&&"80"!=ze?"ê":"yê"}ce.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"bn":"BN":Ve?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(ce,ze){var Ve=ze.toLowerCase();return Ve.includes("w")||Ve.includes("m")?ce+".":ce+ezafeNumSuffix(ce)},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};ce.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(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={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 ze?Ye[Ve][0]:Ye[Ve][1]}function processFutureTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"a "+ce:"an "+ce}function processPastTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"viru "+ce:"virun "+ce}function eifelerRegelAppliesToNumber(ce){if(ce=parseInt(ce,10),isNaN(ce))return!1;if(ce<0)return!0;if(ce<10)return 4<=ce&&ce<=7;if(ce<100){var ze=ce%10;return eifelerRegelAppliesToNumber(0===ze?ce/10:ze)}if(ce<1e4){for(;ce>=10;)ce/=10;return eifelerRegelAppliesToNumber(ce)}return eifelerRegelAppliesToNumber(ce/=1e3)}ce.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:processFutureTime,past:processPastTime,s:"e puer Sekonnen",ss:"%d Sekonnen",m:processRelativeTime,mm:"%d Minutten",h:processRelativeTime,hh:"%d Stonnen",d:processRelativeTime,dd:"%d Deeg",M:processRelativeTime,MM:"%d Méint",y:processRelativeTime,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"ຕອນແລງ"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return"ທີ່"+ce}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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 translateSeconds(ce,ze,Ve,qe){return ze?"kelios sekundės":qe?"kelių sekundžių":"kelias sekundes"}function translateSingular(ce,ze,Ve,qe){return ze?forms(Ve)[0]:qe?forms(Ve)[1]:forms(Ve)[2]}function special(ce){return ce%10==0||ce>10&&ce<20}function forms(ce){return ze[ce].split("_")}function translate(ce,ze,Ve,qe){var Ye=ce+" ";return 1===ce?Ye+translateSingular(ce,ze,Ve[0],qe):ze?Ye+(special(ce)?forms(Ve)[1]:forms(Ve)[0]):qe?Ye+forms(Ve)[1]:Ye+(special(ce)?forms(Ve)[1]:forms(Ve)[2])}ce.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:translateSeconds,ss:translate,m:translateSingular,mm:translate,h:translateSingular,hh:translate,d:translateSingular,dd:translate,M:translateSingular,MM:translate,y:translateSingular,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ce){return ce+"-oji"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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 format(ce,ze,Ve){return Ve?ze%10==1&&ze%100!=11?ce[2]:ce[3]:ze%10==1&&ze%100!=11?ce[0]:ce[1]}function relativeTimeWithPlural(ce,Ve,qe){return ce+" "+format(ze[qe],ce,Ve)}function relativeTimeWithSingular(ce,Ve,qe){return format(ze[qe],ce,Ve)}function relativeSeconds(ce,ze){return ze?"dažas sekundes":"dažām sekundēm"}ce.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:relativeSeconds,ss:relativeTimeWithPlural,m:relativeTimeWithSingular,mm:relativeTimeWithPlural,h:relativeTimeWithSingular,hh:relativeTimeWithPlural,d:relativeTimeWithSingular,dd:relativeTimeWithPlural,M:relativeTimeWithSingular,MM:relativeTimeWithPlural,y:relativeTimeWithSingular,yy:relativeTimeWithPlural},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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(ce,ze){return 1===ce?ze[0]:ce>=2&&ce<=4?ze[1]:ze[2]},translate:function(ce,Ve,qe){var Ye=ze.words[qe];return 1===qe.length?Ve?Ye[0]:Ye[1]:ce+" "+ze.correctGrammaticalCase(ce,Ye)}};ce.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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:"dan",dd:ze.translate,M:"mjesec",MM:ze.translate,y:"godinu",yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"രാത്രി"===ze&&ce>=4||"ഉച്ച കഴിഞ്ഞ്"===ze||"വൈകുന്നേരം"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"രാത്രി":ce<12?"രാവിലെ":ce<17?"ഉച്ച കഴിഞ്ഞ്":ce<20?"വൈകുന്നേരം":"രാത്രി"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve,qe){switch(Ve){case"s":return ze?"хэдхэн секунд":"хэдхэн секундын";case"ss":return ce+(ze?" секунд":" секундын");case"m":case"mm":return ce+(ze?" минут":" минутын");case"h":case"hh":return ce+(ze?" цаг":" цагийн");case"d":case"dd":return ce+(ze?" өдөр":" өдрийн");case"M":case"MM":return ce+(ze?" сар":" сарын");case"y":case"yy":return ce+(ze?" жил":" жилийн");default:return ce}}ce.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(ce){return"ҮХ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+" өдөр";default:return ce}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function relativeTimeMr(ce,ze,Ve,qe){var Ye="";if(ze)switch(Ve){case"s":Ye="काही सेकंद";break;case"ss":Ye="%d सेकंद";break;case"m":Ye="एक मिनिट";break;case"mm":Ye="%d मिनिटे";break;case"h":Ye="एक तास";break;case"hh":Ye="%d तास";break;case"d":Ye="एक दिवस";break;case"dd":Ye="%d दिवस";break;case"M":Ye="एक महिना";break;case"MM":Ye="%d महिने";break;case"y":Ye="एक वर्ष";break;case"yy":Ye="%d वर्षे"}else switch(Ve){case"s":Ye="काही सेकंदां";break;case"ss":Ye="%d सेकंदां";break;case"m":Ye="एका मिनिटा";break;case"mm":Ye="%d मिनिटां";break;case"h":Ye="एका तासा";break;case"hh":Ye="%d तासां";break;case"d":Ye="एका दिवसा";break;case"dd":Ye="%d दिवसां";break;case"M":Ye="एका महिन्या";break;case"MM":Ye="%d महिन्यां";break;case"y":Ye="एका वर्षा";break;case"yy":Ye="%d वर्षां"}return Ye.replace(/%d/i,ce)}ce.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:relativeTimeMr,ss:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"पहाटे"===ze||"सकाळी"===ze?ce:"दुपारी"===ze||"सायंकाळी"===ze||"रात्री"===ze?ce>=12?ce:ce+12:void 0},meridiem:function(ce,ze,Ve){return ce>=0&&ce<6?"पहाटे":ce<12?"सकाळी":ce<17?"दुपारी":ce<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},Ve={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};ce.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(ce){return ce.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};ce.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(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राति"===ze?ce<4?ce:ce+12:"बिहान"===ze?ce:"दिउँसो"===ze?ce>=10?ce:ce+12:"साँझ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<3?"राति":ce<12?"बिहान":ce<16?"दिउँसो":ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qe=[/^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],Ye=/^(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;ce.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qe=[/^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],Ye=/^(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;ce.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,qe){return ce?/-MMM-/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:Ye,monthsShortRegex:Ye,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:qe,longMonthsParse:qe,shortMonthsParse:qe,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(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Ve={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};ce.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(ce){return ce.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ਰਾਤ"===ze?ce<4?ce:ce+12:"ਸਵੇਰ"===ze?ce:"ਦੁਪਹਿਰ"===ze?ce>=10?ce:ce+12:"ਸ਼ਾਮ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ਰਾਤ":ce<10?"ਸਵੇਰ":ce<17?"ਦੁਪਹਿਰ":ce<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Ve="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),qe=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function plural(ce){return ce%10<5&&ce%10>1&&~~(ce/10)%10!=1}function translate(ce,ze,Ve){var qe=ce+" ";switch(Ve){case"ss":return qe+(plural(ce)?"sekundy":"sekund");case"m":return ze?"minuta":"minutę";case"mm":return qe+(plural(ce)?"minuty":"minut");case"h":return ze?"godzina":"godzinę";case"hh":return qe+(plural(ce)?"godziny":"godzin");case"ww":return qe+(plural(ce)?"tygodnie":"tygodni");case"MM":return qe+(plural(ce)?"miesiące":"miesięcy");case"yy":return qe+(plural(ce)?"lata":"lat")}}ce.defineLocale("pl",{months:function(ce,qe){return ce?/D MMMM/.test(qe)?Ve[ce.month()]:ze[ce.month()]:ze},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:qe,longMonthsParse:qe,shortMonthsParse:qe,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:translate,m:translate,mm:translate,h:translate,hh:translate,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:translate,M:"miesiąc",MM:translate,y:"rok",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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º",invalidDate:"Data inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithPlural(ce,ze,Ve){var qe=" ";return(ce%100>=20||ce>=100&&ce%100==0)&&(qe=" de "),ce+qe+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[Ve]}ce.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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:relativeTimeWithPlural,m:"un minut",mm:relativeTimeWithPlural,h:"o oră",hh:relativeTimeWithPlural,d:"o zi",dd:relativeTimeWithPlural,w:"o săptămână",ww:relativeTimeWithPlural,M:"o lună",MM:relativeTimeWithPlural,y:"un an",yy:relativeTimeWithPlural},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"минута":"минуту":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[Ve],+ce)}var ze=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];ce.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,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(ce){if(ce.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(ce){if(ce.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:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"час",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,w:"неделя",ww:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(ce){return/^(дня|вечера)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночи":ce<12?"утра":ce<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":return ce+"-й";case"D":return ce+"-го";case"w":case"W":return ce+"-я";default:return ce}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Ve=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];ce.defineLocale("sd",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,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(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(ce){return"ප.ව."===ce||"පස් වරු"===ce},meridiem:function(ce,ze,Ve){return ce>11?Ve?"ප.ව.":"පස් වරු":Ve?"පෙ.ව.":"පෙර වරු"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Ve="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function plural(ce){return ce>1&&ce<5}function translate(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"pár sekúnd":"pár sekundami";case"ss":return ze||qe?Ye+(plural(ce)?"sekundy":"sekúnd"):Ye+"sekundami";case"m":return ze?"minúta":qe?"minútu":"minútou";case"mm":return ze||qe?Ye+(plural(ce)?"minúty":"minút"):Ye+"minútami";case"h":return ze?"hodina":qe?"hodinu":"hodinou";case"hh":return ze||qe?Ye+(plural(ce)?"hodiny":"hodín"):Ye+"hodinami";case"d":return ze||qe?"deň":"dňom";case"dd":return ze||qe?Ye+(plural(ce)?"dni":"dní"):Ye+"dňami";case"M":return ze||qe?"mesiac":"mesiacom";case"MM":return ze||qe?Ye+(plural(ce)?"mesiace":"mesiacov"):Ye+"mesiacmi";case"y":return ze||qe?"rok":"rokom";case"yy":return ze||qe?Ye+(plural(ce)?"roky":"rokov"):Ye+"rokmi"}}ce.defineLocale("sk",{months:ze,monthsShort:Ve,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:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye=ce+" ";switch(Ve){case"s":return ze||qe?"nekaj sekund":"nekaj sekundami";case"ss":return Ye+=1===ce?ze?"sekundo":"sekundi":2===ce?ze||qe?"sekundi":"sekundah":ce<5?ze||qe?"sekunde":"sekundah":"sekund";case"m":return ze?"ena minuta":"eno minuto";case"mm":return Ye+=1===ce?ze?"minuta":"minuto":2===ce?ze||qe?"minuti":"minutama":ce<5?ze||qe?"minute":"minutami":ze||qe?"minut":"minutami";case"h":return ze?"ena ura":"eno uro";case"hh":return Ye+=1===ce?ze?"ura":"uro":2===ce?ze||qe?"uri":"urama":ce<5?ze||qe?"ure":"urami":ze||qe?"ur":"urami";case"d":return ze||qe?"en dan":"enim dnem";case"dd":return Ye+=1===ce?ze||qe?"dan":"dnem":2===ce?ze||qe?"dni":"dnevoma":ze||qe?"dni":"dnevi";case"M":return ze||qe?"en mesec":"enim mesecem";case"MM":return Ye+=1===ce?ze||qe?"mesec":"mesecem":2===ce?ze||qe?"meseca":"mesecema":ce<5?ze||qe?"mesece":"meseci":ze||qe?"mesecev":"meseci";case"y":return ze||qe?"eno leto":"enim letom";case"yy":return Ye+=1===ce?ze||qe?"leto":"letom":2===ce?ze||qe?"leti":"letoma":ce<5?ze||qe?"leta":"leti":ze||qe?"let":"leti"}}ce.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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"M"===ce.charAt(0)},meridiem:function(ce,ze,Ve){return ce<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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,qe,Ye){var We,Qe=ze.words[qe];return 1===qe.length?"y"===qe&&Ve?"jedna godina":Ye||Ve?Qe[0]:Qe[1]:(We=ze.correctGrammaticalCase(ce,Qe),"yy"===qe&&Ve&&"godinu"===We?ce+" godina":ce+" "+We)}};ce.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:"D. M. 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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,qe,Ye){var We,Qe=ze.words[qe];return 1===qe.length?"y"===qe&&Ve?"једна година":Ye||Ve?Qe[0]:Qe[1]:(We=ze.correctGrammaticalCase(ce,Qe),"yy"===qe&&Ve&&"годину"===We?ce+" година":ce+" "+We)}};ce.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:"D. M. 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:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze,Ve){return ce<11?"ekuseni":ce<15?"emini":ce<19?"entsambama":"ebusuku"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ekuseni"===ze?ce:"emini"===ze?ce>=11?ce:ce+12:"entsambama"===ze||"ebusuku"===ze?0===ce?0:ce+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?":e":1===ze||2===ze?":a":":e")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Ve={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};ce.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(ce){return ce+"வது"},preparse:function(ce){return ce.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(ce,ze,Ve){return ce<2?" யாமம்":ce<6?" வைகறை":ce<10?" காலை":ce<14?" நண்பகல்":ce<18?" எற்பாடு":ce<22?" மாலை":" யாமம்"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"யாமம்"===ze?ce<2?ce:ce+12:"வைகறை"===ze||"காலை"===ze||"நண்பகல்"===ze&&ce>=10?ce:ce+12},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"రాత్రి"===ze?ce<4?ce:ce+12:"ఉదయం"===ze?ce:"మధ్యాహ్నం"===ze?ce>=10?ce:ce+12:"సాయంత్రం"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"రాత్రి":ce<10?"ఉదయం":ce<17?"మధ్యాహ్నం":ce<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:"segundu balun",ss:"segundu %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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};ce.defineLocale("tg",{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:"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(ce,ze){return 12===ce&&(ce=0),"шаб"===ze?ce<4?ce:ce+12:"субҳ"===ze?ce:"рӯз"===ze?ce>=11?ce:ce+12:"бегоҳ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"шаб":ce<11?"субҳ":ce<16?"рӯз":ce<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(ce){var Ve=ce%10,qe=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return"หลังเที่ยง"===ce},meridiem:function(ce,ze,Ve){return ce<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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};ce.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'unjy";var qe=ce%10,Ye=ce%100-qe,We=ce>=100?100:null;return ce+(ze[qe]||ze[Ye]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function translateFuture(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"leS":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"waQ":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"nem":ze+" pIq"}function translatePast(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"Hu’":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"wen":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"ben":ze+" ret"}function translate(ce,ze,Ve,qe){var Ye=numberAsNoun(ce);switch(Ve){case"ss":return Ye+" lup";case"mm":return Ye+" tup";case"hh":return Ye+" rep";case"dd":return Ye+" jaj";case"MM":return Ye+" jar";case"yy":return Ye+" DIS"}}function numberAsNoun(ce){var Ve=Math.floor(ce%1e3/100),qe=Math.floor(ce%100/10),Ye=ce%10,We="";return Ve>0&&(We+=ze[Ve]+"vatlh"),qe>0&&(We+=(""!==We?" ":"")+ze[qe]+"maH"),Ye>0&&(We+=(""!==We?" ":"")+ze[Ye]),""===We?"pagh":We}ce.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:translateFuture,past:translatePast,s:"puS lup",ss:translate,m:"wa’ tup",mm:translate,h:"wa’ rep",hh:translate,d:"wa’ jaj",dd:translate,M:"wa’ jar",MM:translate,y:"wa’ DIS",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={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ı"};ce.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_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"öö":"ÖÖ":Ve?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(ce){return"ös"===ce||"ÖS"===ce},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'ıncı";var qe=ce%10,Ye=ce%100-qe,We=ce>=100?100:null;return ce+(ze[qe]||ze[Ye]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,qe){var Ye={s:["viensas secunds","'iensas secunds"],ss:[ce+" secunds",ce+" secunds"],m:["'n míut","'iens míut"],mm:[ce+" míuts",ce+" míuts"],h:["'n þora","'iensa þora"],hh:[ce+" þoras",ce+" þoras"],d:["'n ziua","'iensa ziua"],dd:[ce+" ziuas",ce+" ziuas"],M:["'n mes","'iens mes"],MM:[ce+" mesen",ce+" mesen"],y:["'n ar","'iens ar"],yy:[ce+" ars",ce+" ars"]};return qe||ze?Ye[Ve][0]:Ye[Ve][1]}ce.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(ce){return"d'o"===ce.toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"d'o":"D'O":Ve?"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:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"يېرىم كېچە"===ze||"سەھەر"===ze||"چۈشتىن بۇرۇن"===ze?ce:"چۈشتىن كېيىن"===ze||"كەچ"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"يېرىم كېچە":qe<900?"سەھەر":qe<1130?"چۈشتىن بۇرۇن":qe<1230?"چۈش":qe<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(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"-كۈنى";case"w":case"W":return ce+"-ھەپتە";default:return ce}},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвилина":"хвилину":"h"===Ve?ze?"година":"годину":ce+" "+plural({ss:ze?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:ze?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:ze?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[Ve],+ce)}function weekdaysCaseReplace(ce,ze){var Ve={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===ce?Ve.nominative.slice(1,7).concat(Ve.nominative.slice(0,1)):ce?Ve[/(\[[ВвУу]\]) ?dddd/.test(ze)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(ze)?"genitive":"nominative"][ce.day()]:Ve.nominative}function processHoursFunction(ce){return function(){return ce+"о"+(11===this.hours()?"б":"")+"] LT"}}ce.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:weekdaysCaseReplace,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:processHoursFunction("[Сьогодні "),nextDay:processHoursFunction("[Завтра "),lastDay:processHoursFunction("[Вчора "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[Минулої] dddd [").call(this);case 1:case 2:case 4:return processHoursFunction("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"годину",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,M:"місяць",MM:relativeTimeWithPlural,y:"рік",yy:relativeTimeWithPlural},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(ce){return/^(дня|вечора)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночі":ce<12?"ранку":ce<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce+"-й";case"D":return ce+"-го";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Ve=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];ce.defineLocale("ur",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,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(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<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(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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(ce){return/^ch$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"sa":"SA":Ve?"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 trước 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",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"下午"===ze||"晚上"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(ce){return ce.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(ce){return this.week()!==ce.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"周";default:return ce}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1200?"上午":1200===qe?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.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(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var qe=100*ce+ze;return qe<600?"凌晨":qe<900?"早上":qe<1130?"上午":qe<1230?"中午":qe<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},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 年"}})}(Ve(10))},function(ce,ze,Ve){var qe=Ve(1033).default,Ye=Ve(1790);ce.exports=function toPropertyKey(ce){var ze=Ye(ce,"string");return"symbol"==qe(ze)?ze:ze+""},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){function _typeof(ze){return ce.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},ce.exports.__esModule=!0,ce.exports.default=ce.exports,_typeof(ze)}ce.exports=_typeof,ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){ce.exports=function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,qe=Array(ze);Ve=ze;)this._cursor=Ve,Ve=Ve._parent;var qe={type:"BinaryExpression",operator:ce.value,left:this._cursor};this._setParent(this._cursor,qe),this._cursor=Ve,this._placeAtCursor(qe)},ze.dot=function(){this._nextIdentEncapsulate=this._cursor&&"UnaryExpression"!==this._cursor.type&&("BinaryExpression"!==this._cursor.type||"BinaryExpression"===this._cursor.type&&this._cursor.right),this._nextIdentRelative=!this._cursor||this._cursor&&!this._nextIdentEncapsulate,this._nextIdentRelative&&(this._relative=!0)},ze.filter=function(ce){this._placeBeforeCursor({type:"FilterExpression",expr:ce,relative:this._subParser.isRelative(),subject:this._cursor})},ze.functionCall=function(){this._placeBeforeCursor({type:"FunctionCall",name:this._cursor.value,args:[],pool:"functions"})},ze.identifier=function(ce){var ze={type:"Identifier",value:ce.value};this._nextIdentEncapsulate?(ze.from=this._cursor,this._placeBeforeCursor(ze),this._nextIdentEncapsulate=!1):(this._nextIdentRelative&&(ze.relative=!0,this._nextIdentRelative=!1),this._placeAtCursor(ze))},ze.literal=function(ce){this._placeAtCursor({type:"Literal",value:ce.value})},ze.objKey=function(ce){this._curObjKey=ce.value},ze.objStart=function(){this._placeAtCursor({type:"ObjectLiteral",value:{}})},ze.objVal=function(ce){this._cursor.value[this._curObjKey]=ce},ze.subExpression=function(ce){this._placeAtCursor(ce)},ze.ternaryEnd=function(ce){this._cursor.alternate=ce},ze.ternaryMid=function(ce){this._cursor.consequent=ce},ze.ternaryStart=function(){this._tree={type:"ConditionalExpression",test:this._tree},this._cursor=this._tree},ze.transform=function(ce){this._placeBeforeCursor({type:"FunctionCall",name:ce.value,args:[this._cursor],pool:"transforms"})},ze.unaryOp=function(ce){this._placeAtCursor({type:"UnaryExpression",operator:ce.value})}},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";var qe,Ye,We,Qe=Ve(1806),Xe=Ve(120),ot=Ve(105),st=Ve(106),mt=Ve(121),gt=Ve(111),yt=Ve(470),bt=Ve(462),vt=Ve(346),wt=Ve(273),Ct=Ve(347),Dt=Ve(343),kt=Ve(838),St=Ve(881),xt=Ve(122),Et=Ve(420),Pt=Ve(421),Tt=Pt.enforce,Lt=Pt.get,Ft=ot.Int8Array,Bt=Ft&&Ft.prototype,Vt=ot.Uint8ClampedArray,Ht=Vt&&Vt.prototype,Ut=Ft&&kt(Ft),Wt=Bt&&kt(Bt),Jt=Object.prototype,Qt=ot.TypeError,en=xt("toStringTag"),rn=Et("TYPED_ARRAY_TAG"),ln="TypedArrayConstructor",mn=Qe&&!!St&&"Opera"!==yt(ot.opera),gn=!1,bn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wn={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(ce){var ze=kt(ce);if(mt(ze)){var Ve=Lt(ze);return Ve&>(Ve,ln)?Ve[ln]:getTypedArrayConstructor(ze)}},isTypedArray=function(ce){if(!mt(ce))return!1;var ze=yt(ce);return gt(bn,ze)||gt(wn,ze)};for(qe in bn)(We=(Ye=ot[qe])&&Ye.prototype)?Tt(We)[ln]=Ye:mn=!1;for(qe in wn)(We=(Ye=ot[qe])&&Ye.prototype)&&(Tt(We)[ln]=Ye);if((!mn||!st(Ut)||Ut===Function.prototype)&&(Ut=function TypedArray(){throw new Qt("Incorrect invocation")},mn))for(qe in bn)ot[qe]&&St(ot[qe],Ut);if((!mn||!Wt||Wt===Jt)&&(Wt=Ut.prototype,mn))for(qe in bn)ot[qe]&&St(ot[qe].prototype,Wt);if(mn&&kt(Ht)!==Wt&&St(Ht,Wt),Xe&&!gt(Wt,en))for(qe in gn=!0,Ct(Wt,en,{configurable:!0,get:function(){return mt(this)?this[rn]:void 0}}),bn)ot[qe]&&vt(ot[qe],rn,qe);ce.exports={NATIVE_ARRAY_BUFFER_VIEWS:mn,TYPED_ARRAY_TAG:gn&&rn,aTypedArray:function(ce){if(isTypedArray(ce))return ce;throw new Qt("Target is not a typed array")},aTypedArrayConstructor:function(ce){if(st(ce)&&(!St||Dt(Ut,ce)))return ce;throw new Qt(bt(ce)+" is not a typed array constructor")},exportTypedArrayMethod:function(ce,ze,Ve,qe){if(Xe){if(Ve)for(var Ye in bn){var We=ot[Ye];if(We&>(We.prototype,ce))try{delete We.prototype[ce]}catch(Ve){try{We.prototype[ce]=ze}catch(ce){}}}Wt[ce]&&!Ve||wt(Wt,ce,Ve?ze:mn&&Bt[ce]||ze,qe)}},exportTypedArrayStaticMethod:function(ce,ze,Ve){var qe,Ye;if(Xe){if(St){if(Ve)for(qe in bn)if((Ye=ot[qe])&>(Ye,ce))try{delete Ye[ce]}catch(ce){}if(Ut[ce]&&!Ve)return;try{return wt(Ut,ce,Ve?ze:mn&&Ut[ce]||ze)}catch(ce){}}for(qe in bn)!(Ye=ot[qe])||Ye[ce]&&!Ve||wt(Ye,ce,ze)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(ce){if(!mt(ce))return!1;var ze=yt(ce);return"DataView"===ze||gt(bn,ze)||gt(wn,ze)},isTypedArray:isTypedArray,TypedArray:Ut,TypedArrayPrototype:Wt}},function(ce,ze,Ve){"use strict";var qe=Ve(859),Ye=Ve(418),We=Ve(209),Qe=Ve(466),createMethod=function(ce){var ze=1===ce;return function(Ve,Xe,ot){for(var st,mt=We(Ve),gt=Ye(mt),yt=Qe(gt),bt=qe(Xe,ot);yt-- >0;)if(bt(st=gt[yt],yt,mt))switch(ce){case 0:return st;case 1:return yt}return ze?-1:void 0}};ce.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},function(ce,ze,Ve){"use strict";var qe;Object.defineProperty(ze,"__esModule",{value:!0}),ze.replaceCodePoint=ze.fromCodePoint=void 0;var Ye=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function replaceCodePoint(ce){var ze;return ce>=55296&&ce<=57343||ce>1114111?65533:null!==(ze=Ye.get(ce))&&void 0!==ze?ze:ce}ze.fromCodePoint=null!==(qe=String.fromCodePoint)&&void 0!==qe?qe:function(ce){var ze="";return ce>65535&&(ce-=65536,ze+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|1023&ce),ze+=String.fromCharCode(ce)},ze.replaceCodePoint=replaceCodePoint,ze.default=function decodeCodePoint(ce){return(0,ze.fromCodePoint)(replaceCodePoint(ce))}},function(ce,ze){},function(ce,ze,Ve){"use strict";const qe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class Ye{constructor(ce){this.builder=ce}atrule(ce,ze){let Ve="@"+ce.name,qe=ce.params?this.rawValue(ce,"params"):"";if(void 0!==ce.raws.afterName?Ve+=ce.raws.afterName:qe&&(Ve+=" "),ce.nodes)this.block(ce,Ve+qe);else{let Ye=(ce.raws.between||"")+(ze?";":"");this.builder(Ve+qe+Ye,ce)}}beforeAfter(ce,ze){let Ve;Ve="decl"===ce.type?this.raw(ce,null,"beforeDecl"):"comment"===ce.type?this.raw(ce,null,"beforeComment"):"before"===ze?this.raw(ce,null,"beforeRule"):this.raw(ce,null,"beforeClose");let qe=ce.parent,Ye=0;for(;qe&&"root"!==qe.type;)Ye+=1,qe=qe.parent;if(Ve.includes("\n")){let ze=this.raw(ce,null,"indent");if(ze.length)for(let ce=0;ce0&&"comment"===ce.nodes[ze].type;)ze-=1;let Ve=this.raw(ce,"semicolon");for(let qe=0;qe{if(Ye=ce.raws[ze],void 0!==Ye)return!1}))}var Xe;return void 0===Ye&&(Ye=qe[Ve]),Qe.rawCache[Ve]=Ye,Ye}rawBeforeClose(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length>0&&void 0!==ce.raws.after)return ze=ce.raws.after,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawBeforeComment(ce,ze){let Ve;return ce.walkComments((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeDecl"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeDecl(ce,ze){let Ve;return ce.walkDecls((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeRule"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeOpen(ce){let ze;return ce.walk((ce=>{if("decl"!==ce.type&&(ze=ce.raws.between,void 0!==ze))return!1})),ze}rawBeforeRule(ce){let ze;return ce.walk((Ve=>{if(Ve.nodes&&(Ve.parent!==ce||ce.first!==Ve)&&void 0!==Ve.raws.before)return ze=Ve.raws.before,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawColon(ce){let ze;return ce.walkDecls((ce=>{if(void 0!==ce.raws.between)return ze=ce.raws.between.replace(/[^\s:]/g,""),!1})),ze}rawEmptyBody(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&0===ce.nodes.length&&(ze=ce.raws.after,void 0!==ze))return!1})),ze}rawIndent(ce){if(ce.raws.indent)return ce.raws.indent;let ze;return ce.walk((Ve=>{let qe=Ve.parent;if(qe&&qe!==ce&&qe.parent&&qe.parent===ce&&void 0!==Ve.raws.before){let ce=Ve.raws.before.split("\n");return ze=ce[ce.length-1],ze=ze.replace(/\S/g,""),!1}})),ze}rawSemicolon(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length&&"decl"===ce.last.type&&(ze=ce.raws.semicolon,void 0!==ze))return!1})),ze}rawValue(ce,ze){let Ve=ce[ze],qe=ce.raws[ze];return qe&&qe.value===Ve?qe.raw:Ve}root(ce){this.body(ce),ce.raws.after&&this.builder(ce.raws.after)}rule(ce){this.block(ce,this.rawValue(ce,"selector")),ce.raws.ownSemicolon&&this.builder(ce.raws.ownSemicolon,ce,"end")}stringify(ce,ze){if(!this[ce.type])throw new Error("Unknown AST node type "+ce.type+". Maybe you need to change PostCSS stringifier.");this[ce.type](ce,ze)}}ce.exports=Ye,Ye.default=Ye},function(ce,ze){},function(ce,ze,Ve){"use strict";(function(ze){let{existsSync:qe,readFileSync:Ye}=Ve(1819),{dirname:We,join:Qe}=Ve(778),{SourceMapConsumer:Xe,SourceMapGenerator:ot}=Ve(779);class st{constructor(ce,ze){if(!1===ze.map)return;this.loadAnnotation(ce),this.inline=this.startWith(this.annotation,"data:");let Ve=ze.map?ze.map.prev:void 0,qe=this.loadMap(ze.from,Ve);!this.mapFile&&ze.from&&(this.mapFile=ze.from),this.mapFile&&(this.root=We(this.mapFile)),qe&&(this.text=qe)}consumer(){return this.consumerCache||(this.consumerCache=new Xe(this.text)),this.consumerCache}decodeInline(ce){let Ve=ce.match(/^data:application\/json;charset=utf-?8,/)||ce.match(/^data:application\/json,/);if(Ve)return decodeURIComponent(ce.substr(Ve[0].length));let qe=ce.match(/^data:application\/json;charset=utf-?8;base64,/)||ce.match(/^data:application\/json;base64,/);if(qe)return Ye=ce.substr(qe[0].length),ze?ze.from(Ye,"base64").toString():window.atob(Ye);var Ye;let We=ce.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+We)}getAnnotationURL(ce){return ce.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(ce){return"object"==typeof ce&&("string"==typeof ce.mappings||"string"==typeof ce._mappings||Array.isArray(ce.sections))}loadAnnotation(ce){let ze=ce.match(/\/\*\s*# sourceMappingURL=/g);if(!ze)return;let Ve=ce.lastIndexOf(ze.pop()),qe=ce.indexOf("*/",Ve);Ve>-1&&qe>-1&&(this.annotation=this.getAnnotationURL(ce.substring(Ve,qe)))}loadFile(ce){if(this.root=We(ce),qe(ce))return this.mapFile=ce,Ye(ce,"utf-8").toString().trim()}loadMap(ce,ze){if(!1===ze)return!1;if(ze){if("string"==typeof ze)return ze;if("function"!=typeof ze){if(ze instanceof Xe)return ot.fromSourceMap(ze).toString();if(ze instanceof ot)return ze.toString();if(this.isMap(ze))return JSON.stringify(ze);throw new Error("Unsupported previous source map format: "+ze.toString())}{let Ve=ze(ce);if(Ve){let ce=this.loadFile(Ve);if(!ce)throw new Error("Unable to load previous source map: "+Ve.toString());return ce}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let ze=this.annotation;return ce&&(ze=Qe(We(ce),ze)),this.loadFile(ze)}}}startWith(ce,ze){return!!ce&&ce.substr(0,ze.length)===ze}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}ce.exports=st,st.default=st}).call(this,Ve(487).Buffer)},function(ce,ze,Ve){"use strict";let qe={comma:ce=>qe.split(ce,[","],!0),space:ce=>qe.split(ce,[" ","\n","\t"]),split(ce,ze,Ve){let qe=[],Ye="",We=!1,Qe=0,Xe=!1,ot="",st=!1;for(let Ve of ce)st?st=!1:"\\"===Ve?st=!0:Xe?Ve===ot&&(Xe=!1):'"'===Ve||"'"===Ve?(Xe=!0,ot=Ve):"("===Ve?Qe+=1:")"===Ve?Qe>0&&(Qe-=1):0===Qe&&ze.includes(Ve)&&(We=!0),We?(""!==Ye&&qe.push(Ye.trim()),Ye="",We=!1):Ye+=Ve;return(Ve||""!==Ye)&&qe.push(Ye.trim()),qe}};ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let qe=Ve(324),Ye=Ve(777),We=Ve(1046),Qe=Ve(781),Xe=Ve(782),ot=Ve(433),st=Ve(497),{isClean:mt,my:gt}=Ve(776);Ve(1048);const yt={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bt={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vt={Once:!0,postcssPlugin:!0,prepare:!0};function isPromise(ce){return"object"==typeof ce&&"function"==typeof ce.then}function getEvents(ce){let ze=!1,Ve=yt[ce.type];return"decl"===ce.type?ze=ce.prop.toLowerCase():"atrule"===ce.type&&(ze=ce.name.toLowerCase()),ze&&ce.append?[Ve,Ve+"-"+ze,0,Ve+"Exit",Ve+"Exit-"+ze]:ze?[Ve,Ve+"-"+ze,Ve+"Exit",Ve+"Exit-"+ze]:ce.append?[Ve,0,Ve+"Exit"]:[Ve,Ve+"Exit"]}function toStack(ce){let ze;return ze="document"===ce.type?["Document",0,"DocumentExit"]:"root"===ce.type?["Root",0,"RootExit"]:getEvents(ce),{eventIndex:0,events:ze,iterator:0,node:ce,visitorIndex:0,visitors:[]}}function cleanMarks(ce){return ce[mt]=!1,ce.nodes&&ce.nodes.forEach((ce=>cleanMarks(ce))),ce}let wt={};class Ct{constructor(ce,ze,Ve){let Ye;if(this.stringified=!1,this.processed=!1,"object"!=typeof ze||null===ze||"root"!==ze.type&&"document"!==ze.type)if(ze instanceof Ct||ze instanceof Xe)Ye=cleanMarks(ze.root),ze.map&&(void 0===Ve.map&&(Ve.map={}),Ve.map.inline||(Ve.map.inline=!1),Ve.map.prev=ze.map);else{let ce=Qe;Ve.syntax&&(ce=Ve.syntax.parse),Ve.parser&&(ce=Ve.parser),ce.parse&&(ce=ce.parse);try{Ye=ce(ze,Ve)}catch(ce){this.processed=!0,this.error=ce}Ye&&!Ye[gt]&&qe.rebuild(Ye)}else Ye=cleanMarks(ze);this.result=new Xe(ce,Ye,Ve),this.helpers={...wt,postcss:wt,result:this.result},this.plugins=this.processor.plugins.map((ce=>"object"==typeof ce&&ce.prepare?{...ce,...ce.prepare(this.result)}:ce))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(ce){return this.async().catch(ce)}finally(ce){return this.async().then(ce,ce)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(ce,ze){let Ve=this.result.lastPlugin;try{ze&&ze.addToError(ce),this.error=ce,"CssSyntaxError"!==ce.name||ce.plugin?Ve.postcssVersion:(ce.plugin=Ve.postcssPlugin,ce.setMessage())}catch(ce){console&&console.error&&console.error(ce)}return ce}prepareVisitors(){this.listeners={};let add=(ce,ze,Ve)=>{this.listeners[ze]||(this.listeners[ze]=[]),this.listeners[ze].push([ce,Ve])};for(let ce of this.plugins)if("object"==typeof ce)for(let ze in ce){if(!bt[ze]&&/^[A-Z]/.test(ze))throw new Error(`Unknown event ${ze} in ${ce.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vt[ze])if("object"==typeof ce[ze])for(let Ve in ce[ze])add(ce,"*"===Ve?ze:ze+"-"+Ve.toLowerCase(),ce[ze][Ve]);else"function"==typeof ce[ze]&&add(ce,ze,ce[ze])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let ce=0;ce0;){let ce=this.visitTick(ze);if(isPromise(ce))try{await ce}catch(ce){let Ve=ze[ze.length-1].node;throw this.handleError(ce,Ve)}}}if(this.listeners.OnceExit)for(let[ze,Ve]of this.listeners.OnceExit){this.result.lastPlugin=ze;try{if("document"===ce.type){let ze=ce.nodes.map((ce=>Ve(ce,this.helpers)));await Promise.all(ze)}else await Ve(ce,this.helpers)}catch(ce){throw this.handleError(ce)}}}return this.processed=!0,this.stringify()}runOnRoot(ce){this.result.lastPlugin=ce;try{if("object"==typeof ce&&ce.Once){if("document"===this.result.root.type){let ze=this.result.root.nodes.map((ze=>ce.Once(ze,this.helpers)));return isPromise(ze[0])?Promise.all(ze):ze}return ce.Once(this.result.root,this.helpers)}if("function"==typeof ce)return ce(this.result.root,this.result)}catch(ce){throw this.handleError(ce)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let ce=this.result.opts,ze=st;ce.syntax&&(ze=ce.syntax.stringify),ce.stringifier&&(ze=ce.stringifier),ze.stringify&&(ze=ze.stringify);let Ve=new We(ze,this.result.root,this.result.opts).generate();return this.result.css=Ve[0],this.result.map=Ve[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let ce of this.plugins){if(isPromise(this.runOnRoot(ce)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let ce=this.result.root;for(;!ce[mt];)ce[mt]=!0,this.walkSync(ce);if(this.listeners.OnceExit)if("document"===ce.type)for(let ze of ce.nodes)this.visitSync(this.listeners.OnceExit,ze);else this.visitSync(this.listeners.OnceExit,ce)}return this.result}then(ce,ze){return this.async().then(ce,ze)}toString(){return this.css}visitSync(ce,ze){for(let[Ve,qe]of ce){let ce;this.result.lastPlugin=Ve;try{ce=qe(ze,this.helpers)}catch(ce){throw this.handleError(ce,ze.proxyOf)}if("root"!==ze.type&&"document"!==ze.type&&!ze.parent)return!0;if(isPromise(ce))throw this.getAsyncError()}}visitTick(ce){let ze=ce[ce.length-1],{node:Ve,visitors:qe}=ze;if("root"!==Ve.type&&"document"!==Ve.type&&!Ve.parent)return void ce.pop();if(qe.length>0&&ze.visitorIndex{ce[mt]||this.walkSync(ce)}));else{let ze=this.listeners[Ve];if(ze&&this.visitSync(ze,ce.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Ct.registerPostcss=ce=>{wt=ce},ce.exports=Ct,Ct.default=Ct,ot.registerLazyResult(Ct),Ye.registerLazyResult(Ct)},function(ce,ze,Ve){"use strict";(function(ze){let{dirname:qe,relative:Ye,resolve:We,sep:Qe}=Ve(778),{SourceMapConsumer:Xe,SourceMapGenerator:ot}=Ve(779),{pathToFileURL:st}=Ve(1042),mt=Ve(499),gt=Boolean(Xe&&ot),yt=Boolean(qe&&We&&Ye&&Qe);ce.exports=class{constructor(ce,ze,Ve,qe){this.stringify=ce,this.mapOpts=Ve.map||{},this.root=ze,this.opts=Ve,this.css=qe,this.originalCSS=qe,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let ce;ce=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let ze="\n";this.css.includes("\r\n")&&(ze="\r\n"),this.css+=ze+"/*# sourceMappingURL="+ce+" */"}applyPrevMaps(){for(let ce of this.previous()){let ze,Ve=this.toUrl(this.path(ce.file)),Ye=ce.root||qe(ce.file);!1===this.mapOpts.sourcesContent?(ze=new Xe(ce.text),ze.sourcesContent&&(ze.sourcesContent=null)):ze=ce.consumer(),this.map.applySourceMap(ze,Ve,this.toUrl(this.path(Ye)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let ce;for(let ze=this.root.nodes.length-1;ze>=0;ze--)ce=this.root.nodes[ze],"comment"===ce.type&&ce.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(ze)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yt&>&&this.isMap())return this.generateMap();{let ce="";return this.stringify(this.root,(ze=>{ce+=ze})),[ce]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let ce=this.previous()[0].consumer();ce.file=this.outputFile(),this.map=ot.fromSourceMap(ce,{ignoreInvalidMapping:!0})}else this.map=new ot({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ot({file:this.outputFile(),ignoreInvalidMapping:!0});let ce,ze,Ve=1,qe=1,Ye="",We={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((Qe,Xe,ot)=>{if(this.css+=Qe,Xe&&"end"!==ot&&(We.generated.line=Ve,We.generated.column=qe-1,Xe.source&&Xe.source.start?(We.source=this.sourcePath(Xe),We.original.line=Xe.source.start.line,We.original.column=Xe.source.start.column-1,this.map.addMapping(We)):(We.source=Ye,We.original.line=1,We.original.column=0,this.map.addMapping(We))),ze=Qe.match(/\n/g),ze?(Ve+=ze.length,ce=Qe.lastIndexOf("\n"),qe=Qe.length-ce):qe+=Qe.length,Xe&&"start"!==ot){let ce=Xe.parent||{raws:{}};("decl"===Xe.type||"atrule"===Xe.type&&!Xe.nodes)&&Xe===ce.last&&!ce.raws.semicolon||(Xe.source&&Xe.source.end?(We.source=this.sourcePath(Xe),We.original.line=Xe.source.end.line,We.original.column=Xe.source.end.column-1,We.generated.line=Ve,We.generated.column=qe-2,this.map.addMapping(We)):(We.source=Ye,We.original.line=1,We.original.column=0,We.generated.line=Ve,We.generated.column=qe-1,this.map.addMapping(We)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((ce=>ce.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let ce=this.mapOpts.annotation;return(void 0===ce||!0===ce)&&(!this.previous().length||this.previous().some((ce=>ce.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((ce=>ce.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(ce){if(this.mapOpts.absolute)return ce;if(60===ce.charCodeAt(0))return ce;if(/^\w+:\/\//.test(ce))return ce;let ze=this.memoizedPaths.get(ce);if(ze)return ze;let Ve=this.opts.to?qe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(Ve=qe(We(Ve,this.mapOpts.annotation)));let Qe=Ye(Ve,ce);return this.memoizedPaths.set(ce,Qe),Qe}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((ce=>{if(ce.source&&ce.source.input.map){let ze=ce.source.input.map;this.previousMaps.includes(ze)||this.previousMaps.push(ze)}}));else{let ce=new mt(this.originalCSS,this.opts);ce.map&&this.previousMaps.push(ce.map)}return this.previousMaps}setSourcesContent(){let ce={};if(this.root)this.root.walk((ze=>{if(ze.source){let Ve=ze.source.input.from;if(Ve&&!ce[Ve]){ce[Ve]=!0;let qe=this.usesFileUrls?this.toFileUrl(Ve):this.toUrl(this.path(Ve));this.map.setSourceContent(qe,ze.source.input.css)}}}));else if(this.css){let ce=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(ce,this.css)}}sourcePath(ce){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(ce.source.input.from):this.toUrl(this.path(ce.source.input.from))}toBase64(ce){return ze?ze.from(ce).toString("base64"):window.btoa(unescape(encodeURIComponent(ce)))}toFileUrl(ce){let ze=this.memoizedFileURLs.get(ce);if(ze)return ze;if(st){let ze=st(ce).toString();return this.memoizedFileURLs.set(ce,ze),ze}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(ce){let ze=this.memoizedURLs.get(ce);if(ze)return ze;"\\"===Qe&&(ce=ce.replace(/\\/g,"/"));let Ve=encodeURI(ce).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(ce,Ve),Ve}}}).call(this,Ve(487).Buffer)},function(ce,ze,Ve){"use strict";class qe{constructor(ce,ze={}){if(this.type="warning",this.text=ce,ze.node&&ze.node.source){let ce=ze.node.rangeBy(ze);this.line=ce.start.line,this.column=ce.start.column,this.endLine=ce.end.line,this.endColumn=ce.end.column}for(let ce in ze)this[ce]=ze[ce]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let qe={};ce.exports=function warnOnce(ce){qe[ce]||(qe[ce]=!0,"undefined"!=typeof console&&console.warn&&console.warn(ce))}},function(ce,ze,Ve){var qe=Ve(871),Ye=Ve(756),We=Ve(762),Qe=Ve(872),Xe=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)qe(ze,We(ce)),ce=Ye(ce);return ze}:Qe;ce.exports=Xe},function(ce,ze){ce.exports={L:1,M:0,Q:3,H:2}},function(ce,ze){ce.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},function(ce,ze,Ve){var qe=Ve(1053);function QRPolynomial(ce,ze){if(null==ce.length)throw new Error(ce.length+"/"+ze);for(var Ve=0;Ve=256;)ce-=255;return Ve.EXP_TABLE[ce]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},qe=0;qe<8;qe++)Ve.EXP_TABLE[qe]=1<{const{onChange:ze,idProperty:Ve}=this.props,qe=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,qe)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:qe,noneSelectedText:Ye,onClose:We,values:Qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{allSelectedText:ce,disabled:ze,noneSelectedText:Ye,onChange:this.handleChange,onClose:We,values:Qe},this.resourceListStore.data.map(((ce,ze)=>st.a.createElement(vt.a.Option,{key:ze,value:ce[qe]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((Ye=Xe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,qe={limit:"",...Ve};this.resourceListStore=new wt.a(ze,qe,ce)}}}),qe=Ye))||qe;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.Input,{disabled:Ve,icon:"su-earth",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Qe,type:"text",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0},ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:qe,placeholder:Qe,value:Xe}=this.props;return Ye.a.createElement(We.Input,{disabled:Ve,icon:"su-credit-card",id:ce,name:qe,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Qe,type:"text",valid:ze,value:Xe})}}Qe.defaultProps={disabled:!1,valid:!0},ze.default=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(34),bt=Ve(6),vt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let wt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce){_initializerDefineProperty(this,"teaserItemIds",Ye,this),_initializerDefineProperty(this,"teaserItems",We,this),_initializerDefineProperty(this,"loading",Qe,this),this.loadTeasers=()=>{this.setLoading(!0),vt.a.getList("teasers",{ids:this.teaserItemIds.map((ce=>ce.type+";"+ce.id)),locale:this.locale.get()}).then(Object(st.action)((ce=>{this.teaserItems.splice(0,this.teaserItems.length,...ce._embedded.teasers),this.setLoading(!1)})))},this.locale=ce,this.teaserDisposer=Object(st.autorun)(this.loadTeasers)}destroy(){this.teaserDisposer()}add(ce,ze){this.teaserItemIds.find((Ve=>Ve.type===ce&&Ve.id===ze))||this.teaserItemIds.push({type:ce,id:ze})}findById(ce,ze){return this.teaserItems.find((Ve=>Ve.type===ce&&Ve.id===ze))}setLoading(ce){this.loading=ce}}).prototype,"teaserItemIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"teaserItems",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"setLoading",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);var Ct,Dt,kt,St,xt=Ve(399),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(369),Ft=Ve(684),Bt=Ve.n(Ft),Vt="item--2CQ2j6heU-",Ht="copy-text--pC-hRYnzMn",Ut="copying--O9G9yRuaRj",Wt="content--ffvABah0Q2";function DownloadListItem_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jt=Object(mt.b)((St=class extends ot.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="copying",qe=this,(Ve=kt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:qe}=this.props,Ye=Tt()(Vt,{[Ut]:this.copying}),We=ot.a.createElement("span",{className:Wt},ze,ot.a.createElement("span",{className:Ht},Ve));return ot.a.createElement("li",{className:Ye,onAnimationEnd:this.handleClick},qe?ot.a.createElement(Bt.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},St.defaultProps={copyUrlOnClick:!1},kt=DownloadListItem_applyDecoratedDescriptor((Dt=St).prototype,"copying",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),DownloadListItem_applyDecoratedDescriptor(Dt.prototype,"copyUrl",[st.action],Object.getOwnPropertyDescriptor(Dt.prototype,"copyUrl"),Dt.prototype),Ct=Dt))||Ct;var Qt=Jt;class en extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:qe}=this.props;return[ot.a.createElement(Qt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},qe),ot.a.createElement(gt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Qt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(gt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(gt.Menu,{menuRef:ce,style:ze},Ve)))}}var rn,ln,mn,gn,bn,wn,Cn,Sn,En,Tn,Ln="media-card--D92EE5mvsd",Fn="checkbox--MKIozPb6bM",Yn="selected--QROWDCoc1q",Un="header--0TdKHqjoQQ",Gn="description--XSXHL74Hyq",Kn="no-download-list--gDs609BRRg",Jn="download-button--+eRFFB7ZwO",Zn="active--N8fkEDCK+r",Xn="ghost-indicator--QLJ5yOS00K",ei="title--xrCe2tQi-k",si="meta--LEq0mfMu2Y",_i="title-text--+MERqWAJoz",Ri="media--ejbY2jJ4HC",Ci="cover--raBSTujlbG",Di="show-cover--LKt9WlXWk7",Ei="media-icon--SrMzuKPepI";function MediaCard_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Object(mt.b)(((Tn=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",mn,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",gn,this),MediaCard_initializerDefineProperty(this,"imageLoading",bn,this),MediaCard_initializerDefineProperty(this,"imageError",wn,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Cn,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleKeypress=ce=>{const{id:ze,onClick:Ve,selected:qe}=this.props;Ve&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),Ve(ze,!qe)))},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&Ve(ce,!ze)},this.handleHeaderKeypress=ce=>{const{id:ze,selected:Ve,onSelectionChange:qe}=this.props;qe&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),qe(ze,!Ve)))},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Sn,this),MediaCard_initializerDefineProperty(this,"handleImageError",En,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:qe,icon:Ye,id:We,image:Qe,imageSizes:st,meta:mt,mimeType:yt,onSelectionChange:bt,selected:vt,title:wt,showCover:Ct}=this.props,Dt=Tt()(Ln,{[Yn]:!!vt,[Di]:!!Ct,[Kn]:!st.length}),kt=Tt()(Jn,{[Zn]:!!this.downloadListOpen}),St=ot.a.createElement("div",{className:_i},qe&&ot.a.createElement(gt.GhostIndicator,{className:Xn,locale:qe}),ot.a.createElement(gt.CroppedText,null,wt));return ot.a.createElement("div",{className:Dt},ot.a.createElement("div",{className:Un},ot.a.createElement("div",{className:Gn,onClick:this.handleHeaderClick,onKeyPress:this.handleHeaderKeypress,role:"button",tabIndex:"0"},ot.a.createElement("div",{className:ei},bt?ot.a.createElement(gt.Checkbox,{checked:!!vt,className:Fn,value:We},St):St),mt&&ot.a.createElement("div",{className:si},ot.a.createElement(gt.CroppedText,null,mt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:kt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(gt.Icon,{name:"su-download"})),ot.a.createElement(en,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Ri,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe&&!this.imageError?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("img",{alt:wt,src:this.image.src}),this.imageLoading&&ot.a.createElement(gt.Loader,null)):ot.a.createElement(Lt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Ci},!!Ye&&ot.a.createElement(gt.Icon,{className:Ei,name:Ye}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},mn=MediaCard_applyDecoratedDescriptor((ln=Tn).prototype,"downloadButtonRef",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=MediaCard_applyDecoratedDescriptor(ln.prototype,"downloadListOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageLoading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageError",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cn=MediaCard_applyDecoratedDescriptor(ln.prototype,"setDownloadButtonRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(ln.prototype,"openDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"openDownloadList"),ln.prototype),MediaCard_applyDecoratedDescriptor(ln.prototype,"closeDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"closeDownloadList"),ln.prototype),Sn=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageLoad",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),En=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),rn=ln));var Oi,Ti,er=Ve(315);Object(mt.b)(((Ti=class extends ot.a.Component{constructor(ce){super(ce),this.collectionId=st.observable.box();const ze=Object(st.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:st.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=er.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=er.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:qe,locale:Ye}=this.props;return ot.a.createElement(er.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:Ye,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:qe})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},Oi=Ti));var tr,nr=Ve(633);var rr,ar,sr,lr,dr,ur,pr,vr,_r,Rr,Cr,Dr,Er=new(function teaserProviderRegistry_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}((tr=class{constructor(){this.clear()}clear(){this.teaserProviders={}}get keys(){return Object.keys(this.teaserProviders)}add(ce,ze){if(ce in this.teaserProviders)throw new Error('The key "'+ce+'" has already been used for another TeaserProvider');this.teaserProviders[ce]=ze}get(ce){if(!(ce in this.teaserProviders))throw new Error('There is no TeaserProvider with key "'+ce+'" registered');return this.teaserProviders[ce]}}).prototype,"keys",[st.computed],Object.getOwnPropertyDescriptor(tr.prototype,"keys"),tr.prototype),tr),Tr={"edit-form":"edit-form--jUydKjOEhk",editForm:"edit-form--jUydKjOEhk",form:"form--iac0hwTY9X","media-column":"media-column--pFBXSsmF7i",mediaColumn:"media-column--pFBXSsmF7i","media-button":"media-button--7J5CPHOgHd",mediaButton:"media-button--7J5CPHOgHd","media-button-edit-icon":"media-button-edit-icon--ye3GvevG-a",mediaButtonEditIcon:"media-button-edit-icon--ye3GvevG-a","media-button-icon":"media-button-icon--09OtjUuwf+",mediaButtonIcon:"media-button-icon--09OtjUuwf+","title-input":"title-input--JsyWuzsBsP",titleInput:"title-input--JsyWuzsBsP","description-text-area":"description-text-area--JJN79lWtjl",descriptionTextArea:"description-text-area--JJN79lWtjl",buttons:"buttons--KN4g5u-qF7",item:"item--4BMEjTy751",media:"media--wtwvHogrDV",title:"title--1XUUR3Opt4",content:"content--EQoWqSOM3j",description:"description--swgZ6YyGKp",type:"type--FAPh7fJTR-"};function Item_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Item_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ar=Object(mt.b)((Dr=class ce extends ot.a.Component{constructor(){super(...arguments),Item_initializerDefineProperty(this,"title",sr,this),Item_initializerDefineProperty(this,"description",lr,this),Item_initializerDefineProperty(this,"mediaId",dr,this),Item_initializerDefineProperty(this,"mediaOverlayOpen",ur,this),Item_initializerDefineProperty(this,"handleMediaClick",pr,this),Item_initializerDefineProperty(this,"handleMediaConfirm",vr,this),Item_initializerDefineProperty(this,"handleMediaOverlayClose",_r,this),Item_initializerDefineProperty(this,"handleTitleChange",Rr,this),Item_initializerDefineProperty(this,"handleDescriptionChange",Cr,this),this.handleCancel=()=>{const{id:ce,onCancel:ze,type:Ve}=this.props;ze(Ve,ce)},this.handleReset=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({id:ce,type:Ve})},this.handleApply=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({description:this.description,id:ce,mediaId:this.mediaId,title:this.title,type:Ve})}}componentDidMount(){this.setStateFromProps()}componentDidUpdate(ce){ce.title===this.props.title&&ce.description===this.props.description&&ce.mediaId===this.props.mediaId||this.setStateFromProps(),!0===ce.editing&&!1===this.props.editing&&this.setStateFromProps()}setStateFromProps(){const{description:ce,mediaId:ze,title:Ve}=this.props;this.title=Ve,this.description=ce,this.mediaId=ze}render(){const{edited:ze,editing:Ve,locale:qe,type:Ye}=this.props,{mediaUrl:We}=ce;return Ve?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("div",{className:Tr.editForm},ot.a.createElement("div",{className:Tr.form},ot.a.createElement("div",{className:Tr.mediaColumn},We&&ot.a.createElement("button",{className:Tr.mediaButton,onClick:this.handleMediaClick,type:"button"},this.mediaId?ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())}):ot.a.createElement(Lt.a,{iconSize:16,mimeType:"image"}),ot.a.createElement(gt.Icon,{className:Tr.mediaButtonIcon,name:"su-pen"}))),ot.a.createElement("div",{className:Tr.formColumn},ot.a.createElement("div",{className:Tr.titleInput},ot.a.createElement(gt.Input,{onChange:this.handleTitleChange,value:this.title})),ot.a.createElement("div",{className:Tr.descriptionTextArea},ot.a.createElement(yt.h,{adapter:"ckeditor5",locale:qe,onChange:this.handleDescriptionChange,value:this.description})))),ot.a.createElement("div",{className:Tr.buttons},ot.a.createElement(gt.Button,{onClick:this.handleCancel},Object(bt.translate)("sulu_admin.cancel")),ot.a.createElement(gt.Button,{onClick:this.handleReset,skin:"link"},Object(bt.translate)("sulu_admin.reset")),ot.a.createElement(gt.Button,{onClick:this.handleApply,skin:"primary"},Object(bt.translate)("sulu_admin.apply")))),ot.a.createElement(nr.a,{locale:qe,onClose:this.handleMediaOverlayClose,onConfirm:this.handleMediaConfirm,open:this.mediaOverlayOpen})):ot.a.createElement("div",{className:Tr.item},ot.a.createElement("div",{className:Tr.media},We&&this.mediaId&&ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())})),ot.a.createElement("div",{className:Tr.content},ot.a.createElement("p",{className:Tr.title},this.title),ot.a.createElement("p",{className:Tr.description},this.description&&Et()(this.description))),ot.a.createElement("p",{className:Tr.type},Er.get(Ye).title,ze&&" ("+Object(bt.translate)("sulu_page.edited")+")"))}},Dr.mediaUrl=void 0,sr=Item_applyDecoratedDescriptor((ar=Dr).prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),lr=Item_applyDecoratedDescriptor(ar.prototype,"description",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),dr=Item_applyDecoratedDescriptor(ar.prototype,"mediaId",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ur=Item_applyDecoratedDescriptor(ar.prototype,"mediaOverlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Item_applyDecoratedDescriptor(ar.prototype,"setStateFromProps",[st.action],Object.getOwnPropertyDescriptor(ar.prototype,"setStateFromProps"),ar.prototype),pr=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!0}}}),vr=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mediaId=ce.id,this.mediaOverlayOpen=!1}}}),_r=Item_applyDecoratedDescriptor(ar.prototype,"handleMediaOverlayClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!1}}}),Rr=Item_applyDecoratedDescriptor(ar.prototype,"handleTitleChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Cr=Item_applyDecoratedDescriptor(ar.prototype,"handleDescriptionChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.description=ce}}}),rr=ar))||rr;var Mr,Lr,jr,Ir,zr,Br,Nr,Vr,Hr,qr,Yr,Ur,Wr=Ar;function TeaserSelection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function TeaserSelection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}function getUniqueId(ce){return ce.type+";"+ce.id}function extractUniqueId(ce){const ze=ce.split(";");return{id:ze[1],type:ze[0]}}let $r=Object(mt.b)((Ur=class extends ot.a.Component{constructor(ce){super(ce),TeaserSelection_initializerDefineProperty(this,"editIds",jr,this),TeaserSelection_initializerDefineProperty(this,"openedOverlay",Ir,this),TeaserSelection_initializerDefineProperty(this,"handleCancel",zr,this),TeaserSelection_initializerDefineProperty(this,"handleEdit",Br,this),TeaserSelection_initializerDefineProperty(this,"handleApply",Nr,this),this.handleRemove=ce=>{const{onChange:ze,value:Ve}=this.props,qe=extractUniqueId(ce);ze({...Ve,items:Ve.items.filter((ce=>ce.id.toString()!==qe.id||ce.type!==qe.type))})},this.handleSorted=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,items:Object(bt.arrayMove)(qe.items,ce,ze)})},TeaserSelection_initializerDefineProperty(this,"handleClose",Vr,this),TeaserSelection_initializerDefineProperty(this,"handleConfirm",Hr,this),TeaserSelection_initializerDefineProperty(this,"handleAddClick",qr,this),TeaserSelection_initializerDefineProperty(this,"handlePresentationClick",Yr,this),Object(st.action)((()=>{const{locale:ce,value:ze}=this.props;this.teaserStore=new wt(ce),ze.items.forEach((ce=>{this.teaserStore.add(ce.type,ce.id)}))}))()}componentWillUnmount(){this.teaserStore.destroy()}get teaserItems(){return this.props.value.items.map((ce=>({...this.teaserStore.findById(ce.type,ce.id),...Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{}),edited:!!(ce.description||ce.mediaId||ce.title)})))}get presentationOptions(){const{presentations:ce}=this.props;if(ce)return ce.map((ce=>({label:ce.label,value:ce.value})))}get selectedPresentation(){const{presentations:ce,value:ze}=this.props;if(ce)return ce.find((ce=>ce.value===ze.presentAs))}openItemEdit(ce){this.editIds.push(ce)}closeItemEdit(ce){this.editIds.splice(this.editIds.findIndex((ze=>ze===ce)),1)}render(){const{disabled:ce,locale:ze,onItemClick:Ve,value:qe}=this.props,Ye=Er.keys.map((ce=>({label:Er.get(ce).title,value:ce}))),We=this.presentationOptions?{icon:"su-eye",label:this.selectedPresentation&&this.selectedPresentation.label,onClick:this.handlePresentationClick,options:this.presentationOptions}:void 0;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.MultiItemSelection,{disabled:ce,leftButton:{icon:"su-plus-circle",onClick:this.handleAddClick,options:Ye},loading:this.teaserStore.loading,onItemsSorted:this.handleSorted,rightButton:We},this.teaserItems.map(((ce,qe)=>{const Ye=getUniqueId(ce);return ot.a.createElement(gt.MultiItemSelection.Item,{id:Ye,index:qe+1,key:Ye,onClick:this.editIds.includes(Ye)?void 0:Ve,onEdit:this.editIds.includes(Ye)?void 0:this.handleEdit,onRemove:this.handleRemove,value:ce},ot.a.createElement(Wr,{description:ce.description,edited:ce.edited,editing:this.editIds.includes(Ye),id:ce.id,locale:ze,mediaId:ce.mediaId,onApply:this.handleApply,onCancel:this.handleCancel,title:ce.title,type:ce.type}))}))),Er.keys.map((ce=>ot.a.createElement(yt.d,{adapter:Er.get(ce).listAdapter,key:ce,listKey:ce,locale:ze,onClose:this.handleClose,onConfirm:this.handleConfirm,open:this.openedOverlay===ce,preloadSelectedItems:!1,preSelectedItems:qe.items.filter((ze=>ze.type===ce)),resourceKey:ce,title:Er.get(ce).overlayTitle}))))}},Ur.defaultProps={disabled:!1,value:{presentAs:void 0,items:[]}},Ur.Item=Wr,jr=TeaserSelection_applyDecoratedDescriptor((Lr=Ur).prototype,"editIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ir=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"openedOverlay",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"teaserItems",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"teaserItems"),Lr.prototype),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"presentationOptions",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"presentationOptions"),Lr.prototype),TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"selectedPresentation",[st.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"selectedPresentation"),Lr.prototype),zr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.closeItemEdit(getUniqueId({id:ze,type:ce}))}}}),Br=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openItemEdit(ce)}}}),Nr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleApply",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props,Ve={...this.props.value},qe=Ve.items.findIndex((ze=>ze.id===ce.id));Ve.items[qe]=ce,ze(Ve),this.closeItemEdit(getUniqueId(ce))}}}),Vr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedOverlay=void 0}}}),Hr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{openedOverlay:ze}=this;if(!ze)throw new Error("There was no opened overlay defined! This should not happen and is likely a bug.");const{onChange:Ve,value:qe}=this.props,Ye=qe.items.filter((Ve=>Ve.type!==ze||ce.find((ce=>ce.id===Ve.id)))),We=ce.filter((ce=>!Ye.find((Ve=>Ve.id===ce.id&&Ve.type===ze)))).map((ce=>({id:ce.id,type:ze})));Ve({...qe,items:[...Ye,...We]}),ce.forEach((ce=>{this.teaserStore.add(ze,ce.id)})),this.openedOverlay=void 0}}}),qr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handleAddClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openedOverlay=ce}}}),Yr=TeaserSelection_applyDecoratedDescriptor(Lr.prototype,"handlePresentationClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,presentAs:ce})}}}),Mr=Lr))||Mr;ze.default=$r},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(3),mt=Ve(1),gt=Ve(7),yt=Ve(76),bt=Ve(6),vt=Ve(377),wt=Ve(572).default,Ct=Ve(30);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Dt="media_formats";var kt=(Ye=_applyDecoratedDescriptor((qe=class{constructor(ce,ze){_initializerDefineProperty(this,"mediaFormats",Ye,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"saving",Qe,this),this.id=ce,this.locale=ze,this.loading=!0,Ct.c.getList(Dt,{id:ce,locale:ze}).then(Object(mt.action)((ce=>{this.loading=!1,this.mediaFormats=ce})))}getFormatOptions(ce){if(this.mediaFormats)return this.mediaFormats[ce]}updateFormatOptions(ce){return this.saving=!0,Ct.c.patch(Dt,ce,{id:this.id,locale:this.locale}).then(Object(mt.action)((ce=>{this.saving=!1;const ze={...this.mediaFormats,...ce};this.mediaFormats=Object.keys(ze).reduce(((ce,Ve)=>{const qe=ze[Ve];return 0===Object.keys(qe).length||(ce[Ve]=qe),ce}),{})})))}}).prototype,"mediaFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"saving",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"updateFormatOptions",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateFormatOptions"),qe.prototype),qe);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht=new class{sendRequest(){if(!yt.e.user)throw new Error("A user must be logged in to load the webspaces with the correct locale");return this.formatPromise||(this.formatPromise=Ct.c.getList("formats",{locale:yt.e.user.locale})),this.formatPromise}loadFormats(){return this.sendRequest().then((ce=>ce._embedded.formats))}},Ut="crop-overlay-container--qkxzrPorU8",Wt="format-select--McX7zwzEdG";function CropOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function CropOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Jt,Qt,en,rn,ln,mn,gn,bn=Object(st.b)((xt=class extends ot.a.Component{constructor(ce){super(ce),CropOverlay_initializerDefineProperty(this,"rawFormats",Et,this),CropOverlay_initializerDefineProperty(this,"formatKey",Pt,this),CropOverlay_initializerDefineProperty(this,"changedFormatCroppings",Tt,this),CropOverlay_initializerDefineProperty(this,"dirty",Lt,this),CropOverlay_initializerDefineProperty(this,"handleClose",Ft,this),this.handleConfirm=()=>{const{onConfirm:ce}=this.props,ze={};this.changedFormatCroppings.forEach(((ce,Ve)=>{ze[Ve]=this.convertSelectionToFormatOptions(ce)})),this.mediaFormatStore.updateFormatOptions(ze).then(Object(mt.action)((()=>{ce(),this.changedFormatCroppings.clear()})))},CropOverlay_initializerDefineProperty(this,"handleFormatChange",Bt,this),CropOverlay_initializerDefineProperty(this,"handleSelectionChange",Vt,this);const{id:ze,locale:Ve}=this.props;this.mediaFormatStore=new kt(ze,Ve)}get currentSelection(){const{formatKey:ce}=this;if(ce)return this.changedFormatCroppings.has(ce)?this.changedFormatCroppings.get(ce):this.convertFormatOptionsToSelection(this.mediaFormatStore.getFormatOptions(ce))}get availableFormats(){return this.rawFormats?this.rawFormats.filter((ce=>!ce.internal)):[]}get selectedFormat(){if(!this.availableFormats)throw new Error("Cannot access format as long as formats have not finished loading!");const ce=this.availableFormats.find((ce=>ce.key===this.formatKey));if(ce)return ce}componentDidMount(){Ht.loadFormats().then(Object(mt.action)((ce=>{this.rawFormats=ce,this.formatKey=this.availableFormats.length>0?this.availableFormats[0].key:void 0})))}convertSelectionToFormatOptions(ce){return ce?{cropX:ce.left,cropY:ce.top,cropWidth:ce.width,cropHeight:ce.height}:{}}convertFormatOptionsToSelection(ce){if(ce)return{left:ce.cropX,top:ce.cropY,width:ce.cropWidth,height:ce.cropHeight}}render(){const{availableFormats:ce,mediaFormatStore:ze,selectedFormat:Ve}=this,{image:qe,open:Ye}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.changedFormatCroppings.size<=0,confirmLoading:this.mediaFormatStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,size:"large",title:Object(bt.translate)("sulu_media.define_crops")},ce?ot.a.createElement("div",{className:Ut},ot.a.createElement("div",{className:Wt},ot.a.createElement(gt.SingleSelect,{onChange:this.handleFormatChange,value:this.formatKey},ce.map((ce=>ot.a.createElement(gt.SingleSelect.Option,{key:ce.key,value:ce.key},ce.title+(ze.getFormatOptions(ce.key)?" ("+Object(bt.translate)("sulu_media.cropped")+")":"")))))),Ve&&!ze.loading&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.ImageRectangleSelection,{image:qe,minHeight:Ve.scale.y,minWidth:Ve.scale.x,onChange:this.handleSelectionChange,value:this.currentSelection}),ot.a.createElement("p",null,"(",Object(bt.translate)("sulu_media.double_click_crop_and_maximize"),")"))):ot.a.createElement(gt.Loader,null))}},Et=CropOverlay_applyDecoratedDescriptor(xt.prototype,"rawFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"formatKey",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"changedFormatCroppings",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Lt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"dirty",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CropOverlay_applyDecoratedDescriptor(xt.prototype,"currentSelection",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"currentSelection"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"availableFormats",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"availableFormats"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"selectedFormat",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"selectedFormat"),xt.prototype),Ft=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.onClose(),this.changedFormatCroppings.clear()}}}),Bt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleFormatChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.formatKey=ce}}}),Vt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleSelectionChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formatKey:ze}=this;if(!ze)throw new Error("It is not possible to change the selection without a selected format. This should not happen and is likely a bug.");this.changedFormatCroppings.set(ze,ce)}}}),St=xt))||St,wn=Ve(561).default,Cn="focus-point-container--PCOnnfwBqK";function FocusPointOverlay_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FocusPointOverlay_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Sn,En,Tn,Ln,Fn,Yn,Un,Gn,Kn,Jn,Zn,Xn,ei,si,_i,Ri=Object(st.b)((Qt=class extends ot.a.Component{get confirmDisabled(){const{resourceStore:{data:{focusPointX:ce,focusPointY:ze}}}=this.props;return this.focusPointX===ce&&this.focusPointY===ze}constructor(ce){super(ce),FocusPointOverlay_initializerDefineProperty(this,"focusPointX",en,this),FocusPointOverlay_initializerDefineProperty(this,"focusPointY",rn,this),FocusPointOverlay_initializerDefineProperty(this,"resourceStore",ln,this),FocusPointOverlay_initializerDefineProperty(this,"updateFocusPoint",mn,this),this.handleClose=()=>{this.props.onClose()},this.handleConfirm=()=>{const{resourceStore:ce}=this;if(!ce)throw new Error("There is no resourceStore defined! This should not happen and is likely a bug.");ce.change("focusPointX",this.focusPointX),ce.change("focusPointY",this.focusPointY),ce.save().then((()=>{this.props.resourceStore.set("focusPointX",this.focusPointX),this.props.resourceStore.set("focusPointY",this.focusPointY),this.props.onConfirm()}))},FocusPointOverlay_initializerDefineProperty(this,"handleFocusPointChange",gn,this),this.updateFocusPoint()}componentDidUpdate(ce){!ce.open&&this.props.open&&(this.resourceStore=this.props.resourceStore.clone(),this.updateFocusPoint()),ce.open&&!this.props.open&&this.resourceStore&&(this.resourceStore.destroy(),this.resourceStore=void 0)}render(){const{open:ce}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.confirmDisabled,confirmLoading:!!this.resourceStore&&this.resourceStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:ce,size:"large",title:Object(bt.translate)("sulu_media.set_focus_point")},ot.a.createElement("div",{className:Cn},!!this.resourceStore&&ot.a.createElement(wn,{image:this.resourceStore.data.adminUrl?this.resourceStore.data.adminUrl:this.resourceStore.data.url,onChange:this.handleFocusPointChange,value:{x:this.focusPointX,y:this.focusPointY}})))}},en=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointX",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointY",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"resourceStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"confirmDisabled",[mt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"confirmDisabled"),Qt.prototype),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"componentDidUpdate"),Qt.prototype),mn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"updateFocusPoint",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceStore:ce}=this.props,{focusPointX:ze=1,focusPointY:Ve=1}=ce.data;this.focusPointX=ze,this.focusPointY=Ve}}}),gn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"handleFocusPointChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.focusPointX=ce.x,this.focusPointY=ce.y}}}),Jt=Qt))||Jt,Ci="buttons--J8ESgl4tWt";function MediaVersionUpload_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaVersionUpload_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Di=Object(st.b)((En=class extends ot.a.Component{constructor(ce){super(ce),MediaVersionUpload_initializerDefineProperty(this,"showFocusPointOverlay",Tn,this),MediaVersionUpload_initializerDefineProperty(this,"showCropOverlay",Ln,this),MediaVersionUpload_initializerDefineProperty(this,"showDeletePreviewDialog",Fn,this),MediaVersionUpload_initializerDefineProperty(this,"deletingPreview",Yn,this),this.handleUploadComplete=ce=>{this.props.resourceStore.setMultiple(ce),this.callSuccess()},this.handlePreviewUploadClick=ce=>{this.mediaUploadStore.updatePreviewImage(ce).then(this.callSuccess)},MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewClick",Un,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewConfirm",Gn,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewCancel",Kn,this),this.callSuccess=()=>{const{onSuccess:ce}=this.props;ce&&ce()},MediaVersionUpload_initializerDefineProperty(this,"handleCropButtonClick",Jn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayClose",Zn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayConfirm",Xn,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointButtonClick",ei,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayClose",si,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayConfirm",_i,this);const{resourceStore:ze}=this.props,Ve=ze.locale;if(!Ve)throw new Error("The resourceStore for the MediaVersionUpload must have a locale");Object(mt.when)((()=>!ze.loading),(()=>{this.mediaUploadStore=new vt.a(ze.data,Ve)}))}render(){if(!this.mediaUploadStore)return null;const{resourceStore:ce}=this.props,{data:{adminUrl:ze,previewImageId:Ve,isImage:qe,url:Ye},id:We,locale:Qe}=ce;if(!We)return null;if(!Qe)throw new Error('The "MediaVersionUpload" field type only works with a locale!');return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(wt,{deletable:!1,downloadable:!1,imageSize:"sulu-400x400-inset",mediaUploadStore:this.mediaUploadStore,onUploadComplete:this.handleUploadComplete,uploadText:Object(bt.translate)("sulu_media.upload_new_version")}),ot.a.createElement("div",{className:Ci},qe&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.Button,{icon:"su-focus",onClick:this.handleFocusPointButtonClick,skin:"link"},Object(bt.translate)("sulu_media.set_focus_point")),ot.a.createElement(gt.Button,{icon:"su-cut",onClick:this.handleCropButtonClick,skin:"link"},Object(bt.translate)("sulu_media.define_crops"))),!qe&&ot.a.createElement(Xe.Fragment,null,ot.a.createElement(gt.FileUploadButton,{icon:"su-image",onUpload:this.handlePreviewUploadClick,skin:"link"},Object(bt.translate)("sulu_media.upload_preview_image")),ot.a.createElement(gt.Button,{disabled:!Ve,icon:"su-trash-alt",onClick:this.handleDeletePreviewClick,skin:"link"},Object(bt.translate)("sulu_media.delete_preview_image")))),ot.a.createElement(Ri,{onClose:this.handleFocusPointOverlayClose,onConfirm:this.handleFocusPointOverlayConfirm,open:this.showFocusPointOverlay,resourceStore:ce}),ot.a.createElement(bn,{id:We,image:ze||Ye,locale:Qe.get(),onClose:this.handleCropOverlayClose,onConfirm:this.handleCropOverlayConfirm,open:this.showCropOverlay}),ot.a.createElement(gt.Dialog,{cancelText:Object(bt.translate)("sulu_admin.cancel"),confirmLoading:this.deletingPreview,confirmText:Object(bt.translate)("sulu_admin.ok"),onCancel:this.handleDeletePreviewCancel,onConfirm:this.handleDeletePreviewConfirm,open:this.showDeletePreviewDialog,title:Object(bt.translate)("sulu_media.delete_preview_image_warning_title")},Object(bt.translate)("sulu_media.delete_preview_image_warning_text")))}},Tn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showFocusPointOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ln=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showCropOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showDeletePreviewDialog",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"deletingPreview",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Un=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!0}}}),Gn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deletingPreview=!0,this.mediaUploadStore.deletePreviewImage().then(Object(mt.action)((()=>{this.deletingPreview=!1,this.showDeletePreviewDialog=!1,this.callSuccess()})))}}}),Kn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewCancel",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!1}}}),Jn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!0}}}),Zn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1}}}),Xn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1,this.callSuccess()}}}),ei=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!0}}}),si=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1}}}),_i=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1,this.callSuccess()}}}),Sn=En))||Sn;ze.default=Di},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(3),Ye=Ve(1),We=Ve(5),Qe=Ve.n(We),Xe=Ve(0),ot=Ve.n(Xe),st=Ve(9),mt=Ve.n(st),gt=Ve(502),yt=(Ve(352),gt.default),bt=Ve(217),vt=Ve(47),wt=Ve(200),Ct=(Ve(96),Ve(27)),Dt=Ve(539).default,kt=Ve(793).default,St=Ve(617),xt=Ve(202);Ve(441),Ve(230);var Et=St.default,Pt=Ve(618),Tt=(Ve(436),Ve(786),Pt.default);Ve(279);var Lt,Ft,Bt,Vt,Ht=Ve(619).default,Ut=(Ve(803),Ve(621).default),Wt=Ve(455),Jt=Ve(255),Qt={loader:"loader--y8-9qdEcv1",root:"root--ndwWFpufaW",visible:"visible--52gh7fB4vn","navigation-visible":"navigation-visible--FG+c3T2PuS",navigationVisible:"navigation-visible--FG+c3T2PuS",content:"content--SL6jyXNyDT","with-pinned-navigation":"with-pinned-navigation--TxNlrp0NHA",withPinnedNavigation:"with-pinned-navigation--TxNlrp0NHA","with-sidebar":"with-sidebar--b0ksAB552Q",withSidebar:"with-sidebar--b0ksAB552Q","view-container":"view-container--WXXFgJ0OJc",viewContainer:"view-container--WXXFgJ0OJc",main:"main--XUnDr5av2Y",sidebar:"sidebar--EmDUwvVe2c",small:"small--tgNhccNnc6",medium:"medium--AiPe0XX8oB",large:"large--Af-nEi2iC2",snackbar:"snackbar--YooL2nT3tG",isNavigationVisible:"isNavigationVisible--n0Zsi9OEsQ",isNavigationPinned:"isNavigationPinned---PdrXYzpw2",navigation:"navigation--v6IVfnigCS"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const en="sulu_admin.application.navigation_pinned";let rn=Object(qe.b)((Ft=class extends ot.a.Component{openProfileFormOverlay(){this.openedProfileFormOverlay=!0}closeProfileFormOverlay(){this.openedProfileFormOverlay=!1}get navigationPinned(){return"pinned"===this.navigationState}get navigationVisible(){return this.navigationPinned||"visible"===this.navigationState}setNavigationState(ce){this.navigationState=ce}set navigationPinned(ce){this.setNavigationState(ce?"pinned":"hidden")}set navigationVisible(ce){this.navigationPinned?mt.a.warn("Changing the visibility of the navigation is not allowed while navigation is pinned!"):this.setNavigationState(ce?"visible":"hidden")}constructor(ce){super(ce),_initializerDefineProperty(this,"openedProfileFormOverlay",Bt,this),_initializerDefineProperty(this,"navigationState",Vt,this),this.handleNavigationButtonClick=()=>{this.toggleNavigation()},this.handlePinToggle=()=>{this.toggleNavigationPinned()},this.handleNavigate=()=>{this.navigationPinned||this.toggleNavigation()},this.handleLoginSuccess=()=>{this.props.router.reload()},this.handleLogout=()=>{Ct.a.logout().then((()=>{this.navigationVisible&&!this.navigationPinned&&this.toggleNavigation()}))},this.handleProfileOverlayClose=()=>{this.closeProfileFormOverlay()},this.handleProfileEditClick=()=>{this.openProfileFormOverlay()},this.navigationPinnedDisposer=Object(Ye.autorun)((()=>this.navigationPinned=Ct.a.getPersistentSetting(en)))}componentWillUnmount(){this.navigationPinnedDisposer()}toggleNavigation(){this.navigationVisible=!this.navigationVisible}toggleNavigationPinned(){this.navigationPinned=!this.navigationPinned,Ct.a.setPersistentSetting(en,this.navigationPinned)}render(){const{appVersion:ce,router:ze,suluVersion:Ve}=this.props,{loggedIn:qe}=Ct.a,Ye=Qe()(Qt.root,{[Qt.visible]:qe,[Qt.navigationVisible]:this.navigationVisible,[Qt.navigationPinned]:this.navigationPinned}),We=Qe()(Qt.sidebar,{[Qt[xt.a.size]]:xt.a.size}),st=Qe()(Qt.snackbar,{[Qt.isNavigationVisible]:this.navigationVisible,[Qt.isNavigationPinned]:this.navigationPinned,[Qt[xt.a.size]]:xt.a.size}),mt=Qe()(Qt.content,{[Qt.withSidebar]:xt.a.view,[Qt.withPinnedNavigation]:this.navigationPinned});return ot.a.createElement(Xe.Fragment,null,!qe&&ot.a.createElement(Dt,{backLink:"/",initialized:!wt.a.loading&&!!wt.a.initializedTranslationsLocale,onLoginSuccess:this.handleLoginSuccess,router:ze}),wt.a.initialized&&wt.a.initializedTranslationsLocale?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("div",{className:Ye},ot.a.createElement("nav",{className:Qt.navigation},ot.a.createElement(yt,{appVersion:ce,onLogout:this.handleLogout,onNavigate:this.handleNavigate,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.navigationPinned,router:ze,suluVersion:Ve})),ot.a.createElement("div",{className:mt},ot.a.createElement("main",{className:Qt.main},ot.a.createElement("div",{className:Qt.viewContainer},ze.route&&ot.a.createElement(Ht,{router:ze})),ot.a.createElement("header",null,ot.a.createElement(Tt,{navigationOpen:this.navigationVisible,onNavigationButtonClick:this.navigationPinned?void 0:this.handleNavigationButtonClick}))),ot.a.createElement(Et,{className:We}),this.navigationVisible&&!this.navigationPinned&&ot.a.createElement(bt.a,{fixed:!1,onClick:this.handleNavigationButtonClick,visible:!1}))),ot.a.createElement(kt,{onClose:this.handleProfileOverlayClose,open:this.openedProfileFormOverlay}),Wt.a.messages.length?ot.a.createElement(Ut,{className:st},Wt.a.messages.map(((ce,ze)=>ot.a.createElement(Jt.a,{icon:ce.icon,key:ze,message:ce.text,skin:"floating",type:ce.type})))):null):ot.a.createElement("div",{className:Qt.loader},ot.a.createElement(vt.a,null)))}},Bt=_applyDecoratedDescriptor(Ft.prototype,"openedProfileFormOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ft.prototype,"openProfileFormOverlay",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openProfileFormOverlay"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"closeProfileFormOverlay",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeProfileFormOverlay"),Ft.prototype),Vt=_applyDecoratedDescriptor(Ft.prototype,"navigationState",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ft.prototype,"navigationPinned",[Ye.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationPinned"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"navigationVisible",[Ye.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationVisible"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"setNavigationState",[Ye.action],Object.getOwnPropertyDescriptor(Ft.prototype,"setNavigationState"),Ft.prototype),Lt=Ft))||Lt;ze.default=rn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(3),mt=Ve(1),gt=Ve(5),yt=Ve.n(gt),bt=Ve(569).default,vt=Ve(51),wt=Ve.n(vt),Ct=Ve(7),Dt=Ve(133),kt=Ve.n(Dt),St="image-renderer--68AwrvlUdt",xt="image-renderer-wrapper--Gr2Q3kdl5+",Et="image--0YgULR9iGv";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.imageWrapperRef=ce},this.handleSelectionChange=ce=>{const{onSelectionChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.getCommonSelectionProps=(ce,ze)=>{const{disabled:Ve,onFinish:qe,selectedIndex:Ye}=this.props,We=Object.entries(ce.hotspot).filter((ce=>{let[ze]=ce;return"type"!==ze})),Qe=0!==We.length?Object.fromEntries(We):void 0;return{containerHeight:this.imageWrapperSize.height,containerWidth:this.imageWrapperSize.width,disabled:Ve||ze!==Ye,key:ze,label:(ze+1).toString(),onChange:this.handleSelectionChange,onFinish:qe,usePercentageValues:!0,round:!1,value:Qe}},this.renderCircleSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!0,skin:"outlined"})),this.renderPointSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!1,skin:"filled"})),this.renderRectangleSelection=(ce,ze)=>ot.a.createElement(Ct.RectangleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{backdrop:!1,minSizeNotification:!1}))}componentDidMount(){this.setImageWrapperSize();const ce=new ResizeObserver(wt()((()=>{this.setImageWrapperSize()}),200));this.imageWrapperRef&&ce.observe(this.imageWrapperRef)}get imageUrl(){const{value:{imageId:ce},locale:ze}=this.props;if(ce)return kt.a.generate("sulu_media.redirect",{id:ce,locale:ze.get()})}get sortedHotspots(){const{value:ce,selectedIndex:ze}=this.props,Ve=Array.from(Object(mt.toJS)(ce.hotspots).entries());return Ve.sort(((ce,Ve)=>{let[qe]=ce,[Ye]=Ve;return qe===ze?1:Ye===ze?-1:0})),Ve}render(){const{imageUrl:ce}=this;return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:xt,ref:this.setImageWrapperRef},ce&&ot.a.createElement("img",{className:Et,key:ce,src:ce}),this.sortedHotspots.map((ce=>{let[ze,Ve]=ce;switch(Ve.hotspot.type){case"circle":return this.renderCircleSelection(Ve,ze);case"point":return this.renderPointSelection(Ve,ze);case"rectangle":return this.renderRectangleSelection(Ve,ze);default:throw new Error(`Unexpected hotspot type "${Ve.hotspot.type}".`)}}))))}},We=_applyDecoratedDescriptor(Ye.prototype,"imageWrapperSize",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{width:0,height:0}}}),_applyDecoratedDescriptor(Ye.prototype,"imageUrl",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"imageUrl"),Ye.prototype),Qe=_applyDecoratedDescriptor(Ye.prototype,"setImageWrapperSize",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.imageWrapperRef)return;const{width:ce,height:ze}=this.imageWrapperRef.getBoundingClientRect();this.imageWrapperSize={width:ce,height:ze}}}}),_applyDecoratedDescriptor(Ye.prototype,"sortedHotspots",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"sortedHotspots"),Ye.prototype),qe=Ye))||qe;var Tt=Pt,Lt=Ve(6),Ft="button--AcwCoOucCr";class Bt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()}}render(){const{disabled:ce,icon:ze}=this.props;return ot.a.createElement("button",{className:Ft,disabled:ce,onClick:this.handleClick,type:"button"},ot.a.createElement(Ct.Icon,{name:ze}))}}Bt.defaultProps={disabled:!1};var Vt,Ht,Ut=Bt,Wt="hotspots-form-renderer--HndG2F6JNv",Jt="toolbar--wmOWTuh49X",Qt="empty-tabs-label--82JTk6SWUu",en="tabs--HNDgqf5g83",rn="content--kGwHYXeaI3",ln="settings--P1acmiK6Xv",mn="form--yMXe3A13mS",gn="remove-button--lV+5Y6QqY5";const bn={circle:"sulu_media.circle",point:"sulu_media.point",rectangle:"sulu_media.rectangle"};let wn=Object(st.b)((Ht=class extends ot.a.Component{constructor(){super(...arguments),this.handleTypeChange=ce=>{const{onTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotTypeChange=ce=>{const{onHotspotTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotRemove=()=>{const{onHotspotRemove:ce,selectedIndex:ze}=this.props;ce(ze)}}get selectedHotspot(){const{value:ce,selectedIndex:ze}=this.props;return ce[ze]}render(){const{children:ce,disabled:ze,onHotspotAdd:Ve,onHotspotSelect:qe,selectedIndex:Ye,types:We,value:Qe}=this.props;return ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{label:Object(Lt.translate)("sulu_media.hotspots")},ot.a.createElement("div",{className:Wt},ot.a.createElement("div",{className:Jt},ot.a.createElement(Ut,{disabled:ze,icon:"su-plus-circle",onClick:Ve}),!Qe.length&&ot.a.createElement("div",{className:Qt},Object(Lt.translate)("sulu_media.add_hotspot")),ot.a.createElement(Ct.Tabs,{className:en,onSelect:qe,selectedIndex:Ye,type:"inline"},Qe.map(((ce,ze)=>ot.a.createElement(Ct.Tabs.Tab,{key:ze},"#"+(ze+1)))))),!!Qe.length&&ot.a.createElement("div",{className:rn},ot.a.createElement("div",{className:ln},ot.a.createElement("div",{className:mn},ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.hotspot_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleHotspotTypeChange,value:this.selectedHotspot.hotspot&&this.selectedHotspot.hotspot.type},Object.keys(bn).map((ce=>ot.a.createElement(Ct.SingleSelect.Option,{key:ce,value:ce},Object(Lt.translate)(bn[ce])))))),Object.keys(We).length>1&&ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.form_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleTypeChange,value:this.selectedHotspot.type},Object.entries(We).map((ce=>{let[ze,Ve]=ce;return ot.a.createElement(Ct.SingleSelect.Option,{key:ze,value:ze},Ve)})))))),ot.a.createElement("button",{className:gn,disabled:ze,onClick:this.handleHotspotRemove,type:"button"},ot.a.createElement(Ct.Icon,{name:"su-trash-alt"}))),ce))))}},function HotspotsFormRenderer_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(Ht.prototype,"selectedHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"selectedHotspot"),Ht.prototype),Vt=Ht))||Vt;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Gn=wn,Kn="single-item-selection--UPGv3XeeIM",Jn="image-map--2tJqq4h9fJ",Zn="error--gdABpmMvk1",Xn="form--QDp77sKwGO";function ImageMap_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function ImageMap_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const ei=["image"];let si=Object(st.b)((Un=class extends ot.a.Component{constructor(){super(...arguments),ImageMap_initializerDefineProperty(this,"selectedIndex",En,this),ImageMap_initializerDefineProperty(this,"imageValue",Tn,this),this.handleFinish=()=>{const{onFinish:ce}=this.props;ce&&ce()},this.handleImageChange=ce=>{let{id:ze}=ce;const{onChange:Ve}=this.props;Ve({imageId:ze,hotspots:[]}),this.handleFinish()},this.handleSelectionChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].hotspot={...Ye[ce].hotspot,...ze},Ve({...qe,hotspots:Ye})},this.handleHotspotTypeChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].hotspot={type:ze},Ve({...qe,hotspots:Ye}),this.handleFinish()},this.handleTypeChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props,Ye=Object(mt.toJS)(qe.hotspots);Ye[ce].type=ze,Ve({...qe,hotspots:Ye}),this.handleFinish()},ImageMap_initializerDefineProperty(this,"handleHotspotRemove",Ln,this),ImageMap_initializerDefineProperty(this,"handleHotspotSelect",Fn,this),this.getDefaultHotspotData=()=>{const{defaultFormType:ce}=this.props;return{hotspot:{type:"point"},type:ce}},ImageMap_initializerDefineProperty(this,"handleHotspotAdd",Yn,this)}componentDidMount(){const{value:{imageId:ce},types:ze}=this.props;if(this.imageValue={displayOption:void 0,id:ce},0===Object.keys(ze).length)throw new Error("There needs to be at least one form type specified!")}componentDidUpdate(){const{value:{imageId:ce}}=this.props;this.imageValue.id!==ce&&(this.imageValue={displayOption:void 0,id:ce})}get currentHotspot(){const{value:ce}=this.props;return ce.hotspots.length?ce.hotspots[this.selectedIndex]:void 0}render(){const{disabled:ce,locale:ze,onFinish:Ve,renderHotspotForm:qe,types:Ye,valid:We,value:Qe}=this.props,st=yt()(Jn,{[Zn]:!We});return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(bt,{className:!!Qe.imageId&&Kn||void 0,disabled:ce,locale:ze,onChange:this.handleImageChange,types:ei,valid:We,value:this.imageValue}),!!Qe.imageId&&ot.a.createElement("div",{className:st},ot.a.createElement(Tt,{disabled:ce,locale:ze,onFinish:Ve,onSelectionChange:this.handleSelectionChange,selectedIndex:this.selectedIndex,value:Qe}),ot.a.createElement("div",{className:Xn},ot.a.createElement(Gn,{disabled:ce,onHotspotAdd:this.handleHotspotAdd,onHotspotRemove:this.handleHotspotRemove,onHotspotSelect:this.handleHotspotSelect,onHotspotTypeChange:this.handleHotspotTypeChange,onTypeChange:this.handleTypeChange,selectedIndex:this.selectedIndex,types:Ye,value:Qe.hotspots},this.currentHotspot?qe(this.currentHotspot,this.currentHotspot.type,this.selectedIndex):null))))}},Un.defaultProps={disabled:!1,valid:!0,value:{imageId:void 0,hotspots:[]}},En=ImageMap_applyDecoratedDescriptor((Sn=Un).prototype,"selectedIndex",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"imageValue",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{displayOption:void 0,id:void 0}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidMount"),Sn.prototype),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Ln=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotRemove",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,hotspots:Object(mt.toJS)(Ve.hotspots).filter(((ze,Ve)=>Ve!==ce))}),this.handleFinish(),this.selectedIndex=Math.max(0,this.selectedIndex-1)}}}),Fn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotSelect",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedIndex=ce}}}),Yn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotAdd",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,value:ze}=this.props;ce({...ze,hotspots:[...ze.hotspots,this.getDefaultHotspotData()]}),this.handleFinish(),this.selectedIndex=ze.hotspots.length}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"currentHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"currentHotspot"),Sn.prototype),Cn=Sn))||Cn;ze.default=si},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(7),bt=Ve(30),vt=Ve(6),wt=Ve(28),Ct=Ve.n(wt);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var Dt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"query",Ye,this),_initializerDefineProperty(this,"indexName",We,this),_initializerDefineProperty(this,"result",Qe,this),_initializerDefineProperty(this,"loading",Xe,this),Object(mt.autorun)((()=>{this.query?(this.setLoading(!0),bt.c.getList("search",{q:this.query,index:this.indexName}).then(Object(mt.action)((ce=>{this.setLoading(!1),this.result=ce._embedded.result})))):this.resetResults()}))}search(ce,ze){this.query=ce,this.indexName=ze}resetResults(){this.result.splice(0,this.result.length)}setLoading(ce){this.loading=ce}}).prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),We=_applyDecoratedDescriptor(qe.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"result",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"search",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"search"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"resetResults",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"resetResults"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);var kt,St,xt,Et,Pt,Tt,Lt,Ft=new class{clear(){this.indexPromise=void 0}sendRequest(){return this.indexPromise||(this.indexPromise=bt.c.getList("search_indexes")),this.indexPromise}loadIndexes(){return this.sendRequest().then((ce=>ce._embedded.search_indexes))}},Bt="search-field--lVAKEYrvC-",Vt="index-button--hm24MCp1d3",Ht="index--inag7LZj5+",Ut="input-container--k-aSgfG8PL",Wt="input--bKQbjEVO3w",Jt="clear-icon--HZJxCClRSS",Qt="search-icon--KNlhoQQlVq",en="hint--8j1bJ+5Q+B";function SearchField_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function SearchField_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let rn=Object(gt.b)((Lt=class extends st.a.Component{constructor(){super(...arguments),SearchField_initializerDefineProperty(this,"showIndexes",xt,this),SearchField_initializerDefineProperty(this,"handleIndexClick",Et,this),SearchField_initializerDefineProperty(this,"handleIndexClose",Pt,this),SearchField_initializerDefineProperty(this,"handleIndexChange",Tt,this),this.handleQueryChange=ce=>{const{onQueryChange:ze}=this.props;ze(ce.currentTarget.value)},this.handleQueryKeyPress=ce=>{if("Enter"===ce.key){const{onSearch:ce}=this.props;ce()}},this.handleClearClick=()=>{const{onQueryChange:ce,onSearch:ze}=this.props;ce(void 0),ze()}}get allIndexes(){const{indexes:ce}=this.props;if(ce)return Object.values(ce)}get index(){const{indexName:ce,indexes:ze}=this.props;if(ce&&ze)return ze[ce]}render(){const{onSearch:ce,query:ze}=this.props,Ve=Object(vt.translate)("sulu_search.everything");return st.a.createElement(ot.Fragment,null,st.a.createElement("div",{className:Bt},st.a.createElement(yt.ArrowMenu,{anchorElement:st.a.createElement("button",{className:Vt,onClick:this.handleIndexClick,type:"button"},st.a.createElement("span",{className:Ht},this.index?this.index.name:Ve),st.a.createElement(yt.Icon,{name:"su-angle-down"})),onClose:this.handleIndexClose,open:this.showIndexes},st.a.createElement(yt.ArrowMenu.SingleItemSection,{onChange:this.handleIndexChange,value:this.index?this.index.indexName:void 0},st.a.createElement(yt.ArrowMenu.Item,{value:void 0},Ve),this.allIndexes?this.allIndexes.map((ce=>st.a.createElement(yt.ArrowMenu.Item,{key:ce.indexName,value:ce.indexName},ce.name))):[])),st.a.createElement("div",{className:Ut},st.a.createElement("input",{autoFocus:!0,className:Wt,onChange:this.handleQueryChange,onKeyPress:this.handleQueryKeyPress,value:ze}),ze&&st.a.createElement(yt.Icon,{className:Jt,name:"su-times",onClick:this.handleClearClick}),st.a.createElement(yt.Icon,{className:Qt,name:"su-search",onClick:ce}))),st.a.createElement("p",{className:en},Object(vt.translate)("sulu_search.search_hint")))}},Lt.defaultProps={query:""},xt=SearchField_applyDecoratedDescriptor((St=Lt).prototype,"showIndexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SearchField_applyDecoratedDescriptor(St.prototype,"allIndexes",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"allIndexes"),St.prototype),SearchField_applyDecoratedDescriptor(St.prototype,"index",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"index"),St.prototype),Et=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!0}}}),Pt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!1}}}),Tt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onIndexChange:ze,onSearch:Ve}=this.props;this.showIndexes=!1,ze(ce),Ve()}}}),kt=St))||kt;var ln=rn,mn=Ve(399),gn=Ve.n(mn),bn="search-result--6JRB6QWb9f",wn="image-container--ME4qdEj4jT",Cn="image--oGJMeQIWRR",Sn="icon--hT3d4p95wt",En="result-container--6vhfa+BKE9",Tn="resource--hd6mFCVdzo",Ln="title-container--+Ba+2tfuen",Fn="title--bce-XaFMhM",Yn="locale--6D6kU2-BYR",Un="description--qCt7RloB3N";class Gn extends st.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{description:ce,icon:ze,image:Ve,locale:qe,resource:Ye,title:We}=this.props;return st.a.createElement("div",{className:bn,onClick:this.handleClick,role:"button"},st.a.createElement("div",{className:wn},Ve&&st.a.createElement("img",{className:Cn,src:Ve}),!Ve&&ze&&st.a.createElement("div",{className:Sn},st.a.createElement(yt.Icon,{name:ze}))),st.a.createElement("div",{className:En},Ye&&st.a.createElement("div",{className:Tn},Ye),st.a.createElement("div",{className:Ln},st.a.createElement("div",{className:Fn},We),qe&&st.a.createElement("div",{className:Yn}," (",qe,")")),ce&&st.a.createElement("div",{className:Un},gn()(ce))))}}var Kn,Jn,Zn,Xn,ei,si,_i,Ri="search--9AQX9ecm8S",Ci="nothing-hint--EJ+gaLffs8",Di="nothing-icon--HtisG9XvqW";function Search_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Search_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Ei=Object(gt.b)((Jn=class extends st.a.Component{constructor(){super(...arguments),Search_initializerDefineProperty(this,"query",Zn,this),Search_initializerDefineProperty(this,"indexes",Xn,this),Search_initializerDefineProperty(this,"indexName",ei,this),Search_initializerDefineProperty(this,"handleIndexChange",si,this),Search_initializerDefineProperty(this,"handleQueryChange",_i,this),this.handleSearch=()=>{Dt.search(this.query,this.indexName)},this.handleResultClick=ce=>{if(!this.indexes)throw new Error("The indexes must be available to route to a search result! This should not happen and is likely a bug.");const ze=Dt.result[ce],{route:{name:Ve,resultToRoute:qe}}=this.indexes[ze.document.index],{router:Ye}=this.props;Ye.navigate(Ve,Object.keys(qe).reduce(((ce,Ve)=>(ce[qe[Ve]]=Ct.a.get(ze.document,"/"+Ve),ce)),{}))}}componentDidMount(){this.query=Dt.query,this.indexName=Dt.indexName,Ft.loadIndexes().then(Object(mt.action)((ce=>{this.indexes=ce.reduce(((ce,ze)=>(ce[ze.indexName]=ze,ce)),{})})))}render(){const{indexes:ce}=this;return ce?st.a.createElement("div",{className:Ri},st.a.createElement(ln,{indexes:ce,indexName:this.indexName,onIndexChange:this.handleIndexChange,onQueryChange:this.handleQueryChange,onSearch:this.handleSearch,query:this.query||void 0}),Dt.loading&&st.a.createElement(yt.Loader,null),!Dt.loading&&Dt.query&&0===Dt.result.length&&st.a.createElement("div",{className:Ci},st.a.createElement("div",{className:Di},st.a.createElement(yt.Icon,{name:"su-battery-low"})),Object(vt.translate)("sulu_search.nothing_found")),!Dt.loading&&Dt.result.length>0&&Dt.result.map(((ze,Ve)=>st.a.createElement(Gn,{description:ze.document.description,icon:ce[ze.document.index].icon,image:ze.document.imageUrl,index:Ve,key:ze.document.index+"_"+ze.document.id+"_"+ze.document.locale,locale:ze.document.locale,onClick:this.handleResultClick,resource:ce[ze.document.index]?ce[ze.document.index].name:"",title:ze.document.title})))):st.a.createElement(yt.Loader,null)}},Zn=Search_applyDecoratedDescriptor(Jn.prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xn=Search_applyDecoratedDescriptor(Jn.prototype,"indexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ei=Search_applyDecoratedDescriptor(Jn.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Search_applyDecoratedDescriptor(Jn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Jn.prototype,"componentDidMount"),Jn.prototype),si=Search_applyDecoratedDescriptor(Jn.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.indexName=ce}}}),_i=Search_applyDecoratedDescriptor(Jn.prototype,"handleQueryChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Kn=Jn))||Kn;ze.default=Ei},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(0),Xe=Ve.n(Qe),ot=Ve(1),st=Ve(3),mt=Ve(7),gt=Ve(6),yt="field--78188N2u-b",bt="remove-icon--u6Q3XIYX5F";class vt extends Xe.a.Component{constructor(){super(...arguments),this.handleRemove=()=>{const{index:ce,onRemove:ze}=this.props;ze(ce)},this.handleTypeChange=ce=>{const{index:ze,onTypeChange:Ve}=this.props;Ve(ze,ce)}}render(){const{children:ce,label:ze,type:Ve,types:qe}=this.props;return Xe.a.createElement(mt.Form.Field,{colSpan:6,label:ze,onTypeChange:this.handleTypeChange,type:Ve,types:qe},Xe.a.createElement("div",{className:yt},ce,Xe.a.createElement(mt.Icon,{className:bt,name:"su-trash-alt",onClick:this.handleRemove})))}}class wt extends Xe.a.Component{constructor(){super(...arguments),this.handleEmailChange=ce=>{const{index:ze,onEmailChange:Ve}=this.props;Ve(ze,ce)}}render(){const{email:ce,index:ze,onBlur:Ve,onRemove:qe,onTypeChange:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.email"),onRemove:qe,onTypeChange:Ye,type:We,types:wt.types},Xe.a.createElement(mt.Email,{onBlur:Ve,onChange:this.handleEmailChange,value:ce}))}}class Ct extends Xe.a.Component{constructor(){super(...arguments),this.handleFaxChange=ce=>{const{index:ze,onFaxChange:Ve}=this.props;Ve(ze,ce)}}render(){const{fax:ce,index:ze,onBlur:Ve,onRemove:qe,onTypeChange:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.fax"),onRemove:qe,onTypeChange:Ye,type:We,types:Ct.types},Xe.a.createElement(mt.Phone,{onBlur:Ve,onChange:this.handleFaxChange,value:ce}))}}class Dt extends Xe.a.Component{constructor(){super(...arguments),this.handlePhoneChange=ce=>{const{index:ze,onPhoneChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,phone:Ye,type:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.phone"),onRemove:Ve,onTypeChange:qe,type:We,types:Dt.types},Xe.a.createElement(mt.Phone,{onBlur:ze,onChange:this.handlePhoneChange,value:Ye}))}}class kt extends Xe.a.Component{constructor(){super(...arguments),this.handleInputChange=ce=>{const{index:ze,onUsernameChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,type:Ye,username:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.social_media"),onRemove:Ve,onTypeChange:qe,type:Ye,types:kt.types},Xe.a.createElement(mt.Input,{icon:"su-user",onBlur:ze,onChange:this.handleInputChange,value:We}))}}class St extends Xe.a.Component{constructor(){super(...arguments),this.handleUrlChange=ce=>{const{index:ze,onWebsiteChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:qe,type:Ye,website:We}=this.props;return Xe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.website"),onRemove:Ve,onTypeChange:qe,type:Ye,types:St.types},Xe.a.createElement(mt.Url,{onBlur:ze,onChange:this.handleUrlChange,value:We}))}}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let xt=Object(st.b)((We=class extends Xe.a.Component{constructor(){super(...arguments),this.addEntry=ce=>{const{onBlur:ze,onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:qe[ce].concat(this.getEmptyEntry(ce))}),ze()},this.handleEmailAddClick=()=>{this.addEntry("emails")},this.handlePhoneAddClick=()=>{this.addEntry("phones")},this.handleWebsiteAddClick=()=>{this.addEntry("websites")},this.handleFaxAddClick=()=>{this.addEntry("faxes")},this.handleSocialMediaAddClick=()=>{this.addEntry("socialMedia")},this.updateValue=(ce,ze,Ve,qe)=>{const{onChange:Ye,value:We}=this.props,Qe=Object(ot.toJS)(We),Xe=Qe[ce];void 0===Xe[ze]&&(Xe[ze]=this.getEmptyEntry(ce)),Xe[ze][Ve]=qe,Ye(Qe)},this.handleEmailChange=(ce,ze)=>{this.updateValue("emails",ce,"email",ze)},this.handlePhoneChange=(ce,ze)=>{this.updateValue("phones",ce,"phone",ze)},this.handleWebsiteChange=(ce,ze)=>{this.updateValue("websites",ce,"website",ze)},this.handleFaxChange=(ce,ze)=>{this.updateValue("faxes",ce,"fax",ze)},this.handleUsernameChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"username",ze)},this.removeEntry=(ce,ze)=>{const{onBlur:Ve,onChange:qe,value:Ye}=this.props;qe({...Ye,[ce]:Ye[ce].filter(((ce,Ve)=>Ve!==ze))}),Ve()},this.handleEmailRemove=ce=>{this.removeEntry("emails",ce)},this.handlePhoneRemove=ce=>{this.removeEntry("phones",ce)},this.handleWebsiteRemove=ce=>{this.removeEntry("websites",ce)},this.handleFaxRemove=ce=>{this.removeEntry("faxes",ce)},this.handleSocialMediaRemove=ce=>{this.removeEntry("socialMedia",ce)},this.handleEmailTypeChange=(ce,ze)=>{this.updateValue("emails",ce,"emailType",ze),this.props.onBlur()},this.handlePhoneTypeChange=(ce,ze)=>{this.updateValue("phones",ce,"phoneType",ze),this.props.onBlur()},this.handleWebsiteTypeChange=(ce,ze)=>{this.updateValue("websites",ce,"websiteType",ze),this.props.onBlur()},this.handleFaxTypeChange=(ce,ze)=>{this.updateValue("faxes",ce,"faxType",ze),this.props.onBlur()},this.handleSocialMediaTypeChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"socialMediaType",ze),this.props.onBlur()}}getEmptyEntry(ce){switch(ce){case"emails":return{email:void 0,emailType:wt.types[0].value};case"phones":return{phone:void 0,phoneType:Dt.types[0].value};case"websites":return{website:void 0,websiteType:St.types[0].value};case"faxes":return{fax:void 0,faxType:Ct.types[0].value};case"socialMedia":return{socialMediaType:kt.types[0].value,username:void 0}}}get emails(){const{value:{emails:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("emails")]:ce}get phones(){const{value:{phones:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("phones")]:ce}render(){const{onBlur:ce,value:ze}=this.props,{faxes:Ve,socialMedia:qe,websites:Ye}=ze;return Xe.a.createElement(mt.Form,null,this.emails.map(((ze,Ve)=>Xe.a.createElement(wt,{email:ze.email,index:Ve,key:Ve,onBlur:ce,onEmailChange:this.handleEmailChange,onRemove:this.handleEmailRemove,onTypeChange:this.handleEmailTypeChange,type:ze.emailType}))),this.phones.map(((ze,Ve)=>Xe.a.createElement(Dt,{index:Ve,key:Ve,onBlur:ce,onPhoneChange:this.handlePhoneChange,onRemove:this.handlePhoneRemove,onTypeChange:this.handlePhoneTypeChange,phone:ze.phone,type:ze.phoneType}))),Ve.map(((ze,Ve)=>Xe.a.createElement(Ct,{fax:ze.fax,index:Ve,key:Ve,onBlur:ce,onFaxChange:this.handleFaxChange,onRemove:this.handleFaxRemove,onTypeChange:this.handleFaxTypeChange,type:ze.faxType}))),Ye.map(((ze,Ve)=>Xe.a.createElement(St,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleWebsiteRemove,onTypeChange:this.handleWebsiteTypeChange,onWebsiteChange:this.handleWebsiteChange,type:ze.websiteType,website:ze.website}))),qe.map(((ze,Ve)=>Xe.a.createElement(kt,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleSocialMediaRemove,onTypeChange:this.handleSocialMediaTypeChange,onUsernameChange:this.handleUsernameChange,type:ze.socialMediaType,username:ze.username}))),Xe.a.createElement(mt.Form.Field,{colSpan:6,label:Object(gt.translate)("sulu_contact.contact_details")},Xe.a.createElement(mt.DropdownButton,{icon:"su-plus",label:Object(gt.translate)("sulu_admin.add")},Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleEmailAddClick},Object(gt.translate)("sulu_contact.email")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handlePhoneAddClick},Object(gt.translate)("sulu_contact.phone")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleFaxAddClick},Object(gt.translate)("sulu_contact.fax")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleWebsiteAddClick},Object(gt.translate)("sulu_contact.website")),Xe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleSocialMediaAddClick},Object(gt.translate)("sulu_contact.social_media")))))}},We.defaultProps={value:{emails:[],faxes:[],phones:[],socialMedia:[],websites:[]}},_applyDecoratedDescriptor((Ye=We).prototype,"emails",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"emails"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"phones",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"phones"),Ye.prototype),qe=Ye))||qe;ze.default=xt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(3),xt=Ve(51),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(7),Ft=Ve(34),Bt=Ve(30),Vt=Ve(76),Ht=Ve(6),Ut=Ve(454),Wt={container:"container--nXN0aRrl7B",auto:"auto--pHqGdJozG0",iframe:"iframe--LDzIFoQ-Wz",desktop:"desktop--g3pIaAI3pO",tablet:"tablet--74aAiCaJcN","iframe-container":"iframe-container--8jKNsHLx7I",iframeContainer:"iframe-container--8jKNsHLx7I",smartphone:"smartphone--TQYOwZd26q","preview-container":"preview-container--BpqSjJuvYl",previewContainer:"preview-container--BpqSjJuvYl","loader-container":"loader-container--1IHIWL0n-u",loaderContainer:"loader-container--1IHIWL0n-u","date-time-form":"date-time-form--oRzIF6mgXa",dateTimeForm:"date-time-form--oRzIF6mgXa"};function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const generateRoute=(ce,ze)=>Jt.endpoints[ce]+Object(Ht.buildQueryString)(ze);let Jt=((wt=class{constructor(ce,ze,Ve,qe,wt){_initializerDefineProperty(this,"locale",Ye,this),_initializerDefineProperty(this,"webspace",We,this),_initializerDefineProperty(this,"segment",Qe,this),_initializerDefineProperty(this,"targetGroup",Xe,this),_initializerDefineProperty(this,"dateTime",ot,this),_initializerDefineProperty(this,"token",st,this),_initializerDefineProperty(this,"setToken",mt,this),_initializerDefineProperty(this,"setWebspace",gt,this),_initializerDefineProperty(this,"setTargetGroup",yt,this),_initializerDefineProperty(this,"setSegment",bt,this),_initializerDefineProperty(this,"setDateTime",vt,this),"string"!=typeof Ve&&(Ve=Object(kt.toJS)(Ve)),this.resourceKey=ce,this.id=ze,this.locale=Ve,this.webspace=qe,this.segment=wt}get starting(){return!this.token}get renderRoute(){return generateRoute("render",{webspaceKey:this.webspace,segmentKey:this.segment,provider:this.resourceKey,id:this.id,locale:this.locale,token:this.token,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)})}start(){const ce=generateRoute("start",{provider:this.resourceKey,id:this.id,locale:this.locale});return Bt.b.post(ce).then((ce=>{this.setToken(ce.token)}))}restart(ce){return this.stop().then((()=>(ce&&(this.locale=ce),this.start())))}update(ce){const ze=generateRoute("update",{locale:this.locale,webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Bt.b.post(ze,{data:ce}).then((ce=>ce.content))}updateContext(ce,ze){const Ve=generateRoute("update-context",{webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,locale:this.locale,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Bt.b.post(Ve,{data:ze,context:{template:ce}}).then((ce=>ce.content))}stop(){const ce=generateRoute("stop",{token:this.token});return Bt.b.post(ce).then((()=>this.setToken(null)))}}).endpoints={},Ye=_applyDecoratedDescriptor((qe=wt).prototype,"locale",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"webspace",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"segment",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"targetGroup",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),ot=_applyDecoratedDescriptor(qe.prototype,"dateTime",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),st=_applyDecoratedDescriptor(qe.prototype,"token",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"starting",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"starting"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"renderRoute",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"renderRoute"),qe.prototype),mt=_applyDecoratedDescriptor(qe.prototype,"setToken",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.token=ce}}}),gt=_applyDecoratedDescriptor(qe.prototype,"setWebspace",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.webspace=ce}}}),yt=_applyDecoratedDescriptor(qe.prototype,"setTargetGroup",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.targetGroup=ce}}}),bt=_applyDecoratedDescriptor(qe.prototype,"setSegment",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.segment=ce}}}),vt=_applyDecoratedDescriptor(qe.prototype,"setDateTime",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dateTime=ce}}}),_applyDecoratedDescriptor(qe.prototype,"restart",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"restart"),qe.prototype),qe);var Qt,en,rn,ln,mn,gn,bn,wn,Cn=Ve(1092),Sn=Ve.n(Cn),En=Ve(40),Tn=Ve(289),Ln="container--eF0X8qTzGA",Fn="input-container--K61EGzqvhh",Yn="label--zoUOrPsyO3",Un="input--xgXFKONP45",Gn="copy-button--hFXs5EWvEZ",Kn="revoke--ndJ4keI6ql",Jn="revoke-button--M6aJfutraC";function PreviewLinkPopover_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function PreviewLinkPopover_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Zn=Object(St.b)((en=class extends Dt.a.Component{constructor(){super(...arguments),PreviewLinkPopover_initializerDefineProperty(this,"previewLink",rn,this),PreviewLinkPopover_initializerDefineProperty(this,"loading",ln,this),PreviewLinkPopover_initializerDefineProperty(this,"generating",mn,this),PreviewLinkPopover_initializerDefineProperty(this,"copying",gn,this),PreviewLinkPopover_initializerDefineProperty(this,"handleGenerateClick",bn,this),this.handleRevokeClick=ce=>{ce.preventDefault();const{previewStore:ze}=this.props;Bt.c.post("preview_links",{},{action:"revoke",resourceKey:ze.resourceKey,resourceId:ze.id,locale:ze.locale}).then(Object(kt.action)((()=>{this.previewLink=null})))},PreviewLinkPopover_initializerDefineProperty(this,"handleCopyClick",wn,this)}componentDidMount(){this.loadPreviewLink()}loadPreviewLink(){const{previewStore:ce}=this.props;this.loading=!0,Bt.c.get("preview_links",{resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale}).then(Object(kt.action)((ce=>{this.previewLink=ce,this.loading=!1}))).catch(Object(kt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.loading=!1})))}get link(){return this.previewLink?Jt.endpoints["preview-link"].replace(":token",this.previewLink.token):""}render(){return this.loading?null:Dt.a.createElement("div",{className:Ln},this.previewLink&&Dt.a.createElement(Dt.a.Fragment,null,Dt.a.createElement("div",null,Dt.a.createElement("label",{className:Yn},Object(Ht.translate)("sulu_preview.copy_preview_link")),Dt.a.createElement("div",{className:Fn},Dt.a.createElement("input",{className:Un,readOnly:!0,value:this.link}),Dt.a.createElement(En.a,{className:Gn,loading:this.copying,onClick:this.handleCopyClick,skin:"primary"},Object(Ht.translate)("sulu_preview.copy")))),Dt.a.createElement("div",{className:Kn},Dt.a.createElement("button",{className:Jn,onClick:this.handleRevokeClick,type:"button"},Object(Ht.translate)("sulu_preview.revoke")))),!this.previewLink&&Dt.a.createElement(Dt.a.Fragment,null,Dt.a.createElement(En.a,{loading:this.generating,onClick:this.handleGenerateClick,skin:"primary"},Object(Ht.translate)("sulu_preview.generate_link"))))}},rn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"previewLink",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"loading",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"generating",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"copying",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"loadPreviewLink",[kt.action],Object.getOwnPropertyDescriptor(en.prototype,"loadPreviewLink"),en.prototype),bn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"handleGenerateClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{previewStore:ce}=this.props;this.generating=!0,Bt.c.post("preview_links",{},{action:"generate",resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale,webspaceKey:ce.webspace,segmentKey:ce.segment,targetGroupId:ce.targetGroup,dateTime:ce.dateTime&&Object(Tn.a)(ce.dateTime)}).then(Object(kt.action)((ce=>{this.previewLink=ce}))).finally(Object(kt.action)((()=>this.generating=!1)))}}}),wn=PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"handleCopyClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.copying=!0,setTimeout(Object(kt.action)((()=>this.copying=!1)),125),Sn()(this.link)}}}),PreviewLinkPopover_applyDecoratedDescriptor(en.prototype,"link",[kt.computed],Object.getOwnPropertyDescriptor(en.prototype,"link"),en.prototype),Qt=en))||Qt;var Xn,ei,si,_i,Ri,Ci,Di,Ei,Oi,Ti,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=Zn;function Preview_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function Preview_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let vr=Object(St.b)(((ur=class ce extends Dt.a.Component{get webspaceKey(){const{router:{attributes:{webspace:ce}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "webspace" router attribute must be a string if set!');return ce||this.webspaceOptions[0].value}get segments(){return this.webspaceKey?Ut.a.getWebspace(this.webspaceKey).segments:[]}get shouldUpdateFormStore(){return this.props.formStore.resourceKey===this.previewStore.resourceKey}constructor(ze){super(ze),this.availableDeviceOptions=[{label:Object(Ht.translate)("sulu_preview.auto"),value:"auto"},{label:Object(Ht.translate)("sulu_preview.desktop"),value:"desktop"},{label:Object(Ht.translate)("sulu_preview.tablet"),value:"tablet"},{label:Object(Ht.translate)("sulu_preview.smartphone"),value:"smartphone"}],Preview_initializerDefineProperty(this,"iframeRef",si,this),Preview_initializerDefineProperty(this,"started",_i,this),Preview_initializerDefineProperty(this,"selectedDeviceOption",Ri,this),Preview_initializerDefineProperty(this,"targetGroupsStore",Ci,this),Preview_initializerDefineProperty(this,"previewStore",Di,this),Preview_initializerDefineProperty(this,"previewWindow",Ei,this),Preview_initializerDefineProperty(this,"webspaceOptions",Oi,this),Preview_initializerDefineProperty(this,"reloadCounter",Ti,this),Preview_initializerDefineProperty(this,"createPreviewStore",er,this),Preview_initializerDefineProperty(this,"setStarted",tr,this),this.startPreview=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.start(),Object(kt.when)((()=>!(ze.loading||ce.starting||null===this.iframeRef||this.targetGroupsStore&&this.targetGroupsStore.loading)),this.initializeFormStoreReactions),this.setStarted(!0)},this.initializeFormStoreReactions=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;this.localeDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.locale)),(ce=>{this.previewStore.restart(ce)})),ce.resourceKey===ze.resourceKey&&(this.dataDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.data)),(ce=>{(null!==this.iframeRef||this.previewWindow)&&this.updatePreview(ce)})),this.schemaDisposer=Object(kt.reaction)((()=>Object(kt.toJS)(ze.schema)),(()=>{ze.type&&ce.updateContext(Object(kt.toJS)(ze.type),Object(kt.toJS)(ze.data)).then(this.setContent)})))},this.updatePreview=Et()((ce=>{if(this.shouldUpdateFormStore&&this.previewStore.token){const{previewStore:ze}=this;ze.update(ce).then(this.setContent)}}),ce.debounceDelay),this.setContent=ce=>{const ze=this.getPreviewDocument();if(!ze)return;const Ve=this.getPreviewScrollPosition();ze.open(),ze.write(ce),ze.close(),Ve&&setTimeout((()=>this.setPreviewScrollPosition(Ve)),0)},this.getPreviewDocument=()=>this.previewWindow?this.previewWindow.document:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentDocument:void 0,this.getPreviewWindow=()=>this.previewWindow?this.previewWindow:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentWindow:void 0,this.getPreviewScrollPosition=()=>{const ce=this.getPreviewWindow();var ze,Ve,qe,Ye;if(ce)return(null===(ze=ce.document)||void 0===ze||null===(Ve=ze.documentElement)||void 0===Ve?void 0:Ve.scrollTop)||ce.pageYOffset||(null===(qe=ce.document)||void 0===qe||null===(Ye=qe.body)||void 0===Ye?void 0:Ye.scrollTop)},this.setPreviewScrollPosition=ce=>{const ze=this.getPreviewWindow();ze&&ze.scrollTo({top:ce})},Preview_initializerDefineProperty(this,"setIframe",nr,this),this.handleToggleSidebarClick=()=>{if("medium"===Ft.k.size)return Ft.k.setSize("large");Ft.k.setSize("medium")},Preview_initializerDefineProperty(this,"handleDeviceSelectChange",rr,this),Preview_initializerDefineProperty(this,"handleDateTimeChange",ar,this),Preview_initializerDefineProperty(this,"handleWebspaceChange",sr,this),this.handleTargetGroupChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setTargetGroup(ce),this.updatePreview(Object(kt.toJS)(ze.data))},this.handleSegmentChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setSegment(ce),this.updatePreview(Object(kt.toJS)(ze.data))},Preview_initializerDefineProperty(this,"handleRefreshClick",lr,this),this.handleStartClick=()=>{this.startPreview()},Preview_initializerDefineProperty(this,"handlePreviewWindowClick",dr,this),ce.audienceTargeting&&(this.targetGroupsStore=new Vt.b("target_groups")),this.webspaceOptions=Ut.a.grantedWebspaces.map((ce=>({label:ce.name,value:ce.key}))),this.createPreviewStore(),"auto"===ce.mode&&this.startPreview()}componentDidUpdate(ce){const{formStore:ze}=this.props;this.props.formStore!==ce.formStore&&(this.disposeFormStoreReactions(),this.updatePreview(Object(kt.toJS)(ze.data)),this.initializeFormStoreReactions())}componentWillUnmount(){this.disposeFormStoreReactions(),this.started&&(this.updatePreview.clear(),this.previewStore.stop())}disposeFormStoreReactions(){this.schemaDisposer&&this.schemaDisposer(),this.dataDisposer&&this.dataDisposer(),this.localeDisposer&&this.localeDisposer()}render(){var ze;const{router:Ve}=this.props,{previewWebspaceChooser:qe=!0}=Ve.route.options;if(this.previewWindow||this.targetGroupsStore&&this.targetGroupsStore.loading)return null;if("auto"!==ce.mode&&!this.started)return Dt.a.createElement("button",{onClick:this.handleStartClick,type:"button"},"Start");const Ye=Tt()(Wt.container,{[Wt[this.selectedDeviceOption]]:this.selectedDeviceOption});return Dt.a.createElement("div",{className:Ye},this.previewStore.starting?Dt.a.createElement("div",{className:Wt.loaderContainer},Dt.a.createElement(Lt.Loader,null)):Dt.a.createElement("div",{className:Wt.previewContainer},Dt.a.createElement("div",{className:Wt.iframeContainer},Dt.a.createElement("iframe",{className:Wt.iframe,key:this.reloadCounter,ref:this.setIframe,src:this.previewStore.renderRoute}))),Dt.a.createElement(Lt.Toolbar,{skin:"dark"},Dt.a.createElement(Lt.Toolbar.Controls,{grow:!0},Dt.a.createElement(Lt.Toolbar.Button,{icon:"medium"===Ft.k.size?"su-arrow-left":"su-arrow-right",onClick:this.handleToggleSidebarClick}),Dt.a.createElement(Lt.Toolbar.Items,null,Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-expand",onChange:this.handleDeviceSelectChange,options:this.availableDeviceOptions,value:this.selectedDeviceOption}),Dt.a.createElement(Lt.Toolbar.Popover,{icon:"su-calendar",label:((null===(ze=this.previewStore)||void 0===ze?void 0:ze.dateTime)||new Date).toLocaleString()},(()=>{var ce;return Dt.a.createElement("div",{className:Wt.dateTimeForm},Dt.a.createElement(Lt.Form,{skin:"dark"},Dt.a.createElement(Lt.Form.Field,{description:Object(Ht.translate)("sulu_admin.preview_date_time_description"),label:Object(Ht.translate)("sulu_admin.preview_date_time")},Dt.a.createElement(Lt.DatePicker,{onChange:this.handleDateTimeChange,options:{dateFormat:!0,timeFormat:!0},value:null===(ce=this.previewStore)||void 0===ce?void 0:ce.dateTime}))))})),qe&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-webspace",onChange:this.handleWebspaceChange,options:this.webspaceOptions,value:this.previewStore.webspace}),!!this.targetGroupsStore&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-user",loading:this.targetGroupsStore.loading,onChange:this.handleTargetGroupChange,options:[{label:Object(Ht.translate)("sulu_audience_targeting.no_target_group"),value:-1},...this.targetGroupsStore?this.targetGroupsStore.data.map((ce=>({label:ce.title,value:ce.id}))):[]],value:this.previewStore&&this.previewStore.targetGroup}),this.segments.length>0&&Dt.a.createElement(Lt.Toolbar.Select,{icon:"su-focus",onChange:this.handleSegmentChange,options:this.segments.map((ce=>{let{title:ze,key:Ve}=ce;return{label:ze,value:Ve}})),value:this.previewStore&&this.previewStore.segment}),Dt.a.createElement(Lt.Toolbar.Button,{icon:"su-sync",onClick:this.handleRefreshClick},Object(Ht.translate)("sulu_preview.reload")),Dt.a.createElement(Lt.Toolbar.Popover,{icon:"su-share",label:Object(Ht.translate)("sulu_preview.preview_link")},(()=>Dt.a.createElement(pr,{previewStore:this.previewStore}))),Dt.a.createElement(Lt.Toolbar.Button,{icon:"su-link",onClick:this.handlePreviewWindowClick},Object(Ht.translate)("sulu_preview.open_in_window"))))))}}).debounceDelay=250,ur.mode="auto",ur.audienceTargeting=!1,si=Preview_applyDecoratedDescriptor((ei=ur).prototype,"iframeRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_i=Preview_applyDecoratedDescriptor(ei.prototype,"started",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ri=Preview_applyDecoratedDescriptor(ei.prototype,"selectedDeviceOption",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.availableDeviceOptions[0].value}}),Ci=Preview_applyDecoratedDescriptor(ei.prototype,"targetGroupsStore",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Di=Preview_applyDecoratedDescriptor(ei.prototype,"previewStore",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=Preview_applyDecoratedDescriptor(ei.prototype,"previewWindow",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oi=Preview_applyDecoratedDescriptor(ei.prototype,"webspaceOptions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ti=Preview_applyDecoratedDescriptor(ei.prototype,"reloadCounter",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Preview_applyDecoratedDescriptor(ei.prototype,"webspaceKey",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"webspaceKey"),ei.prototype),Preview_applyDecoratedDescriptor(ei.prototype,"segments",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"segments"),ei.prototype),Preview_applyDecoratedDescriptor(ei.prototype,"shouldUpdateFormStore",[kt.computed],Object.getOwnPropertyDescriptor(ei.prototype,"shouldUpdateFormStore"),ei.prototype),er=Preview_applyDecoratedDescriptor(ei.prototype,"createPreviewStore",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var ce;const{formStore:{resourceKey:ze,id:Ve,locale:qe},router:{route:{options:{previewResourceKey:Ye=null}}}}=this.props;this.previewStore=new Jt(Ye||ze,Ve,qe,this.webspaceKey,null===(ce=this.segments.find((ce=>!0===ce.default)))||void 0===ce?void 0:ce.key)}}}),tr=Preview_applyDecoratedDescriptor(ei.prototype,"setStarted",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.started=ce}}}),nr=Preview_applyDecoratedDescriptor(ei.prototype,"setIframe",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.iframeRef=ce}}}),rr=Preview_applyDecoratedDescriptor(ei.prototype,"handleDeviceSelectChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedDeviceOption=ce}}}),ar=Preview_applyDecoratedDescriptor(ei.prototype,"handleDateTimeChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Et()((ce=>{const{formStore:ze}=this.props;this.previewStore.setDateTime(ce||new Date),this.updatePreview(Object(kt.toJS)(ze.data))}),vr.debounceDelay)}}),sr=Preview_applyDecoratedDescriptor(ei.prototype,"handleWebspaceChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formStore:ze}=this.props;this.previewStore.setWebspace(ce),this.updatePreview(Object(kt.toJS)(ze.data))}}}),lr=Preview_applyDecoratedDescriptor(ei.prototype,"handleRefreshClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{++this.reloadCounter}}}),dr=Preview_applyDecoratedDescriptor(ei.prototype,"handlePreviewWindowClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.previewWindow=window.open(this.previewStore.renderRoute),this.previewWindow.addEventListener("beforeunload",Object(kt.action)((()=>{this.previewWindow=void 0})))}}}),Xn=ei))||Xn;ze.default=vr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Dt}));var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(9),st=Ve.n(ot);function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}var mt,gt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="allWebspaces",qe=this,(Ve=Ye)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return st.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return st.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setWebspaces",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setWebspaces"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"grantedWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"grantedWebspaces"),qe.prototype),qe),yt=Ve(7),bt=Ve(184),vt=Ve(6),wt="webspace-section--xzm7EmsgBk";class Ct extends Qe.a.Component{constructor(){super(...arguments),this.handleSelectChange=ce=>{const{onChange:ze,webspace:Ve}=this.props;ze(Ve.key,ce)}}render(){const{disabled:ce,value:ze,webspace:Ve,webspaceNameVisible:qe}=this.props;return Qe.a.createElement("div",{className:wt},Qe.a.createElement("label",{className:bt.a.label},qe&&Ve.name+" - ",Object(vt.translate)("sulu_admin.segment")),Qe.a.createElement(yt.SingleSelect,{disabled:!!ce,onChange:this.handleSelectChange,value:ze},Qe.a.createElement(yt.SingleSelect.Option,null,Object(vt.translate)("sulu_admin.none_selected")),Ve.segments.map((ce=>{let{key:ze,title:Ve}=ce;return Qe.a.createElement(yt.SingleSelect.Option,{key:ze,value:ze},Ve)}))))}}let Dt=(mt=class extends Qe.a.Component{constructor(){super(...arguments),this.handleWebspaceSegmentChange=(ce,ze)=>{const{onChange:Ve,value:qe}=this.props;Ve({...qe,[ce]:ze})}}get visibleWebspaces(){const{webspace:ce}=this.props;return(ce?[gt.getWebspace(ce)]:gt.grantedWebspaces).filter((ce=>ce.segments.length>0))}render(){const{disabled:ce,value:ze}=this.props;return Qe.a.createElement(We.Fragment,null,this.visibleWebspaces.map((Ve=>Qe.a.createElement(Ct,{disabled:!!ce,key:Ve.key,onChange:this.handleWebspaceSegmentChange,value:ze?ze[Ve.key]:void 0,webspace:Ve,webspaceNameVisible:this.visibleWebspaces.length>1}))))}},function SegmentSelect_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}(mt.prototype,"visibleWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(mt.prototype,"visibleWebspaces"),mt.prototype),mt)},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(5),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(7),vt=Ve(303),wt=Ve(684),Ct=Ve.n(wt),Dt="item--3SFlofcpvB",kt="copy-text--IZxZjEbIXL",St="copying--mdwIXUTMfu",xt="content--bec162OW6Q";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Et=Object(gt.b)((Qe=class extends ot.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="copying",qe=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:qe}=this.props,Ye=mt()(Dt,{[St]:this.copying}),We=ot.a.createElement("span",{className:xt},ze,ot.a.createElement("span",{className:kt},Ve));return ot.a.createElement("li",{className:Ye,onAnimationEnd:this.handleClick},qe?ot.a.createElement(Ct.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},Qe.defaultProps={copyUrlOnClick:!1},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"copying",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"copyUrl",[yt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"copyUrl"),Ye.prototype),qe=Ye))||qe;var Pt=Et;class Tt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:qe}=this.props;return[ot.a.createElement(Pt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},qe),ot.a.createElement(bt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Pt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(bt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(bt.Menu,{menuRef:ce,style:ze},Ve)))}}var Lt,Ft,Bt,Vt,Ht,Ut,Wt,Jt,Qt,en,rn="media-card--kRx0FCOGtP",ln="checkbox--s+DHWfU-T0",mn="selected--8xPgKeNogN",gn="header--wxMZldryOF",bn="description--l4YbBQ6Kiw",wn="no-download-list--lTScdkvs6Y",Cn="download-button--If+JPwu6uD",Sn="active--vZE91Lekka",En="ghost-indicator--rUUpG63yG5",Tn="title--Fh1QFnADkj",Ln="meta--1zzs9Umjqm",Fn="title-text---mPV8Qmyok",Yn="media--izJTs1Yud-",Un="cover--XTAD1mLWWE",Gn="show-cover--R4b0DQas9n",Kn="media-icon--purRfkU1wQ";function MediaCard_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Jn=Object(gt.b)(((en=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",Bt,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",Vt,this),MediaCard_initializerDefineProperty(this,"imageLoading",Ht,this),MediaCard_initializerDefineProperty(this,"imageError",Ut,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Wt,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleKeypress=ce=>{const{id:ze,onClick:Ve,selected:qe}=this.props;Ve&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),Ve(ze,!qe)))},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&Ve(ce,!ze)},this.handleHeaderKeypress=ce=>{const{id:ze,selected:Ve,onSelectionChange:qe}=this.props;qe&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),qe(ze,!Ve)))},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Jt,this),MediaCard_initializerDefineProperty(this,"handleImageError",Qt,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:qe,icon:Ye,id:We,image:Qe,imageSizes:st,meta:gt,mimeType:yt,onSelectionChange:wt,selected:Ct,title:Dt,showCover:kt}=this.props,St=mt()(rn,{[mn]:!!Ct,[Gn]:!!kt,[wn]:!st.length}),xt=mt()(Cn,{[Sn]:!!this.downloadListOpen}),Et=ot.a.createElement("div",{className:Fn},qe&&ot.a.createElement(bt.GhostIndicator,{className:En,locale:qe}),ot.a.createElement(bt.CroppedText,null,Dt));return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:gn},ot.a.createElement("div",{className:bn,onClick:this.handleHeaderClick,onKeyPress:this.handleHeaderKeypress,role:"button",tabIndex:"0"},ot.a.createElement("div",{className:Tn},wt?ot.a.createElement(bt.Checkbox,{checked:!!Ct,className:ln,value:We},Et):Et),gt&&ot.a.createElement("div",{className:Ln},ot.a.createElement(bt.CroppedText,null,gt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:xt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(bt.Icon,{name:"su-download"})),ot.a.createElement(Tt,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Yn,onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:"0"},Qe&&!this.imageError?ot.a.createElement(Xe.Fragment,null,ot.a.createElement("img",{alt:Dt,src:this.image.src}),this.imageLoading&&ot.a.createElement(bt.Loader,null)):ot.a.createElement(vt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Un},!!Ye&&ot.a.createElement(bt.Icon,{className:Kn,name:Ye}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},Bt=MediaCard_applyDecoratedDescriptor((Ft=en).prototype,"downloadButtonRef",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"downloadListOpen",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ht=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageLoading",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ut=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageError",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"setDownloadButtonRef",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(Ft.prototype,"openDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openDownloadList"),Ft.prototype),MediaCard_applyDecoratedDescriptor(Ft.prototype,"closeDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeDownloadList"),Ft.prototype),Jt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageLoad",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),Qt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageError",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),Lt=Ft))||Lt;ze.default=Jn},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe=Ve(22),Xe=Ve.n(Qe),ot=Ve(28),st=Ve.n(ot),mt=Ve(0),gt=Ve.n(mt),yt=Ve(1),bt=Ve(3),vt=Ve(538).default,wt=Ve(15),Ct=Ve(336),Dt=Ve(645),kt=Ve(455);function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let St=(qe=class{constructor(){_initializerDefineProperty(this,"blockPreviewTransformers",Ye,this),_initializerDefineProperty(this,"priority",We,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Ye=_applyDecoratedDescriptor(qe.prototype,"blockPreviewTransformers",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"priority",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"blockPreviewTransformerKeysByPriority",[yt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"blockPreviewTransformerKeysByPriority"),qe.prototype),qe);var xt,Et,Pt,Tt,Lt,Ft,Bt,Vt,Ht=new St;Ve(96);class Ut extends gt.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:qe}=this.props;qe(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onFieldFinish:Ye,onSuccess:We,router:Qe,schema:Xe,schemaPath:ot,showAllErrors:st,value:mt}=this.props;return gt.a.createElement(Ct.a,{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onChange:this.handleChange,onFieldFinish:Ye,onSuccess:We,router:Qe,schema:Xe,schemaPath:ot,showAllErrors:st,value:mt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}Ut.defaultProps={showAllErrors:!1};const Wt='The "block" field type needs at least one type to be configured!',Jt="sulu.block_preview",Qt="settings";let en=Object(bt.b)((Et=class extends gt.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Pt,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Tt,this),FieldBlocks_initializerDefineProperty(this,"value",Lt,this),FieldBlocks_initializerDefineProperty(this,"setValue",Ft,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:qe}=this.props,Ye=this.value;if(!Ye)return;const We=Object(yt.toJS)(Ye);st.a.set(We[ce],"/"+ze,Ve),this.setValue(We),qe(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:qe}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!qe)throw new Error(Wt);if(qe[ce])return qe[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!qe[ze])throw new Error('The default type should exist in block "'+Ve+'".');return qe[ze]},this.renderBlockContent=(ce,ze,Ve,qe)=>qe?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:qe,dataPath:Ye,error:We,formInspector:Qe,onFinish:Xe,onSuccess:ot,router:st,schemaPath:mt,showAllErrors:bt}=this.props,vt=this.getBlockSchemaType(ze),wt=Object(yt.toJS)(We);return gt.a.createElement(Ut,{data:qe,dataPath:Ye+"/"+Ve,errors:wt&&wt.length>Ve&&wt[Ve]?wt[Ve]:void 0,formInspector:Qe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:Xe,onSuccess:ot,router:st,schema:vt.form,schemaPath:mt+"/types/"+ze+"/form",showAllErrors:bt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const qe=this.getBlockSchemaType(ze),Ye=this.removeSections(qe.form),We=Object.keys(Ye).filter((ze=>{const Ve=Ye[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===Jt))})).sort(((ce,ze)=>{const Ve=Ye[ce].tags,qe=Ye[ze].tags;if(!Ve||!qe)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const We=Ve.find((ce=>ce.name===Jt)),Qe=qe.find((ce=>ce.name===Jt));if(!We||!Qe)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(Qe.priority||0)-(We.priority||0)}));if(0===We.length)for(const ze of Ht.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Ye))if(Ye[Ve].type===ze&&ce[Ve]){We.push(Ve);break}if(We.length>=3)break}return gt.a.createElement(mt.Fragment,null,We.map((ze=>Ht.has(Ye[ze].type)&&ce[ze]&>.a.createElement(mt.Fragment,{key:ze},Ht.get(Ye[ze].type).transform(ce[ze],Ye[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",Bt,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},this.handleDisplaySnackbar=ce=>{kt.a.add(ce,2500)},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Vt,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:qe}=this;if(!Ve||null==qe||!ze)return;const Ye=[...ze.slice(0,qe),{...ze[qe],[Qt]:Ve.data},...ze.slice(qe+1)];this.setValue(Ye),ce(Ye)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Ct.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:qe,value:Ye}=this.props,{types:We}=ce;if(Xe()(Object(yt.toJS)(ce.value),Object(yt.toJS)(Ye))||this.setValue(Ye),!qe||!We)throw new Error(Wt);let Qe=Object(yt.toJS)(Ye);if(Qe&&qe!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Qe=Qe.map((ce=>qe[ce.type]?ce:{...ce,type:ze}))}Xe()(Object(yt.toJS)(Ye),Qe)||Ve(Qe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get pasteButtonText(){const{schemaOptions:{paste_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "paste_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,qe)=>{const Ye="/"+ce+qe;if(!st.a.has(ze,Ye))return Ve;const We=st.a.get(ze,Ye);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(qe+"/items/"),Ve);const Qe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Qe&&(Ve["/settings/"+qe]=Qe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(st.a.has(ce,Ve)&&st.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:qe,types:Ye}=this.props,We=this.value||[],Qe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!Ye)throw new Error(Wt);const Xe=Object.keys(Ye).reduce(((ce,ze)=>(ce[ze]=Ye[ze].title,ce)),{});return gt.a.createElement(gt.a.Fragment,null,gt.a.createElement(vt,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:qe,movable:this.movable,onChange:this.handleBlocksChange,onDisplaySnackbar:this.handleDisplaySnackbar,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,pasteButtonText:this.pasteButtonText,renderBlockContent:this.renderBlockContent,types:Xe,value:We}),void 0!==this.openedBlockSettingsIndex&&Qe&>.a.createElement(Dt.a,{confirmDisabled:!Qe.dirty,confirmText:Object(wt.b)("sulu_admin.apply"),formStore:Qe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Qe,size:"small",title:Object(wt.b)("sulu_admin.block_settings")}))}},Pt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"openedBlockSettingsIndex",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"blockSettingsFormStore",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"value",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"componentDidMount",[yt.action],Object.getOwnPropertyDescriptor(Et.prototype,"componentDidMount"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"settingsFormKey",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"settingsFormKey"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"addButtonText",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"addButtonText"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"pasteButtonText",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"pasteButtonText"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"collapsable",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"collapsable"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"movable",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"movable"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"iconsMapping",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"iconsMapping"),Et.prototype),FieldBlocks_applyDecoratedDescriptor(Et.prototype,"icons",[yt.computed],Object.getOwnPropertyDescriptor(Et.prototype,"icons"),Et.prototype),Ft=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"setValue",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Bt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"handleSettingsClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Ct.c.createFromFormKey(Ve,{...this.value[ce][Qt]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Vt=FieldBlocks_applyDecoratedDescriptor(Et.prototype,"closeSettingsOverlay",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),xt=Et))||xt;ze.default=en},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe=Ve(0),ot=Ve.n(Xe),st=Ve(1),mt=Ve(3),gt=Ve(22),yt=Ve.n(gt),bt=Ve(7),vt=Ve(6),wt=Ve(76),Ct=Ve(316),Dt=Ve(530).default,kt=Ve(303),St="media-item--Z7DKvJ2AYB",xt="thumbnail-image--PhMsGkHbu7",Et="media-title--BcpSGD6ROr";function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}const Pt="sulu-25x25";let Tt=Object(mt.b)(((Qe=class extends ot.a.Component{constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="overlayOpen",Ye=this,(qe=We)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Ye):void 0}),this.handleRemove=ce=>{this.mediaSelectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.mediaSelectionStore.move(ce,ze)},this.handleOverlayOpen=()=>{this.openMediaOverlay()},this.handleOverlayClose=()=>{this.closeMediaOverlay()},this.handleOverlayConfirm=ce=>{this.mediaSelectionStore.set([...this.mediaSelectionStore.items,...ce]),this.closeMediaOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Qe,value:Xe}=this.props;this.mediaSelectionStore=new wt.a("media",Xe.ids,Qe),this.changeDisposer=Object(st.reaction)((()=>this.mediaSelectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;yt()(Object(st.toJS)(Ve.ids),Object(st.toJS)(ce))||ze({...Ve,ids:ce})}))}componentDidUpdate(){const ce=Object(st.toJS)(this.props.value.ids),ze=Object(st.toJS)(this.mediaSelectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),yt()(ce,ze)||this.mediaSelectionStore.loadItems(ce)}componentWillUnmount(){this.changeDisposer()}openMediaOverlay(){this.overlayOpen=!0}closeMediaOverlay(){this.overlayOpen=!1}getLabel(ce){return 1===ce?`1 ${Object(vt.translate)("sulu_media.media_selected_singular")}`:ce>1?`${ce} ${Object(vt.translate)("sulu_media.media_selected_plural")}`:Object(vt.translate)("sulu_media.select_media_plural")}render(){const{locale:ce,disabled:ze,displayOptions:Ve,sortable:qe,types:Ye,value:We}=this.props,{loading:Qe,items:st}=this.mediaSelectionStore,mt=Qe?"":this.getLabel(st.length),gt=Ve.length>0?{icon:Object(Ct.a)(We.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(Ct.a)(ce),label:Object(Ct.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Xe.Fragment,null,ot.a.createElement(bt.MultiItemSelection,{disabled:!!ze,label:mt,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:Qe,onItemClick:this.handleItemClick,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,rightButton:gt,sortable:qe},st.map(((ce,ze)=>ot.a.createElement(bt.MultiItemSelection.Item,{id:ce.id,index:ze+1,key:ce.id,value:ce},ot.a.createElement("div",{className:St},ce.thumbnails&&ce.thumbnails[Pt]?ot.a.createElement("img",{alt:ce.title,className:xt,src:ce.thumbnails[Pt]}):ot.a.createElement(kt.a,{height:25,iconSize:16,mimeType:ce.mimeType,width:25}),ot.a.createElement("div",{className:Et},ot.a.createElement(bt.CroppedText,null,ce.title))))))),ot.a.createElement(Dt,{excludedIds:st.map((ce=>ce.id)),locale:ce,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:Ye}))}}).defaultProps={disabled:!1,displayOptions:[],sortable:!0,types:[],value:{displayOption:void 0,ids:[]}},We=_applyDecoratedDescriptor((Ye=Qe).prototype,"overlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"openMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"openMediaOverlay"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"closeMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"closeMediaOverlay"),Ye.prototype),qe=Ye))||qe;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We=Ve(0),Qe=Ve.n(We),Xe=Ve(1),ot=Ve(3),st=Ve(7),mt=Ve(454),gt=Ve(312),yt="matrix-container--9YtoGgAUwq",bt="select-container--3IJRFtemRt",vt=Ve(6),wt=Ve(714);let Ct=Object(ot.b)((Ye=class extends Qe.a.Component{constructor(){super(...arguments),this.getMatrixValueFromContextPermission=ce=>{for(const ze of this.props.contextPermissions)if(ce===ze.context)return ze.permissions;return{}},this.handleMatrixChange=ce=>{const{onChange:ze,contextPermissions:Ve}=this.props,qe=Object(Xe.toJS)(Ve);Object.keys(ce).map((ze=>{const Ve=ce[ze];for(const ce of qe)if(ze===ce.context)return void(ce.permissions=Ve);qe.push({id:void 0,context:ze,permissions:Ve})})),ze(qe)}}renderMatrixRow(ce,ze,Ve){const qe=ze.indexOf(".",ze.indexOf(".")+1)+1,Ye=ze.substring(qe);return Qe.a.createElement(st.Matrix.Row,{key:"row-"+ce,name:ze,title:Ye},Ve.map(((ce,ze)=>Qe.a.createElement(st.Matrix.Item,{icon:Object(wt.a)(ce),key:"item-"+ze,name:ce,title:Object(vt.translate)("sulu_security."+ce)}))))}render(){const{disabled:ce,title:ze,subTitle:Ve,securityContexts:qe}=this.props,Ye={},We=[];return Object.keys(qe).map(((ce,ze)=>{const Ve=qe[ce];Ye[ce]=this.getMatrixValueFromContextPermission(ce),We.push(this.renderMatrixRow(ze,ce,Ve))})),Qe.a.createElement("div",{className:yt},ze&&Qe.a.createElement("h2",null,ze),Ve&&Qe.a.createElement("h3",null,Ve),Qe.a.createElement(st.Matrix,{disabled:ce,onChange:this.handleMatrixChange,values:Ye},We))}},Ye.defaultProps={disabled:!1},qe=Ye))||qe;var Dt,kt,St,xt,Et,Pt=Ct;function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let Tt=Object(ot.b)((Et=class ce extends Qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"securityContextGroups",St,this),this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleWebspaceChange",xt,this)}componentDidMount(){this.systemDisposer=Object(Xe.autorun)((()=>this.setSecurityContextGroups(gt.a.getSecurityContextGroups(this.system))))}setSecurityContextGroups(ce){this.securityContextGroups=ce}componentWillUnmount(){this.systemDisposer()}get system(){return this.props.system}get webspaceContextPermissionPrefix(){if(this.webspaceSecurityContextGroupKey){const ze=this.securityContextGroups[this.webspaceSecurityContextGroupKey];for(const Ve of Object.keys(ze))if(Ve.includes(ce.webspacePlaceholder))return Ve.substring(0,Ve.indexOf("#"))}throw new Error("Webspace context permission prefix not found")}get webspaceSecurityContextGroupKey(){for(const ze of Object.keys(this.securityContextGroups)){const Ve=this.securityContextGroups[ze];for(const qe of Object.keys(Ve))if(qe.includes(ce.webspacePlaceholder))return ze}return null}get selectedWebspaces(){const ce=[];for(const ze of this.props.value)if(ze.context.startsWith(this.webspaceContextPermissionPrefix)){const Ve=ze.context.replace(this.webspaceContextPermissionPrefix,"");if(Ve.includes("."))continue;ce.push(Ve)}return ce.sort()}getWebspaceSecurityContexts(ze){if(!this.webspaceSecurityContextGroupKey)return{};const Ve=this.securityContextGroups[this.webspaceSecurityContextGroupKey],qe={};return Object.keys(Ve).sort().map((Ye=>{qe[Ye.replace(ce.webspacePlaceholder,ze)]=Ve[Ye]})),qe}renderWebspaceMatrixes(){const{disabled:ce,value:ze}=this.props;return this.webspaceSecurityContextGroupKey?Qe.a.createElement(We.Fragment,null,Qe.a.createElement("h2",null,this.webspaceSecurityContextGroupKey),Qe.a.createElement("div",{className:bt},Qe.a.createElement(st.MultiSelect,{disabled:ce,onChange:this.handleWebspaceChange,values:this.selectedWebspaces},mt.a.allWebspaces.map((ce=>Qe.a.createElement(st.MultiSelect.Option,{key:ce.key,value:ce.key},ce.name))))),Qe.a.createElement("div",{className:yt},this.selectedWebspaces.map(((Ve,qe)=>Qe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:qe,onChange:this.handleChange,securityContexts:this.getWebspaceSecurityContexts(Ve),subTitle:Ve}))))):null}renderMatrixes(){const{disabled:ce,value:ze}=this.props;return Object.keys(this.securityContextGroups).sort().map(((Ve,qe)=>{if(this.webspaceSecurityContextGroupKey&&this.webspaceSecurityContextGroupKey===Ve)return null;const Ye=this.securityContextGroups[Ve];return Qe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:qe,onChange:this.handleChange,securityContexts:Ye,title:Ve})}))}render(){return this.securityContextGroups?Qe.a.createElement(We.Fragment,null,this.renderWebspaceMatrixes(),this.renderMatrixes()):Qe.a.createElement(st.Loader,null)}},Et.defaultProps={disabled:!1},Et.webspacePlaceholder="#webspace#",St=_applyDecoratedDescriptor((kt=Et).prototype,"securityContextGroups",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(kt.prototype,"componentDidMount",[Xe.action],Object.getOwnPropertyDescriptor(kt.prototype,"componentDidMount"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"setSecurityContextGroups",[Xe.action],Object.getOwnPropertyDescriptor(kt.prototype,"setSecurityContextGroups"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"system",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"system"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceContextPermissionPrefix",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceContextPermissionPrefix"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceSecurityContextGroupKey",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceSecurityContextGroupKey"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"selectedWebspaces",[Xe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"selectedWebspaces"),kt.prototype),xt=_applyDecoratedDescriptor(kt.prototype,"handleWebspaceChange",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];for(const Ve of this.props.value){if(Ve.context.startsWith(this.webspaceContextPermissionPrefix)){const ze=Ve.context.replace(this.webspaceContextPermissionPrefix,""),qe=ze.includes(".")?ze.substring(0,ze.indexOf(".")):ze;if(!ce.includes(qe))continue}ze.push(Ve)}const Ve=ce.filter((ce=>!this.selectedWebspaces.includes(ce)));for(const ce of Ve){const Ve=this.getWebspaceSecurityContexts(ce.toString());Object.keys(Ve).map((ce=>{const qe={},Ye=Ve[ce];for(const ce of Ye)qe[ce]=!1;const We={id:void 0,context:ce,permissions:qe};ze.push(We)}))}this.handleChange(ze)}}}),Dt=kt))||Dt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(7);class Qe extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{index:ze,onChange:Ve}=this.props;Ve(ce,ze)}}render(){const{onBlur:ce,value:ze}=this.props;return Ye.a.createElement(We.Input,{onBlur:ce,onChange:this.handleChange,value:ze})}}var Xe="custom-url--ZWDbe1XJIh";class ot extends Ye.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve}=this.props,qe=[...this.props.value];qe[ze]=ce,Ve(qe)}}render(){const{baseDomain:ce,onBlur:ze,value:Ve}=this.props;return Ye.a.createElement("div",{className:Xe},ce.split("*").map(((ce,We)=>Ye.a.createElement(qe.Fragment,{key:We},0!==We&&Ye.a.createElement(Qe,{index:We-1,onBlur:ze,onChange:this.handleChange,value:We<=Ve.length?Ve[We-1]:void 0}),ce&&Ye.a.createElement("span",null,ce)))))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));Ve(1953);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(6),Qe="address-card-preview--714S0paCKw",Xe="title--CmBgU7Y7u2",ot="flags--J76ReslUp-";class st extends Ye.a.Component{render(){const{billingAddress:ce,country:ze,city:Ve,deliveryAddress:st,number:mt,primaryAddress:gt,state:yt,street:bt,title:vt,type:wt,zip:Ct}=this.props,Dt=[wt,gt?Object(We.translate)("sulu_contact.primary_address"):null,ce?Object(We.translate)("sulu_contact.billing_address"):null,st?Object(We.translate)("sulu_contact.delivery_address"):null].filter((ce=>null!==ce));return Ye.a.createElement("section",{className:Qe},Ye.a.createElement("div",{className:Xe},Ye.a.createElement("strong",null,vt||" ")),Ye.a.createElement("div",{className:ot},Dt.join("・")),(bt||mt)&&Ye.a.createElement(qe.Fragment,null,bt," ",mt,Ye.a.createElement("br",null)),(Ve||Ct)&&Ye.a.createElement(qe.Fragment,null,Ct," ",Ve,Ye.a.createElement("br",null)),yt&&Ye.a.createElement(qe.Fragment,null,yt,Ye.a.createElement("br",null)),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var qe=Ve(0),Ye=Ve.n(qe),We="bank-card-preview--CFkKw5kbSx",Qe="bank-name--tmk22VVjQx";class Xe extends Ye.a.Component{render(){const{bankName:ce,bic:ze,iban:Ve}=this.props;return Ye.a.createElement("section",{className:We},Ye.a.createElement("div",{className:Qe},Ye.a.createElement("strong",null,ce||" ")),Ve,Ye.a.createElement("br",null),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe,Ye,We,Qe,Xe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(7),vt="webspace-select--8U5GMwi5k-",wt="button--wOTGMqDq1A",Ct="button-icon--DSnawm5dcf",Dt="button-value--KoxSKJ-lu+";function _initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer?(Object.defineProperty(ce,ze,We),null):We}let kt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"openMenu",Qe,this),_initializerDefineProperty(this,"closeMenu",Xe,this),this.handleButtonClick=this.openMenu,this.handleMenuClose=this.closeMenu,this.handleChange=ce=>{this.closeMenu(),this.props.onChange(ce)}}get displayValue(){const{children:ce,value:ze}=this.props;let Ve="";return mt.a.Children.forEach(ce,(ce=>{ze===ce.props.value&&(Ve=ce.props.children)})),Ve}renderButton(){return mt.a.createElement("div",{className:vt},mt.a.createElement("button",{className:wt,onClick:this.handleButtonClick,type:"button"},mt.a.createElement(bt.Icon,{className:Ct,name:"su-webspace"}),mt.a.createElement("span",{className:Dt},this.displayValue),mt.a.createElement(bt.Icon,{className:Ct,name:"su-angle-down"})))}render(){const{value:ce,children:ze}=this.props;return mt.a.createElement(bt.ArrowMenu,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},mt.a.createElement(bt.ArrowMenu.SingleItemSection,{icon:"su-webspace",onChange:this.handleChange,title:"Webspaces",value:ce},ze))}},ot.Item=bt.ArrowMenu.Item,We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"openMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"closeMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;ze.default=kt},function(ce,ze,Ve){"use strict";(function(ce){Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(ce,ze){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ze||"object"!=typeof ze&&"function"!=typeof ze?ce:ze}function _inherits(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);ce.prototype=Object.create(ze&&ze.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,ze):ce.__proto__=ze)}var Qe="navigator"in ce&&/Win/i.test(navigator.platform),Xe="navigator"in ce&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ot="npm__react-simple-code-editor__textarea",st="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+ot+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+ot+" {\n color: transparent !important;\n }\n\n ."+ot+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",mt=function(ce){function Editor(){var ce,ze,Ve;_classCallCheck(this,Editor);for(var Ye=arguments.length,We=Array(Ye),ot=0;ot1&&void 0!==arguments[1]&&arguments[1],Ye=Ve._history,We=Ye.stack,Qe=Ye.offset;if(We.length&&Qe>-1){Ve._history.stack=We.slice(0,Qe+1);var Xe=Ve._history.stack.length;if(Xe>100){var ot=Xe-100;Ve._history.stack=We.slice(ot,Xe),Ve._history.offset=Math.max(Ve._history.offset-ot,0)}}var st=Date.now();if(ze){var mt=Ve._history.stack[Ve._history.offset];if(mt&&st-mt.timestamp<3e3){var gt=/[^a-z0-9]([a-z0-9]+)$/i,yt=Ve._getLines(mt.value,mt.selectionStart).pop().match(gt),bt=Ve._getLines(ce.value,ce.selectionStart).pop().match(gt);if(yt&&bt&&bt[1].startsWith(yt[1]))return void(Ve._history.stack[Ve._history.offset]=qe({},ce,{timestamp:st}))}}Ve._history.stack.push(qe({},ce,{timestamp:st})),Ve._history.offset++},Ve._updateInput=function(ce){var ze=Ve._input;ze&&(ze.value=ce.value,ze.selectionStart=ce.selectionStart,ze.selectionEnd=ce.selectionEnd,Ve.props.onValueChange(ce.value))},Ve._applyEdits=function(ce){var ze=Ve._input,Ye=Ve._history.stack[Ve._history.offset];Ye&&ze&&(Ve._history.stack[Ve._history.offset]=qe({},Ye,{selectionStart:ze.selectionStart,selectionEnd:ze.selectionEnd})),Ve._recordChange(ce),Ve._updateInput(ce)},Ve._undoEdit=function(){var ce=Ve._history,ze=ce.stack,qe=ce.offset,Ye=ze[qe-1];Ye&&(Ve._updateInput(Ye),Ve._history.offset=Math.max(qe-1,0))},Ve._redoEdit=function(){var ce=Ve._history,ze=ce.stack,qe=ce.offset,Ye=ze[qe+1];Ye&&(Ve._updateInput(Ye),Ve._history.offset=Math.min(qe+1,ze.length-1))},Ve._handleKeyDown=function(ce){var ze=Ve.props,qe=ze.tabSize,Ye=ze.insertSpaces,We=ze.ignoreTabKey,ot=ze.onKeyDown;if(!ot||(ot(ce),!ce.defaultPrevented)){27===ce.keyCode&&ce.target.blur();var st=ce.target,mt=st.value,gt=st.selectionStart,yt=st.selectionEnd,bt=(Ye?" ":"\t").repeat(qe);if(9===ce.keyCode&&!We&&Ve.state.capture)if(ce.preventDefault(),ce.shiftKey){var vt=Ve._getLines(mt,gt),wt=vt.length-1,Ct=Ve._getLines(mt,yt).length-1,Dt=mt.split("\n").map((function(ce,ze){return ze>=wt&&ze<=Ct&&ce.startsWith(bt)?ce.substring(bt.length):ce})).join("\n");if(mt!==Dt){var kt=vt[wt];Ve._applyEdits({value:Dt,selectionStart:kt.startsWith(bt)?gt-bt.length:gt,selectionEnd:yt-(mt.length-Dt.length)})}}else if(gt!==yt){var St=Ve._getLines(mt,gt),xt=St.length-1,Et=Ve._getLines(mt,yt).length-1,Pt=St[xt];Ve._applyEdits({value:mt.split("\n").map((function(ce,ze){return ze>=xt&&ze<=Et?bt+ce:ce})).join("\n"),selectionStart:/\S/.test(Pt)?gt+bt.length:gt,selectionEnd:yt+bt.length*(Et-xt+1)})}else{var Tt=gt+bt.length;Ve._applyEdits({value:mt.substring(0,gt)+bt+mt.substring(yt),selectionStart:Tt,selectionEnd:Tt})}else if(8===ce.keyCode){var Lt=gt!==yt;if(mt.substring(0,gt).endsWith(bt)&&!Lt){ce.preventDefault();var Ft=gt-bt.length;Ve._applyEdits({value:mt.substring(0,gt-bt.length)+mt.substring(yt),selectionStart:Ft,selectionEnd:Ft})}}else if(13===ce.keyCode){if(gt===yt){var Bt=Ve._getLines(mt,gt).pop().match(/^\s+/);if(Bt&&Bt[0]){ce.preventDefault();var Vt="\n"+Bt[0],Ht=gt+Vt.length;Ve._applyEdits({value:mt.substring(0,gt)+Vt+mt.substring(yt),selectionStart:Ht,selectionEnd:Ht})}}}else if(57===ce.keyCode||219===ce.keyCode||222===ce.keyCode||192===ce.keyCode){var Ut=void 0;57===ce.keyCode&&ce.shiftKey?Ut=["(",")"]:219===ce.keyCode?Ut=ce.shiftKey?["{","}"]:["[","]"]:222===ce.keyCode?Ut=ce.shiftKey?['"','"']:["'","'"]:192!==ce.keyCode||ce.shiftKey||(Ut=["`","`"]),gt!==yt&&Ut&&(ce.preventDefault(),Ve._applyEdits({value:mt.substring(0,gt)+Ut[0]+mt.substring(gt,yt)+Ut[1]+mt.substring(yt),selectionStart:gt,selectionEnd:yt+2}))}else!(Xe?ce.metaKey&&90===ce.keyCode:ce.ctrlKey&&90===ce.keyCode)||ce.shiftKey||ce.altKey?(Xe?ce.metaKey&&90===ce.keyCode&&ce.shiftKey:Qe?ce.ctrlKey&&89===ce.keyCode:ce.ctrlKey&&90===ce.keyCode&&ce.shiftKey)&&!ce.altKey?(ce.preventDefault(),Ve._redoEdit()):77!==ce.keyCode||!ce.ctrlKey||Xe&&!ce.shiftKey||(ce.preventDefault(),Ve.setState((function(ce){return{capture:!ce.capture}}))):(ce.preventDefault(),Ve._undoEdit())}},Ve._handleChange=function(ce){var ze=ce.target,qe=ze.value,Ye=ze.selectionStart,We=ze.selectionEnd;Ve._recordChange({value:qe,selectionStart:Ye,selectionEnd:We},!0),Ve.props.onValueChange(qe)},Ve._history={stack:[],offset:-1},_possibleConstructorReturn(Ve,ze)}return _inherits(Editor,ce),Ye(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var ce=this,ze=this.props,Ve=ze.value,Ye=ze.style,Qe=ze.padding,Xe=ze.highlight,mt=ze.textareaId,yt=ze.autoFocus,bt=ze.disabled,vt=ze.form,wt=ze.maxLength,Ct=ze.minLength,Dt=ze.name,kt=ze.placeholder,St=ze.readOnly,xt=ze.required,Et=ze.onClick,Pt=ze.onFocus,Tt=ze.onBlur,Lt=ze.onKeyUp,Ft=(ze.onKeyDown,ze.onValueChange,ze.tabSize,ze.insertSpaces,ze.ignoreTabKey,_objectWithoutProperties(ze,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),Bt={paddingTop:Qe,paddingRight:Qe,paddingBottom:Qe,paddingLeft:Qe},Vt=Xe(Ve);return We.createElement("div",qe({},Ft,{style:qe({},gt.container,Ye)}),We.createElement("textarea",{ref:function ref(ze){return ce._input=ze},style:qe({},gt.editor,gt.textarea,Bt),className:ot,id:mt,value:Ve,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:Et,onKeyUp:Lt,onFocus:Pt,onBlur:Tt,disabled:bt,form:vt,maxLength:wt,minLength:Ct,name:Dt,placeholder:kt,readOnly:St,required:xt,autoFocus:yt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),We.createElement("pre",qe({"aria-hidden":"true",style:qe({},gt.editor,gt.highlight,Bt)},"string"==typeof Vt?{dangerouslySetInnerHTML:{__html:Vt+"
"}}:{children:Vt})),We.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:st}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(ce){this._history=ce.history}}]),Editor}(We.Component);mt.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},ze.default=mt;var gt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,Ve(146))},function(ce,ze){var Ve=/[\'\"]/;ce.exports=function unquote(ce){return ce?(Ve.test(ce.charAt(0))&&(ce=ce.substr(1)),Ve.test(ce.charAt(ce.length-1))&&(ce=ce.substr(0,ce.length-1)),ce):""}},function(ce,ze,Ve){"use strict";ce.exports=function stripHtmlComments(ce){if("string"!=typeof ce)throw new TypeError("strip-html-comments expected a string");return ce.replace(/)/g,"")}},function(ce,ze,Ve){!function(){"use strict";var ce,qe,Ye,We,Qe,Xe;function sliceSource(ce,ze,Ve){return ce.slice(ze,Ve)}function isParamTitle(ce){return"param"===ce||"argument"===ce||"arg"===ce}function isReturnTitle(ce){return"return"===ce||"returns"===ce}function isProperty(ce){return"property"===ce||"prop"===ce}function isNameParameterRequired(ce){return isParamTitle(ce)||isProperty(ce)||"alias"===ce||"this"===ce||"mixes"===ce||"requires"===ce}function isAllowedNested(ce){return isProperty(ce)||isParamTitle(ce)}function isAllowedOptional(ce){return isProperty(ce)||isParamTitle(ce)}function isTypeParameterRequired(ce){return isParamTitle(ce)||isReturnTitle(ce)||"define"===ce||"enum"===ce||"implements"===ce||"this"===ce||"type"===ce||"typedef"===ce||isProperty(ce)}We=Ve(862),ce=Ve(1234),qe=Ve(864),Xe=Object.prototype.hasOwnProperty,Qe=function hasOwnProperty(ce,ze){return Xe.call(ce,ze)};var ot="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",st="("+ot+"*(?:\\*"+ot+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(ce){return ce.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(st,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(ce,ze){for(var Ve,qe=ce.replace(/^\/\*\*?/,""),Ye=0,We=new RegExp(st,"g");Ve=We.exec(qe);)if(Ye+=Ve[1].length,Ve.index+Ve[0].length>ze+Ye)return ze+Ye+ce.length-qe.length;return ce.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(ze){var Ve,Ye,Xe,ot,st,mt,gt,yt,bt;function advance(){var ce=st.charCodeAt(Ye);return Ye+=1,!We.code.isLineTerminator(ce)||13===ce&&10===st.charCodeAt(Ye)||(Xe+=1),String.fromCharCode(ce)}function scanTitle(){var ce,ze="";for(advance();Ye=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57);)ze+=advance();return ze}function seekContent(){var ce,ze,Ve=Ye;for(ze=!1;Ve=ce)return null;if(91===st.charCodeAt(Ye)){if(!ze)return null;qe=!0,Xe=advance()}if(Xe+=scanIdentifier(ce),Ve)for(58!==st.charCodeAt(Ye)||"module"!==Xe&&"external"!==Xe&&"event"!==Xe||(Xe+=advance(),Xe+=scanIdentifier(ce)),91===st.charCodeAt(Ye)&&93===st.charCodeAt(Ye+1)&&(Xe+=advance(),Xe+=advance());46===st.charCodeAt(Ye)||47===st.charCodeAt(Ye)||35===st.charCodeAt(Ye)||45===st.charCodeAt(Ye)||126===st.charCodeAt(Ye);)Xe+=advance(),Xe+=scanIdentifier(ce);if(qe){if(skipWhiteSpace(ce),61===st.charCodeAt(Ye)){var ot;Xe+=advance(),skipWhiteSpace(ce);for(var mt=1;Ye=ce||93!==st.charCodeAt(Ye))return null;Xe+=advance()}return Xe}function skipToTag(){for(;Ye=ot)&&(qe.assert(64===st.charCodeAt(Ye)),!0)}function convertIndex(ce){return st===mt?ce:convertUnwrappedCommentIndex(mt,ce)}function TagParser(ce,ze){this._options=ce,this._title=ze.toLowerCase(),this._tag={title:ze,description:null},this._options.lineNumbers&&(this._tag.lineNumber=Xe),this._first=Ye-ze.length-1,this._last=0,this._extra={}}function parseTag(ce){var ze,Ve;if(!skipToTag())return null;for(Ve=(ze=new TagParser(ce,scanTitle())).parse();Ye1&&(this._tag.default=ce.slice(1).join("=")),this._tag.name=ce[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var ce=sliceSource(st,Ye,this._last).trim();return ce&&(/^-\s+/.test(ce)&&(ce=ce.substring(2)),this._tag.description=ce),!0},TagParser.prototype.parseCaption=function parseDescription(){var ce=sliceSource(st,Ye,this._last).trim(),ze="",Ve="",qe=ce.indexOf(ze),We=ce.indexOf(Ve);return qe>=0&&We>=0?(this._tag.caption=ce.substring(qe+9,We).trim(),this._tag.description=ce.substring(We+10).trim()):this._tag.description=ce,!0},TagParser.prototype.parseKind=function parseKind(){var ce,ze;return ze={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},ce=sliceSource(st,Ye,this._last).trim(),this._tag.kind=ce,!(!Qe(ze,ce)&&!this.addError("Invalid kind name '%0'",ce))},TagParser.prototype.parseAccess=function parseAccess(){var ce;return ce=sliceSource(st,Ye,this._last).trim(),this._tag.access=ce,!("private"!==ce&&"protected"!==ce&&"public"!==ce&&!this.addError("Invalid access name '%0'",ce))},TagParser.prototype.parseThis=function parseThis(){var ce=sliceSource(st,Ye,this._last).trim();return ce&&"{"===ce.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var ce,ze;return ze=sliceSource(st,Ye,this._last).trim(),ce=parseFloat(ze,10),this._tag.variation=ce,!(isNaN(ce)&&!this.addError("Invalid variation '%0'",ze))},TagParser.prototype.ensureEnd=function(){var ce=sliceSource(st,Ye,this._last).trim();return!(ce&&!this.addError("Unknown content '%0'",ce))},TagParser.prototype.epilogue=function epilogue(){var ce;return ce=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&ce&&"["===ce.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!yt&&!this.addError("Missing or invalid tag name")))},Ve={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var ce,ze,qe;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,st.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),ce=0,ze=(qe=Qe(Ve,this._title)?Ve[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;ce=ze||Ve<0||Ct&&ce-vt>=mt}function timerExpired(){var ce=Ye();if(shouldInvoke(ce))return trailingEdge(ce);yt=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return yt=void 0,Dt&&ot?invokeFunc(ce):(ot=st=void 0,gt)}function debounced(){var ce=Ye(),Ve=shouldInvoke(ce);if(ot=arguments,st=this,bt=ce,Ve){if(void 0===yt)return leadingEdge(bt);if(Ct)return clearTimeout(yt),yt=setTimeout(timerExpired,ze),invokeFunc(bt)}return void 0===yt&&(yt=setTimeout(timerExpired,ze)),gt}return ze=We(ze)||0,qe(Ve)&&(wt=!!Ve.leading,mt=(Ct="maxWait"in Ve)?Qe(We(Ve.maxWait)||0,ze):mt,Dt="trailing"in Ve?!!Ve.trailing:Dt),debounced.cancel=function cancel(){void 0!==yt&&clearTimeout(yt),vt=0,ot=bt=st=yt=void 0},debounced.flush=function flush(){return void 0===yt?gt:trailingEdge(Ye())},debounced}},function(ce,ze,Ve){"use strict";const qe=Ve(1286),Ye=/^[\da-fA-F]+$/,We=/^\d+$/,Qe=new WeakMap;function getJsxTokens(ce){ce=ce.Parser.acorn||ce;let ze=Qe.get(ce);if(!ze){const Ve=ce.tokTypes,qe=ce.TokContext,Ye=ce.TokenType,We=new qe("...",!0,!0),st={tc_oTag:We,tc_cTag:Xe,tc_expr:ot},mt={jsxName:new Ye("jsxName"),jsxText:new Ye("jsxText",{beforeExpr:!0}),jsxTagStart:new Ye("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Ye("jsxTagEnd")};mt.jsxTagStart.updateContext=function(){this.context.push(ot),this.context.push(We),this.exprAllowed=!1},mt.jsxTagEnd.updateContext=function(ce){let ze=this.context.pop();ze===We&&ce===Ve.slash||ze===Xe?(this.context.pop(),this.exprAllowed=this.curContext()===ot):this.exprAllowed=!0},ze={tokContexts:st,tokTypes:mt},Qe.set(ce,ze)}return ze}function getQualifiedJSXName(ce){return ce?"JSXIdentifier"===ce.type?ce.name:"JSXNamespacedName"===ce.type?ce.namespace.name+":"+ce.name.name:"JSXMemberExpression"===ce.type?getQualifiedJSXName(ce.object)+"."+getQualifiedJSXName(ce.property):void 0:ce}function plugin(ce,ze){const Qe=ze.acorn||Ve(766),Xe=getJsxTokens(Qe),ot=Qe.tokTypes,st=Xe.tokTypes,mt=Qe.tokContexts,gt=Xe.tokContexts.tc_oTag,yt=Xe.tokContexts.tc_cTag,bt=Xe.tokContexts.tc_expr,vt=Qe.isNewLine,wt=Qe.isIdentifierStart,Ct=Qe.isIdentifierChar;return class extends ze{static get acornJsx(){return Xe}jsx_readToken(){let ce="",ze=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let Ve=this.input.charCodeAt(this.pos);switch(Ve){case 60:case 123:return this.pos===this.start?60===Ve&&this.exprAllowed?(++this.pos,this.finishToken(st.jsxTagStart)):this.getTokenFromCode(Ve):(ce+=this.input.slice(ze,this.pos),this.finishToken(st.jsxText,ce));case 38:ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readEntity(),ze=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===Ve?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:vt(Ve)?(ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readNewLine(!0),ze=this.pos):++this.pos}}}jsx_readNewLine(ce){let ze,Ve=this.input.charCodeAt(this.pos);return++this.pos,13===Ve&&10===this.input.charCodeAt(this.pos)?(++this.pos,ze=ce?"\n":"\r\n"):ze=String.fromCharCode(Ve),this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze}jsx_readString(ce){let ze="",Ve=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let qe=this.input.charCodeAt(this.pos);if(qe===ce)break;38===qe?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readEntity(),Ve=this.pos):vt(qe)?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readNewLine(!1),Ve=this.pos):++this.pos}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(ot.string,ze)}jsx_readEntity(){let ce,ze="",Ve=0,Qe=this.input[this.pos];"&"!==Qe&&this.raise(this.pos,"Entity must start with an ampersand");let Xe=++this.pos;for(;this.pos")}let Qe=Ye.name?"Element":"Fragment";return Ve["opening"+Qe]=Ye,Ve["closing"+Qe]=We,Ve.children=qe,this.type===ot.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(Ve,"JSX"+Qe)}jsx_parseText(){let ce=this.parseLiteral(this.value);return ce.type="JSXText",ce}jsx_parseElement(){let ce=this.start,ze=this.startLoc;return this.next(),this.jsx_parseElementAt(ce,ze)}parseExprAtom(ce){return this.type===st.jsxText?this.jsx_parseText():this.type===st.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(ce)}readToken(ce){let ze=this.curContext();if(ze===bt)return this.jsx_readToken();if(ze===gt||ze===yt){if(wt(ce))return this.jsx_readWord();if(62==ce)return++this.pos,this.finishToken(st.jsxTagEnd);if((34===ce||39===ce)&&ze==gt)return this.jsx_readString(ce)}return 60===ce&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(st.jsxTagStart)):super.readToken(ce)}updateContext(ce){if(this.type==ot.braceL){var ze=this.curContext();ze==gt?this.context.push(mt.b_expr):ze==bt?this.context.push(mt.b_tmpl):super.updateContext(ce),this.exprAllowed=!0}else{if(this.type!==ot.slash||ce!==st.jsxTagStart)return super.updateContext(ce);this.context.length-=2,this.context.push(yt),this.exprAllowed=!1}}}}ce.exports=function(ce){return ce=ce||{},function(ze){return plugin({allowNamespaces:!1!==ce.allowNamespaces,allowNamespacedObjects:!!ce.allowNamespacedObjects},ze)}},Object.defineProperty(ce.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(Ve(766)).tokTypes},configurable:!0,enumerable:!0})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.DynamicImportKey=void 0;var qe=function(){function defineProperties(ce,ze){for(var Ve=0;Ve>5]|=1<<(31&ce)},Ye.prototype.has=function has(ce){return!!(this.bits[ce>>5]&1<<(31&ce))};var We=function Chunk(ce,ze,Ve){this.start=ce,this.end=ze,this.original=Ve,this.intro="",this.outro="",this.content=Ve,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};We.prototype.appendLeft=function appendLeft(ce){this.outro+=ce},We.prototype.appendRight=function appendRight(ce){this.intro=this.intro+ce},We.prototype.clone=function clone(){var ce=new We(this.start,this.end,this.original);return ce.intro=this.intro,ce.outro=this.outro,ce.content=this.content,ce.storeName=this.storeName,ce.edited=this.edited,ce},We.prototype.contains=function contains(ce){return this.start=qe.length)return"\t";var Ye=qe.reduce((function(ce,ze){var Ve=/^ +/.exec(ze)[0].length;return Math.min(Ve,ce)}),1/0);return new Array(Ye+1).join(" ")}function getRelativePath(ce,ze){var Ve=ce.split(/[/\\]/),qe=ze.split(/[/\\]/);for(Ve.pop();Ve[0]===qe[0];)Ve.shift(),qe.shift();if(Ve.length)for(var Ye=Ve.length;Ye--;)Ve[Ye]="..";return Ve.concat(qe).join("/")}Qe.prototype.toString=function toString(){return JSON.stringify(this)},Qe.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var Xe=Object.prototype.toString;function isObject(ce){return"[object Object]"===Xe.call(ce)}function getLocator(ce){for(var ze=ce.split("\n"),Ve=[],qe=0,Ye=0;qe>1;ce=0&&Ye.push(qe),this.rawSegments.push(Ye)}else this.pending&&this.rawSegments.push(this.pending);this.advance(ze),this.pending=null},ot.prototype.addUneditedChunk=function addUneditedChunk(ce,ze,Ve,qe,Ye){for(var We=ze.start,Qe=!0;We1){for(var Ve=0;Ve=ce&&Ve<=ze)throw new Error("Cannot move a selection inside itself");this._split(ce),this._split(ze),this._split(Ve);var qe=this.byStart[ce],Ye=this.byEnd[ze],We=qe.previous,Qe=Ye.next,Xe=this.byStart[Ve];if(!Xe&&Ye===this.lastChunk)return this;var ot=Xe?Xe.previous:this.lastChunk;return We&&(We.next=Qe),Qe&&(Qe.previous=We),ot&&(ot.next=qe),Xe&&(Xe.previous=Ye),qe.previous||(this.firstChunk=Ye.next),Ye.next||(this.lastChunk=qe.previous,this.lastChunk.next=null),qe.previous=ot,Ye.next=Xe||null,ot||(this.firstChunk=qe),Xe||(this.lastChunk=Ye),this},gt.prototype.overwrite=function overwrite(ce,ze,Ve,qe){if("string"!=typeof Ve)throw new TypeError("replacement content must be a string");for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ze>this.original.length)throw new Error("end is out of bounds");if(ce===ze)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(ce),this._split(ze),!0===qe&&(mt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),mt.storeName=!0),qe={storeName:!0});var Ye=void 0!==qe&&qe.storeName,Qe=void 0!==qe&&qe.contentOnly;if(Ye){var Xe=this.original.slice(ce,ze);Object.defineProperty(this.storedNames,Xe,{writable:!0,value:!0,enumerable:!0})}var ot=this.byStart[ce],st=this.byEnd[ze];if(ot){for(var gt=ot;gt!==st;){if(gt.next!==this.byStart[gt.end])throw new Error("Cannot overwrite across a split point");(gt=gt.next).edit("",!1)}ot.edit(Ve,Ye,Qe)}else{var yt=new We(ce,ze,"").edit(Ve,Ye);st.next=yt,yt.previous=st}return this},gt.prototype.prepend=function prepend(ce){if("string"!=typeof ce)throw new TypeError("outro content must be a string");return this.intro=ce+this.intro,this},gt.prototype.prependLeft=function prependLeft(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byEnd[ce];return Ve?Ve.prependLeft(ze):this.intro=ze+this.intro,this},gt.prototype.prependRight=function prependRight(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byStart[ce];return Ve?Ve.prependRight(ze):this.outro=ze+this.outro,this},gt.prototype.remove=function remove(ce,ze){for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ce===ze)return this;if(ce<0||ze>this.original.length)throw new Error("Character is out of bounds");if(ce>ze)throw new Error("end must be greater than start");this._split(ce),this._split(ze);for(var Ve=this.byStart[ce];Ve;)Ve.intro="",Ve.outro="",Ve.edit(""),Ve=ze>Ve.end?this.byStart[Ve.end]:null;return this},gt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var ce=this.lastChunk;do{if(ce.outro.length)return ce.outro[ce.outro.length-1];if(ce.content.length)return ce.content[ce.content.length-1];if(ce.intro.length)return ce.intro[ce.intro.length-1]}while(ce=ce.previous);return this.intro.length?this.intro[this.intro.length-1]:""},gt.prototype.lastLine=function lastLine(){var ce=this.outro.lastIndexOf(st);if(-1!==ce)return this.outro.substr(ce+1);var ze=this.outro,Ve=this.lastChunk;do{if(Ve.outro.length>0){if(-1!==(ce=Ve.outro.lastIndexOf(st)))return Ve.outro.substr(ce+1)+ze;ze=Ve.outro+ze}if(Ve.content.length>0){if(-1!==(ce=Ve.content.lastIndexOf(st)))return Ve.content.substr(ce+1)+ze;ze=Ve.content+ze}if(Ve.intro.length>0){if(-1!==(ce=Ve.intro.lastIndexOf(st)))return Ve.intro.substr(ce+1)+ze;ze=Ve.intro+ze}}while(Ve=Ve.previous);return-1!==(ce=this.intro.lastIndexOf(st))?this.intro.substr(ce+1)+ze:this.intro+ze},gt.prototype.slice=function slice(ce,ze){for(void 0===ce&&(ce=0),void 0===ze&&(ze=this.original.length);ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;for(var Ve="",qe=this.firstChunk;qe&&(qe.start>ce||qe.end<=ce);){if(qe.start=ze)return Ve;qe=qe.next}if(qe&&qe.edited&&qe.start!==ce)throw new Error("Cannot use replaced character "+ce+" as slice start anchor.");for(var Ye=qe;qe;){!qe.intro||Ye===qe&&qe.start!==ce||(Ve+=qe.intro);var We=qe.start=ze;if(We&&qe.edited&&qe.end!==ze)throw new Error("Cannot use replaced character "+ze+" as slice end anchor.");var Qe=Ye===qe?ce-qe.start:0,Xe=We?qe.content.length+ze-qe.end:qe.content.length;if(Ve+=qe.content.slice(Qe,Xe),!qe.outro||We&&qe.end!==ze||(Ve+=qe.outro),We)break;qe=qe.next}return Ve},gt.prototype.snip=function snip(ce,ze){var Ve=this.clone();return Ve.remove(0,ce),Ve.remove(ze,Ve.original.length),Ve},gt.prototype._split=function _split(ce){if(!this.byStart[ce]&&!this.byEnd[ce])for(var ze=this.lastSearchedChunk,Ve=ce>ze.end;ze;){if(ze.contains(ce))return this._splitChunk(ze,ce);ze=Ve?this.byStart[ze.end]:this.byEnd[ze.start]}},gt.prototype._splitChunk=function _splitChunk(ce,ze){if(ce.edited&&ce.content.length){var Ve=getLocator(this.original)(ze);throw new Error("Cannot split a chunk that has already been edited ("+Ve.line+":"+Ve.column+' – "'+ce.original+'")')}var qe=ce.split(ze);return this.byEnd[ze]=ce,this.byStart[ze]=qe,this.byEnd[qe.end]=qe,ce===this.lastChunk&&(this.lastChunk=qe),this.lastSearchedChunk=ce,!0},gt.prototype.toString=function toString(){for(var ce=this.intro,ze=this.firstChunk;ze;)ce+=ze.toString(),ze=ze.next;return ce+this.outro},gt.prototype.isEmpty=function isEmpty(){var ce=this.firstChunk;do{if(ce.intro.length&&ce.intro.trim()||ce.content.length&&ce.content.trim()||ce.outro.length&&ce.outro.trim())return!1}while(ce=ce.next);return!0},gt.prototype.length=function length(){var ce=this.firstChunk,length=0;do{length+=ce.intro.length+ce.content.length+ce.outro.length}while(ce=ce.next);return length},gt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},gt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},gt.prototype.trimEndAborted=function trimEndAborted(ce){var ze=new RegExp((ce||"\\s")+"+$");if(this.outro=this.outro.replace(ze,""),this.outro.length)return!0;var Ve=this.lastChunk;do{var qe=Ve.end,Ye=Ve.trimEnd(ze);if(Ve.end!==qe&&(this.lastChunk===Ve&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),Ye)return!0;Ve=Ve.previous}while(Ve);return!1},gt.prototype.trimEnd=function trimEnd(ce){return this.trimEndAborted(ce),this},gt.prototype.trimStartAborted=function trimStartAborted(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),this.intro.length)return!0;var Ve=this.firstChunk;do{var qe=Ve.end,Ye=Ve.trimStart(ze);if(Ve.end!==qe&&(Ve===this.lastChunk&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),Ye)return!0;Ve=Ve.next}while(Ve);return!1},gt.prototype.trimStart=function trimStart(ce){return this.trimStartAborted(ce),this};var yt=Object.prototype.hasOwnProperty,bt=function Bundle(ce){void 0===ce&&(ce={}),this.intro=ce.intro||"",this.separator=void 0!==ce.separator?ce.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};bt.prototype.addSource=function addSource(ce){if(ce instanceof gt)return this.addSource({content:ce,filename:ce.filename,separator:this.separator});if(!isObject(ce)||!ce.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(ze){yt.call(ce,ze)||(ce[ze]=ce.content[ze])})),void 0===ce.separator&&(ce.separator=this.separator),ce.filename)if(yt.call(this.uniqueSourceIndexByFilename,ce.filename)){var ze=this.uniqueSources[this.uniqueSourceIndexByFilename[ce.filename]];if(ce.content.original!==ze.content)throw new Error("Illegal source: same filename ("+ce.filename+"), different contents")}else this.uniqueSourceIndexByFilename[ce.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:ce.filename,content:ce.content.original});return this.sources.push(ce),this},bt.prototype.append=function append(ce,ze){return this.addSource({content:new gt(ce),separator:ze&&ze.separator||""}),this},bt.prototype.clone=function clone(){var ce=new bt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(ze){ce.addSource({filename:ze.filename,content:ze.content.clone(),separator:ze.separator})})),ce},bt.prototype.generateDecodedMap=function generateDecodedMap(ce){var ze=this;void 0===ce&&(ce={});var Ve=[];this.sources.forEach((function(ce){Object.keys(ce.content.storedNames).forEach((function(ce){~Ve.indexOf(ce)||Ve.push(ce)}))}));var qe=new ot(ce.hires);return this.intro&&qe.advance(this.intro),this.sources.forEach((function(ce,Ye){Ye>0&&qe.advance(ze.separator);var We=ce.filename?ze.uniqueSourceIndexByFilename[ce.filename]:-1,Qe=ce.content,Xe=getLocator(Qe.original);Qe.intro&&qe.advance(Qe.intro),Qe.firstChunk.eachNext((function(ze){var Ye=Xe(ze.start);ze.intro.length&&qe.advance(ze.intro),ce.filename?ze.edited?qe.addEdit(We,ze.content,Ye,ze.storeName?Ve.indexOf(ze.original):-1):qe.addUneditedChunk(We,ze,Qe.original,Ye,Qe.sourcemapLocations):qe.advance(ze.content),ze.outro.length&&qe.advance(ze.outro)})),Qe.outro&&qe.advance(Qe.outro)})),{file:ce.file?ce.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(ze){return ce.file?getRelativePath(ce.file,ze.filename):ze.filename})),sourcesContent:this.uniqueSources.map((function(ze){return ce.includeContent?ze.content:null})),names:Ve,mappings:qe.raw}},bt.prototype.generateMap=function generateMap(ce){return new Qe(this.generateDecodedMap(ce))},bt.prototype.getIndentString=function getIndentString(){var ce={};return this.sources.forEach((function(ze){var Ve=ze.content.indentStr;null!==Ve&&(ce[Ve]||(ce[Ve]=0),ce[Ve]+=1)})),Object.keys(ce).sort((function(ze,Ve){return ce[ze]-ce[Ve]}))[0]||"\t"},bt.prototype.indent=function indent(ce){var ze=this;if(arguments.length||(ce=this.getIndentString()),""===ce)return this;var Ve=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(qe,Ye){var We=void 0!==qe.separator?qe.separator:ze.separator,Qe=Ve||Ye>0&&/\r?\n$/.test(We);qe.content.indent(ce,{exclude:qe.indentExclusionRanges,indentStart:Qe}),Ve="\n"===qe.content.lastChar()})),this.intro&&(this.intro=ce+this.intro.replace(/^[^\n]/gm,(function(ze,Ve){return Ve>0?ce+ze:ze}))),this},bt.prototype.prepend=function prepend(ce){return this.intro=ce+this.intro,this},bt.prototype.toString=function toString(){var ce=this,ze=this.sources.map((function(ze,Ve){var qe=void 0!==ze.separator?ze.separator:ce.separator;return(Ve>0?qe:"")+ze.content.toString()})).join("");return this.intro+ze},bt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(ce){return!ce.content.isEmpty()}))},bt.prototype.length=function length(){return this.sources.reduce((function(ce,ze){return ce+ze.content.length()}),this.intro.length)},bt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},bt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},bt.prototype.trimStart=function trimStart(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),!this.intro){var Ve,qe=0;do{if(!(Ve=this.sources[qe++]))break}while(!Ve.content.trimStartAborted(ce))}return this},bt.prototype.trimEnd=function trimEnd(ce){var ze,Ve=new RegExp((ce||"\\s")+"+$"),qe=this.sources.length-1;do{if(!(ze=this.sources[qe--])){this.intro=this.intro.replace(Ve,"");break}}while(!ze.content.trimEndAborted(ce));return this}}).call(this,Ve(487).Buffer)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return encode}));for(var qe={},Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=0;We0&&(We+=";"),0!==Xe.length){for(var ot=0,st=[],mt=0,gt=Xe;mt1&&(bt+=encodeInteger(yt[1]-ze)+encodeInteger(yt[2]-Ve)+encodeInteger(yt[3]-qe),ze=yt[1],Ve=yt[2],qe=yt[3]),5===yt.length&&(bt+=encodeInteger(yt[4]-Ye),Ye=yt[4]),st.push(bt)}We+=st.join(",")}}return We}function encodeInteger(ce){var ze="";ce=ce<0?-ce<<1|1:ce<<1;do{var Ve=31&ce;(ce>>>=5)>0&&(Ve|=32),ze+=Ye[Ve]}while(ce>0);return ze}},function(ce,ze,Ve){"use strict";const qe=Ve(1290).generate,Ye=Ve(1291).parse,We=Ve(4),Qe=Ve(1292),Xe=Ve(1295),ot=Ve(1297),st=Ve(1298),mt=We().addRange(0,1114111),gt=We().addRange(0,65535),yt=mt.clone().remove(10,13,8232,8233),bt=yt.clone().intersection(gt),getCharacterClassEscapeSet=(ce,ze,Ve)=>ze?Ve?st.UNICODE_IGNORE_CASE.get(ce):st.UNICODE.get(ce):st.REGULAR.get(ce),getUnicodePropertyValueSet=(ce,ze)=>{const qe=ze?`${ce}/${ze}`:`Binary_Property/${ce}`;try{return Ve(1299)(`./${qe}.js`)}catch(Ve){throw new Error(`Failed to recognize value \`${ze}\` for property \`${ce}\`.`)}},handleLoneUnicodePropertyNameOrValue=ce=>{try{const ze="General_Category",Ve=Xe(ze,ce);return getUnicodePropertyValueSet(ze,Ve)}catch(ce){}const ze=Qe(ce);return getUnicodePropertyValueSet(ze)},getUnicodePropertyEscapeSet=(ce,ze)=>{const Ve=ce.split("="),qe=Ve[0];let Ye;if(1==Ve.length)Ye=handleLoneUnicodePropertyNameOrValue(qe);else{const ce=Qe(qe),ze=Xe(ce,Ve[1]);Ye=getUnicodePropertyValueSet(ce,ze)}return ze?mt.clone().remove(Ye):Ye.clone()};We.prototype.iuAddRange=function(ce,ze){const Ve=this;do{const ze=caseFold(ce);ze&&Ve.add(ze)}while(++ce<=ze);return Ve};const update=(ce,ze)=>{let Ve=Ye(ze,vt.useUnicodeFlag?"u":"");switch(Ve.type){case"characterClass":case"group":case"value":break;default:Ve=wrap(Ve,ze)}Object.assign(ce,Ve)},wrap=(ce,ze)=>({type:"group",behavior:"ignore",body:[ce],raw:`(?:${ze})`}),caseFold=ce=>ot.get(ce)||!1,processCharacterClass=(ce,ze)=>{let Ve=We();for(const ze of ce.body)switch(ze.type){case"value":if(Ve.add(ze.codePoint),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(ze.codePoint);ce&&Ve.add(ce)}break;case"characterClassRange":const ce=ze.min.codePoint,qe=ze.max.codePoint;Ve.addRange(ce,qe),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag&&Ve.iuAddRange(ce,qe);break;case"characterClassEscape":Ve.add(getCharacterClassEscapeSet(ze.value,vt.unicode,vt.ignoreCase));break;case"unicodePropertyEscape":Ve.add(getUnicodePropertyEscapeSet(ze.value,ze.negative));break;default:throw new Error(`Unknown term type: ${ze.type}`)}return ce.negative&&(Ve=(vt.unicode?mt:gt).clone().remove(Ve)),update(ce,Ve.toString(ze)),ce},updateNamedReference=(ce,ze)=>{delete ce.name,ce.matchIndex=ze},assertNoUnmatchedReferences=ce=>{const ze=Object.keys(ce.unmatchedReferences);if(ze.length>0)throw new Error(`Unknown group names: ${ze}`)},processTerm=(ce,ze,Ve)=>{switch(ce.type){case"dot":update(ce,(qe=vt.unicode,Ye=vt.dotAll,Ye?qe?mt:gt:qe?yt:bt).toString(ze));break;case"characterClass":ce=processCharacterClass(ce,ze);break;case"unicodePropertyEscape":update(ce,getUnicodePropertyEscapeSet(ce.value,ce.negative).toString(ze));break;case"characterClassEscape":update(ce,getCharacterClassEscapeSet(ce.value,vt.unicode,vt.ignoreCase).toString(ze));break;case"group":if(Ve.lastIndex++,ce.name){const ze=ce.name.value;if(Ve.names[ze])throw new Error(`Multiple groups with the same name (${ze}) are not allowed.`);const qe=Ve.lastIndex;delete ce.name,Ve.names[ze]=qe,Ve.onNamedGroup&&Ve.onNamedGroup.call(null,ze,qe),Ve.unmatchedReferences[ze]&&(Ve.unmatchedReferences[ze].forEach((ce=>{updateNamedReference(ce,qe)})),delete Ve.unmatchedReferences[ze])}case"alternative":case"disjunction":case"quantifier":ce.body=ce.body.map((ce=>processTerm(ce,ze,Ve)));break;case"value":const Qe=ce.codePoint,Xe=We(Qe);if(vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(Qe);ce&&Xe.add(ce)}update(ce,Xe.toString(ze));break;case"reference":if(ce.name){const ze=ce.name.value,qe=Ve.names[ze];if(qe){updateNamedReference(ce,qe);break}Ve.unmatchedReferences[ze]||(Ve.unmatchedReferences[ze]=[]),Ve.unmatchedReferences[ze].push(ce)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${ce.type}`)}var qe,Ye;return ce},vt={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};ce.exports=(ce,ze,Ve)=>{const We={unicodePropertyEscape:Ve&&Ve.unicodePropertyEscape,namedGroups:Ve&&Ve.namedGroup,lookbehind:Ve&&Ve.lookbehind};vt.ignoreCase=ze&&ze.includes("i"),vt.unicode=ze&&ze.includes("u");const Qe=Ve&&Ve.dotAllFlag;vt.dotAll=Qe&&ze&&ze.includes("s"),vt.useUnicodeFlag=Ve&&Ve.useUnicodeFlag;const Xe={hasUnicodeFlag:vt.useUnicodeFlag,bmpOnly:!vt.unicode},ot={onNamedGroup:Ve&&Ve.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},st=Ye(ce,ze,We);return processTerm(st,Xe,ot),assertNoUnmatchedReferences(ot),qe(st)}},function(ce,ze){ce.exports=function clipboardCopy(ce){if(navigator.clipboard)return navigator.clipboard.writeText(ce).catch((function(ce){throw void 0!==ce?ce:new DOMException("The request is not allowed","NotAllowedError")}));var ze=document.createElement("span");ze.textContent=ce,ze.style.whiteSpace="pre",ze.style.webkitUserSelect="auto",ze.style.userSelect="all",document.body.appendChild(ze);var Ve=window.getSelection(),qe=window.document.createRange();Ve.removeAllRanges(),qe.selectNode(ze),Ve.addRange(qe);var Ye=!1;try{Ye=window.document.execCommand("copy")}catch(ce){console.log("error",ce)}return Ve.removeAllRanges(),window.document.body.removeChild(ze),Ye?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(ce,ze,Ve){var qe=Ve(171).isFinite;ce.exports=function isFinite(ce){return"number"==typeof ce&&qe(ce)}},function(ce,ze,Ve){"use strict";ze.a=function stubFalse(){return!1}},function(ce,ze,Ve){"use strict";var qe=Ve(695),Ye=Ve(71);ze.a=function throttle(ce,ze,Ve){var We=!0,Qe=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");return Object(Ye.a)(Ve)&&(We="leading"in Ve?!!Ve.leading:We,Qe="trailing"in Ve?!!Ve.trailing:Qe),Object(qe.a)(ce,ze,{leading:We,maxWait:ze,trailing:Qe})}},function(ce,ze,Ve){"use strict";var qe=Ve(397);ze.a=function get(ce,ze,Ve){var Ye=null==ce?void 0:Object(qe.a)(ce,ze);return void 0===Ye?Ve:Ye}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Qe=void 0===We?24:We,Xe=ce.height,ot=void 0===Xe?24:Xe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return Ye.default.createElement("svg",qe({viewBox:"0 0 24 24",style:qe({fill:Ve,width:Qe,height:ot},mt)},gt),Ye.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var qe=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,qe)&&(Ve[qe]=ce[qe]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Qe=void 0===We?24:We,Xe=ce.height,ot=void 0===Xe?24:Xe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return Ye.default.createElement("svg",qe({viewBox:"0 0 24 24",style:qe({fill:Ve,width:Qe,height:ot},mt)},gt),Ye.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.default=function(ce,ze){if(ce&&ze){var Ve=Array.isArray(ze)?ze:ze.split(","),qe=ce.name||"",Ye=(ce.type||"").toLowerCase(),We=Ye.replace(/\/.*$/,"");return Ve.some((function(ce){var ze=ce.trim().toLowerCase();return"."===ze.charAt(0)?qe.toLowerCase().endsWith(ze):ze.endsWith("/*")?We===ze.replace(/\/.*$/,""):Ye===ze}))}return!0}},function(ce,ze,Ve){"use strict";var qe=Ve(1908),Ye={"text/plain":"Text","text/html":"Url",default:"Text"};function format(ce){var ze=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return ce.replace(/#{\s*key\s*}/g,ze)}ce.exports=function copy(ce,ze){var Ve,We,Qe,Xe,ot,st,mt=!1;ze||(ze={}),Ve=ze.debug||!1;try{if(Qe=qe(),Xe=document.createRange(),ot=document.getSelection(),(st=document.createElement("span")).textContent=ce,st.ariaHidden="true",st.style.all="unset",st.style.position="fixed",st.style.top=0,st.style.clip="rect(0, 0, 0, 0)",st.style.whiteSpace="pre",st.style.webkitUserSelect="text",st.style.MozUserSelect="text",st.style.msUserSelect="text",st.style.userSelect="text",st.addEventListener("copy",(function(qe){if(qe.stopPropagation(),ze.format)if(qe.preventDefault(),void 0===qe.clipboardData){Ve&&console.warn("unable to use e.clipboardData"),Ve&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var We=Ye[ze.format]||Ye.default;window.clipboardData.setData(We,ce)}else qe.clipboardData.clearData(),qe.clipboardData.setData(ze.format,ce);ze.onCopy&&(qe.preventDefault(),ze.onCopy(qe.clipboardData))})),document.body.appendChild(st),Xe.selectNodeContents(st),ot.addRange(Xe),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");mt=!0}catch(qe){Ve&&console.error("unable to copy using execCommand: ",qe),Ve&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ze.format||"text",ce),ze.onCopy&&ze.onCopy(window.clipboardData),mt=!0}catch(qe){Ve&&console.error("unable to copy using clipboardData: ",qe),Ve&&console.error("falling back to prompt"),We=format("message"in ze?ze.message:"Copy to clipboard: #{key}, Enter"),window.prompt(We,ce)}}finally{ot&&("function"==typeof ot.removeRange?ot.removeRange(Xe):ot.removeAllRanges()),st&&document.body.removeChild(st),Qe()}return mt}},function(ce,ze,Ve){"use strict";var qe=Ve(98),Ye=Ve(268);ze.a=function isElement(ce){return Object(qe.a)(ce)&&1===ce.nodeType&&!Object(Ye.a)(ce)}},,,,function(ce,ze,Ve){Ve(803),Ve(1098),Ve(1099),Ve(1100),ce.exports=Ve(2123)},function(ce,ze,Ve){"use strict";Ve.r(ze),ze.default={}},function(ce,ze){globalThis.STYLEGUIDE_CURRENT_VERSION="2.5",globalThis.STYLEGUIDE_AVAILABLE_VERSIONS=["latest","2.5","2.4","2.3","2.2","2.1","2.0"]},function(ce,ze,Ve){"use strict";Ve.r(ze);Ve(1101),Ve(1119),Ve(1138);!function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var qe=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(qe.exports,qe,qe.exports,n),qe.l=!0,qe.exports}n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var qe in ce)n.d(Ve,qe,function(ze){return ce[ze]}.bind(null,qe));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=19)}([function(ce,ze,Ve){ce.exports=Ve(13)},function(ce,ze,Ve){(function(ce){var qe=Ve(2),Ye=Ve(0),We=Ve.n(Ye),Qe=Ve(7),Xe=Ve.n(Qe),ot=Ve(8),st=Ve(9),mt=Ve(4),gt=Ve(3),yt=Ve.n(gt);function p(){return(p=Object.assign||function(ce){for(var ze=1;ze1?ze-1:0),qe=1;qe0?" Args: "+Ve.join(", "):""))}var kt=function(){function e(ce){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=ce}var ce=e.prototype;return ce.indexOfGroup=function(ce){for(var ze=0,Ve=0;Ve=this.groupSizes.length){for(var Ve=this.groupSizes,qe=Ve.length,Ye=qe;ce>=Ye;)(Ye<<=1)<0&&E(16,""+ce);this.groupSizes=new Uint32Array(Ye),this.groupSizes.set(Ve),this.length=Ye;for(var We=qe;We=this.length||0===this.groupSizes[ce])return ze;for(var Ve=this.groupSizes[ce],qe=this.indexOfGroup(ce),Ye=qe+Ve,We=qe;We=Et&&(Et=ze+1),St.set(ce,ze),xt.set(ze,ce)},Pt="style["+wt+'][data-styled-version="5.3.3"]',Tt=new RegExp("^"+wt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(ce,ze,Ve){for(var qe,Ye=Ve.split(","),We=0,Qe=Ye.length;We=0;Ve--){var qe=ze[Ve];if(qe&&1===qe.nodeType&&qe.hasAttribute(wt))return qe}}(Ve),We=void 0!==Ye?Ye.nextSibling:null;qe.setAttribute(wt,"active"),qe.setAttribute("data-styled-version","5.3.3");var Qe=j();return Qe&&qe.setAttribute("nonce",Qe),Ve.insertBefore(qe,We),qe},Lt=function(){function e(ce){var ze=this.element=D(ce);ze.appendChild(document.createTextNode("")),this.sheet=function(ce){if(ce.sheet)return ce.sheet;for(var ze=document.styleSheets,Ve=0,qe=ze.length;Ve=0){var Ve=document.createTextNode(ze),qe=this.nodes[ce];return this.element.insertBefore(Ve,qe||null),this.length++,!0}return!1},ce.deleteRule=function(ce){this.element.removeChild(this.nodes[ce]),this.length--},ce.getRule=function(ce){return ce0&&(st+=ce+",")})),qe+=""+Xe+ot+'{content:"'+st+'"}/*!sc*/\n'}}}return qe}(this)},e}(),Wt=/(a)(d)/gi,H=function(ce){return String.fromCharCode(ce+(ce>25?39:97))};function Q(ce){var ze,Ve="";for(ze=Math.abs(ce);ze>52;ze=ze/52|0)Ve=H(ze%52)+Ve;return(H(ze%52)+Ve).replace(Wt,"$1-$2")}var q=function(ce,ze){for(var Ve=ze.length;Ve;)ce=33*ce^ze.charCodeAt(--Ve);return ce},Y=function(ce){return q(5381,ce)};function K(ce){for(var ze=0;ze>>0);if(!ze.hasNameForId(qe,Qe)){var Xe=Ve(We,"."+Qe,void 0,qe);ze.insertRules(qe,Qe,Xe)}Ye.push(Qe),this.staticRulesId=Qe}else{for(var ot=this.rules.length,st=q(this.baseHash,Ve.hash),mt="",gt=0;gt>>0);if(!ze.hasNameForId(qe,wt)){var Ct=Ve(mt,"."+wt,void 0,qe);ze.insertRules(qe,wt,Ct)}Ye.push(wt)}}return Ye.join(" ")},e}(),en=/^\s*\/\/.*$/gm,rn=[":","[",".","#"];function ee(ce){var ze,Ve,qe,Ye,We=void 0===ce?vt:ce,Qe=We.options,Xe=void 0===Qe?vt:Qe,st=We.plugins,mt=void 0===st?bt:st,gt=new ot.a(Xe),yt=[],wt=function(ce){function t(ze){if(ze)try{ce(ze+"}")}catch(ce){}}return function(ze,Ve,qe,Ye,We,Qe,Xe,ot,st,mt){switch(ze){case 1:if(0===st&&64===Ve.charCodeAt(0))return ce(Ve+";"),"";break;case 2:if(0===ot)return Ve+"/*|*/";break;case 3:switch(ot){case 102:case 112:return ce(qe[0]+Ve),"";default:return Ve+(0===mt?"/*|*/":"")}case-2:Ve.split("/*|*/}").forEach(t)}}}((function(ce){yt.push(ce)})),h=function(ce,qe,We){return 0===qe&&-1!==rn.indexOf(We[Ve.length])||We.match(Ye)?ce:"."+ze};function m(ce,We,Qe,Xe){void 0===Xe&&(Xe="&");var ot=ce.replace(en,""),st=We&&Qe?Qe+" "+We+" { "+ot+" }":ot;return ze=Xe,Ve=We,qe=new RegExp("\\"+Ve+"\\b","g"),Ye=new RegExp("(\\"+Ve+"\\b){2,}"),gt(Qe||!We?"":We,st)}return gt.use([].concat(mt,[function(ce,ze,Ye){2===ce&&Ye.length&&Ye[0].lastIndexOf(Ve)>0&&(Ye[0]=Ye[0].replace(qe,h))},wt,function(ce){if(-2===ce){var ze=yt;return yt=[],ze}}])),m.hash=mt.length?mt.reduce((function(ce,ze){return ze.name||E(15),q(ce,ze.name)}),5381).toString():"",m}var ln=We.a.createContext(),mn=(ln.Consumer,We.a.createContext()),gn=(mn.Consumer,new Ut),bn=ee();function oe(){return Object(Ye.useContext)(ln)||gn}function ae(){return Object(Ye.useContext)(mn)||bn}function le(ce){var ze=Object(Ye.useState)(ce.stylisPlugins),Ve=ze[0],qe=ze[1],Qe=oe(),ot=Object(Ye.useMemo)((function(){var ze=Qe;return ce.sheet?ze=ce.sheet:ce.target&&(ze=ze.reconstructWithOptions({target:ce.target},!1)),ce.disableCSSOMInjection&&(ze=ze.reconstructWithOptions({useCSSOMInjection:!1})),ze}),[ce.disableCSSOMInjection,ce.sheet,ce.target]),st=Object(Ye.useMemo)((function(){return ee({options:{prefix:!ce.disableVendorPrefixes},plugins:Ve})}),[ce.disableVendorPrefixes,Ve]);return Object(Ye.useEffect)((function(){Xe()(Ve,ce.stylisPlugins)||qe(ce.stylisPlugins)}),[ce.stylisPlugins]),We.a.createElement(ln.Provider,{value:ot},We.a.createElement(mn.Provider,{value:st},ce.children))}var wn=function(){function e(ce,ze){var Ve=this;this.inject=function(ce,ze){void 0===ze&&(ze=bn);var qe=Ve.name+ze.hash;ce.hasNameForId(Ve.id,qe)||ce.insertRules(Ve.id,qe,ze(Ve.rules,qe,"@keyframes"))},this.toString=function(){return E(12,String(Ve.name))},this.name=ce,this.id="sc-keyframes-"+ce,this.rules=ze}return e.prototype.getName=function(ce){return void 0===ce&&(ce=bn),this.name+ce.hash},e}(),Cn=/([A-Z])/,Sn=/([A-Z])/g,En=/^ms-/,de=function(ce){return"-"+ce.toLowerCase()};function pe(ce){return Cn.test(ce)?ce.replace(Sn,de).replace(En,"-ms-"):ce}var he=function(ce){return null==ce||!1===ce||""===ce};function me(ce,ze,Ve,qe){if(Array.isArray(ce)){for(var Ye,We=[],Qe=0,Xe=ce.length;Qe1?ze-1:0),qe=1;qe?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function ke(ce){return ce.replace(Tn,"-").replace(Ln,"")}var xe=function(ce){return Q(Y(ce)>>>0)};function Se(ce){return"string"==typeof ce&&!0}var Ee=function(ce){return"function"==typeof ce||"object"==typeof ce&&null!==ce&&!Array.isArray(ce)},Te=function(ce){return"__proto__"!==ce&&"constructor"!==ce&&"prototype"!==ce};function Ce(ce,ze,Ve){var qe=ce[Ve];Ee(ze)&&Ee(qe)?Pe(qe,ze):ce[Ve]=ze}function Pe(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe=0||(Ye[Ve]=ce[Ve]);return Ye}(ze,["componentId"]),We=qe&&qe+"-"+(Se(ce)?ce:ke(b(ce)));return Ae(ce,p({},Ye,{attrs:kt,componentId:We}),Ve)},Object.defineProperty(xt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(ze){this._foldedDefaultProps=qe?Pe({},ce.defaultProps,ze):ze}}),xt.toString=function(){return"."+xt.styledComponentId},Qe&&yt()(xt,ce,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),xt}var Ne=function(ce){return function e(ce,ze,Ve){if(void 0===Ve&&(Ve=vt),!Object(qe.isValidElementType)(ze))return E(1,String(ze));var o=function(){return ce(ze,Ve,ve.apply(void 0,arguments))};return o.withConfig=function(qe){return e(ce,ze,p({},Ve,{},qe))},o.attrs=function(qe){return e(ce,ze,p({},Ve,{attrs:Array.prototype.concat(Ve.attrs,qe).filter(Boolean)}))},o}(Ae,ce)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(ce){Ne[ce]=Ne(ce)})),function(){var ce=function e(ce,ze){this.rules=ce,this.componentId=ze,this.isStatic=K(ce),Ut.registerId(this.componentId+1)}.prototype;ce.createStyles=function(ce,ze,Ve,qe){var Ye=qe(me(this.rules,ze,Ve,qe).join(""),""),We=this.componentId+ce;Ve.insertRules(We,We,Ye)},ce.removeStyles=function(ce,ze){ze.clearRules(this.componentId+ce)},ce.renderStyles=function(ce,ze,Ve,qe){ce>2&&Ut.registerId(this.componentId+ce),this.removeStyles(ce,Ve),this.createStyles(ce,ze,Ve,qe)}}(),function(){var ce=function e(){var ce=this;this._emitSheetCSS=function(){var ze=ce.instance.toString();if(!ze)return"";var Ve=j();return""},this.getStyleTags=function(){return ce.sealed?E(2):ce._emitSheetCSS()},this.getStyleElement=function(){var ze;if(ce.sealed)return E(2);var Ve=((ze={})[wt]="",ze["data-styled-version"]="5.3.3",ze.dangerouslySetInnerHTML={__html:ce.instance.toString()},ze),qe=j();return qe&&(Ve.nonce=qe),[We.a.createElement("style",p({},Ve,{key:"sc-0-0"}))]},this.seal=function(){ce.sealed=!0},this.instance=new Ut({isServer:!0}),this.sealed=!1}.prototype;ce.collectStyles=function(ce){return this.sealed?E(2):We.a.createElement(le,{sheet:this.instance},ce)},ce.interleaveWithNodeStream=function(ce){return E(3)}}(),ze.a=Ne}).call(this,Ve(17))},function(ce,ze,Ve){ce.exports=Ve(18)},function(ce,ze,Ve){var qe=Ve(2),Ye={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},We={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xe={};function u(ce){return qe.isMemo(ce)?Qe:Xe[ce.$$typeof]||Ye}Xe[qe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xe[qe.Memo]=Qe;var ot=Object.defineProperty,st=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,gt=Object.getOwnPropertyDescriptor,yt=Object.getPrototypeOf,bt=Object.prototype;ce.exports=function e(ce,ze,Ve){if("string"!=typeof ze){if(bt){var qe=yt(ze);qe&&qe!==bt&&e(ce,qe,Ve)}var Ye=st(ze);mt&&(Ye=Ye.concat(mt(ze)));for(var Qe=u(ce),Xe=u(ze),vt=0;vtqe&&(qe=(ze=ze.trim()).charCodeAt(0)),qe){case 38:return ze.replace(Xe,"$1"+ce.trim());case 58:return ce.trim()+ze.replace(Xe,"$1"+ce.trim());default:if(0<1*Ve&&0st.charCodeAt(8))break;case 115:Xe=Xe.replace(st,"-webkit-"+st)+";"+Xe;break;case 207:case 102:Xe=Xe.replace(st,"-webkit-"+(102Ye.charCodeAt(0)&&(Ye=Ye.trim()),Ye=[Ye],0Xe)&&(en=(mn=mn.replace(" ",":")).length),0Lt.length&&Lt.push(ce)}function I(ce,ze,Ve){return null==ce?0:function e(ce,ze,Ve,qe){var Ye=typeof ce;"undefined"!==Ye&&"boolean"!==Ye||(ce=null);var Xe=!1;if(null===ce)Xe=!0;else switch(Ye){case"string":case"number":Xe=!0;break;case"object":switch(ce.$$typeof){case We:case Qe:Xe=!0}}if(Xe)return Ve(qe,ce,""===ze?"."+z(ce,0):ze),1;if(Xe=0,ze=""===ze?".":ze+":",Array.isArray(ce))for(var ot=0;ot