diff --git a/docs/2.4/build/admin/main.86aac496092c26c2e602.css b/docs/2.4/build/admin/main.605807428d0d1000835e.css similarity index 100% rename from docs/2.4/build/admin/main.86aac496092c26c2e602.css rename to docs/2.4/build/admin/main.605807428d0d1000835e.css diff --git a/docs/2.4/build/admin/manifest.json b/docs/2.4/build/admin/manifest.json index feafc86..ae3bbed 100644 --- a/docs/2.4/build/admin/manifest.json +++ b/docs/2.4/build/admin/manifest.json @@ -1,6 +1,6 @@ { - "main.css": "build/admin/main.86aac496092c26c2e602.css", - "main.js": "build/bundle.86aac496.js", + "main.css": "build/admin/main.605807428d0d1000835e.css", + "main.js": "build/bundle.60580742.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.86aac496.js.LICENSE.txt": "build/bundle.86aac496.js.LICENSE.txt", + "build/bundle.60580742.js.LICENSE.txt": "build/bundle.60580742.js.LICENSE.txt", "index.html": "index.html" } \ No newline at end of file diff --git a/docs/2.4/build/bundle.86aac496.js b/docs/2.4/build/bundle.60580742.js similarity index 99% rename from docs/2.4/build/bundle.86aac496.js rename to docs/2.4/build/bundle.60580742.js index 95b16a7..59bf1ad 100644 --- a/docs/2.4/build/bundle.86aac496.js +++ b/docs/2.4/build/bundle.60580742.js @@ -1,4 +1,4 @@ -/*! For license information please see bundle.86aac496.js.LICENSE.txt */ +/*! For license information please see bundle.60580742.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=1064)}([function(ce,ze,Ve){"use strict";ce.exports=Ve(1120)},function(ce,ze,Ve){"use strict";Ve.r(ze),function(ce,qe){Ve.d(ze,"$mobx",(function(){return Cr})),Ve.d(ze,"FlowCancellationError",(function(){return FlowCancellationError})),Ve.d(ze,"IDerivationState",(function(){return Et})),Ve.d(ze,"ObservableMap",(function(){return rr})),Ve.d(ze,"ObservableSet",(function(){return lr})),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 ar})),Ve.d(ze,"isObservableObject",(function(){return isObservableObject})),Ve.d(ze,"isObservableProp",(function(){return isObservableProp})),Ve.d(ze,"isObservableSet",(function(){return dr})),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 Xe={};Object.freeze(Xe);var Qe={};function getGlobal(){return"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:Qe}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)||ar(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;)Xe.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 Xe}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 rr(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 lr(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,Xe=Ve.set,Qe=Ye[0]||{};defineComputedProperty(ce,ze,__assign({get:We,set:Xe},Qe))})),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,Xe=0;Xeqe&&(qe=Qe.dependenciesState)}for(Ve.length=Ye,ce.newObserving=null,We=ze.length;We--;){0===(Qe=ze[We]).diffValue&&removeObserver(Qe,ce),Qe.diffValue=0}for(;Ye--;){var Qe;1===(Qe=Ve[Ye]).diffValue&&(Qe.diffValue=0,addObserver(Qe,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 Ht=0,Vt=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,Xe=new Array(We);if(We>0)for(var Qe=0;Qe0&&!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=Xe);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=Xe),"boolean"==typeof Ve&&(Ve={fireImmediately:Ve});var qe,Ye,We,Qe=Ve.name||"Reaction@"+getNextId(),ot=Tn(Qe,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(Qe,(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,Xe=Ye[ce];return"function"!=typeof Xe?fail(!1):(Ye[ce]=function(){Xe.call(this),We.call(this)},function(){Ye[ce]=Xe})}function configure(ce){var ze=ce.enforceActions,Ve=ce.computedRequiresReaction,qe=ce.computedConfigurable,Ye=ce.disableErrorBoundaries,We=ce.arrayBuffer,Xe=ce.reactionScheduler,Qe=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!==Qe&&(bn.reactionRequiresObservable=!!Qe),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),Xe&&setReactionScheduler(Xe)}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),Xe=0,Qe=We.length;Xe0&&(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),Xe=void 0,Qe=new Promise((function(ce,qe){var Qe=0;function onFulfilled(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Qe++,We.next).call(We,ce)}catch(ce){return qe(ce)}next(Ve)}function onRejected(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+Ye+" - yield "+Qe++,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):(Xe=Promise.resolve(ze.value)).then(onFulfilled,onRejected);ze.then(next,qe)}Ve=qe,onFulfilled(void 0)}));return Qe.cancel=Tn(ze+" - runid: "+Ye+" - cancel",(function(){try{Xe&&cancelPromise(Xe);var ce=We.return(void 0),ze=Promise.resolve(ce.value);ze.then(noop,noop),cancelPromise(ze),Ve(new FlowCancellationError)}catch(ce){Ve(ce)}})),Qe}}function cancelPromise(ce){"function"==typeof ce.cancel&&ce.cancel()}function interceptReads(ce,ze,Ve){var qe;if(ar(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():ar(ce)||dr(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]})):ar(ce)?keys(ce).map((function(ze){return ce.get(ze)})):dr(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]]})):ar(ce)?keys(ce).map((function(ze){return[ze,ce.get(ze)]})):dr(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||dr(ce))if(isObservableObject(ce)){var qe=ce.$mobx;qe.values[ze]?qe.write(ce,ze,Ve):defineObservableProperty(ce,ze,Ve,qe.defaultEnhancer)}else if(ar(ce))ce.set(ze,Ve);else if(dr(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(ar(ce))ce.delete(ze);else if(dr(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 ar(ce)||dr(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>Gn&&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 Xe=interceptChange(this,{object:this.array,type:"splice",index:ce,removedCount:ze,added:Ve});if(!Xe)return We;ze=Xe.removedCount,Ve=Xe.added}Ve=0===Ve.length?Ve:Ve.map((function(ce){return qe.enhancer(ce,void 0)}));var Qe=Ve.length-ze;this.updateArrayLength(Ye,Qe);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,Xe=new Zn(qe,Ve,We,Ye);if(addHiddenFinalProp(We,"$mobx",Xe),ze&&ze.length){var Qe=allowStateChangesStart(!0);We.spliceWithArray(0,0,ze),allowStateChangesEnd(Qe)}return Kn&&Object.defineProperty(Xe.array,"0",er),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>",Qe=Qe||Ye,null==Ve[Ye]){if(ze){var qe=null===Ve[Ye]?"null":"undefined";return new Error("The "+Xe+" `"+Qe+"` is marked as required in `"+We+"`, but its value is `"+qe+"`.")}return null}return ce.apply(void 0,[Ve,Ye,We,Xe,Qe].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,Xe,Qe){return Object(qe.untracked)((function(){if(ce&&getPropType(Ve[Ye])===ze.toLowerCase())return null;var Xe;switch(ze){case"Array":Xe=qe.isObservableArray;break;case"Object":Xe=qe.isObservableObject;break;case"Map":Xe=qe.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(ze))}var ot=Ve[Ye];if(!Xe(ot)){var st=getPreciseType(ot),mt=ce?" or javascript `"+ze.toLowerCase()+"`":"";return new Error("Invalid prop `"+Qe+"` of type `"+st+"` supplied to `"+We+"`, expected `mobx.Observable"+ze+"`"+mt+".")}return null}))}))}function createObservableArrayOfTypeChecker(ce,ze){return createChainableTypeChecker((function(Ve,Ye,We,Xe,Qe){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 Xe=ce.bind(this),Qe=!1,ot=new qe.Reaction("".concat(Ve,"#").concat(We,".render()"),(function(){if(!Qe&&(Qe=!0,"function"==typeof ze.componentWillReact&&ze.componentWillReact(),!0!==ze[Vt])){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[Ht]=ot,this.render=reactiveRender,reactiveRender.call(this)}var bn={componentWillUnmount:function componentWillUnmount(){if(!0!==Wt&&(this.render[Ht]&&this.render[Ht].dispose(),this[Vt]=!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 Xe,Qe,ot=observer((Qe=Xe=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),Xe.displayName=Ve.displayName||Ve.name,Xe.contextTypes=Ve.contextTypes,Xe.propTypes=Ve.propTypes,Xe.defaultProps=Ve.defaultProps,Qe));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 Xe=inject(Ve)(Ye);return We.a.createElement(Xe,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,Xe="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 "+Xe+" 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 Qe=ze.componentDidUpdate;ze.componentDidUpdate=function componentDidUpdatePolyfill(ce,ze,Ve){var qe=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Qe.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 Xe.unstable_batchedUpdates&&Object(qe.configure)({reactionScheduler:Xe.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(We){var Xe=ze,Qe=(ce&&ce.exports,"object"==typeof qe&&qe);Qe.global!==Qe&&Qe.window;var ot="A range’s `stop` value must be greater than or equal to the `start` value.",st="Invalid code point value. Code points range from U+000000 to U+10FFFF.",mt=55296,gt=56319,yt=56320,bt=57343,vt=/\\x00([^0123456789]|$)/g,wt={},Ct=wt.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,Xe=ce.length;if(ze<0||ze>1114111)throw RangeError(st);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(),Xe=ze.length;Ye1114111||Ve<0||Ve>1114111)throw RangeError(st);for(var qe,Ye,We=0,Xe=!1,Qe=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,Xe=!0)}We+=2}return Xe||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?"\\"+xt(ce):ce>=32&&ce<=126?xt(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>=mt&&qe<=gt&&Ve>1?(ze=ce.charCodeAt(1),1024*(qe-mt)+ze-yt+65536):qe},createBMPCharacterClasses=function(ce){var ze,Ve,qe="",Ye=0,We=ce.length;if(dataIsSingleton(ce))return codePointToString(ce[0]);for(;Ye=mt&&Ve<=gt&&(We.push(ze,mt),qe.push(mt,Ve+1)),Ve>=yt&&Ve<=bt&&(We.push(ze,mt),qe.push(mt,56320),Ye.push(yt,Ve+1)),Ve>bt&&(We.push(ze,mt),qe.push(mt,56320),Ye.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=mt&&ze<=gt?(Ve>=mt&&Ve<=gt&&qe.push(ze,Ve+1),Ve>=yt&&Ve<=bt&&(qe.push(ze,56320),Ye.push(yt,Ve+1)),Ve>bt&&(qe.push(ze,56320),Ye.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=yt&&ze<=bt?(Ve>=yt&&Ve<=bt&&Ye.push(ze,Ve+1),Ve>bt&&(Ye.push(ze,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>bt&&ze<=65535?Ve<=65535?We.push(ze,Ve+1):(We.push(ze,65536),Xe.push(65536,Ve+1)):Xe.push(ze,Ve+1),Qe+=2;return{loneHighSurrogates:qe,loneLowSurrogates:Ye,bmp:We,astral:Xe}},optimizeSurrogateMappings=function(ce){for(var ze,Ve,qe,Ye,We,Xe,Qe=[],ot=[],st=!1,mt=-1,gt=ce.length;++mt1&&(ce=kt.call(arguments)),this instanceof regenerate?(this.data=[],ce?this.add(ce):this):(new regenerate).add(ce)};regenerate.version="1.4.2";var Et=regenerate.prototype;!function(ce,ze){var Ve;for(Ve in ze)Ct.call(ze,Ve)&&(ce[Ve]=ze[Ve])}(Et,{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=kt.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=kt.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(vt,"\\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)}}),Et.toArray=Et.valueOf,void 0===(Ye=function(){return regenerate}.call(ze,Ve,ze,ce))||(ce.exports=Ye)}()}).call(this,Ve(309)(ce),Ve(143))},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]},Xe=Ve(273),Qe=Ve(11)},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 rr})),Ve.d(ze,"CircularProgressbar",(function(){return dr})),Ve.d(ze,"CroppedText",(function(){return ur.a})),Ve.d(ze,"DatePicker",(function(){return pr.a})),Ve.d(ze,"Dialog",(function(){return vr.a})),Ve.d(ze,"Divider",(function(){return _r.a})),Ve.d(ze,"DropdownButton",(function(){return Rr.a})),Ve.d(ze,"Email",(function(){return Cr.a})),Ve.d(ze,"FileUploadButton",(function(){return Vr})),Ve.d(ze,"Form",(function(){return qr.a})),Ve.d(ze,"GhostIndicator",(function(){return Yr.a})),Ve.d(ze,"Grid",(function(){return Ur.a})),Ve.d(ze,"Heading",(function(){return Wr.a})),Ve.d(ze,"Icon",(function(){return Qe.a})),Ve.d(ze,"ImageRectangleSelection",(function(){return ko})),Ve.d(ze,"InfiniteScroller",(function(){return Fo})),Ve.d(ze,"Input",(function(){return Bo.a})),Ve.d(ze,"Loader",(function(){return To.a})),Ve.d(ze,"Matrix",(function(){return Rs})),Ve.d(ze,"Menu",(function(){return Cs.a})),Ve.d(ze,"Masonry",(function(){return ns})),Ve.d(ze,"MultiItemSelection",(function(){return Ds.a})),Ve.d(ze,"MultiSelect",(function(){return ks.a})),Ve.d(ze,"Navigation",(function(){return Cl})),Ve.d(ze,"Number",(function(){return Dl.a})),Ve.d(ze,"Overlay",(function(){return kl.a})),Ve.d(ze,"Phone",(function(){return Sl.a})),Ve.d(ze,"Popover",(function(){return xl.a})),Ve.d(ze,"PublishIndicator",(function(){return El.a})),Ve.d(ze,"RectangleSelection",(function(){return _o})),Ve.d(ze,"ResourceLocator",(function(){return Ol.a})),Ve.d(ze,"SingleSelect",(function(){return Pl.a})),Ve.d(ze,"Table",(function(){return Tl.a})),Ve.d(ze,"Tabs",(function(){return Oc})),Ve.d(ze,"Toggler",(function(){return Mc.a})),Ve.d(ze,"Toolbar",(function(){return jc.a})),Ve.d(ze,"Url",(function(){return Lc.a})),Ve.d(ze,"withContainerSize",(function(){return en}));var qe=Ve(63),Ye=Ve(275),We=Ve(0),Xe=Ve.n(We),Qe=Ve(19),ot="item--JBXEuBcQDf";class st extends Xe.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 Xe.a.createElement("button",{className:ot,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var mt="breadcrumb--jdrCHACx20",gt="arrow--lv7hi+9eWz";class yt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Xe.a.Children.count(ce);return Xe.a.Children.map(ce,((ce,Ve)=>{const qe=Ve===ze-1;return Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{value:ce.props.value,onClick:qe?void 0:this.handleItemClick}),!qe&&Xe.a.createElement(Qe.a,{className:gt,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Xe.a.createElement("ul",{className:mt},ze)}}yt.Item=st;var bt=yt,vt=Ve(39),wt=Ve(358),Ct=Ve(105),Dt=Ve(3),kt=Ve(1),St=Ve(216),xt=Ve(251),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),We=null),We}var Pt,Tt,Lt,Ft,Bt,Ht,Vt,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,Qe=Object(Dt.b)((Ve=class extends Xe.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 Xe.a.createElement("div",{className:We,ref:this.readContainerDimensions},Xe.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 Qe.displayName=Object(St.a)("withContainerSize",ce),Qe},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),We=null),We}let Sn=Object(Dt.b)((Qt=class extends Xe.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",Ht,this),this.setCircleRef=ce=>{this.circleRef=ce},ModifiableCircle_initializerDefineProperty(this,"handleMoveMouseDown",Vt,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:Qe}=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 Xe.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:Qe+"px",width:ot+"px",height:ot+"px"}},!!Ve&&Xe.a.createElement("div",{className:wn,style:{fontSize:`${st}px`}},Ve),!!ze&&!ce&&Xe.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}}),Ht=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),Vt=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:Xe,clientY:Qe}=ce,ot=Xe-qe,st=Qe-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),We=null),We}var Yn,Un,Kn,Gn="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),We=null),We}let Zn=Object(Dt.b)((Kn=class ce extends Xe.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:Xe}=ce;if(!ze||!Ve)return[];const Qe=[new Tn(ze,Ve)];return Xe&&Qe.push(new Fn(ze,Ve,qe,Ye)),We&&Qe.push(new Ln),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,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:ot,radius:st}=this.value,mt=Xe.a.createElement(En,{disabled:ze,label:Ve,left:Qe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:qe,radius:st,resizable:Ye,skin:We,top:ot});return ce?Xe.a.createElement("div",{className:Jn},ce,mt):mt}},Kn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((Un=Kn).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 Xe.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 Xe.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return Xe.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 er extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Xn,this.props):Xe.a.createElement(Zn,this.props)}}const tr=en(er,Gn);class nr extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(tr,this.props):Xe.a.createElement(er,this.props)}}nr.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1};var rr=nr,ar=Ve(631),sr={root:"root--yJll1ztQzl",path:"path--swUm4jqYBg",trail:"trail--6CBMlsbgTS",text:"text--90c8fP1XQV",background:"background--nDHRRoQPng"};class lr extends Xe.a.PureComponent{constructor(){super(...arguments),this.handlePercentageText=ce=>{const{hidePercentageText:ze}=this.props;return ze?null:`${ce}%`}}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Xe.a.createElement("div",{style:Ve},Xe.a.createElement(ar.a,{background:!0,classes:{root:sr.root,path:sr.path,tail:sr.tail,text:sr.text,background:sr.background},percentage:ze,textForPercentage:this.handlePercentageText}))}}lr.defaultProps={hidePercentageText:!1,percentage:0,size:100};var dr=lr,ur=Ve(186),pr=Ve(318),vr=Ve(96),_r=Ve(547),Rr=Ve(750),Cr=Ve(593),Dr=Ve(213);class Er extends Xe.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 Xe.a.createElement(Dr.a,{accept:Ye,onDrop:this.handleDrop,style:{}},(Ye=>{let{getInputProps:We,getRootProps:Qe}=Ye;return Xe.a.createElement("div",Qe(),Xe.a.createElement(vt.a,{disabled:ze,icon:Ve,skin:qe},ce),Xe.a.createElement("input",We()))}))}}Er.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0};var Tr,Mr,Ar,jr,Lr,zr,Ir,Br,Nr,Hr,Vr=Er,qr=Ve(81),Yr=Ve(359),Ur=Ve(161),Wr=Ve(548),$r=Ve(9),Kr=Ve.n($r),Gr=Ve(11),Jr="rectangle--066hwsjKmr",Zr="disabled--gHK2SgRPMj",ei="has-backdrop--GXF0k4lKKe",si="backdrop--3-j6ARYoaR",_i="label--H0eMjOOEFh",Ri="resize-handle--JBEXrm+Q04",Ci="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),We=null),We}let Di=Object(Dt.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ModifiableRectangle_initializerDefineProperty(this,"moveMode",Ar,this),ModifiableRectangle_initializerDefineProperty(this,"resizeMode",jr,this),ModifiableRectangle_initializerDefineProperty(this,"clickAnchor",Lr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMoveMouseDown",zr,this),ModifiableRectangle_initializerDefineProperty(this,"handleResizeMouseDown",Ir,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseUp",Br,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseMove",Nr,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:Qe,top:ot,width:st}=this.props,mt=ln()(Jr,{[Zr]:ze,[ei]:!!ce});return Xe.a.createElement(We.Fragment,null,Xe.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&&Xe.a.createElement("div",{className:si,style:{outlineWidth:ce+"px"}}),!!qe&&Xe.a.createElement("div",{className:_i,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},qe),!ze&&Xe.a.createElement("div",{className:Ri,onMouseDown:this.handleResizeMouseDown,role:"slider"})),Qe&&Xe.a.createElement("div",{className:Ci,style:{left:Ye+"px",top:ot+Ve+"px",width:st+"px"}},Object(Gr.b)("sulu_media.min_size_notification")))}},Hr.defaultProps={backdropSize:0,left:0,top:0},Ar=ModifiableRectangle_applyDecoratedDescriptor((Mr=Hr).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Mr.prototype,"setClickAnchor"),Mr.prototype),zr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Ir=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Br=ModifiableRectangle_applyDecoratedDescriptor(Mr.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())}}}),Nr=ModifiableRectangle_applyDecoratedDescriptor(Mr.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}))}}}),Tr=Mr))||Tr;var Ei=Di;class Oi{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 Ti{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 ga{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class ya{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),We=null),We}var ba,va,_a,wa="container--U70ucJ+wc+",ka="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),We=null),We}let xa=Object(Dt.b)((_a=class ce extends Xe.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 Xe=[new ya(ze,Ve,qe,Ye)];return qe&&Ye&&Xe.push(new Ti(ze,Ve,qe,Ye)),Xe.push(new Oi(ze,Ve)),We&&Xe.push(new ga),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}=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 Xe.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}(xa);class Ba extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Aa,this.props):Xe.a.createElement(xa,this.props)}}const Ja=en(Ba,wa);class io extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(Ja,this.props):Xe.a.createElement(Ba,this.props)}}io.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1};var po,ho,go,_o=io;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),We=null),We}let Co=Object(Dt.b)((ho=class extends Xe.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=go)&&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=()=>Kr.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 Xe.a.createElement(_o,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},Xe.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},go=ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"imageLoaded",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageHeight"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinDimensions",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinDimensions"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinHeight"),ho.prototype),po=ho))||po;var ko=en(Co,"container--Vv0ZpcwdCq"),Oo=Ve(49),Po=Ve.n(Oo),To=Ve(52),Ao="indicator--KaLifLf2++";class jo extends Xe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Po()((()=>{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=Xe.a.createElement(To.a,null):ze===ce&&(Ye=Object(Gr.b)("sulu_admin.reached_end_of_list")),Xe.a.createElement("section",{ref:this.setRef},Xe.a.createElement("div",null,qe),Xe.a.createElement("div",{className:Ao},Ye))}}jo.defaultProps={loading:!1};var Fo=jo,Bo=Ve(54),Ho=Ve(632),Vo=Ve.n(Ho),Uo=Ve(633),Wo=Ve.n(Uo),$o="masonry--AWozSpqC-B";const es={gutter:30,transitionDuration:250};class ts extends Xe.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 Wo.a(this.masonryRef,es),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:es.gutter};return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",{style:ze},Xe.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})),Xe=Ve.filter((ce=>!We.includes(ce)));qe.length>0&&this.masonry.remove(qe),Xe.length>0&&this.masonry.appended(Xe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(qe.length>0||Xe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Vo()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Xe.a.createElement("div",{className:$o,ref:this.setMasonryRef},ze)}}var ns=ts,rs=Ve(6),os="item--xqojrTMDhX",ss="selected--dRsgDHpFpR",ls="disabled--sAd25lN6SW";class cs extends Xe.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()(os,{[ss]:Ye,[ls]:ce}),ot=qe||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Xe.a.createElement("div",{className:We,onClick:ce?void 0:this.handleClick,title:ot},Xe.a.createElement(Qe.a,{name:ze}))}}cs.defaultProps={disabled:!1,value:!1};var ds,us,ps,hs="row--aSlrhfNwZ1",fs="name--XxJtvn4FEr",ms="items--pLW+pKD8EA",gs="row-button--MQ+s7gSvc-";let ys=Object(Dt.b)((ps=class extends Xe.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 Xe.a.Children.map(ce,((ce,qe)=>Xe.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={};Xe.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 Xe.a.createElement("button",{className:gs,onClick:this.handleAllButtonClick,type:"button"},Object(rs.translate)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:qe}=this.props;return Xe.a.createElement("tr",{className:hs},Xe.a.createElement("td",{className:fs},qe||Ve),Xe.a.createElement("td",{className:ms},this.cloneItems(ze),!ce&&this.renderAllButton()))}},ps.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),We=null),We}((us=ps).prototype,"allItemsDeactivated",[kt.computed],Object.getOwnPropertyDescriptor(us.prototype,"allItemsDeactivated"),us.prototype),ds=us))||ds;var bs=ys,vs="matrix--AvkqDmcoBh",_s="disabled--ctmi-wsXx1";class ws extends Xe.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 Xe.a.Children.map(ce,((ce,qe)=>Xe.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()(vs,ze,{[_s]:Ve});return Xe.a.createElement("table",{className:qe},Xe.a.createElement("tbody",null,this.cloneRows(ce)))}}ws.defaultProps={disabled:!1,values:{}},ws.Row=bs,ws.Item=cs;var Rs=ws,Cs=Ve(317),Ds=Ve(291),ks=Ve(190),Ss="item--OZf49536VS",xs="active--7AESPQFbWN",Es="title--pwfeVsTsX8",Os="icon--VGpoIA5pHd",Ps="text--QSD5XTiAMJ",Ts="children-indicator--+ALd8XzkJU";class Ms extends Xe.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&&Xe.a.Children.forEach(ze,(ce=>{ce.props.active&&(Ye=!0)}));const We=ln()(Ss,{[xs]:Ye});return Xe.a.createElement("div",{className:We},Xe.a.createElement("button",{className:Es,onClick:this.handleClick,type:"button"},qe&&Xe.a.createElement(Qe.a,{className:Os,name:qe}),Xe.a.createElement("span",{className:Ps},ce),ze&&Xe.a.createElement(Qe.a,{className:Ts,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Xe.a.createElement("div",null,ze))}}var As,js,Ls,zs,Is,Fs="navigation--8H2kpS4qdT",Bs="header--EP70Fxerc5",Ns="logo--JGrymgcOg0",Hs="pin--H9rumr9SnA",Vs="active--uqqICUi6mh",qs="pin-icon--CQ9DYaBJoV",Ys="items--wUmdQ3WTD-",Us="footer--KYLSJTz8-J",Ws="user-section--B6KDHCygo4",$s="button--1Ce5e4ygu1",Ks="active--BOepQBpCBt",Gs="user-image--igQVt-0Nnf",Js="image--Lt+8aE7b1z",Zs="placeholder--+LSyot+SQF",Xs="username--hvs-izEVXU",Qs="menu--XI3C9Cf-03",pl="open--1k+3dWcBsr",gl="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),We=null),We}let yl=Object(Dt.b)((js=class extends Xe.a.Component{constructor(){super(...arguments),UserSection_initializerDefineProperty(this,"open",Ls,this),UserSection_initializerDefineProperty(this,"handleButtonClick",zs,this),UserSection_initializerDefineProperty(this,"close",Is,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()(Qs,this.open&&pl),qe=ln()($s,this.open&&Ks);return Xe.a.createElement("div",{className:Ws},Xe.a.createElement("button",{className:qe,onClick:this.handleButtonClick,type:"button"},Xe.a.createElement("div",{className:Gs},ze&&Xe.a.createElement("img",{alt:ce,className:Js,src:ze,title:ce}),!ze&&Xe.a.createElement(Qe.a,{className:Zs,name:"su-user"})),Xe.a.createElement("span",{className:Xs},ce),Xe.a.createElement(Qe.a,{name:this.open?"su-angle-down":"su-angle-up"})),Xe.a.createElement("div",{className:Ve,hidden:!this.open},Xe.a.createElement(vt.a,{className:gl,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.edit_profile")),Xe.a.createElement(vt.a,{className:gl,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.logout"))))}},Ls=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}}}),Is=UserSection_applyDecoratedDescriptor(js.prototype,"close",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),As=js))||As;var bl,vl,_l,wl,Rl=yl;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),We=null),We}var Cl=Object(Dt.b)(((wl=class extends Xe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,qe,Ye;super(ce),ze=this,Ve="expandedChild",Ye=this,(qe=_l)&&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;Xe.a.Children.forEach(ce,(ce=>{ce.props.children&&Xe.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 Xe.a.Children.map(this.props.children,(ce=>Xe.a.cloneElement(ce,{children:ce.props.children?Xe.a.Children.map(ce.props.children,(ce=>{if(ce)return Xe.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,{[Vs]:ce});return Xe.a.createElement("div",{className:Fs},Xe.a.createElement("div",{className:Bs},Xe.a.createElement("span",{className:Ns,title:We},Xe.a.createElement(Qe.a,{name:"su-sulu-logo"})),ot&&Xe.a.createElement("button",{className:st,onClick:this.handlePinToggle,type:"button"},Xe.a.createElement(Qe.a,{className:qs,name:"su-stick-right"}))),Xe.a.createElement("div",{className:Ys},this.cloneChildren()),Xe.a.createElement("div",{className:Us},Xe.a.createElement(Rl,{onLogoutClick:qe,onProfileClick:Ye,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},wl.Item=Ms,_l=Navigation_applyDecoratedDescriptor((vl=wl).prototype,"expandedChild",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(vl.prototype,"setExpandedChild",[kt.action],Object.getOwnPropertyDescriptor(vl.prototype,"setExpandedChild"),vl.prototype),bl=vl))||bl,Dl=Ve(366),kl=Ve(127),Sl=Ve(594),xl=Ve(128),El=Ve(168),Ol=Ve(549),Pl=Ve(31),Tl=Ve(90),Ml={tab:"tab--rWvejpn6nW",selected:"selected--syqy7rGSiD",hidden:"hidden--g+9vlGHUBA",inline:"inline--RUXsRQRjRM",badges:"badges---IFZroBxKO"};class Al extends Xe.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()(Ml.tab,Ml[qe],{[Ml.hidden]:Ve,[Ml.selected]:Ye});return Xe.a.createElement("li",{className:We,ref:this.setTabRef},Xe.a.createElement("button",{disabled:Ye,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Xe.a.createElement("div",{className:Ml.badges},ce)))}}Al.defaultProps={badges:[],hidden:!1,selected:!1};var jl=Al,Ll="collapsed-tab--HFh4Nvw6ES";class zl extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Xe.a.createElement("li",{className:Ll},Xe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var Il={"collapsed-tab-list":"collapsed-tab-list--YnrB-ina1D",collapsedTabList:"collapsed-tab-list--YnrB-ina1D",root:"root--v1XyosJxtJ",inline:"inline--5hFyCj368E"};class Fl extends Xe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ln()(Il.collapsedTabList,Il[ze]);return Xe.a.createElement("ul",{className:Ve},ce)}}var Bl,Nl,Hl,Vl,Ul,Wl,$l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc={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),We=null),We}let Ec=Object(Dt.b)((_c=class extends Xe.a.Component{constructor(){super(...arguments),Tabs_initializerDefineProperty(this,"tabsWidth",Hl,this),Tabs_initializerDefineProperty(this,"tabsContainerWrapperWidth",Vl,this),Tabs_initializerDefineProperty(this,"tabsContainerWidth",Ul,this),Tabs_initializerDefineProperty(this,"tabWidths",Wl,this),Tabs_initializerDefineProperty(this,"tabRefs",$l,this),Tabs_initializerDefineProperty(this,"dropdownOpen",ec,this),Tabs_initializerDefineProperty(this,"lastSelectedIndex",nc,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",ic,this),Tabs_initializerDefineProperty(this,"setTabsContainerWrapperWidth",oc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWidth",lc,this),Tabs_initializerDefineProperty(this,"updateTabWidths",pc,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},Tabs_initializerDefineProperty(this,"setTabRef",hc,this),Tabs_initializerDefineProperty(this,"handleDropdownToggle",fc,this),Tabs_initializerDefineProperty(this,"handleDropdownClose",mc,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},Tabs_initializerDefineProperty(this,"handleCollapsedTabClick",gc,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Xe.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(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(Po()(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 Xe.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 Xe.a.Children.map(ce,((ce,Ye)=>{const We=ze[Ye];if(!ce)return null;const Qe=this.isSelected(We);return Xe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:We,selected:Qe,type:qe,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Xe.a.Children.map(ce,((ce,Ve)=>{const qe=ze[Ve];return ce?Xe.a.createElement(zl,{index:qe,key:qe,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ln()(kc.tabs,kc[ce],ze);return Xe.a.createElement("div",{className:Ve,ref:this.setTabsRef},Xe.a.createElement("div",{className:kc.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Xe.a.createElement("ul",{className:kc.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Xe.a.createElement(Xe.a.Fragment,null,Xe.a.createElement("button",{className:kc.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Xe.a.createElement(Qe.a,{name:"su-more-horizontal"})),Xe.a.createElement(xl.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Xe.a.createElement("div",{ref:ze,style:Ve},Xe.a.createElement(Fl,{type:ce},this.createCollapsedTabs()))))))}},_c.Tab=jl,Hl=Tabs_applyDecoratedDescriptor((Nl=_c).prototype,"tabsWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWrapperWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ul=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Wl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabWidths",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),$l=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabRefs",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ec=Tabs_applyDecoratedDescriptor(Nl.prototype,"dropdownOpen",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nc=Tabs_applyDecoratedDescriptor(Nl.prototype,"lastSelectedIndex",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=Tabs_applyDecoratedDescriptor(Nl.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))}}}),oc=Tabs_applyDecoratedDescriptor(Nl.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)}}}),lc=Tabs_applyDecoratedDescriptor(Nl.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)}}}),pc=Tabs_applyDecoratedDescriptor(Nl.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)}))}}}),hc=Tabs_applyDecoratedDescriptor(Nl.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)}}}),fc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownToggle",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),mc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),gc=Tabs_applyDecoratedDescriptor(Nl.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(Nl.prototype,"visibleTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"visibleTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"collapsedTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"collapsedTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"hasCollapsedTabs",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"hasCollapsedTabs"),Nl.prototype),Bl=Nl))||Bl;var Oc=Ec,Mc=Ve(187),jc=Ve(142),Lc=Ve(360)},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/framework/guides/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(We,Xe){"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"];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(ce,ze){for(var qe=0;qe=0&&Ve<=Xe.levels.SILENT))throw"log.setLevel() called with invalid level: "+Ve;if(We=Ve,!1!==qe&&persistLevelIfPossible(Ve),replaceLoggingMethods.call(Xe,Ve,ze),typeof console===ce&&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={};function addUnitAlias(ce,ze){var Ve=ce.toLowerCase();kt[Ve]=kt[Ve+"s"]=kt[ze]=ce}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={};function addUnitPriority(ce,ze){St[ce]=ze}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}function isLeapYear(ce){return ce%4==0&&ce%100!=0||ce%400==0}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}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){return ce.isValid()?ce._d["get"+(ce._isUTC?"UTC":"")+ze]():NaN}function set$1(ce,ze,Ve){ce.isValid()&&!isNaN(Ve)&&("FullYear"===ze&&isLeapYear(ce.year())&&1===ce.month()&&29===ce.date()?(Ve=toInt(Ve),ce._d["set"+(ce._isUTC?"UTC":"")+ze](Ve,ce.month(),daysInMonth(Ve,ce.month()))):ce._d["set"+(ce._isUTC?"UTC":"")+ze](Ve))}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;Ve68?1900:2e3)};var tr=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(ce,ze,Ve,qe,Ye,We,Xe){var Qe;return ce<100&&ce>=0?(Qe=new Date(ce+400,ze,Ve,qe,Ye,We,Xe),isFinite(Qe.getFullYear())&&Qe.setFullYear(ce)):Qe=new Date(ce,ze,Ve,qe,Ye,We,Xe),Qe}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,Xe,Qe=1+7*(ze-1)+(7+Ve-qe)%7+firstWeekOffset(ce,qe,Ye);return Qe<=0?Xe=daysInYear(We=ce-1)+Qe:Qe>daysInYear(ce)?(We=ce+1,Xe=Qe-daysInYear(ce)):(We=ce,Xe=Qe),{year:We,dayOfYear:Xe}}function weekOfYear(ce,ze,Ve){var qe,Ye,We=firstWeekOffset(ce.year(),ze,Ve),Xe=Math.floor((ce.dayOfYear()-We-1)/7)+1;return Xe<1?qe=Xe+weeksInYear(Ye=ce.year()-1,ze,Ve):Xe>weeksInYear(ce.year(),ze,Ve)?(qe=Xe-weeksInYear(ce.year(),ze,Ve),Ye=ce.year()+1):(Ye=ce.year(),qe=Xe),{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"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",Bt),addRegexToken("ww",Bt,Pt),addRegexToken("W",Bt),addRegexToken("WW",Bt,Pt),addWeekParseToken(["w","ww","W","WW"],(function(ce,ze,Ve,qe){ze[qe.substr(0,1)]=toInt(ce)}));var nr={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"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),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 rr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ar="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lr=gn,dr=gn,ur=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,Xe=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=wn.call(this._weekdaysParse,Xe))?Ye:null:"ddd"===ze?-1!==(Ye=wn.call(this._shortWeekdaysParse,Xe))?Ye:null:-1!==(Ye=wn.call(this._minWeekdaysParse,Xe))?Ye:null:"dddd"===ze?-1!==(Ye=wn.call(this._weekdaysParse,Xe))||-1!==(Ye=wn.call(this._shortWeekdaysParse,Xe))||-1!==(Ye=wn.call(this._minWeekdaysParse,Xe))?Ye:null:"ddd"===ze?-1!==(Ye=wn.call(this._shortWeekdaysParse,Xe))||-1!==(Ye=wn.call(this._weekdaysParse,Xe))||-1!==(Ye=wn.call(this._minWeekdaysParse,Xe))?Ye:null:-1!==(Ye=wn.call(this._minWeekdaysParse,Xe))||-1!==(Ye=wn.call(this._weekdaysParse,Xe))||-1!==(Ye=wn.call(this._shortWeekdaysParse,Xe))?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=this._isUTC?this._d.getUTCDay():this._d.getDay();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=lr),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=dr),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=ur),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=[],Xe=[],Qe=[],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),Xe.push(qe),Qe.push(Ye),ot.push(Ve),ot.push(qe),ot.push(Ye);We.sort(cmpLenRev),Xe.sort(cmpLenRev),Qe.sort(cmpLenRev),ot.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+ot.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Xe.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),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",Bt),addRegexToken("h",Bt),addRegexToken("k",Bt),addRegexToken("HH",Bt,Pt),addRegexToken("hh",Bt,Pt),addRegexToken("kk",Bt,Pt),addRegexToken("hmm",Ht),addRegexToken("hmmss",Vt),addRegexToken("Hmm",Ht),addRegexToken("Hmmss",Vt),addParseToken(["H","HH"],Tn),addParseToken(["k","kk"],(function(ce,ze,Ve){var qe=toInt(ce);ze[Tn]=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[Tn]=toInt(ce),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Tn]=toInt(ce.substr(0,qe)),ze[Ln]=toInt(ce.substr(qe)),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Tn]=toInt(ce.substr(0,qe)),ze[Ln]=toInt(ce.substr(qe,2)),ze[Fn]=toInt(ce.substr(Ye)),getParsingFlags(Ve).bigHour=!0})),addParseToken("Hmm",(function(ce,ze,Ve){var qe=ce.length-2;ze[Tn]=toInt(ce.substr(0,qe)),ze[Ln]=toInt(ce.substr(qe))})),addParseToken("Hmmss",(function(ce,ze,Ve){var qe=ce.length-4,Ye=ce.length-2;ze[Tn]=toInt(ce.substr(0,qe)),ze[Ln]=toInt(ce.substr(qe,2)),ze[Fn]=toInt(ce.substr(Ye))}));var pr=/[ap]\.?m?\.?/i,vr=makeGetSet("Hours",!0);function localeMeridiem(ce,ze,Ve){return ce>11?Ve?"pm":"PM":Ve?"am":"AM"}var _r,Rr={calendar:ot,longDateFormat:bt,invalidDate:vt,ordinal:wt,dayOfMonthOrdinalParse:Ct,relativeTime:Dt,months:Gn,monthsShort:Jn,week:nr,weekdays:rr,weekdaysMin:sr,weekdaysShort:ar,meridiemParse:pr},Cr={},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 _r}function isLocaleNameSane(ce){return null!=ce.match("^[^/\\\\]*$")}function loadLocale(ze){var qe=null;if(void 0===Cr[ze]&&void 0!==ce&&ce&&ce.exports&&isLocaleNameSane(ze))try{qe=_r._abbr,Ve(1747)("./"+ze),getSetGlobalLocale(qe)}catch(ce){Cr[ze]=null}return Cr[ze]}function getSetGlobalLocale(ce,ze){var Ve;return ce&&((Ve=isUndefined(ze)?getLocale(ce):defineLocale(ce,ze))?_r=Ve:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ce+" not found. Did you forget to load it?")),_r._abbr}function defineLocale(ce,ze){if(null!==ze){var Ve,qe=Rr;if(ze.abbr=ce,null!=Cr[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=Cr[ce]._config;else if(null!=ze.parentLocale)if(null!=Cr[ze.parentLocale])qe=Cr[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 Cr[ce]=new Locale(mergeConfigs(qe,ze)),Dr[ce]&&Dr[ce].forEach((function(ce){defineLocale(ce.name,ce.config)})),getSetGlobalLocale(ce),Cr[ce]}return delete Cr[ce],null}function updateLocale(ce,ze){if(null!=ze){var Ve,qe,Ye=Rr;null!=Cr[ce]&&null!=Cr[ce].parentLocale?Cr[ce].set(mergeConfigs(Cr[ce]._config,ze)):(null!=(qe=loadLocale(ce))&&(Ye=qe._config),ze=mergeConfigs(Ye,ze),null==qe&&(ze.abbr=ce),(Ve=new Locale(ze)).parentLocale=Cr[ce],Cr[ce]=Ve),getSetGlobalLocale(ce)}else null!=Cr[ce]&&(null!=Cr[ce].parentLocale?(Cr[ce]=Cr[ce].parentLocale,ce===getSetGlobalLocale()&&getSetGlobalLocale(ce)):null!=Cr[ce]&&delete Cr[ce]);return Cr[ce]}function getLocale(ce){var ze;if(ce&&ce._locale&&ce._locale._abbr&&(ce=ce._locale._abbr),!ce)return _r;if(!isArray(ce)){if(ze=loadLocale(ce))return ze;ce=[ce]}return chooseLocale(ce)}function listLocales(){return Xe(Cr)}function checkOverflow(ce){var ze,Ve=ce._a;return Ve&&-2===getParsingFlags(ce).overflow&&(ze=Ve[Sn]<0||Ve[Sn]>11?Sn:Ve[En]<1||Ve[En]>daysInMonth(Ve[Cn],Ve[Sn])?En:Ve[Tn]<0||Ve[Tn]>24||24===Ve[Tn]&&(0!==Ve[Ln]||0!==Ve[Fn]||0!==Ve[Yn])?Tn:Ve[Ln]<0||Ve[Ln]>59?Ln:Ve[Fn]<0||Ve[Fn]>59?Fn:Ve[Yn]<0||Ve[Yn]>999?Yn:-1,getParsingFlags(ce)._overflowDayOfYear&&(zeEn)&&(ze=En),getParsingFlags(ce)._overflowWeeks&&-1===ze&&(ze=Un),getParsingFlags(ce)._overflowWeekday&&-1===ze&&(ze=Kn),getParsingFlags(ce).overflow=ze),ce}var Er=/^\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)?)?$/,Tr=/^\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)?)?$/,Mr=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["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]],jr=[["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/]],Lr=/^\/?Date\((-?\d+)/i,zr=/^(?:(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}))$/,Ir={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,Xe,Qe=ce._i,ot=Er.exec(Qe)||Tr.exec(Qe),st=Ar.length,mt=jr.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[Sn]=Ve.getUTCMonth(),ce._a[En]=Ve.getUTCDate()),ze=0;ze<3&&null==ce._a[ze];++ze)ce._a[ze]=Xe[ze]=qe[ze];for(;ze<7;ze++)ce._a[ze]=Xe[ze]=null==ce._a[ze]?2===ze?1:0:ce._a[ze];24===ce._a[Tn]&&0===ce._a[Ln]&&0===ce._a[Fn]&&0===ce._a[Yn]&&(ce._nextDay=!0,ce._a[Tn]=0),ce._d=(ce._useUTC?createUTCDate:createDate).apply(null,Xe),Ye=ce._useUTC?ce._d.getUTCDay():ce._d.getDay(),null!=ce._tzm&&ce._d.setUTCMinutes(ce._d.getUTCMinutes()-ce._tzm),ce._nextDay&&(ce._a[Tn]=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,Xe,Qe,ot,st;null!=(ze=ce._w).GG||null!=ze.W||null!=ze.E?(We=1,Xe=4,Ve=defaults(ze.GG,ce._a[Cn],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,Xe=ce._locale._week.doy,st=weekOfYear(createLocal(),We,Xe),Ve=defaults(ze.gg,ce._a[Cn],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,Xe)?getParsingFlags(ce)._overflowWeeks=!0:null!=ot?getParsingFlags(ce)._overflowWeekday=!0:(Qe=dayOfYearFromWeeks(Ve,qe,Ye,We,Xe),ce._a[Cn]=Qe.year,ce._dayOfYear=Qe.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,Xe,Qe,ot=""+ce._i,mt=ot.length,gt=0;for(Qe=(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[Tn]<=12&&!0===getParsingFlags(ce).bigHour&&ce._a[Tn]>0&&(getParsingFlags(ce).bigHour=void 0),getParsingFlags(ce).parsedDateParts=ce._a.slice(0),getParsingFlags(ce).meridiem=ce._meridiem,ce._a[Tn]=meridiemFixWrap(ce._locale,ce._a[Tn],ce._meridiem),null!==(Xe=getParsingFlags(ce).era)&&(ce._a[Cn]=ce._locale.erasConvertYear(Xe,ce._a[Cn])),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,Xe,Qe=!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 qr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yr=/^(-|\+)?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,Xe=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):(Xe=qr.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:0,d:toInt(Xe[En])*Ve,h:toInt(Xe[Tn])*Ve,m:toInt(Xe[Ln])*Ve,s:toInt(Xe[Fn])*Ve,ms:toInt(absRound(1e3*Xe[Yn]))*Ve}):(Xe=Yr.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:parseIso(Xe[2],Ve),M:parseIso(Xe[3],Ve),w:parseIso(Xe[4],Ve),d:parseIso(Xe[5],Ve),h:parseIso(Xe[6],Ve),m:parseIso(Xe[7],Ve),s:parseIso(Xe[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),Xe=absRound(ze._months);ce.isValid()&&(qe=null==qe||qe,Xe&&setMonth(ce,get(ce,"Month")+Xe*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||Xe))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var Ur=createAdder(1,"add"),Wr=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"],Xe=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 $r=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 Kr=1e3,Gr=60*Kr,Jr=60*Gr,Zr=3506328*Jr;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)-Zr:new Date(ce,ze,Ve).valueOf()}function utcStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?Date.UTC(ce+400,ze,Ve)-Zr: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()*Gr),Jr);break;case"minute":ze=this._d.valueOf(),ze-=mod$1(ze,Gr);break;case"second":ze=this._d.valueOf(),ze-=mod$1(ze,Kr)}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+=Jr-mod$1(ze+(this._isUTC?0:this.utcOffset()*Gr),Jr)-1;break;case"minute":ze=this._d.valueOf(),ze+=Gr-mod$1(ze,Gr)-1;break;case"second":ze=this._d.valueOf(),ze+=Kr-mod$1(ze,Kr)-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),Xe=createUTCDate(We.year,0,We.dayOfYear);return this.year(Xe.getUTCFullYear()),this.month(Xe.getUTCMonth()),this.date(Xe.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"],Cn),addParseToken(["yo"],(function(ce,ze,Ve,qe){var Ye;Ve._locale._eraYearOrdinalRegex&&(Ye=ce.match(Ve._locale._eraYearOrdinalRegex)),Ve._locale.eraYearOrdinalParse?ze[Cn]=Ve._locale.eraYearOrdinalParse(ce,Ye):ze[Cn]=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"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),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"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",Et),addParseToken("Q",(function(ce,ze){ze[Sn]=3*(toInt(ce)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",Bt),addRegexToken("DD",Bt,Pt),addRegexToken("Do",(function(ce,ze){return ce?ze._dayOfMonthOrdinalParse||ze._ordinalParse:ze._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],En),addParseToken("Do",(function(ce,ze){ze[En]=toInt(ce.match(Bt)[0])}));var ei=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"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",Ut),addRegexToken("DDDD",Tt),addParseToken(["DDD","DDDD"],(function(ce,ze,Ve){Ve._dayOfYear=toInt(ce)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",Bt),addRegexToken("mm",Bt,Pt),addParseToken(["m","mm"],Ln);var si=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",Bt),addRegexToken("ss",Bt,Pt),addParseToken(["s","ss"],Fn);var _i,Ri,Ci=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()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",Ut,Et),addRegexToken("SS",Ut,Pt),addRegexToken("SSS",Ut,Tt),_i="SSSS";_i.length<=9;_i+="S")addRegexToken(_i,Qt);function parseMs(ce,ze){ze[Yn]=toInt(1e3*("0."+ce))}for(_i="S";_i.length<=9;_i+="S")addParseToken(_i,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}Ri=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Di=Moment.prototype;function createUnix(ce){return createLocal(1e3*ce)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(ce){return ce}Di.add=Ur,Di.calendar=calendar$1,Di.clone=clone,Di.diff=diff,Di.endOf=endOf,Di.format=format,Di.from=from,Di.fromNow=fromNow,Di.to=to,Di.toNow=toNow,Di.get=stringGet,Di.invalidAt=invalidAt,Di.isAfter=isAfter,Di.isBefore=isBefore,Di.isBetween=isBetween,Di.isSame=isSame,Di.isSameOrAfter=isSameOrAfter,Di.isSameOrBefore=isSameOrBefore,Di.isValid=isValid$2,Di.lang=$r,Di.locale=locale,Di.localeData=localeData,Di.max=Nr,Di.min=Br,Di.parsingFlags=parsingFlags,Di.set=stringSet,Di.startOf=startOf,Di.subtract=Wr,Di.toArray=toArray,Di.toObject=toObject,Di.toDate=toDate,Di.toISOString=toISOString,Di.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Di[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Di.toJSON=toJSON,Di.toString=toString,Di.unix=unix,Di.valueOf=valueOf,Di.creationData=creationData,Di.eraName=getEraName,Di.eraNarrow=getEraNarrow,Di.eraAbbr=getEraAbbr,Di.eraYear=getEraYear,Di.year=tr,Di.isLeapYear=getIsLeapYear,Di.weekYear=getSetWeekYear,Di.isoWeekYear=getSetISOWeekYear,Di.quarter=Di.quarters=getSetQuarter,Di.month=getSetMonth,Di.daysInMonth=getDaysInMonth,Di.week=Di.weeks=getSetWeek,Di.isoWeek=Di.isoWeeks=getSetISOWeek,Di.weeksInYear=getWeeksInYear,Di.weeksInWeekYear=getWeeksInWeekYear,Di.isoWeeksInYear=getISOWeeksInYear,Di.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,Di.date=ei,Di.day=Di.days=getSetDayOfWeek,Di.weekday=getSetLocaleDayOfWeek,Di.isoWeekday=getSetISODayOfWeek,Di.dayOfYear=getSetDayOfYear,Di.hour=Di.hours=vr,Di.minute=Di.minutes=si,Di.second=Di.seconds=Ci,Di.millisecond=Di.milliseconds=Ri,Di.utcOffset=getSetOffset,Di.utc=setOffsetToUTC,Di.local=setOffsetToLocal,Di.parseZone=setOffsetToParsedOffset,Di.hasAlignedHourOffset=hasAlignedHourOffset,Di.isDST=isDaylightSavingTime,Di.isLocal=isLocal,Di.isUtcOffset=isUtcOffset,Di.isUtc=isUtc,Di.isUTC=isUtc,Di.zoneAbbr=getZoneAbbr,Di.zoneName=getZoneName,Di.dates=deprecate("dates accessor is deprecated. Use date instead.",ei),Di.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Di.years=deprecate("years accessor is deprecated. Use year instead",tr),Di.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Di.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var Ei=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(),Xe=ce?We._week.dow:0,Qe=[];if(null!=Ve)return get$1(ze,(Ve+Xe)%7,qe,"day");for(Ye=0;Ye<7;Ye++)Qe[Ye]=get$1(ze,(Ye+Xe)%7,qe,"day");return Qe}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")}Ei.calendar=calendar,Ei.longDateFormat=longDateFormat,Ei.invalidDate=invalidDate,Ei.ordinal=ordinal,Ei.preparse=preParsePostFormat,Ei.postformat=preParsePostFormat,Ei.relativeTime=relativeTime,Ei.pastFuture=pastFuture,Ei.set=set,Ei.eras=localeEras,Ei.erasParse=localeErasParse,Ei.erasConvertYear=localeErasConvertYear,Ei.erasAbbrRegex=erasAbbrRegex,Ei.erasNameRegex=erasNameRegex,Ei.erasNarrowRegex=erasNarrowRegex,Ei.months=localeMonths,Ei.monthsShort=localeMonthsShort,Ei.monthsParse=localeMonthsParse,Ei.monthsRegex=monthsRegex,Ei.monthsShortRegex=monthsShortRegex,Ei.week=localeWeek,Ei.firstDayOfYear=localeFirstDayOfYear,Ei.firstDayOfWeek=localeFirstDayOfWeek,Ei.weekdays=localeWeekdays,Ei.weekdaysMin=localeWeekdaysMin,Ei.weekdaysShort=localeWeekdaysShort,Ei.weekdaysParse=localeWeekdaysParse,Ei.weekdaysRegex=weekdaysRegex,Ei.weekdaysShortRegex=weekdaysShortRegex,Ei.weekdaysMinRegex=weekdaysMinRegex,Ei.isPM=localeIsPM,Ei.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 Oi=Math.abs;function abs(){var ce=this._data;return this._milliseconds=Oi(this._milliseconds),this._days=Oi(this._days),this._months=Oi(this._months),ce.milliseconds=Oi(ce.milliseconds),ce.seconds=Oi(ce.seconds),ce.minutes=Oi(ce.minutes),ce.hours=Oi(ce.hours),ce.months=Oi(ce.months),ce.years=Oi(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,Xe=this._days,Qe=this._months,ot=this._data;return We>=0&&Xe>=0&&Qe>=0||We<=0&&Xe<=0&&Qe<=0||(We+=864e5*absCeil(monthsToDays(Qe)+Xe),Xe=0,Qe=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,Xe+=absFloor(Ve/24),Qe+=Ye=absFloor(daysToMonths(Xe)),Xe-=absCeil(monthsToDays(Ye)),qe=absFloor(Qe/12),Qe%=12,ot.days=Xe,ot.months=Qe,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 valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(ce){return function(){return this.as(ce)}}var Ti=makeAs("ms"),ga=makeAs("s"),ya=makeAs("m"),ba=makeAs("h"),va=makeAs("d"),_a=makeAs("w"),wa=makeAs("M"),ka=makeAs("Q"),xa=makeAs("y");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 Aa=makeGetter("milliseconds"),Ba=makeGetter("seconds"),Ja=makeGetter("minutes"),io=makeGetter("hours"),po=makeGetter("days"),ho=makeGetter("months"),go=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var _o=Math.round,Co={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=_o(Ye.as("s")),Xe=_o(Ye.as("m")),Qe=_o(Ye.as("h")),ot=_o(Ye.as("d")),st=_o(Ye.as("M")),mt=_o(Ye.as("w")),gt=_o(Ye.as("y")),yt=We<=Ve.ss&&["s",We]||We0,yt[4]=qe,substituteTimeAgo.apply(null,yt)}function getSetRelativeTimeRounding(ce){return void 0===ce?_o:"function"==typeof ce&&(_o=ce,!0)}function getSetRelativeTimeThreshold(ce,ze){return void 0!==Co[ce]&&(void 0===ze?Co[ce]:(Co[ce]=ze,"s"===ce&&(Co.ss=ze-1),!0))}function humanize(ce,ze){if(!this.isValid())return this.localeData().invalidDate();var Ve,qe,Ye=!1,We=Co;return"object"==typeof ce&&(ze=ce,ce=!1),"boolean"==typeof ce&&(Ye=ce),"object"==typeof ze&&(We=Object.assign({},Co,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 ko=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,Xe,Qe,ot=ko(this._milliseconds)/1e3,st=ko(this._days),mt=ko(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)?"-":"",Xe=sign(this._days)!==sign(gt)?"-":"",Qe=sign(this._milliseconds)!==sign(gt)?"-":"",Ye+"P"+(Ve?We+Ve+"Y":"")+(mt?We+mt+"M":"")+(st?Xe+st+"D":"")+(ze||ce||ot?"T":"")+(ze?Qe+ze+"H":"")+(ce?Qe+ce+"M":"")+(ot?Qe+qe+"S":"")):"P0D"}var Oo=Duration.prototype;return Oo.isValid=isValid$1,Oo.abs=abs,Oo.add=add$1,Oo.subtract=subtract$1,Oo.as=as,Oo.asMilliseconds=Ti,Oo.asSeconds=ga,Oo.asMinutes=ya,Oo.asHours=ba,Oo.asDays=va,Oo.asWeeks=_a,Oo.asMonths=wa,Oo.asQuarters=ka,Oo.asYears=xa,Oo.valueOf=valueOf$1,Oo._bubble=bubble,Oo.clone=clone$1,Oo.get=get$2,Oo.milliseconds=Aa,Oo.seconds=Ba,Oo.minutes=Ja,Oo.hours=io,Oo.days=po,Oo.weeks=weeks,Oo.months=ho,Oo.years=go,Oo.humanize=humanize,Oo.toISOString=toISOString$1,Oo.toString=toISOString$1,Oo.toJSON=toISOString$1,Oo.locale=locale,Oo.localeData=localeData,Oo.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Oo.lang=$r,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.29.4",setHookCallback(createLocal),hooks.fn=Di,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=Di,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(309)(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(652);let Xe;function setTranslations(ce,ze){Xe=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 Xe&&ce in Xe?Xe[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 setTranslations})),Ve.d(ze,"b",(function(){return translate}));var qe=Ve(9),Ye=Ve.n(qe),We=Ve(652);let Xe;function setTranslations(ce,ze){Xe=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 Xe&&ce in Xe?Xe[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";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";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(18),Ye=Ve(154),We=Ve(8),Xe=Ve(89);class Qe{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(Xe.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 Qe(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new Qe(ce.end,this.end))):ze.push(new Qe(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 Qe(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 Qe(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 Qe(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 Qe(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 Qe(this.start,this.end)]}getTransformedByOperations(ce){const ze=[new Qe(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 Qe(ze,Ve)}_getTransformedByMergeOperation(ce){if(this.start.isEqual(ce.targetPosition)&&this.end.isEqual(ce.deletionPosition))return new Qe(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 Qe(ze,Ve)):new Qe(ze,Ve)}_getTransformedByInsertion(ce,ze){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(ce))return[new Qe(this.start,ce),new Qe(ce.getShiftedBy(ze),this.end._getTransformedByInsertion(ce,ze))];{const Ve=new Qe(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 Qe(qe)]}const Ye=Qe._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 Qe(qe,Ye)]}let Xe;const ot=this.getDifference(Ye);let st=null;const mt=this.getIntersection(Ye);if(1==ot.length?st=new Qe(ot[0].start._getTransformedByDeletion(ce,Ve),ot[0].end._getTransformedByDeletion(ce,Ve)):2==ot.length&&(st=new Qe(this.start,this.end._getTransformedByDeletion(ce,Ve))),Xe=st?st._getTransformedByInsertion(We,Ve,null!==mt||qe):[],mt){const ce=new Qe(mt.start._getCombined(Ye.start,We),mt.end._getCombined(Ye.start,We));2==Xe.length?Xe.splice(1,0,ce):Xe.push(ce)}return Xe}_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 Qe(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(Xe.a)(ce,leaveDOMReferences)}function leaveDOMReferences(ce){return Object(Qe.a)(ce)?ce:void 0}var st=Ve(124),mt=Ve(8),gt=Ve(37),yt=Ve(24);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 Xe=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(Xe,"init").then((()=>initPlugins(Xe,"afterInit"))).then((()=>Xe));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(597);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(347),Dt=Ve(513);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(41),Ft=Ve(350);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.commands=new kt,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),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)}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 Ht{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 Vt=Ve(113);class Ut{constructor(ce){this.editor=ce,this.componentFactory=new Ht(ce),this.focusTracker=new Vt.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(374);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(500);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(640),ln=Ve(641);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";Ve.r(ze);var qe=Ve(355);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"d",(function(){return getTextNodeAtPosition})),Ve.d(ze,"b",(function(){return getNodeAfterPosition})),Ve.d(ze,"c",(function(){return getNodeBeforePosition}));var qe=Ve(154),Ye=Ve(89),We=Ve(8);Ve(312);class Xe{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=Xe._createAt(this),Ve=Xe._createAt(ce);break;case"after":ze=Xe._createAt(ce),Ve=Xe._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=Xe._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)?Xe._createAt(ce.deletionPosition):this._getTransformedByMove(ce.deletionPosition,ce.graveyardPosition,1),Ve}_getTransformedByDeletion(ce,ze){const Ve=Xe._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=Xe._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 Xe)return new Xe(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 Xe(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 Xe(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.startOffset{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(351),Ve(12))},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ReactCSS=ze.loop=ze.handleActive=ze.handleHover=ze.hover=void 0;var qe=_interopRequireDefault(Ve(1784)),Ye=_interopRequireDefault(Ve(1787)),We=_interopRequireDefault(Ve(1805)),Xe=_interopRequireDefault(Ve(1806)),Qe=_interopRequireDefault(Ve(1807)),ot=_interopRequireDefault(Ve(1808));function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}}ze.hover=Xe.default,ze.handleHover=Xe.default,ze.handleActive=Qe.default,ze.loop=ot.default;var st=ze.ReactCSS=function ReactCSS(ce){for(var ze=arguments.length,Ve=Array(ze>1?ze-1:0),Xe=1;Xe1?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){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(225),Ye=Ve(89),We=Ve(8),Xe=Ve(384);Ve(312);class Qe{constructor(ce,ze){this.parent=ce,this.offset=ze}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const ce=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===ce}get root(){return this.parent.root}get editableElement(){let ce=this.parent;for(;!(ce instanceof Xe.a);){if(!ce.parent)return null;ce=ce.parent}return ce}getShiftedBy(ce){const ze=Qe._createAt(this),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}getLastMatchingPosition(ce){let ze=arguments.length>1&&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 Qe(this.parent,this.offset)}static _createAt(ce,ze){if(ce instanceof Qe)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 Qe(Ve,ze)}}static _createAfter(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText+ce.data.length);if(!ce.parent)throw new We.a("view-position-after-root",ce,{root:ce});return new Qe(ce.parent,ce.index+1)}static _createBefore(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText);if(!ce.parent)throw new We.a("view-position-before-root",ce,{root:ce});return new Qe(ce.parent,ce.index)}}},function(ce,ze,Ve){var qe;!function(Ye,We,Xe){if(Ye){for(var Qe,ot={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"},st={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mt={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},gt={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},yt=1;yt<20;++yt)ot[111+yt]="f"+yt;for(yt=0;yt<=9;++yt)ot[yt+96]=yt.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)&&(ot[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 ot[ce.which]?ot[ce.which]:st[ce.which]?st[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={},ot)ce>95&&ce<112||ot.hasOwnProperty(ce)&&(Qe[ot[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,Qe,Ve,qe):(Xe=_getKeyInfo(ce,qe),ze._callbacks[Xe.key]=ze._callbacks[Xe.key]||[],_getMatches(Xe.key,Xe.modifiers,{type:Xe.action},Ye,ce,We),ze._callbacks[Xe.key][Ye?"unshift":"push"]({callback:Ve,modifiers:Xe.modifiers,action:Xe.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{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,Xe.a),Object(st.a)(gt,Qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(41),Ye=Ve(24);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(1748);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{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),st.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),ot.b.post(ot.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=Qe()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});ot.b.patch(ot.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}get systemLocale(){return this.user?this.user.locale:ot.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Et);if(ce)return ce;const{localizations:ze}=xt,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:ot.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(Et,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),ot.b.post(ot.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),ot.b.post(ot.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return ot.b.get(ot.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)}}).prototype,"persistentSettings",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),vt=userStore_applyDecoratedDescriptor(yt.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),wt=userStore_applyDecoratedDescriptor(yt.prototype,"contact",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ct=userStore_applyDecoratedDescriptor(yt.prototype,"loggedIn",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=userStore_applyDecoratedDescriptor(yt.prototype,"loading",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=userStore_applyDecoratedDescriptor(yt.prototype,"loginError",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=userStore_applyDecoratedDescriptor(yt.prototype,"forgotPasswordSuccess",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),userStore_applyDecoratedDescriptor(yt.prototype,"clear",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"clear"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"systemLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"systemLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoggedIn",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoggedIn"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoading",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoading"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoginError",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoginError"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setForgotPasswordSuccess",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForgotPasswordSuccess"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"contentLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"contentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setUser",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setUser"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"updateContentLocale",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"updateContentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setContact",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setContact"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setFullName",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setFullName"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setPersistentSetting",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPersistentSetting"),yt.prototype),yt);ze.a=Pt},function(ce,ze,Ve){"use strict";var qe=Ve(439);ze.a=qe.a},function(ce,ze,Ve){"use strict";var qe=Ve(224);Ve.d(ze,"a",(function(){return qe.a}));Ve(367);var Ye=Ve(45);Ve.d(ze,"d",(function(){return Ye.b})),Ve.d(ze,"c",(function(){return Ye.a}));var We=Ve(98);Ve.d(ze,"b",(function(){return We.a}));Ve(111)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return io.b})),Ve.d(ze,"c",(function(){return io.a})),Ve.d(ze,"a",(function(){return Bs.b})),Ve.d(ze,"d",(function(){return ec.a})),Ve.d(ze,"i",(function(){return Bs.c})),Ve.d(ze,"j",(function(){return Bs.d})),Ve.d(ze,"e",(function(){return $l})),Ve.d(ze,"f",(function(){return nc.a})),Ve.d(ze,"g",(function(){return ic.a})),Ve.d(ze,"k",(function(){return yl})),Ve.d(ze,"h",(function(){return oc.a}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(9),Xe=Ve.n(We),Qe=Ve(656),ot=Ve(661),st=Ve(662),mt=Ve(651),gt=Ve(653),yt=Ve(663),bt=Ve(654),vt=Ve(357),wt=Ve(664),Ct=Ve(665),Dt=Ve(666),kt=Ve(667),St=Ve(657),xt=Ve(650),Et=Ve(676),Pt=Ve(11),Tt=Ve(3),Lt=Ve(1),Ft=Ve(28),Bt=Ve(50),Ht=Ve(136),Vt=Ve(204),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(27);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(78);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(361);var mn=Ve(96),gn=Ve(81),bn=Ve(54),wn=Ve(31);Ye.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn=Ve(673),Zn=Ve(360);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),We=null),We}var Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=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",Kn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Gn,this),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}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,open:Xe,target:Qe,title:ot,href:st}=this.props;return Ye.a.createElement(mn.a,{cancelText:Object(Wt.translate)("sulu_admin.cancel"),confirmDisabled:!st,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(Zn.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:Qe},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(Jn.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:ot}))))}},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}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),Cn=Sn))||Cn,vr=Ve(141);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),We=null),We}const _r="_self",Rr="target",Cr="title",Dr="url",Er="externalLinkHref",Tr="externalLinkTarget",Mr="externalLinkTitle",Ar="a";let jr=(Xn=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",nr,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",rr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",ar,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",sr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",lr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",dr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",ur,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Ht.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(Tr),this.title=ce.getAttribute(Mr),this.url=ce.getAttribute(Er),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(pr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[Er]:Dr,[Tr]:Rr,[Mr]:Cr},Dr)),this.editor.commands.add("externalUnlink",new ln(this.editor,[Er,Tr,Mr])),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=_r,this.title=void 0,this.url=void 0}))),ze})),addLinkConversion(this.editor,Ar,Tr,"target"),addLinkConversion(this.editor,Ar,Er,"href"),addLinkConversion(this.editor,Ar,Mr,"title");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ar);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}},er=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _r}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[Rr]:this.target,[Cr]:this.title,[Dr]:this.url}),this.open=!1}}}),sr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),lr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),dr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),ur=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),Xn);var Lr,zr,Ir,Br,Nr,Hr,Vr,qr,Yr,Ur,Wr,$r,Kr=jr,Gr=Ve(278),Jr=Ve(271),Zr=Ve(185);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),We=null),We}const ei="_self",si="target",_i="href",Ri="provider",Ci="title",Di="defaultText",Ei="internalLinkHref",Oi="internalLinkTarget",Ti="internalLinkProvider",ga="internalLinkTitle",ya="validationState",ba="sulu-link";let va=(Lr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"title",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Ur,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Wr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",$r,this)}get internalLinkTypes(){return vr.default.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,anchor:ze}=this;return ce?ze?ce+"#"+ze.replace(/^#+/g,""):ce:null}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Ht.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)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor),ze=ce.getAttribute(Ei).split("#",2),Ve=ze[0]||null,qe=ze[1]||null;this.id=isNaN(Ve)?Ve:parseInt(Ve),this.anchor=qe,this.target=ce.getAttribute(Oi),this.title=ce.getAttribute(ga),this.openOverlay=ce.getAttribute(Ti),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=vr.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,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:vr.default.getOptions(ze),target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[Ei]:_i,[Oi]:si,[ga]:Ci,[Ti]:Ri},Di)),this.editor.commands.add("internalUnlink",new ln(this.editor,[Oi,ga,Ei,ya,Ti])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Zr.c)(ce),Ve=new Gr.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:vr.default.getTitle(ze),withText:!0});const Ye=new Jr.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=ei,this.title=void 0,this.id=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,ya,"sulu-validation-state"),addLinkConversion(this.editor,ba,Ti,"provider"),addLinkConversion(this.editor,ba,Oi,"target"),addLinkConversion(this.editor,ba,ga,"title"),addLinkConversion(this.editor,ba,Ei,"href");const ze=this.editor.editing.view;ze.addObserver(Vt.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}},zr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ei}}),Br=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"internalLinkTypes"),Lr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"href"),Lr.prototype),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[_i]:this.href,[Ri]:this.openOverlay,selection:this.selection,[si]:this.target,[Ci]:this.title,[Di]:this.defaultText}),this.openOverlay=void 0}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Wr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),$r=InternalLinkPlugin_applyDecoratedDescriptor(Lr.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}}}),Lr);var _a=va;var wa=new class{constructor(){this.clear()}clear(){this.configs=[]}add(ce){this.configs.push(ce)}};var ka=new class{constructor(){this.clear()}clear(){this.plugins=[]}add(ce){this.plugins.push(ce)}};class xa 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;this.editorInstance.isReadOnly=ze,ze?this.editorInstance.ui.element.classList.add("disabled"):this.editorInstance.ui.element.classList.remove("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:[Qe.a,ot.a,mt.a,Kr,gt.a,_a,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ka.plugins],...wa.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;this.editorInstance.isReadOnly=ze,ze&&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=>{Xe.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})}}xa.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""};var Aa,Ba,Ja,io=Ve(122);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),We=null),We}let po=(Aa=class{constructor(){blockPreviewTransformerRegistry_initializerDefineProperty(this,"blockPreviewTransformers",Ba,this),blockPreviewTransformerRegistry_initializerDefineProperty(this,"priority",Ja,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]))}},Ba=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformers",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ja=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"priority",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority",[Lt.computed],Object.getOwnPropertyDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority"),Aa.prototype),Aa);var ho=new po,go=Ve(22),_o=Ve.n(go),Co=Ve(29),ko=Ve.n(Co),Oo=Ve(39),Po=Ve(62),To=Ve(5),Ao=Ve.n(To),jo=Ve(19),Fo="block--r5AwkIkGuy",Bo="expanded--01smYmWYgZ",Ho="children--hbmzvF4fF5",Vo="header--OspPZgJWkG",Uo="icons--rzCLkMTLhR",Wo="handle--j8uhPR0+Uz",$o="content--Up7oqHiSdO",es="types--06XY8IuEHj",ts="type--h9anPode67",ns="icon-buttons--2H8iA5fPOP";class rs extends Ye.a.Component{constructor(){super(...arguments),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)}}render(){const{activeType:ce,children:ze,dragHandle:Ve,icons:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,types:mt}=this.props,gt=this.props.expanded||!Xe&&!Qe,yt=Ao()(Fo,{[Bo]:gt});return Ye.a.createElement("section",{className:yt,onClick:this.handleExpand,role:"switch"},Ve&&Ye.a.createElement("div",{className:Wo},Ve),Ye.a.createElement("div",{className:$o},Ye.a.createElement("header",{className:Vo},gt?Ye.a.createElement(qe.Fragment,null,mt&&Object.keys(mt).length>1&&Ye.a.createElement("div",{className:es},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:Uo},We.map((ce=>Ye.a.createElement(jo.a,{key:ce,name:ce})))),Ye.a.createElement("div",{className:ns},st&&Ye.a.createElement(jo.a,{name:"su-cog",onClick:st}),ot&&Ye.a.createElement(jo.a,{name:"su-trash-alt",onClick:ot}),Xe&&Qe&&Ye.a.createElement(jo.a,{name:"su-angle-up",onClick:this.handleCollapse}))):Ye.a.createElement(qe.Fragment,null,We&&Ye.a.createElement("div",{className:Uo},We.map((ce=>Ye.a.createElement(jo.a,{key:ce,name:ce})))),mt&&ce&&Ye.a.createElement("div",{className:ts},mt[ce]),Xe&&Qe&&Ye.a.createElement(jo.a,{name:"su-angle-down"}))),Ye.a.createElement("article",{className:Ho},ze)))}}var os=rs,ss="sortableHandle--xA6rKMQ7Pq",ls=Object(Po.c)((()=>Ye.a.createElement(jo.a,{className:ss,name:"su-more"})));class cs extends Ye.a.Component{constructor(){super(...arguments),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.handleRemove=()=>{const{sortIndex:ce,onRemove:ze}=this.props;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)}}render(){const{activeType:ce,expanded:ze,icons:Ve,movable:qe=!0,onCollapse:We,onExpand:Xe,onRemove:Qe,onSettingsClick:ot,renderBlockContent:st,sortIndex:mt,types:gt,value:yt}=this.props;return Ye.a.createElement(os,{activeType:ce,dragHandle:qe&&Ye.a.createElement(ls,null),expanded:ze,icons:Ve,onCollapse:We?this.handleCollapse:void 0,onExpand:Xe?this.handleExpand:void 0,onRemove:Qe?this.handleRemove:void 0,onSettingsClick:ot&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,types:gt},st(yt,ce,mt,ze))}}var ds,us,ps=Object(Po.b)(cs),hs="sortableBlockList--QsHZHQJiOS",fs="disabled--G6bSSDFTya";let ms=Object(Tt.b)((us=class extends Ye.a.Component{constructor(){super(...arguments),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleRemove=ce=>{const{onRemove: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)}}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:qe,movable:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,renderBlockContent:mt,types:gt,value:yt}=this.props,bt=Ao()(hs,{[fs]:ce});return Ye.a.createElement("div",{className:bt},yt&&yt.map(((yt,bt)=>Ye.a.createElement(ps,{activeType:yt.type,expanded:!ce&&ze[bt],icons:qe&&qe[bt],index:bt,key:Ve[bt],movable:We,onCollapse:Xe?this.handleCollapse:void 0,onExpand:Qe?this.handleExpand:void 0,onRemove:ot?this.handleRemove:void 0,onSettingsClick:st?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,renderBlockContent:mt,sortIndex:bt,types:gt,value:yt}))))}},us.defaultProps={disabled:!1,movable:!0},ds=us))||ds;var gs,ys,bs,vs,_s,ws,Rs,Cs,Ds,ks,Ss,xs=Object(Po.a)(ms),Es="blockCollection--WmS4og7c6B";function BlockCollection_initializerDefineProperty(ce,ze,Ve,qe){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0})}function BlockCollection_applyDecoratedDescriptor(ce,ze,Ve,qe,Ye){var We={};return Object.keys(qe).forEach((function(ce){We[ce]=qe[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,qe){return qe(ce,ze,Ve)||Ve}),We),Ye&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(Ye):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Os=Object(Tt.b)(((Ss=class ce extends Ye.a.Component{constructor(ze){super(ze),BlockCollection_initializerDefineProperty(this,"generatedBlockIds",bs,this),BlockCollection_initializerDefineProperty(this,"expandedBlocks",vs,this),this.fillArrays=()=>{const{collapsable:ze,defaultType:Ve,onChange:qe,minOccurs:Ye,value:We}=this.props,{expandedBlocks:Xe,generatedBlockIds:Qe}=this;if(!We)return;Xe.length>We.length&&Xe.splice(We.length),Qe.length>We.length&&Qe.splice(We.length);const ot=!ze;Xe.push(...new Array(We.length-Xe.length).fill(ot)),Qe.push(...new Array(We.length-Qe.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",_s,this),BlockCollection_initializerDefineProperty(this,"handleRemoveBlock",ws,this),BlockCollection_initializerDefineProperty(this,"handleSortEnd",Rs,this),BlockCollection_initializerDefineProperty(this,"handleCollapse",Cs,this),BlockCollection_initializerDefineProperty(this,"handleExpand",Ds,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},BlockCollection_initializerDefineProperty(this,"handleTypeChange",ks,this),this.fillArrays(),Object(Lt.reaction)((()=>this.props.value.length),this.fillArrays)}hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}render(){const{addButtonText:ce,collapsable:ze,disabled:Ve,icons:qe,movable:We,onSettingsClick:Xe,renderBlockContent:Qe,types:ot,value:st}=this.props;return Ye.a.createElement("section",{className:Es},Ye.a.createElement(xs,{disabled:Ve,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:qe,lockAxis:"y",movable:We,onCollapse:ze?this.handleCollapse:void 0,onExpand:ze?this.handleExpand:void 0,onRemove:this.hasMinimumReached()?void 0:this.handleRemoveBlock,onSettingsClick:Xe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,renderBlockContent:Qe,types:ot,useDragHandle:!0,value:st}),Ye.a.createElement(Oo.a,{disabled:Ve||this.hasMaximumReached(),icon:"su-plus",onClick:this.handleAddBlock,skin:"secondary"},ce||Object(Pt.b)("sulu_admin.add_block")))}}).idCounter=0,Ss.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},bs=BlockCollection_applyDecoratedDescriptor((ys=Ss).prototype,"generatedBlockIds",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"expandedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_s=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleAddBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultType:ce,onChange:ze,value:Ve}=this.props;if(this.hasMaximumReached())throw new Error("The maximum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.push(!0),this.generatedBlockIds.push(++Os.idCounter),ze([...Ve,{type:ce}]))}}}),ws=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleRemoveBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(this.hasMinimumReached())throw new Error("The minimum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.splice(ce,1),this.generatedBlockIds.splice(ce,1),ze(Ve.filter(((ze,Ve)=>Ve!=ce))))}}}),Rs=BlockCollection_applyDecoratedDescriptor(ys.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.generatedBlockIds=Object(Wt.arrayMove)(this.generatedBlockIds,Ve,ze),qe(Object(Wt.arrayMove)(We,Ve,ze)),Ye&&Ye(Ve,ze)}}}),Cs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleCollapse",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Ds=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleExpand",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),ks=BlockCollection_applyDecoratedDescriptor(ys.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)}}}),gs=ys))||gs;var Ps,Ts,Ms,As,js,Ls,zs,Is,Fs=Os,Bs=Ve(110),Ns=Ve(668),Hs=Ve(111);class Vs 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:Xe,router:Qe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt}=this.props;return Ye.a.createElement(Bs.a,{data:ce,dataPath:ze,errors:Ve,formInspector:qe,onChange:this.handleChange,onFieldFinish:We,onSuccess:Xe,router:Qe,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),We=null),We}Vs.defaultProps={showAllErrors:!1};const qs='The "block" field type needs at least one type to be configured!',Ys="sulu.block_preview",Us="settings";Object(Tt.b)((Ts=class extends Ye.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Ms,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",As,this),FieldBlocks_initializerDefineProperty(this,"value",js,this),FieldBlocks_initializerDefineProperty(this,"setValue",Ls,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:qe}=this.props,Ye=this.value;if(!Ye)return;const We=Object(Lt.toJS)(Ye);ko.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(qs);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:Xe,formInspector:Qe,onFinish:ot,onSuccess:st,router:mt,schemaPath:gt,showAllErrors:yt}=this.props,bt=this.getBlockSchemaType(ze),vt=Object(Lt.toJS)(Xe);return Ye.a.createElement(Vs,{data:qe,dataPath:We+"/"+Ve,errors:vt&&vt.length>Ve&&vt[Ve]?vt[Ve]:void 0,formInspector:Qe,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),Xe=this.removeSections(We.form),Qe=Object.keys(Xe).filter((ze=>{const Ve=Xe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===Ys))})).sort(((ce,ze)=>{const Ve=Xe[ce].tags,qe=Xe[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===Ys)),We=qe.find((ce=>ce.name===Ys));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===Qe.length)for(const ze of ho.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Xe))if(Xe[Ve].type===ze&&ce[Ve]){Qe.push(Ve);break}if(Qe.length>=3)break}return Ye.a.createElement(qe.Fragment,null,Qe.map((ze=>ho.has(Xe[ze].type)&&ce[ze]&&Ye.a.createElement(qe.Fragment,{key:ze},ho.get(Xe[ze].type).transform(ce[ze],Xe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",zs,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Is,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],[Us]:Ve.data},...ze.slice(qe+1)];this.setValue(Ye),ce(Ye)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Bs.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(qs);let Xe=Object(Lt.toJS)(Ye);if(Xe&&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.");Xe=Xe.map((ce=>qe[ce.type]?ce:{...ce,type:ze}))}_o()(Object(Lt.toJS)(Ye),Xe)||Ve(Xe)}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 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(!ko.a.has(ze,Ye))return Ve;const We=ko.a.get(ze,Ye);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(qe+"/items/"),Ve);const Xe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Xe&&(Ve["/settings/"+qe]=Xe.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)=>(ko.a.has(ce,Ve)&&ko.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,Xe=this.value||[],Qe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!We)throw new Error(qs);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(Fs,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:qe,movable:this.movable,onChange:this.handleBlocksChange,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,renderBlockContent:this.renderBlockContent,types:ot,value:Xe}),void 0!==this.openedBlockSettingsIndex&&Qe&&Ye.a.createElement(Ns.a,{confirmDisabled:!Qe.dirty,confirmText:Object(Pt.b)("sulu_admin.apply"),formStore:Qe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Qe,size:"small",title:Object(Pt.b)("sulu_admin.block_settings")}))}},Ms=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"openedBlockSettingsIndex",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),As=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"blockSettingsFormStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),js=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"value",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"componentDidMount",[Lt.action],Object.getOwnPropertyDescriptor(Ts.prototype,"componentDidMount"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"settingsFormKey",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"settingsFormKey"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"addButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"addButtonText"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"collapsable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"collapsable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"movable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"movable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"iconsMapping",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"iconsMapping"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"icons",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"icons"),Ts.prototype),Ls=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"setValue",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),zs=FieldBlocks_applyDecoratedDescriptor(Ts.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=Bs.c.createFromFormKey(Ve,{...this.value[ce][Us]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Is=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"closeSettingsOverlay",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),Ps=Ts));Ve(10);Ve(385);var Ws=new class{constructor(){this.clear()}clear(){this.views={}}add(ce,ze){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}};var $s,Ks,Gs,Js=Ve(51);Object(Tt.b)((Ks=class extends Ye.a.Component{constructor(){var ce,ze,Ve,qe;super(...arguments),ce=this,ze="loginCount",qe=this,(Ve=Gs)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.getView=ce=>{const ze=Ws.get(ce.type);if(!ze)throw new Error('View "'+ce.type+'" has not been found');return ze}}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:qe,route:Ye}=ce;return Object(Hs.a)(ze,Ve)!==Object(Hs.a)(Ye,qe)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(Lt.reaction)((()=>Js.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=this.getView(ce);let We=Object(Hs.a)(ce,Ve.attributes)||"";qe.remountViewOnLogin&&(We=We+"__"+this.loginCount);const Xe=Ye.a.createElement(qe,{isRootView:!ce.parent,key:We,route:ce,router:Ve},(ce=>ze?Ye.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Xe):Xe}render(){return this.renderView(this.props.router.route)}},Gs=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),We=null),We}(Ks.prototype,"loginCount",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$s=Ks));var Zs,Xs,Qs,pl;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),We=null),We}const gl=["small","medium","large"];var yl=new(Xs=sidebarStore_applyDecoratedDescriptor((Zs=class{constructor(){sidebarStore_initializerDefineProperty(this,"view",Xs,this),sidebarStore_initializerDefineProperty(this,"props",Qs,this),sidebarStore_initializerDefineProperty(this,"size",pl,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||gl,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=gl,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}),Qs=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"props",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pl=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"size",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"clearConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"enabled",[Lt.computed],Object.getOwnPropertyDescriptor(Zs.prototype,"enabled"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setSize",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setSize"),Zs.prototype),Zs);var bl,vl=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}},_l="sidebar--pPa79zWXAx";Object(Tt.b)(bl=class extends Ye.a.Component{render(){if(!yl.view||vl.isDisabled(yl.view))return null;const ce=vl.get(yl.view),{className:ze}=this.props,Ve=Ao()(_l,ze);return Ye.a.createElement("aside",{className:Ve},Ye.a.createElement(ce,yl.props))}}),Ve(216);var wl,Rl,Cl=Ve(142),Dl=Ve(327);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),We=null),We}let kl=(Rl=ToolbarStore_applyDecoratedDescriptor((wl=class{constructor(){var ce,ze,Ve,qe;ce=this,ze="config",qe=this,(Ve=Rl)&&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 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",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"setConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"clearConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"disableAll",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"disableAll"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"errors",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"errors"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"warnings",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"warnings"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"showSuccess",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"showSuccess"),wl.prototype),wl);const Sl="default";var xl,El,Ol,Pl,Tl=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 kl;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)}}},Ml="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),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]:Sl;Tl.hasStore(ce)?ze.toolbarStore=Tl.getStore(ce):ze.toolbarStore=Tl.createStore(ce)},Ve=this,qe="handleErrorSnackbarCloseClick",We=this,(Ye=Ol)&&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:Xe}=this.toolbarStore,Qe=this.toolbarStore.getIconsConfig(),ot=this.toolbarStore.getItemsConfig(),st=this.toolbarStore.getLocaleConfig();return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(Dl.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),Ye.a.createElement(Dl.a,{message:Xe[Xe.length-1],type:"warning",visible:Xe.length>0}),Ye.a.createElement(Cl.a,null,Ye.a.createElement(Cl.a.Controls,{grow:!0},!!ce&&Ye.a.createElement(Cl.a.Button,{disabled:!ce,icon:We?Al:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:We}),!!this.backButtonConfig&&Ye.a.createElement(Cl.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&We?Al:"su-angle-left",success:!ce&&We})),ot.length>0&&Ye.a.createElement(Cl.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),Ye.a.createElement(Cl.a.Controls,null,Qe.length>0&&Ye.a.createElement(Cl.a.Icons,null,Qe.map((ce=>Object(Lt.toJS)(ce)))),!!st&&Ye.a.createElement(Cl.a.Select,_extends({className:Ml,size:"small"},st)))))}},Pl.defaultProps={navigationOpen:!1},Ol=Toolbar_applyDecoratedDescriptor((El=Pl).prototype,"handleErrorSnackbarCloseClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),Toolbar_applyDecoratedDescriptor(El.prototype,"disableAllButtons",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"disableAllButtons"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"backButtonConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"backButtonConfig"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"itemsConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"itemsConfig"),El.prototype),xl=El));Ve(551);var Il,Fl,Bl,Nl,Hl,Vl=Ve(190),Ul=Ve(184),Wl=Ve(52);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),We=null),We}var $l=Object(Tt.b)(((Hl=class extends Ye.a.Component{constructor(ce){super(ce),ResourceMultiSelect_initializerDefineProperty(this,"resourceListStore",Bl,this),ResourceMultiSelect_initializerDefineProperty(this,"createResourceListStore",Nl,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:Xe,values:Qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Ye.a.createElement(Wl.a,{size:30}):Ye.a.createElement(Vl.a,{allSelectedText:ce,disabled:ze,noneSelectedText:We,onChange:this.handleChange,onClose:Xe,values:Qe},this.resourceListStore.data.map(((ce,ze)=>Ye.a.createElement(Vl.a.Option,{key:ze,value:ce[qe]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Bl=ResourceMultiSelect_applyDecoratedDescriptor((Fl=Hl).prototype,"resourceListStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=ResourceMultiSelect_applyDecoratedDescriptor(Fl.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 Ul.a(ze,qe,ce)}}}),Il=Fl))||Il,ec=(Ve(527),Ve(274),Ve(368)),nc=(Ve(550),Ve(529)),ic=Ve(243),oc=Ve(425)},function(ce,ze,Ve){"use strict";var qe=Ve(315);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!==Qe[0]&&2!==Qe[0])){Xe=0;continue}if(3===Qe[0]&&(!Ye||Qe[1]>Ye[0]&&Qe[1]0)&&!(qe=We.next()).done;)Xe.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 Xe}function __spread(){for(var ce=[],ze=0;ze2&&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[Qe]||(this[Qe]={});const Xe=this[Qe];_getEmitterId(ce)||_setEmitterId(ce);const ot=_getEmitterId(ce);(qe=Xe[ot])||(qe=Xe[ot]={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[Qe];let Ye=ce&&_getEmitterId(ce);const We=qe&&Ye&&qe[Ye],Xe=We&&ze&&We.callbacks[ze];if(!(!qe||ce&&!We||ze&&!Xe))if(Ve){removeEventListener(this,ce,ze,Ve);-1!==Xe.indexOf(Ve)&&(1===Xe.length?delete We.callbacks[ze]:removeEventListener(this,ce,ze,Ve))}else if(Xe){for(;Ve=Xe.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[Qe]}},fire(ce){try{const We=ce instanceof qe.a?ce:new qe.a(this,ce),Xe=We.name;let Qe=getCallbacksForEvent(this,Xe);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=We.a.get(Ve.priority),Xe={callback:ze,priority:Ye};for(const ce of qe){let ze=!1;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=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"f",(function(){return Qe})),Ve.d(ze,"a",(function(){return getCode})),Ve.d(ze,"g",(function(){return parseKeystroke})),Ve.d(ze,"b",(function(){return getEnvKeystrokeText})),Ve.d(ze,"d",(function(){return isArrowKeyCode})),Ve.d(ze,"c",(function(){return getLocalizedArrowKeyCodeDirection})),Ve.d(ze,"e",(function(){return isForwardArrowKeyCode}));var qe=Ve(8),Ye=Ve(58);const We={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Xe={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Qe=function generateKnownKeyCodes(){const ce={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let ze=65;ze<=90;ze++){ce[String.fromCharCode(ze).toLowerCase()]=ze}for(let ze=48;ze<=57;ze++)ce[ze-48]=ze;for(let ze=112;ze<=123;ze++)ce["f"+(ze-111)]=ze;for(const ze of"`-=[];',./\\")ce[ze]=ze.charCodeAt(0);return ce}(),ot=Object.fromEntries(Object.entries(Qe).map((ce=>{let[ze,Ve]=ce;return[Ve,ze.charAt(0).toUpperCase()+ze.slice(1)]})));function getCode(ce){let ze;if("string"==typeof ce){if(ze=Qe[ce.toLowerCase()],!ze)throw new qe.a("keyboard-unknown-key",null,{key:ce})}else ze=ce.keyCode+(ce.altKey?Qe.alt:0)+(ce.ctrlKey?Qe.ctrl:0)+(ce.shiftKey?Qe.shift:0)+(ce.metaKey?Qe.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:Xe).reduce(((ce,Ve)=>{let[qe,Ye]=Ve;return 0!=(ze&Qe[qe])&&(ze&=~Qe[qe],ce+=Ye),ce}),"")+(ze?ot[ze]:"")}function isArrowKeyCode(ce){return ce==Qe.arrowright||ce==Qe.arrowleft||ce==Qe.arrowup||ce==Qe.arrowdown}function getLocalizedArrowKeyCodeDirection(ce,ze){const Ve="ltr"===ze;switch(ce){case Qe.arrowleft:return Ve?"left":"right";case Qe.arrowright:return Ve?"right":"left";case Qe.arrowup:return"up";case Qe.arrowdown:return"down"}}function getEnvKeyCode(ce){if(ce.endsWith("!"))return getCode(ce.slice(0,-1));const ze=getCode(ce);return Ye.a.isMac&&ze==Qe.ctrl?Qe.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";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),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=Xe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!qe,[ze||""]:ce&&ze},We),St=Xe()(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(Qe.a,{className:St,name:gt}),qe&&Ye.a.createElement("span",{className:st.buttonText},qe),wt&&Ye.a.createElement(Qe.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(25),Ye=Ve(225);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(37),Ye=Ve(8),We=Ve(72),Xe=Ve(685);const Qe=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[Qe];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[Qe])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,Xe,Qe;qe.to.forEach((ce=>{Ye=ce[0],We=ce[1],Xe=ze.get(Ye),Qe=Xe[We],Qe.delete(qe),Qe.size||delete Xe[We],Object.keys(Xe).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),Xe=We||{};Xe[qe]||(Xe[qe]=new Set),Xe[qe].add(ze),We||Ye.set(Ve,Xe)}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(Xe.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";Ve.r(ze);var qe=Ve(356);ze.default=qe.default},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(1119)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(98),Ye=Ve(1),We=Ve(130),Xe=Ve.n(We),Qe=Ve(273);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.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){Xe.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 Xe.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 Xe.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 Qe.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 Vt})),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(348);var qe=Ve(129),Ye=Ve(268),We=Ve(598);class Xe 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 Qe=Ve(50);Ve(435);var ot=Ve(27);Qe.a;var st=Ve(113),mt=(Ve(269),Ve(149));ot.a;Ve(431);var gt=Ve(642);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 Qe.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 Qe.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.delegate("execute").to(this,"open"),ce}}var bt=Ve(185);class vt extends ot.a{constructor(ce){super(ce),this.body=new Xe(ce)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var wt=Ve(112);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(279);ot.a;ot.a;ot.a;Ve(271),Ve(278);var xt=Ve(347);xt.a;var Et=Ve(24),Pt=Ve(41),Tt=Ve(685);class Lt{constructor(ce,ze){ze&&Object(Tt.a)(this,ze),ce&&this.set(ce)}}Object(Et.a)(Lt,Pt.a);Ve(174),Ve(136);var Ft=Ve(70),Bt=Ve(148);const Ht=Object(Bt.a)("px");class Vt 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?Ht(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?Ht(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ze.to("_hasViewportTopOffset",(ce=>ce?Ht(this.viewportTopOffset):null)),bottom:ze.to("_isStickyToTheLimiter",(ce=>ce?Ht(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(),Xe&&Xe(),Ve())}))}var Wt=Ve(270),Jt=Ve(28);Ve(55),Ve(658),Ve(267),Ve(294);Object(Bt.a)("px");Jt.a;Ve(640);Object(Bt.a)("px");Qe.a;Ve(393);Object(Bt.a)("px");Jt.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var qe=Ve(76),Ye=Ve(1),We=Ve(130),Xe=Ve.n(We),Qe=Ve(351);function transformParameter(ce){return Object(Ye.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.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){Xe.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 Xe.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 Xe.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(479),Ye=Ve(853);var We=Ve(479);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 Xe=Ve(853);Object.defineProperty(ze,"Scope",{enumerable:!0,get:function(){return Xe.Scope}}),Object.defineProperty(ze,"ValueScope",{enumerable:!0,get:function(){return Xe.ValueScope}}),Object.defineProperty(ze,"ValueScopeName",{enumerable:!0,get:function(){return Xe.ValueScopeName}}),Object.defineProperty(ze,"varKinds",{enumerable:!0,get:function(){return Xe.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 Qe{optimizeNodes(){return this}optimizeNames(ce,ze){return this}}class ot extends Qe{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 Qe{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 Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`${this.label}:`+ce}}class yt extends Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`break${this.label?` ${this.label}`:""};`+ce}}class bt extends Qe{constructor(ce){super(),this.error=ce}render({_n:ce}){return`throw ${this.error};`+ce}get names(){return this.error.names}}class vt extends Qe{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 Qe{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 Ht extends Ct{constructor(ce){super(),this.error=ce}render(ce){return`catch(${this.error})`+super.render(ce)}}Ht.kind="catch";class Vt extends Ct{render(ce){return"finally"+super.render(ce)}}Vt.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 Xe=this._scope.toName(ce);return this._for(new Pt(We,Xe,ze,Ve),(()=>qe(Xe)))}forOf(ce,ze,Ve,We=Ye.varKinds.const){const Xe=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(Xe,qe._`${ce}[${ze}]`),Ve(Xe)}))}return this._for(new Tt("of",We,Xe,ze),(()=>Ve(Xe)))}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 Xe=this._scope.toName(ce);return this._for(new Tt("in",We,Xe,ze),(()=>Ve(Xe)))}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 Ht(ce),ze(ce)}return Ve&&(this._currNode=qe.finally=new Vt,this.code(Ve)),this._endBlockNode(Ht,Vt)}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,Xe,Qe;function later(){var ot=Date.now()-Xe;ot=0?qe=setTimeout(later,ze-ot):(qe=null,Ve||(Qe=ce.apply(We,Ye),We=Ye=null))}null==ze&&(ze=100);var debounced=function(){We=this,Ye=arguments,Xe=Date.now();var ot=Ve&&!qe;return qe||(qe=setTimeout(later,ze)),ot&&(Qe=ce.apply(We,Ye),We=Ye=null),Qe};return debounced.clear=function(){qe&&(clearTimeout(qe),qe=null)},debounced.flush=function(){qe&&(Qe=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(27),Ye=Ve(279),We=Ve(599),Xe=Ve(112),Qe=Ve(38);class ot extends qe.a{constructor(ce){super(ce);const ze=this.bindTemplate,Ve=Object(Xe.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(Qe.b)(ce)))}]}),ce}_getTooltipString(ce,ze,Ve){return ce?"string"==typeof ce?ce:(Ve&&(Ve=Object(Qe.b)(Ve)),ce instanceof Function?ce(ze,Ve):`${ze}${Ve?` (${Ve})`:""}`):""}}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,ot,st,mt,gt=Ve(1),yt=(Ve(111),Ve(49)),bt=Ve.n(yt),vt=Ve(32),wt=Ve(367),Ct=Ve(595);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),We=null),We}const Dt="sulu_admin.content_locale";var kt=new(Ye=_applyDecoratedDescriptor((qe=class{constructor(){_initializerDefineProperty(this,"persistentSettings",Ye,this),this.dirtyPersistentSettings=[],_initializerDefineProperty(this,"user",We,this),_initializerDefineProperty(this,"contact",Xe,this),_initializerDefineProperty(this,"loggedIn",Qe,this),_initializerDefineProperty(this,"loading",ot,this),_initializerDefineProperty(this,"loginError",st,this),_initializerDefineProperty(this,"forgotPasswordSuccess",mt,this),this.handleLogin=ce=>{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),wt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),vt.b.post(vt.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=bt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});vt.b.patch(vt.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}get systemLocale(){return this.user?this.user.locale:vt.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Dt);if(ce)return ce;const{localizations:ze}=Ct.a,Ve=ze.filter((ce=>ce.default)),qe=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return qe?qe.locale:vt.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(Dt,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),vt.b.post(vt.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),vt.b.post(vt.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return vt.b.get(vt.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)}}).prototype,"persistentSettings",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(qe.prototype,"user",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(qe.prototype,"contact",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"loggedIn",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"loading",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(qe.prototype,"loginError",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(qe.prototype,"forgotPasswordSuccess",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"clear",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"systemLocale",[gt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"systemLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoggedIn",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoggedIn"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoginError",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoginError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setForgotPasswordSuccess",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setForgotPasswordSuccess"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"contentLocale",[gt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"contentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setUser",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUser"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"updateContentLocale",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateContentLocale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setContact",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setContact"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setFullName",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setFullName"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setPersistentSetting",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setPersistentSetting"),qe.prototype),qe);ze.a=kt},function(ce,ze,Ve){"use strict";var qe=Ve(392);ze.a=qe.a},function(ce,ze,Ve){"use strict";var qe=Ve(207);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(659);ze.a=qe.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var qe=Ve(323),Ye=Ve(401),We=Ve(636),Xe=Ve(99),Qe=Ve(1060);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(Qe.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(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.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.innerHTML=" ",ze},BR_FILLER=ce=>{const ze=ce.createElement("br");return ze.dataset.ckeFiller=!0,ze},We=7,Xe="⁠".repeat(We);function startsWithFiller(ce){return Object(Ye.a)(ce)&&ce.data.substr(0,We)===Xe}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,Xe,Qe=[],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)&&(Qe.push(qe.value),Qe.length!==ze);ot=!0);}catch(ce){st=!0,Ye=ce}finally{try{if(!ot&&null!=Ve.return&&(Xe=Ve.return(),Object(Xe)!==Xe))return}finally{if(st)throw Ye}}return Qe}}function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,qe=new 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-Xe/2&&!Dt?(Qe.y=1,ot.y=mt*Math.abs((Ye.y-Xe/2-Ve.y)/Xe)):Ve.x>=Ye.x-We/2&&!St?(Qe.x=1,ot.x=st*Math.abs((Ye.x-We/2-Ve.x)/We)):Ve.y<=qe.y+Xe/2&&!Ct?(Qe.y=-1,ot.y=mt*Math.abs((Ve.y-Xe/2-qe.y)/Xe)):Ve.x<=qe.x+We/2&&!kt&&(Qe.x=-1,ot.x=st*Math.abs((Ve.x-We/2-qe.x)/We)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===Qe.x&&0===Qe.y||(this.interval=setInterval((function(){ze.isAutoScrolling=!0;var ce={left:ot.x*Qe.x,top:ot.y*Qe.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},Ht={lift:[St],drop:[St],cancel:[kt],up:[Et,xt],down:[Tt,Pt]},Vt={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:Ht,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(Qe.a)(Object(Qe.a)(ze)),"state",{}),_defineProperty(Object(Qe.a)(Object(Qe.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 Xe=ze.props.useDragHandle,Qe=We.sortableInfo,ot=Qe.index,st=Qe.collection;if(Qe.disabled)return;if(Xe&&!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(Qe.a)(Object(Qe.a)(ze)),"nodeIsChild",(function(ce){return ce.sortableInfo.manager===ze.manager})),_defineProperty(Object(Qe.a)(Object(Qe.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),Xe={x:ze.position.x-We.x,y:ze.position.y-We.y},Qe=Math.abs(Xe.x)+Math.abs(Xe.y);ze.delta=Xe,qe||Ye&&!(Qe>=Ye)?qe&&Qe>=qe&&ze.manager.isActive()&&ze.handlePress(ce):(clearTimeout(ze.cancelTimer),ze.cancelTimer=setTimeout(ze.cancel,0))}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleEnd",(function(){ze.touched=!1,ze.cancel()})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"cancel",(function(){var ce=ze.props.distance;ze.state.sorting||(ce||clearTimeout(ze.pressTimer),ze.manager.active=null)})),_defineProperty(Object(Qe.a)(Object(Qe.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=Xe({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,Ht=Ft.left,Vt=Ft.width,Ut=Bt+Ft.height,Wt=Ht+Vt;ze.axis.x&&(ze.minTranslate.x=Ht-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);Qe&&Qe.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,Xe=Ye.getHelperDimensions,Qe=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(Qe.a)(Object(Qe.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(Qe.a)(Object(Qe.a)(ze)),"handleSortEnd",(function(ce){var Ve=ze.props,qe=Ve.hideSortableGhost,Ye=Ve.onSortEnd,We=ze.manager,Xe=We.active.collection,Qe=We.isKeySorting,ot=ze.manager.getOrderedRefs();ze.listenerNode&&(Qe?(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 Xe=getTargetIndex(ze.newIndex,ze.prevIndex,ze.index),Qe=Ve.find((function(ce){return ce.node.sortableInfo.index===Xe})),ot=Qe.node,st=ze.containerScrollDelta,mt=Qe.boundingClientRect||getScrollAdjustedBoundingClientRect(ot,st),gt=Qe.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=Xe[gt].edgeOffset;Et||(Et=getEdgeOffset(bt,this.container),Xe[gt].edgeOffset=Et,st&&(Xe[gt].boundingClientRect=getScrollAdjustedBoundingClientRect(bt,Ye)));var Pt=gt0&&Xe[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&&(Qe+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&&Qe+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";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(128),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,Ht,Vt="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),We=null),We}let ln=Object(Xe.b)((Ht=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,Xe=this.cloneChildren(We),Qe=ot()(Wt,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===qe,[Jt]:"right"===qe});return Ye.a.createElement("div",{className:Vt,ref:ce,style:ze},Ye.a.createElement("div",{className:Qe}),Ye.a.createElement("div",{className:Ut},Xe))}},Ht.defaultProps={refProp:"ref"},Ht.Section=kt,Ht.SingleItemSection=St,Ht.Item=vt,Ht.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Ht).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(95),Ye=Ve(18),We=Ve(15),Xe=Ve(8),Qe=Ve(89),ot=Ve(132);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 Xe.a("move-operation-nodes-do-not-exist",this);if(ce===ze&&Ve=Ve&&this.targetPosition.path[ce]{const st=void 0===Qe?Xe:Qe instanceof qe.Name?(Xe instanceof qe.Name?ce(We,Xe,Qe):ze(We,Xe,Qe),Qe):Xe instanceof qe.Name?(ze(We,Qe,Xe),Xe):Ve(Xe,Qe);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 Xe;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"}(Xe=ze.Type||(ze.Type={})),ze.getErrorPath=function getErrorPath(ce,ze,Ve){if(ce instanceof qe.Name){const Ye=ze===Xe.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";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(172);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(211);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(405),Ye=Function.prototype,We=Ye.call,Xe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";ze.a={window:window,document:document}},function(ce,ze,Ve){"use strict";var qe=Ve(515);ze.a=qe.default},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";Ve.d(ze,"a",(function(){return yt})),Ve.d(ze,"d",(function(){return isWidget})),Ve.d(ze,"e",(function(){return toWidget})),Ve.d(ze,"c",(function(){return getLabel})),Ve.d(ze,"f",(function(){return toWidgetEditable})),Ve.d(ze,"b",(function(){return findOptimalInsertionRange}));var qe=Ve(8),Ye=Ve(88),We=Ve(37),Xe=Ve(24);class Qe{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(Xe.a)(Qe,We.c);var ot=Ve(83),st=Ve(279),mt='';const gt="ck-widget",yt="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(gt,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 Qe;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 findOptimalInsertionRange(ce,ze){const Ve=ce.getSelectedElement();if(Ve){const qe=Object(ot.e)(ce);if(qe)return ze.createRange(ze.createPositionAt(Ve,qe));if(ze.schema.isObject(Ve)&&!ze.schema.isInline(Ve))return ze.createRangeOn(Ve)}const qe=ce.getSelectedBlocks().next().value;if(qe){if(qe.isEmpty)return ze.createRange(ze.createPositionAt(qe,0));const Ve=ze.createPositionAfter(qe);return ce.focus.isTouching(Ve)?ze.createRange(Ve):ze.createRange(ze.createPositionBefore(qe))}return ze.createRange(ce.focus)}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 st.a;return Ve.set("content",mt),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(95),Ye=Ve(91),We=Ve(18),Xe=Ve(15),Qe=Ve(132),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 Xe.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 Xe.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 Xe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(qe),Xe}class Xe{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)))}}Xe.handleResponseHooks=[];ze.a=Xe},,function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(41),Ye=Ve(24);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(222),Ye=Ve(376),We=Ve(210);var Xe=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)},Qe=Ve(680),ot=Ve(620),st=Ve(621),mt=Ve(619),gt=Ve(683),yt=Ve(328),bt=Ve(80),vt=Ve(169),wt=Ve(93);var Ct=function isArrayLikeObject(ce){return Object(wt.a)(ce)&&Object(vt.a)(ce)},Dt=Ve(246),kt=Ve(374),St=Ve(72),xt=Ve(331),Et=Ve(391);var Pt=function safeGet(ce,ze){if(("constructor"!==ze||"function"!=typeof ce[ze])&&"__proto__"!=ze)return ce[ze]},Tt=Ve(170),Lt=Ve(173);var Ft=function toPlainObject(ce){return Object(Tt.a)(ce,Object(Lt.a)(ce))};var Bt=function baseMergeDeep(ce,ze,Ve,qe,Ye,We,Qe){var vt=Pt(ce,Ve),wt=Pt(ze,Ve),Tt=Qe.get(wt);if(Tt)Xe(ce,Ve,Tt);else{var Lt=We?We(vt,wt,Ve+"",ce,ze,Qe):void 0,Bt=void 0===Lt;if(Bt){var Ht=Object(bt.a)(wt),Vt=!Ht&&Object(Dt.a)(wt),Ut=!Ht&&!Vt&&Object(Et.a)(wt);Lt=wt,Ht||Vt||Ut?Object(bt.a)(vt)?Lt=vt:Ct(vt)?Lt=Object(mt.a)(vt):Vt?(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&&(Qe.set(wt,Lt),Ye(Lt,wt,qe,We,Qe),Qe.delete(wt)),Xe(ce,Ve,Lt)}};var Ht=function baseMerge(ce,ze,Ve,Ye,We){ce!==ze&&Object(Qe.a)(ze,(function(Qe,ot){if(We||(We=new qe.a),Object(St.a)(Qe))Bt(ce,ze,ot,Ve,baseMerge,Ye,We);else{var st=Ye?Ye(Pt(ce,ot),Qe,ot+"",ce,ze,We):void 0;void 0===st&&(st=Qe),Xe(ce,ot,st)}}),Lt.a)},Vt=Ve(655),Ut=Object(Vt.a)((function(ce,ze,Ve){Ht(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";var qe,Ye,We,Xe,Qe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(161),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(63),kt=Ve(19),St=Ve(176),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),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",Xe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Qe,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:Xe,skin:Qe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Qe]]:!!Qe,[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))))),Xe&&" *"),ce,Ve&>.a.createElement("label",{className:St.a.descriptionLabel},Ve),gt.a.createElement("label",{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),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_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(547);class Ht 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)}}Ht.defaultProps={colSpan:12};class Vt 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())}}Vt.Field=Ft,Vt.Section=Ht;ze.a=Vt},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;ze1&&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=Qe()(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:Xe}=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"===Xe?"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(390),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,Xe=Qe()(vt.radio,vt[this.props.skin],{[vt.disabled]:ce});return We.a.createElement(bt.a,{checked:qe,className:Xe,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(669),kt=Ve(392);class St extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:qe,width:Ye}=this.props,Xe=Qe()(Ve,mt.cell,{[mt[Ye]]:"auto"!==Ye}),ot={};return qe&&(ot.paddingLeft=25*qe+"px"),We.a.createElement("td",{className:Xe,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:Xe}=this.props;let{children:Qe}=qe;return Ye&&(Qe=this.createFirstCell(Qe)),We.a.cloneElement(ce,{...qe,key:Ve,children:Qe,depth:Ye&&Xe?Xe: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:Xe,onClick:Qe}=ce;return We.a.createElement(xt,{disabled:Ye,icon:Xe,key:qe,onClick:Qe,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=Qe()(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:Xe,skin:Qe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:qe?this.handleAllSelectionChange:void 0,selectMode:Ye,selectInFirstCell:Xe,skin:Qe})},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 Xe=this.cloneBody(qe),ot=Xe&&0===We.a.Children.count(Xe.props.children),st=!(!Xe||ot)&&this.checkAllRowsSelected(Xe),gt=this.cloneHeader(Ye,st),bt=Qe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Xe),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(95),Ye=Ve(74),We=Ve(18),Xe=Ve(15),Qe=Ve(132),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 Xe.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=Xe.a._createIn(ce);Object(Qe.b)(ze,this.targetPosition),Object(Qe.b)(Xe.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),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(351);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),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),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!!Xe()(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,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,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},Xe=qe.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[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&&Xe()(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";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,Xe,Qe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2080),Ct=Ve(251),Dt=Ve(275),kt=Ve(39),St=Ve(327),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),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",Xe,this),_initializerDefineProperty(this,"handleTransitionEnd",Qe,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:Xe,onConfirm:Qe,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:Qe,skin:"primary"},We),Xe&&qe&&vt.a.createElement(kt.a,{onClick:Xe,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}}),Xe=_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),Qe=_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(618),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(265);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 Xe.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 Xe=new Ye.a((function(ce,ze){Ve=ce,qe=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(qe),Xe}class Xe{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)))}}Xe.handleResponseHooks=[];ze.a=Xe},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";var qe=Ve(516);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(781),Ye=qe.all;ce.exports=qe.IS_HTMLDDA?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";var qe=Ve(564);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(223);Ve.d(ze,"a",(function(){return qe.a}));Ve(189);var Ye=Ve(47);Ve.d(ze,"c",(function(){return Ye.a}));var We=Ve(76);Ve.d(ze,"b",(function(){return We.a}));Ve(92)},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(143))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe=Ve(390),ot={checkbox:"checkbox--RzTsHUJa4p",dark:"dark--cdZTDByWLU",light:"light--PBDMfQbrpm"};class st extends Ye.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:qe,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return Ye.a.createElement(Qe.a,{checked:qe,className:bt,disabled:gt,icon:qe?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"};class mt 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}))))}}mt.defaultProps={disabled:!1};ze.b=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),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"}),Xe=We;function useStyleGuideContext(){return Ye.a.useContext(We)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(95),Ye=Ve(18),We=Ve(219),Xe=Ve(64),Qe=Ve(132),ot=Ve(68),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(Qe.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 Xe.a(this.position,this.nodes.maxOffset,ze,this.baseVersion+1)}_validate(){const ce=this.position.parent;if(!ce||ce.maxOffsetce._clone(!0)))),Object(Qe.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(95),Ye=Ve(15),We=Ve(8),Xe=Ve(132),Qe=Ve(290);var ot=function isEqual(ce,ze){return Object(Qe.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(Xe.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(69),Ye=Ve(196),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 Mr})),Ve.d(ze,"d",(function(){return Wr})),Ve.d(ze,"a",(function(){return Sn}));var qe=Ve(1),Ye=Ve(3),We=Ve(0),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(52),mt=Ve(672),gt=(Ve(111),Ve(29)),yt=Ve.n(gt),bt=Ve(81),vt=Ve(87),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(182);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),We=null),We}let Ht=(kt=qe.computed.struct,Object(Ye.b)((Et=class extends Xe.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:Qe,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:Ht}=st;let Vt;try{Vt=Pt.get(Ht)}catch(ce){return"ignore"===xt?null:(ot.a.error(ce),Xe.a.createElement(bt.a.Field,{colSpan:st.colSpan,spaceAfter:st.spaceAfter},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement("div",{className:Ft},Xe.a.createElement("h4",null,"Error while rendering field!"),Xe.a.createElement("p",null,Xe.a.createElement("b",null,"Name:")," ",Ye,Xe.a.createElement("br",null),Xe.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Ut=Pt.getOptions(Ht),Wt=this.findErrorKeyword(Ve);return Xe.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},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement(Vt,{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:Qe,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 Vt,Ut,Wt=Ht;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),We=null),We}var Jt,Qt,en,rn,ln=Object(Ye.b)((Section_applyDecoratedDescriptor((Ut=class extends Xe.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 Xe.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),Vt=Ut))||Vt;let mn=Object(Ye.b)((rn=class extends Xe.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 Xe.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:Qe,onChange:ot,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 Xe.a.createElement(Wt,{data:qe,dataPath:vt,error:wt,formInspector:Qe,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 Xe.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),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(96),Tn=Ve(31),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),We=null),We}var Fn,Yn,Un,Kn,Gn=Object(Ye.b)((bn=class extends Xe.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 Xe.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")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.ghost_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6,label:Object(Ln.b)("sulu_admin.choose_language")},Xe.a.createElement(Tn.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>Xe.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),We=null),We}let Jn=Object(Ye.b)((Yn=class extends Xe.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",Kn,this)}render(){const{open:ce,types:ze}=this.props;return Xe.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")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.missing_type_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6},Xe.a.createElement(Tn.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>Xe.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}),Kn=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,er,tr,nr,rr,ar,sr,lr,dr=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),We=null),We}var ur=Object(Ye.b)((Xn=class extends Xe.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",er,this),Form_initializerDefineProperty(this,"displayGhostDialog",tr,this),Form_initializerDefineProperty(this,"submit",nr,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",rr,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",ar,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",sr,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",lr,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?Xe.a.createElement(mt.a,null):Ve.loading?Xe.a.createElement(st.a,null):Xe.a.createElement(We.Fragment,null,Ve.id&&qe&&Xe.a.createElement(Gn,{locales:qe,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),Xe.a.createElement(dr,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&Xe.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}))}},er=Form_applyDecoratedDescriptor(Xn.prototype,"showAllErrors",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=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),nr=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),rr=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),ar=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())}}}),sr=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)}}}),lr=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,pr=(Ve(367),Ve(51)),vr=Ve(316),_r=Ve(646);var Rr,Cr,Dr,Er,Tr,Mr=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 _r.a(((ce,qe)=>new vr.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 vr.a(Ve,ce,ze)}},Ar=Ve(247),jr=Ve(353),Lr=(Ve(488),Ve(402));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),We=null),We}const zr="template",Ir=Object(jr.a)();function mergeData(ce,ze,Ve,Ye){let We={};if(!ce||!ze)return We;for(const Qe in ze){const{items:ot,defaultType:st,type:mt,types:gt}=ze[Qe],{items:yt,defaultType:bt,type:vt,types:wt}=ce[Qe]||{};if(mt===Lr.a&&ot)We=mergeData(ce,ot,Ve,Ye);else if(vt===Lr.a&&yt)We=mergeData(yt,ze,Ve,Ye);else if(gt&&wt&&Object.keys(gt).length>0&&Object.keys(wt).length>0&&Ve[Qe]&&Ye[Qe]&&Object(qe.isArrayLike)(Ve[Qe])&&Object(qe.isArrayLike)(Ye[Qe]))for(let ce=0;cece&&Ye[Qe][ce]||{}),ot=Object(qe.toJS)(Ve[Qe].length>ce&&Ve[Qe][ce]||{}),mt=null==ot?void 0:ot.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(Xe=wt[ot.type])||void 0===Xe?void 0:Xe.form)||wt[bt].form,gt[yt].form,ot,ze);We[Qe]||(We[Qe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==ot?void 0:ot.settings)||ze.settings,We[Qe].push(vt))}else Ve[Qe]&&mt===vt?We[Qe]=Ve[Qe]:We[Qe]=Ye[Qe]}return We}let Br=(Rr=class extends Lr.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",Cr,this),ResourceFormStore_initializerDefineProperty(this,"schemaLoading",Dr,this),ResourceFormStore_initializerDefineProperty(this,"typesLoading",Er,this),ResourceFormStore_initializerDefineProperty(this,"handleSchemaTypeResponse",Tr,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Ir.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,Ar.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,zr):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(zr,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(zr,ce,ze)}getSchemaEntryByPath(ce){return yt.a.get(this.schema,ce)}},Cr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Dr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"schemaLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Er=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"typesLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tr=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[zr]||Ve||Object.keys(this.types)[0];Object(qe.set)(this.data,{[zr]: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([Ar.a.getSchema(this.formKey,this.type,this.metadataOptions),Ar.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 Nr,Hr,Vr,qr,Yr,Ur,Wr=new class{createFromResourceStore(ce,ze){return new Br(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)}},$r=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),We=null),We}Object(Ye.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vr,this),ChangelogLine_initializerDefineProperty(this,"creator",qr,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Yr,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Ur,this),this.loadChanger=()=>{"number"==typeof this.changerId?$r.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?$r.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?Xe.a.createElement(We.Fragment,null,Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):Xe.a.createElement(st.a,null)}},Vr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changer",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ur=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorLoaded",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setChanger",[qe.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setChanger"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setCreator",[qe.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setCreator"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerId",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorId",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerFullName",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changed",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changed"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorFullName",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"created",[qe.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"created"),Hr.prototype),Nr=Hr));var Kr=Ve(39),Gr=Ve(19),Jr="card--VI2KeXPH29",Zr="icons--BxuYzRG+LS";class ei extends Xe.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 Xe.a.createElement("section",{className:Jr},Xe.a.createElement("div",{className:Zr},ze&&Xe.a.createElement(Gr.a,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Xe.a.createElement(Gr.a,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}var si=ei,_i="cards--j5zUs1S7oR",Ri="card--elUHt7xFsM",Ci="add-button-container--AywkTv4Tsw";class Di extends Xe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:qe}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("section",{className:_i},ce&&Xe.a.Children.map(ce,((ce,ze)=>Xe.a.createElement("div",{className:Ri,key:ze},Xe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:qe}))))),Xe.a.createElement("div",{className:Ci},Xe.a.createElement(Kr.a,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(Ln.b)("sulu_admin.add"))))}}Di.Card=si;var Ei,Oi,Ti,ga,ya,ba,va,_a,wa,ka=Di,xa=Ve(127),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),We=null),We}Object(Ye.b)((Oi=class extends Xe.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Ti,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 Xe.a.createElement(We.Fragment,null,Xe.a.createElement(ka,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!qe&&qe.map(((ce,ze)=>Xe.a.createElement(ka.Card,{key:ze},Ve(ce))))),Xe.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)},Xe.a.createElement("div",{className:Aa},!!this.formStore&&Xe.a.createElement(xp,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Ti=CardCollection_applyDecoratedDescriptor(Oi.prototype,"overlayIndex",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ga=CardCollection_applyDecoratedDescriptor(Oi.prototype,"formStore",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ya=CardCollection_applyDecoratedDescriptor(Oi.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=Mr.createFromSchema(ze,ce)}}}),ba=CardCollection_applyDecoratedDescriptor(Oi.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=Mr.createFromSchema(Ve,ze,Object(qe.toJS)(Ye[ce]))}}}),va=CardCollection_applyDecoratedDescriptor(Oi.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(Oi.prototype,"handleCloseOverlay",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),wa=CardCollection_applyDecoratedDescriptor(Oi.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(Oi.prototype,"closeFormStore",[qe.action],Object.getOwnPropertyDescriptor(Oi.prototype,"closeFormStore"),Oi.prototype),Ei=Oi));var Ba,Ja,io,po=Ve(22),ho=Ve.n(po),go=Ve(122),_o=Ve(203),Co=Ve(183),ko=Ve(274),Oo=Ve(550),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),We=null),We}Object(Ye.b)((Ja=class extends Xe.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:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)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,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new _o.a(Xe,ce||Xe,"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(Xe,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(pr.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,Xe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Xe))})),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:Qe,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),Xe.a.createElement(Oo.a,{adapter:qe,allowDeselectForDisabledItems:!!yt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Qe,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 Xe.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 Xe.a.createElement("div",{className:Po},Xe.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(527),Bo=Ve(529),Ho=Ve(361),Vo=Ve(160);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),We=null),We}Object(Ye.b)((Ao=class extends Xe.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:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)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,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Vo.a(Xe,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,Xe="string"==typeof We?We:ze;Ye[ze]=Object(qe.toJS)(Ve.getValueByPath("/"+Xe))})),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(pr.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:Qe,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 Xe.a.createElement(Ho.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:Qe||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 Xe.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:Qe,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 Xe.a.createElement(Bo.a,{disabled:!!ce,displayProperty:Qe,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(105),es=Ve(187),ts=Ve(548);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),We=null),We}var ns,rs,os=Object(Ye.b)((Heading_applyDecoratedDescriptor((Wo=class extends Xe.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 Xe.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?Xe.a.createElement(es.a,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):Xe.a.createElement($o.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?Xe.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(648),bs=Ve(54),vs=Ve(128),_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),We=null),We}Object(Ye.b)((gs=class extends Xe.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,Qe={color:this.isValidValue?this.value:"transparent"};return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bs.a,{disabled:ce,icon:"su-square",iconClassName:_s,iconStyle:Qe,id:ze,labelRef: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}),Xe.a.createElement(vs.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>Xe.a.createElement("div",{ref:ce,style:ze},Xe.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));Xe.a.Component;var ws,Rs,Cs=Ve(10),Ds=Ve.n(Cs),ks=Ve(318);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 Xe.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 ot={};return Qe&&(ot.timeFormat=Qe),We||(ot.dateFormat=!1),Xe.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),We=null),We}(Rs.prototype,"format",[qe.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"format"),Rs.prototype),ws=Rs));Ve(593);Xe.a.Component;Xe.a.Component;var Ss,xs,Es=Ve(366);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),We=null),We}Object(Ye.b)((xs=class extends Xe.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 Xe.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,Ms,As,js,Ls,zs,Is,Fs=Ve(49),Bs=Ve.n(Fs),Ns=Ve(161),Hs="grid--R3KoUAGpuN",Vs="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),We=null),We}const qs="su-lock",Ys="password";Object(Ye.b)((Is=class extends Xe.a.Component{constructor(){super(...arguments),PasswordConfirmation_initializerDefineProperty(this,"firstValue",Ts,this),PasswordConfirmation_initializerDefineProperty(this,"secondValue",Ms,this),PasswordConfirmation_initializerDefineProperty(this,"valid",As,this),PasswordConfirmation_initializerDefineProperty(this,"setValidFlag",js,this),PasswordConfirmation_initializerDefineProperty(this,"handleFirstChange",Ls,this),PasswordConfirmation_initializerDefineProperty(this,"handleSecondChange",zs,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 Xe.a.createElement(Ns.a,{className:Hs},Xe.a.createElement(Ns.a.Item,{colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleFirstChange,type:Ys,valid:this.valid,value:this.firstValue})),Xe.a.createElement(Ns.a.Item,{className:Vs,colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:qs,onChange:this.handleSecondChange,type:Ys,valid:this.valid,value:this.secondValue})))}},Is.defaultProps={disabled:!1,valid:!0},Ts=PasswordConfirmation_applyDecoratedDescriptor((Ps=Is).prototype,"firstValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ms=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"secondValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),As=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"valid",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),js=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),Ls=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleFirstChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),zs=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleSecondChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Os=Ps));Xe.a.Component;Ve(594);Xe.a.Component;Xe.a.Component;var Us,Ws=Ve(190);(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),We=null),We})((Us=class extends Xe.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 Xe=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(Xe,{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 Xe.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 Xe.a.createElement(Ws.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[qe.computed],Object.getOwnPropertyDescriptor(Us.prototype,"values"),Us.prototype);var $s,Ks,Gs,Js,Zs,Xs,Qs,pl,gl=Ve(549),yl=Ve(551),bl=Ve(98),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),We=null),We}const wl="sulu.rlp.part";Object(Ye.b)((Ks=class extends Xe.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",Gs,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",Js,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Zs,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Xs,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Qs,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:Qe,schemaOptions:{entity_class:{value:ot}={}}={},value:st}=this.props;return"/"===st?"/":Xe.a.createElement(We.Fragment,null,Xe.a.createElement(gl.a,{disabled:!!Ye,id:Ve,locale:Qe.locale?Qe.locale:qe.observable.box(pr.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:st}),Xe.a.createElement("div",{className:vl},Xe.a.createElement(Kr.a,{className:_l,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(Ln.b)("sulu_admin.refresh_url")),Xe.a.createElement(yl.a,{id:Qe.id,options:{locale:Qe.locale?Qe.locale.get():pr.a.contentLocale,resourceKey:Qe.resourceKey,webspace:Qe.options.webspace,entityClass:ot,...ze},resourceKey:ce})))}},Gs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"mode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Js=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChanged",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"partsChangedSinceRefresh",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"parts",[qe.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"parts"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableAutoGeneration",[qe.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableAutoGeneration"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableRefreshButton",[qe.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableRefreshButton"),Ks.prototype),Qs=ResourceLocator_applyDecoratedDescriptor(Ks.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:Xe}={}}={}}=this.props,Qe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,Ye]=ce;const We=Object(qe.toJS)(Ve.getValueByPath("/"+ze));void 0!==We&&(Qe[Ye]=We)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,bl.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():pr.a.contentLocale,id:Ve.id,entityClass:We,routeSchema:Xe,...Qe}).then(Object(qe.action)((ce=>{Ye(ce.resourcelocator)})))}}}),pl=ResourceLocator_applyDecoratedDescriptor(Ks.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=Ks));var Rl=Ve(291);var Cl,Dl,kl,Sl,xl,El,Ol,Pl,Tl,Ml,Al,jl,Ll,zl,Il,Fl,Bl,Nl,Hl=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}}},Vl=Ve(224),Ul=Ve(365);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),We=null),We}let Wl=(Dl=SmartContentStore_applyDecoratedDescriptor((Cl=class{constructor(ce,ze,Ve,Ye,We,Xe,Qe){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",Ml,this),SmartContentStore_initializerDefineProperty(this,"tagOperator",Al,this),SmartContentStore_initializerDefineProperty(this,"types",jl,this),SmartContentStore_initializerDefineProperty(this,"audienceTargeting",Ll,this),SmartContentStore_initializerDefineProperty(this,"sortBy",zl,this),SmartContentStore_initializerDefineProperty(this,"sortOrder",Il,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(Vl.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=Xe,this.webspaceKey=Qe,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,$r.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,$r.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}),Ml=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tags",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Al=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tagOperator",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"types",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ll=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"audienceTargeting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortBy",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Il=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,jc,Lc,Ic,Fc,Nc,Vc,qc,Kc,Gc,Jc,Qc,ed,td,sd,ld,cd,dd,ud,fd=Ve(368),md=Ve(243),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",Md="presentation--4EddM2-AMW",Ad="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),We=null),We}var Ld,Id,Fd,Bd,Nd,Hd,Vd=Object(Ye.b)((ec=class extends Xe.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",jc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirm",Lc,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",Kc,this),FilterOverlay_initializerDefineProperty(this,"handleIncludeSubElementsChange",Gc,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:Qe,presentations:ot,sections:st,smartContentStore:mt,sortings:gt,title:yt,types:bt}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.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:Qe,size:"small",title:yt},Xe.a.createElement("div",{className:yd},st.includes("datasource")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.data_source")),Xe.a.createElement("div",{className:vd},Xe.a.createElement(Kr.a,{className:_d,onClick:this.handleDataSourceButtonClick},Object(Ln.b)("sulu_admin.choose_data_source")),Xe.a.createElement(es.a,{checked:this.includeSubElements||!1,onChange:this.handleIncludeSubElementsChange},Object(Ln.b)("sulu_admin.include_sub_elements"))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_admin.data_source"),": ",this.dataSource&&this.dataSource.title)),st.includes("categories")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_categories")),Xe.a.createElement("div",{className:Rd},Xe.a.createElement(Kr.a,{onClick:this.handleCategoryButtonClick},Object(Ln.b)("sulu_admin.choose_categories")),Xe.a.createElement("div",{className:Cd},Xe.a.createElement(Tn.a,{onChange:this.handleCategoryOperatorChange,value:this.categoryOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_category_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_categories_description"))))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_category.categories"),": ",this.categories&&this.categories.map((ce=>ce.name)).join(", "))),st.includes("tags")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_tags")),Xe.a.createElement("div",{className:Dd},Xe.a.createElement("div",{className:kd},Xe.a.createElement(ko.a,{displayProperty:"name",idProperty:"name",searchProperties:["name"],selectionStore:this.tagSelectionStore})),Xe.a.createElement("div",{className:Sd},Xe.a.createElement(Tn.a,{onChange:this.handleTagOperatorChange,value:this.tagOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_tag_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_tags_description")))))),st.includes("types")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_types")),Xe.a.createElement("div",{className:xd},Xe.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=>Xe.a.createElement(Ws.a.Option,{key:ce.value,value:ce.value},ce.name)))))),st.includes("audienceTargeting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.target_groups")),Xe.a.createElement(es.a,{checked:this.audienceTargeting||!1,onChange:this.handleAudienceTargetingChange},Object(Ln.b)("sulu_admin.use_target_groups"))),st.includes("sorting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.sort_by")),Xe.a.createElement("div",{className:Ed},Xe.a.createElement("div",{className:Od},Xe.a.createElement(Tn.a,{onChange:this.handleSortByChange,value:this.sortBy},gt.map(((ce,ze)=>Xe.a.createElement(Tn.a.Option,{key:ze,value:ce.name},Object(Ln.b)(ce.value)))))),Xe.a.createElement("div",{className:Td},Xe.a.createElement(Tn.a,{onChange:this.handleSortOrderChange,value:this.sortOrder},Xe.a.createElement(Tn.a.Option,{value:"asc"},Object(Ln.b)("sulu_admin.ascending")),Xe.a.createElement(Tn.a.Option,{value:"desc"},Object(Ln.b)("sulu_admin.descending")))))),st.includes("presentation")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.present_as")),Xe.a.createElement("div",{className:Md},Xe.a.createElement(Tn.a,{onChange:this.handlePresentationChange,value:this.presentation},Object.keys(ot).map((ce=>Xe.a.createElement(Tn.a.Option,{key:ce,value:ce},ot[ce])))))),st.includes("limit")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.limit_result_to")),Xe.a.createElement("div",{className:Ad},Xe.a.createElement(Es.a,{onChange:this.handleLimitChange,value:this.limit}))))),!mt.loading&&ze&&qe&&Ve&&Xe.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&&Xe.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}}),jc=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}}}),Lc=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}}}),Kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseCategoryDialog",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!1}}}),Gc=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(186),Ud=Ve(168),Wd="smart-content-item--HuanrD3+f+",$d="image--tKgo2R7kxz",Kd="publish-indicator--ZxnQaFynVl",Gd="title--1n3AtGES3h",Jd="column--hD8nlzgOLQ";class Zd extends Xe.a.Component{render(){const{id:ce,image:ze,title:Ve,publishedState:qe,published:Ye,...We}=this.props.item;return Xe.a.createElement("div",{className:Wd},ze&&Xe.a.createElement("div",{className:$d},Xe.a.createElement("img",{src:ze})),Xe.a.createElement("div",{className:Gd},(void 0!==qe||void 0!==Ye)&&!(qe&&Ye)&&Xe.a.createElement("div",{className:Kd},Xe.a.createElement(Ud.a,{draft:!qe,published:!!Ye})),Xe.a.createElement(Yd.a,null,Ve)),Object.keys(We).map((ce=>Xe.a.createElement("div",{className:Jd,key:ce},Xe.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),We=null),We}var Xd,Qd,ku=Object(Ye.b)(((Hd=class extends Xe.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=Hl.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:Qe}=this.props,ot=this.props.presentations.reduce(((ce,ze)=>(ce[ze.name]=ze.value,ce)),{});return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(Rl.a,{disabled:Ve,label:Object(Ln.b)("sulu_admin.smart_content_label",{count:Qe.items.length}),leftButton:{icon:"su-filter",onClick:this.handleFilterClick},loading:Qe.itemsLoading||Qe.loading,onItemClick:Ye,sortable:!1},Qe.items.map(((ce,ze)=>Xe.a.createElement(Rl.a.Item,{id:ce.id,index:ze+1,key:ze,value:ce},Xe.a.createElement(Zd,{item:ce}))))),Xe.a.createElement(Vd,{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:Qe,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=Hd).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),We=null),We}var xu,Hu=new(Qd=smartContentStorePool_applyDecoratedDescriptor((Xd=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,Ye;ce=this,ze="entries",Ye=this,(Ve=Qd)&&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(Xd.prototype,"stores",[qe.computed],Object.getOwnPropertyDescriptor(Xd.prototype,"stores"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"add",[qe.action],Object.getOwnPropertyDescriptor(Xd.prototype,"add"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"remove",[qe.action],Object.getOwnPropertyDescriptor(Xd.prototype,"remove"),Xd.prototype),Xd);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),We=null),We}fields_SmartContent_applyDecoratedDescriptor((xu=class extends Xe.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 Hl.getDefaultValue(this.provider,this.presentations)}get viewName(){return Hl.getConfig(this.provider).view}get resultToView(){return Hl.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),Xe=Object(qe.toJS)(ce);We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),Xe&&(Xe.categories&&Xe.categories.sort(),Xe.tags&&Xe.tags.sort()),this.smartContentStore.loading||ho()(We,Xe)||(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:Xe}=this.props,{exclude_duplicates:{value:Qe=!1}={}}=We;if("boolean"!=typeof Qe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:ot}=Hl.getConfig(this.provider);void 0===Xe&&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,Qe),this.filterCriteriaChangeDisposer=Object(qe.reaction)((()=>Object(qe.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Qe&&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 Xe.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(673);Xe.a.Component;Ve(425);Xe.a.Component;Ve(360);Xe.a.Component;var qu,Yu,Ku,Gu,Ju,Zu,Xu,Qu,ep,tp,np,rp,ip,ap,op,sp,lp,cp,dp,up,pp=Ve(5),hp=Ve.n(pp),fp=Ve(439),mp="link--bEP5RC8cI2",gp="provider--biCKqy2l3m",yp="item-container--MOpFKUzbRZ",bp="item--Y1-n3AGOmA",vp="clickable--+XCabd-TvD",_p="remove-button--BgcOgvH1fz",wp="disabled--7JKOC5nDNO",Rp="column-list--bCklHjgORy",Cp="item-column--UxyDlbgTPJ",Dp="loader--P3KXz0B7n6",kp=Ve(32),Sp=Ve(141);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),We=null),We}Object(Ye.b)(((up=class extends We.Component{constructor(ce){super(ce),Link_initializerDefineProperty(this,"openedOverlayProvider",Ku,this),Link_initializerDefineProperty(this,"overlayHref",Gu,this),Link_initializerDefineProperty(this,"overlayTitle",Ju,this),Link_initializerDefineProperty(this,"overlayTarget",Zu,this),Link_initializerDefineProperty(this,"overlayAnchor",Xu,this),Link_initializerDefineProperty(this,"titleParts",Qu,this),Link_initializerDefineProperty(this,"titleLoading",ep,this),Link_initializerDefineProperty(this,"load",tp,this),Link_initializerDefineProperty(this,"handleRemoveClick",np,this),Link_initializerDefineProperty(this,"handleTitleClick",rp,this),Link_initializerDefineProperty(this,"handleOverlayConfirm",ip,this),Link_initializerDefineProperty(this,"handleOverlayClose",ap,this),Link_initializerDefineProperty(this,"handleProviderChange",op,this),Link_initializerDefineProperty(this,"handleOverlayAnchorChange",sp,this),Link_initializerDefineProperty(this,"handleOverlayTargetChange",lp,this),Link_initializerDefineProperty(this,"handleOverlayTitleChange",cp,this),Link_initializerDefineProperty(this,"handleOverlayHrefChange",dp,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:qe,href:Ye,target:We,anchor:Xe}=ze||{};this.overlayHref=Ve===ce?Ye:void 0,this.overlayTarget=We,this.overlayTitle=qe,this.overlayAnchor=Xe,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,Ye,We)=>{const{onChange:Xe,onFinish:Qe,enableTarget:ot,enableTitle:st,enableAnchor:mt,locale:gt}=this.props;Xe({provider:ce,target:ot?Ye:void 0,anchor:mt?We:void 0,href:ze,title:st?Ve:void 0,locale:Object(qe.toJS)(gt)}),Qe()},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,enableTarget:qe,enableTitle:Ye,types:Qe,value:ot}=this.props,{href:mt,provider:gt}=ot||{},yt=hp()(bp,{[vp]:!ce||!mt,[wp]:ce}),bt=Sp.default.getKeys().filter((ce=>void 0===Qe||0===Qe.length||Qe.includes(ce)));return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("div",{className:mp},Xe.a.createElement("div",{className:gp},Xe.a.createElement(fp.a,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:gt},bt.map((ce=>Xe.a.createElement(fp.a.Option,{key:ce,value:ce},Sp.default.getTitle(ce)))))),Xe.a.createElement("div",{className:yp},Xe.a.createElement("div",{className:yt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&ot&&this.titleParts.length>0&&Xe.a.createElement("div",{className:Rp},this.titleParts.map(((ce,ze)=>Xe.a.createElement("span",{className:Cp,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Xe.a.createElement("button",{className:_p,onClick:this.handleRemoveClick,type:"button"},Xe.a.createElement(Gr.a,{name:"su-trash-alt"})),this.titleLoading&&Xe.a.createElement(st.a,{className:Dp,size:14}))),Sp.default.getKeys().map((ce=>{const We=Sp.default.getOverlay(ce);return Xe.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,onTargetChange:qe?this.handleOverlayTargetChange:void 0,onTitleChange:Ye?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Sp.default.getOptions(ce),target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableTarget:!1,enableTitle:!1,types:[]},Ku=Link_applyDecoratedDescriptor((Yu=up).prototype,"openedOverlayProvider",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gu=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,"overlayTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"_self"}}),Xu=Link_applyDecoratedDescriptor(Yu.prototype,"overlayAnchor",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qu=Link_applyDecoratedDescriptor(Yu.prototype,"titleParts",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ep=Link_applyDecoratedDescriptor(Yu.prototype,"titleLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tp=Link_applyDecoratedDescriptor(Yu.prototype,"load",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!ce||!ce.provider)return void(this.titleParts=[]);const ze=Sp.default.getOptions(ce.provider);ze?(this.titleParts=[],this.titleLoading=!0,kp.c.get(ze.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(qe.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(ze.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=[]}}}),np=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)}}}),rp=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)}}}),ip=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.closeOverlay())}}}),ap=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),op=Link_applyDecoratedDescriptor(Yu.prototype,"handleProviderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),sp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayAnchorChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),lp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTargetChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),cp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayTitleChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),dp=Link_applyDecoratedDescriptor(Yu.prototype,"handleOverlayHrefChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),qu=Yu));Xe.a.Component;var xp=ze.b=ur},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var qe,Ye=Ve(1),We=Ve(22),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(273);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),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),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!!Xe()(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,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,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},Xe=qe.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[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&&Xe()(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[ce>>0&255]+qe[ce>>8&255]+qe[ce>>16&255]+qe[ce>>24&255]+qe[ze>>0&255]+qe[ze>>8&255]+qe[ze>>16&255]+qe[ze>>24&255]+qe[Ve>>0&255]+qe[Ve>>8&255]+qe[Ve>>16&255]+qe[Ve>>24&255]+qe[Ye>>0&255]+qe[Ye>>8&255]+qe[Ye>>16&255]+qe[Ye>>24&255]}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(147),Ye=Ve(41),We=Ve(8),Xe=Ve(24);class Qe{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(Xe.a)(Qe,qe.a),Object(Xe.a)(Qe,Ye.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var qe=Ve(172),Ye=Ve(67),We=Ve(175),Xe=Ve(162),Qe=Ve(88),ot=Ve(94),st=Ve(240),mt=Ve(350);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._isAllowedInsideAttributeElement=!1,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}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.isAllowedInsideAttributeElement!=ce.isAllowedInsideAttributeElement)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._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,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(Qe.a)(ce))this._classes.add(ze)}_removeClass(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.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(Qe.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(Xe.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 vt}));var qe=Ve(24),Ye=Ve(37),We=Ve(220),Xe=Ve(212),Qe=Ve(68),ot=Ve(131),st=Ve(162),mt=Ve(124),gt=Ve(8),yt=Ve(112);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 Qe.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(104),Ye=Ve(337),We=Ve(109),Xe=Ve(408),Qe=Ve(336),ot=Ve(782),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(418).map;qe({target:"Array",proto:!0,forced:!Ve(709)("map")},{map:function map(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";var qe=Ve(426),Ye=Ve(734);Ve.d(ze,"a",(function(){return Ye.default})),ze.b=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(18),Ye=Ve(37),We=Ve(24),Xe=Ve(8);class Qe 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 Xe.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)(Qe,Ye.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(95);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";var qe=Ve(61);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ft.a}));var qe=Ve(3),Ye=Ve(1),We=Ve(0),Xe=Ve.n(We),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(87),yt=Ve.n(gt),bt=Ve(63),vt=Ve(39),wt=Ve(96),Ct=Ve(52),Dt=Ve(672),kt=Ve(51),St=Ve(243),xt=Ve(6);class Et extends Xe.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 Xe.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"),Xe.a.createElement("ul",null,Ve.referencingResources.map(((ce,ze)=>{const{title:Ve=null}=ce;return Ve?Xe.a.createElement("li",{key:ze},Ve):null}))))}}Et.defaultProps={allowDeletion:!0};var Pt=Et,Tt=Ve(387),Lt=Ve(324),Ft=Ve(203);class Bt extends Xe.a.Component{}Bt.hasColumnOptions=!1,Bt.searchable=!0,Bt.paginatable=!0;var Ht=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]}},Vt=Ve(358);class Ut extends Xe.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:Xe.a.createElement(Vt.a,null,ze.map(((ze,Ve)=>{const qe=Ht.get(ze);return Xe.a.createElement(vt.a,{active:ze===ce,icon:qe.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Wt,Jt,Qt,en,rn=Ve(659),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),We=null),We}let mn=Object(qe.b)((Jt=class extends Xe.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 Xe.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(127),Un=Ve(19),Kn="overlay--aSm-pEy0jw",Gn="sorting--y+97afZNVG",Jn="column-option--vubkKtbyXR",Zn="drag-handle--NeTdKzcGF4",Xn="label--fdEGwyHa+t",er="icon--5tQaPuzhAg",tr="dragging--ymhmUDirFb",nr="column-option-disabled--gaFd19+z-F";const rr=Object(Fn.c)((()=>Xe.a.createElement("span",{className:Zn},Xe.a.createElement(Un.a,{name:"su-more"}))));class ar extends Xe.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,{[nr]:"no"===ze});return Xe.a.createElement("div",{className:Ve},Xe.a.createElement(rr,null),Xe.a.createElement("span",{className:Xn},ce),"always"!==ze&&Xe.a.createElement(Un.a,{className:er,name:"su-eye",onClick:this.handleIconClick}))}}var sr,lr,dr,ur,pr,vr,_r,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),We=null),We}const Cr=Object(Fn.b)(ar),Dr=Object(Fn.a)((ce=>{let{children:ze,className:Ve}=ce;return Xe.a.createElement("div",{className:Ve},ze)}));let Er=Object(qe.b)((lr=class extends Xe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",dr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",ur,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",pr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",vr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",_r,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()(Kn,{[Gn]:this.sorting});return Xe.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")},Xe.a.createElement(Dr,{axis:"y",className:Ve,helperClass:tr,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Xe.a.createElement(Cr,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},dr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"columnOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ur=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"sorting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.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)}}}),vr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.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(lr.prototype,"componentDidMount",[Ye.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidMount"),lr.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidUpdate"),lr.prototype),_r=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleItemsSortStart",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),Rr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.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}}}),sr=lr))||sr;var Tr,Mr,Ar=Er,jr=Ve(26),Lr=Ve.n(jr),zr=Ve(674);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),We=null),We}let Ir=(Tr=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var Ye,We,Xe,Qe;Ye=this,We="value",Qe=this,(Xe=Mr)&&Object.defineProperty(Ye,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):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)}},Mr=AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setValue"),Tr.prototype),Tr);var Br,Nr,Hr,Vr,qr,Yr,Ur=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]}},Wr="field-filter-item--bySYVuRFqh",$r="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),We=null),We}const Kr="esc",Gr="enter";var Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei,Oi=Object(qe.b)((Nr=class extends Xe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Hr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Vr,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",qr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",Yr,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:Xe}=this.props;if(this.value=Xe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(Ur.get(ze))(this.handleFieldFilterTypeChange,Ve,Xe,Ur.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&&(Lr.a.bind(Kr,qe),Lr.a.bind(Gr,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?(Lr.a.bind(Kr,ze),Lr.a.bind(Gr,this.handleButtonClick)):(Lr.a.unbind(Kr),Lr.a.unbind(Gr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(Lr.a.unbind(Kr),Lr.a.unbind(Gr))}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 Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("span",{className:Wr},Xe.a.createElement(zr.a,{onClick:Ve,onDelete:Ye,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Xe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:qe,open:We},Xe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Xe.a.createElement("div",{className:$r},Xe.a.createElement(vt.a,{onClick:this.handleButtonClick,skin:"link"},Object(ln.b)("sulu_admin.ok")))))}},Hr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNodeLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"propValue",[Ye.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"propValue"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Nr.prototype,"componentDidUpdate"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNodeLoading",[Ye.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNodeLoading"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNode",[Ye.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNode"),Nr.prototype),Yr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"handleFieldFilterTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Br=Nr))||Br,Ti="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),We=null),We}let ya=Object(qe.b)((Zr=class extends Xe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",ei,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",si,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",_i,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Ri,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",Ci,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Di,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",Ei,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Xe.a.createElement("div",{className:Ti},Object.keys(ce).length>0&&Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",{className:ga},Xe.a.createElement(vt.a,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Xe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Xe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Xe.a.createElement(Oi,{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]}))))}},ei=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterMenuOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterChipOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filteredFields",[Ye.computed],Object.getOwnPropertyDescriptor(Zr.prototype,"filteredFields"),Zr.prototype),_i=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Ri=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),Ci=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"openFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Di=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"closeFilterItem",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Ei=FieldFilter_applyDecoratedDescriptor(Zr.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)}}}),Jr=Zr))||Jr;var ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Ho,Vo,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),We=null),We}const ms="sulu_admin.list",gs="adapter";let ys=Object(qe.b)(((hs=class ce extends Xe.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 Ht.get(this.currentAdapterKey)}get currentAdapterOptions(){return Ht.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",Ho,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Vo,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(!Ht.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 Xe.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?Xe.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:Qe,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:Ht,schemaLoading:Vt,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?Xe.a.createElement(Dt.a,null):Xe.a.createElement("div",{className:bn},Qe,!Vt&&mn&&Xe.a.createElement("div",{className:en},Xe.a.createElement("div",{className:Tn},rn&&Xe.a.createElement(gn,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),ln&&Xe.a.createElement(fs,{fields:Bt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Xe.a.createElement("div",{className:Ln},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Xe.a.createElement(vt.a,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",null,Xe.a.createElement(vt.a,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Xe.a.createElement(bt.a.Section,null,Xe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.translate)("sulu_admin.column_options")))),Xe.a.createElement(Ar,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Wt})),Xe.a.createElement(Ut,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Xe.a.createElement("div",{className:Qt},Ht&&0===Lt.pageCount?Xe.a.createElement(Ct.a,{className:Sn}):Xe.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()})),Xe.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&&Xe.a.createElement(We.Fragment,null,Xe.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&&Xe.a.createElement(We.Fragment,null,Xe.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")}),Xe.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&&Xe.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&&Xe.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})}}}),Ho=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}}}),Vo=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(54);Ve(9);Ve(187);var ws=Ve(105);Ve(10);Ve(318);var Rs;Rs=class extends Ir{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 Xe.a.createElement(ws.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Xe.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),We=null),We}(Rs.prototype,"parameterOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"parameterOptions"),Rs.prototype);var Cs,Ds=Ve(31),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),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 Ir{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:ks},Xe.a.createElement(Ds.a,{onChange:this.handleOperatorChange,value:this.operator},Xe.a.createElement(Ds.a.Option,{value:"lt"},Ss.lt),Xe.a.createElement(Ds.a.Option,{value:"eq"},Ss.eq),Xe.a.createElement(Ds.a.Option,{value:"gt"},Ss.gt)),Xe.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,Ms=Ve(183),As=Ve(274),js=Ve(184);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),We=null),We}var Ls,zs,Is,Fs=Object(qe.b)(((Ts=class extends Xe.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?Xe.a.createElement(Ct.a,{size:30}):Xe.a.createElement(ws.a,{disabled:ce,onChange:this.handleChange,values:qe},this.resourceListStore.data.map(((ce,qe)=>Xe.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 js.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),We=null),We}const Ns="auto_complete";zs=SelectionFieldFilterType_applyDecoratedDescriptor((Ls=class extends Ir{get type(){return this.parameters&&(this.parameters.type||Ns)}constructor(ce,ze,Ve){super(ce,ze,Ve),SelectionFieldFilterType_initializerDefineProperty(this,"selectValue",zs,this),SelectionFieldFilterType_initializerDefineProperty(this,"setSelectValue",Is,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new Ms.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 Xe.a.createElement("div",{className:Bs},this.type===Ns&&Xe.a.createElement(As.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Xe.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(Ls.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"type"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"resourceKey"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"displayProperty",[Ye.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"displayProperty"),Ls.prototype),Is=SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"setSelectValue",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(615);var Hs,Vs,qs,Ys,Us,Ws=Ve(186),$s="item--di59UnizG3",Ks="text--pi+uoZQE6K",Gs="active--JZvcCW3w08",Js="disabled--NK1nwxLsja",Zs="order-field-shown--7CoOeL6DlA",Xs="children--uDoW0KRj5I",Qs="button--8HM7dynUtU",pl="visible--yITbOnFavE",gl="buttons--A5cr0sCqUp",yl="selected--tK-QW4ISuL",bl="indicator--rrzI69S1z4",vl="order-input--1bxIc0Un6d";class _l extends Xe.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()({[Qs]:!0,[pl]:ze});return Xe.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 Xe.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:Qe}=this.props,ot=mt()($s,{[Gs]:ce,[Js]:Ve,[yl]:Qe,[Zs]:We});return Xe.a.createElement("div",{className:ot,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&&Xe.a.createElement("span",{className:gl},this.renderButtons()),We&&Xe.a.createElement("div",{className:vl},Xe.a.createElement(_s.a,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),Xe.a.createElement("span",{className:Ks},Xe.a.createElement(Ws.a,null,ze)),Ye&&Ye.map(((ce,ze)=>Xe.a.createElement("span",{className:bl,key:ze},ce))),Xe.a.createElement("span",{className:Xs},qe&&Xe.a.createElement(Un.a,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},qs=Item_applyDecoratedDescriptor((Vs=Us).prototype,"order",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Item_applyDecoratedDescriptor(Vs.prototype,"componentDidUpdate",[Ye.action],Object.getOwnPropertyDescriptor(Vs.prototype,"componentDidUpdate"),Vs.prototype),Ys=Item_applyDecoratedDescriptor(Vs.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)}}}),Hs=Vs))||Hs,Rl="column--iDhGy8Hfqp",Cl="scrolling--rjSWf1vXhl",Dl="loader---JiDXbXRso";class kl extends Xe.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return Xe.a.Children.map(ce,(ce=>Xe.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 Xe.a.createElement("div",{className:qe,onMouseEnter:this.handleMouseEnter,role:"button"},ze?Xe.a.createElement("div",{className:Dl},Xe.a.createElement(Ct.a,null)):this.cloneItems(ce))}}kl.defaultProps={loading:!1,scrolling:!1};var Sl,xl,El,Ol,Pl,Tl,Ml={toolbar:"toolbar--DDtgPZnqyS",item:"item--RD3Dz+G6r6",primary:"primary--Ow8f8zFulj",secondary:"secondary--lCP02nZUtQ"},Al="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),We=null),We}let jl=Object(qe.b)((Tl=class extends Xe.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()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.a.createElement(Un.a,{name:ce}),Xe.a.createElement(Un.a,{className:Al,name:"su-angle-down"}))}render(){return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},Xe.a.createElement(bt.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:qe,onClick:Ye}=ce;return Xe.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 Ll,zl,Il,Fl,Bl,Nl=jl;class Hl extends Xe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=mt()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.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 Xe.a.createElement(Nl,Toolbar_extends({},ce,{key:ze}));case"button":return Xe.a.createElement(Hl,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return Xe.a.createElement("div",{className:Ml.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Bl.defaultProps={toolbarItems:[]},Il=Toolbar_applyDecoratedDescriptor((zl=Bl).prototype,"toolbar",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=Toolbar_applyDecoratedDescriptor(zl.prototype,"setToolbarRef",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),Ll=zl))||Ll;var Ul,Wl,$l,ec,nc,ic,oc,lc=Vl,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),We=null),We}let Ec=Object(qe.b)((oc=class extends Xe.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 Xe.a.Children.map(ce,((ce,Ye)=>Xe.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>=Xe.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(Xe.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 Xe.a.createElement("div",{className:hc},!!qe&&Xe.a.createElement("div",{className:fc,style:{marginLeft:ze}},!!qe.length&&Xe.a.createElement(lc,{toolbarItems:qe,toolbarRef:this.setToolbarRef})),Xe.a.createElement("div",{className:Ve,ref:this.setContainerRef},Xe.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,jc=Ec,Lc=Ve(359),Ic=Ve(168),Fc=Ve(45);Ve(98);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),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 Kc,Gc,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),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[Xe.a.createElement(Lc.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Xe.a.createElement(Un.a,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Xe.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(Xe.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:Xe=!0}={}}=ce;if(ze){const ce=qe?"su-plus-circle":Xe?"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:Xe,onRequestItemDelete:Qe,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 Qe&&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.");Qe(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)}}),Xe&&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.");Xe(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 Xe.a.createElement("div",{className:sd},Xe.a.createElement(jc,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((Ye,We)=>Xe.a.createElement(jc.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},Ye.map(((Ve,Ye)=>Xe.a.createElement(jc.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((Gc=td).prototype,"orderColumn",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qc=ColumnListAdapter_applyDecoratedDescriptor(Gc.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(Gc.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)}}}),Kc=Gc));var ld,cd,dd=Ve(90);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),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),We=null),We}const kd=[10,20,50,100];let Sd=Object(qe.b)((_d=class extends Xe.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 Xe.a.createElement("section",null,ze,Xe.a.createElement("nav",{className:wd},Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.per_page"),":"),Xe.a.createElement("span",null,Xe.a.createElement(Ds.a,{onChange:this.handleLimitChange,skin:"dark",value:Ye},kd.map((ce=>Xe.a.createElement(Ds.a.Option,{key:ce,value:ce},ce))))),Xe.a.createElement("div",{className:Rd},Ve&&Xe.a.createElement(Ct.a,{size:24})),Xe.a.createElement("span",null,Object(ln.b)("sulu_admin.page"),":"),Xe.a.createElement("span",{className:Dd},Xe.a.createElement(_s.a,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.of")," ",qe),Xe.a.createElement(Vt.a,null,Xe.a.createElement(vt.a,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),Xe.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",Md="ghost-indicator--Dz6SVejLaz";let Ad=((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(Xe.a.createElement(Lc.a,{className:Md,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(Xe.a.createElement(Ic.a,{className:Td,draft:ze,key:"publish",published:Ve}))}return Xe.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 Xe.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),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),We=null),We}Object(qe.b)((Nd=class extends Ad{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:Xe=!0}={}}={}}=ce||{},Qe=[];return Ve&&Qe.push({disabled:!Xe,icon:We?"su-pen":"su-eye",onClick:Ve}),qe&&Qe.push({disabled:!Ye,icon:"su-plus-circle",onClick:qe}),ze&&Qe.push(...ze(ce)),Qe},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(dd.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(Ct.a,null);const vt=Xe.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?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:gt,loading:qe,onLimitChange:Qe,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 Hd,Vd;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),We=null),We}let Yd=(Vd=FlatStructureStrategy_applyDecoratedDescriptor((Hd=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,qe;ce=this,ze="data",qe=this,(Ve=Vd)&&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(Hd.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(Hd.prototype,"visibleItems"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"clear",[Ye.action],Object.getOwnPropertyDescriptor(Hd.prototype,"clear"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(Hd.prototype,"order"),Hd.prototype),Hd);var Ud,Wd;Object(qe.b)((Wd=class extends Ad{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(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:Qe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Xe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowSelectionChange:Ye,selectMode:Ye?"multiple":void 0,skin:mt},st?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Xe.a.createElement(Od,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Qe,totalPages:yt},bt)}},Wd.LoadingStrategy=Vc,Wd.StructureStrategy=Yd,Wd.icon="su-align-justify",Ud=Wd));var $d="folder--MAPfkm9Cd0",Kd="description--gvVvBx2FXh",Gd="title--FU5Z2YeQes",Jd="info--D9Z5if0aia",Zd="icon-container--NzC3lsSfT-";class Xd extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Xe.a.createElement("div",{className:$d,onClick:this.handleClick,role:"button",tabIndex:"0"},Xe.a.createElement("div",{className:Zd},Xe.a.createElement(Un.a,{name:ce?"su-folder-permission":"su-folder"})),Xe.a.createElement("div",{className:Kd},Xe.a.createElement("h5",{className:Gd},Ve),Xe.a.createElement("div",{className:Jd},ze)))}}var Qd="folder-list--kdsLwfTOFY";class ku extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Xe.a.createElement("ul",{className:Qd},ze)}}ku.Folder=Xd;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:Qe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Xe.a.createElement(qu,{onFolderClick:Ye},ze.map((ze=>Xe.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:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:ot,loading:qe,onLimitChange:We,onPageChange:Qe,totalPages:mt},gt)}}).LoadingStrategy=Vc,Hu.StructureStrategy=Yd,Hu.icon="su-folder",Hu.defaultProps={data:[]},xu=Hu));Ve(265);ze.b=bs},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));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),We=null),We}let Xe=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var We,Xe,Qe,ot;We=this,Xe="value",ot=this,(Qe=Ye)&&Object.defineProperty(We,Xe,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.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";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(37),Ye=Ve(8),We=Ve(112),Xe=Ve(94),Qe=Ve(24);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(Xe.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,Xe=ze._bindToInternalToExternalMap.get(qe);if(We&&Xe)this._bindToExternalToInternalMap.set(qe,Xe),this._bindToInternalToExternalMap.set(Xe,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 Xe=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[Xe])):(qe=ce,Ve=qe[Xe],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 Qe=this._bindToInternalToExternalMap.get(qe);return this._bindToInternalToExternalMap.delete(qe),this._bindToExternalToInternalMap.delete(Qe),this.fire("remove",qe,ze),[qe,ze]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(Qe.a)(ot,qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(147),Ye=Ve(24);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 We}));var qe=Ve(125),Ye=Ve(266);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),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2080),yt=Ve(19),bt=Ve(39),vt=Ve(251),wt=Ve(275),Ct=Ve(327),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),We=null),We}const Bt="esc";var Ht=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&&Xe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Xe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Xe.a.bind(Bt,this.close):Xe.a.unbind(Bt),Object(vt.a)(Object(Qe.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:Xe,onSnackbarClick:Qe,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:Xe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Qe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.a=Ht},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2080),Xe=Ve(3),Qe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(251),gt=Ve(275);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,Xe,Qe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Qe-ot,left:qe+Xe,height:ze,scrollTop:0};st?vt.top=Ve+Qe+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+Qe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Qe:Ve+We-ze-Qe),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),We=null),We}const Pt="esc";var Tt=Object(Xe.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,horizontalOffset:Ve,centerChildElement:qe}=this.props,{top:Ye=0,left:We=0,width:Xe=0,height:Qe=0}=ce.getBoundingClientRect(),ot=qe?qe.offsetTop:0,st=!qe;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,Ye,We,Xe,Qe,Ve,ze,ot,st)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Xe}=this.props;if(!ce||!Ve)return null;const Qe=this.dimensions,ot={...bt.dimensionsToStyle(Qe),position:"fixed",pointerEvents:"auto"},st=Qe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Qe.left===Ve.getBoundingClientRect().left?"left":"right";return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement(We.a,null,Xe&&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,horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Qe.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 yt}));var qe=Ve(8),Ye=Ve(24),We=Ve(37),Xe=Ve(27),Qe=Ve(268),ot=Ve(255),st=Ve(72),mt=Ve(2076),gt=Ve(88);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,Xe=ce.revertData;for(ze in this.attributes)if(qe=We.getAttribute(ze),Ve=this.attributes[ze],Xe&&(Xe.attributes[ze]=qe),Ye=Object(st.a)(Ve[0])&&Ve[0].ns?Ve[0].ns:null,hasTemplateBinding(Ve)){const Qe=Ye?Ve[0].value:Ve;Xe&&shouldExtend(ze)&&Qe.unshift(qe),this._bindToObservable({schema:Qe,updater:getAttributeUpdater(We,ze,Ye),data:ce})}else"style"==ze&&"string"!=typeof Ve[0]?this._renderStyleAttribute(Ve[0],ce):(Xe&&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 Xe.a}function isTemplate(ce){return ce instanceof yt}function isViewCollection(ce){return ce instanceof Qe.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(211),Ye=Ve(68),We=Ve(131),Xe=Ve(15),Qe=Ve(258),ot=Ve(219),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 Xe.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 Qe.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 Qe.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 Qe.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 Xe.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(40),We=Ve(25),Xe=Ve(24),Qe=Ve(37),ot=Ve(172),st=Ve(440),mt=Ve(94),gt=Ve(634);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 Xe=!!Ve&&!!Ve.backward;let Qe;if(void 0===ze)throw new qe.a("view-selection-setto-required-second-parameter",this);Qe="in"==ze?Ye.a._createIn(ce):"on"==ze?Ye.a._createOn(ce):new Ye.a(We.a._createAt(ce,ze)),this._setRanges([Qe],Xe),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 Xe=this.anchor;this._ranges.pop(),"before"==Ve.compareWith(Xe)?this._addRange(new Ye.a(Ve,Xe),!0):this._addRange(new Ye.a(Xe,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(Xe.a)(yt,Qe.c)},function(ce,ze,Ve){"use strict";var qe=Ve(139),Ye=Object.prototype,We=Ye.hasOwnProperty,Xe=Ye.toString,Qe=qe.a?qe.a.toStringTag:void 0;var ot=function getRawTag(ce){var ze=We.call(ce,Qe),Ve=ce[Qe];try{ce[Qe]=void 0;var qe=!0}catch(ce){}var Ye=Xe.call(ce);return qe&&(ze?ce[Qe]=Ve:delete ce[Qe]),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(97).a.Symbol;ze.a=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(95),Ye=Ve(15);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(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),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=Xe()(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(Qe.a,{className:st.icon,name:mt}),Dt&&bt&&Ye.a.createElement("span",{className:st.label},Dt),We&&Ye.a.createElement(Qe.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=Xe()(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(128),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),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:Qe,disabled:ot,loading:st,showText:gt}=this.props,yt=Xe()(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?Qe: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,Ht={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 Vt 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=Xe()(Ht.option,Ht[ce],{[Ht[ze]]:ze,[Ht.isSelected]:qe});return Ye.a.createElement("li",{className:ot},Ye.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},qe&&Ye.a.createElement(Qe.a,{className:Ht.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=Xe()(Jt.optionList,Jt[qe],{[Jt[ce]]:ce});return Ye.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Xe=!!Ve.value&&Ve.value===ze;return Ye.a.createElement(Vt,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Xe,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:Xe,loading:Qe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return Ye.a.createElement(Bt,{disabled:Xe||st,icon:ce,label:ot?qe:void 0,loading:Qe,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(49),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),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=Xe()(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=Xe()(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 Kn,Gn,Jn,Zn=Ve(187);class Xn extends Ye.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:qe,skin:We,value:Xe}=this.props;return Ye.a.createElement(mt,{disabled:ce,loading:Ve,onClick:qe,skin:We},Ye.a.createElement(Zn.a,{checked:Xe,onChange:qe},ze))}}let er=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:Xe,showText:Qe,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:Qe?gt:void 0,loading:We,size:ot,skin:st},(ce=>Ye.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Xe,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),We=null),We}((Gn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Gn.prototype,"selectedOption"),Gn.prototype),Kn=Gn))||Kn;var tr=er,nr={toolbar:"toolbar--NUq57tQPDc",light:"light--tsWyh-QhSE",dark:"dark--6AbVStcDf5",controls:"controls--c4co3UZUf1"};class rr 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=Xe()(nr.toolbar,nr[ze]);return Ye.a.createElement("nav",{className:Ve},rr.createChildren(ce,ze))}}rr.defaultProps={skin:"light"},rr.Button=mt,rr.Controls=yt,rr.Dropdown=Cn,rr.Icons=Un,rr.Items=Fn,rr.Popover=Bt,rr.Select=tr,rr.Toggler=Xn;ze.a=rr},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(405),Ye=Function.prototype.call;ce.exports=qe?Ye.bind(Ye):function(){return Ye.apply(Ye,arguments)}},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(457);qe({target:"RegExp",proto:!0,forced:/./.exec!==Ye},{exec:Ye})},function(ce,ze,Ve){"use strict";var qe=Ve(458),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";var qe=Ve(37),Ye=Ve(112),We=Ve(255),Xe=Ve(401),Qe=Ve(685);const ot=Object(Qe.a)({},qe.c,{listenTo(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Object(We.a)(ce)||Object(Xe.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(Xe.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(Qe.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(147),Ye=Ve(38);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";var qe=Ve(530);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(538);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(16);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(374),We=Ve(97).a["__core-js_shared__"],Xe=(qe=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"";var Qe=function isMasked(ce){return!!Xe&&Xe in ce},ot=Ve(72),st=Ve(256),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)||Qe(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(68),Ye=Ve(131),We=Ve(57),Xe=Ve(18),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("model-tree-walker-no-start-position",null);const ze=ce.direction||"forward";if("forward"!=ze&&"backward"!=ze)throw new Qe.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=Xe.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 Qe=ze.parent,ot=Object(Xe.d)(ze,Qe),st=ot||Object(Xe.b)(ze,Qe,ot);if(st instanceof We.a)return this.shallow?ze.offset++:(ze.path.push(0),this._visitedParent=st),this.position=ze,formatReturnValue("elementStart",st,ce,ze,1);if(st instanceof qe.a){let qe;if(this.singleCharacters)qe=1;else{let ce=st.endOffset;this._boundaryEndParent==Ve&&this.boundaries.end.offsetce&&(ce=this.boundaries.start.offset),qe=ze.offset-ce}const We=ze.offset-st.startOffset,Xe=new Ye.a(st,We-qe,qe);return ze.offset-=qe,this.position=ze,formatReturnValue("text",Xe,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(765),Ye=qe.all;ce.exports=qe.IS_HTMLDDA?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";var qe=Ve(703),Ye=Ve(260),We=Ve(1128);qe||Ye(Object.prototype,"toString",We,{unsafe:!0})},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(710);qe({target:"String",proto:!0,forced:Ve(711)("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,Xe=Ve(1),Qe=Ve(32);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),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),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.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",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Xe.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(5),Xe=Ve.n(We),Qe={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=Xe()(Ve,Qe.colSpan,Qe["colSpan-"+ce],Qe["space-before-"+We],Qe["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{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 Qe=this.editor,ot=Qe.t,mt=new Xe.a(Qe.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,Qe.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=Qe.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.d)(ze))}var gt=Ve(129),yt=Ve(55),bt=Ve(89),vt=Ve(41),wt=Ve(24);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(27);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,Xe=[We.getStyle("width"),We.getStyle("height"),We.getStyle("left"),We.getStyle("top")];let Qe;if(qe.isSameNode(Ye)){const ze=ce||new yt.a(Ye);Qe=[ze.width+"px",ze.height+"px",void 0,void 0]}else Qe=[Ye.offsetWidth+"px",Ye.offsetHeight+"px",Ye.offsetLeft+"px",Ye.offsetTop+"px"];"same"!==Object(bt.a)(Xe,Qe)&&this._options.editor.editing.view.change((ce=>{ce.setStyle({width:Qe[0],height:Qe[1],left:Qe[2],top:Qe[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 Xe={width:Math.abs(ze.originalWidth+We.x),height:Math.abs(ze.originalHeight+We.y)};Xe.dominant=Xe.width/ze.aspectRatio>Xe.height?"width":"height",Xe.max=Xe[Xe.dominant];const Qe={width:Xe.width,height:Xe.height};return"width"==Xe.dominant?Qe.height=Qe.width/ze.aspectRatio:Qe.width=Qe.height*ze.aspectRatio,{width:Math.round(Qe.width),height:Math.round(Qe.height),widthPercents:Math.min(Math.round(ze.originalWidthPercents/ze.originalWidth*Qe.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(147),Et=Ve(70),Pt=Ve(272),Tt=Ve(1054);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(553)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));var qe=function spy(){return function spy(){spy.called=!0}};class Ye{constructor(ce,ze){this.source=ce,this.name=ze,this.path=[],this.stop=qe(),this.off=qe()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(95),Ye=Ve(57),We=Ve(8),Xe=Ve(18);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(qe),this.position=ce,this.position.stickiness="toNext",this.oldName=ze,this.newName=Ve}get type(){return"rename"}clone(){return new Qe(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Qe(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const ce=this.position.nodeAfter;if(!(ce instanceof Ye.a))throw new We.a("rename-operation-wrong-position",this);if(ce.name!==this.oldName)throw new We.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce}static get className(){return"RenameOperation"}static fromJSON(ce,ze){return new Qe(Xe.a.fromJSON(ce.position,ze),ce.oldName,ce.newName,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(61),We=Ve(708),Xe=Ve(133),Qe=Ve(196),ot=Ve(412),st=Ve(1126),mt=Ve(797),gt=Ve(798),yt=Ve(709),bt=Ve(116),vt=Ve(697),wt=bt("isConcatSpreadable"),Ct=vt>=51||!Ye((function(){var ce=[];return ce[wt]=!1,ce.concat()[0]!==ce})),isConcatSpreadable=function(ce){if(!Xe(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,Xe=Qe(this),yt=gt(Xe,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(Xe.a)(ze,Ve);switch(qe){case"prefix":return!0;case"extension":return!1;default:return ze[qe]`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:Xe,config:Qe={}}=qe,{withArrow:ot=!0}=Qe;Object.assign(this,{top:We,left:Ye,position:Xe,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(Qe.a.document,"scroll",((qe,Ye)=>{const We=Ye.target,Xe=ze&&We.contains(ze),Qe=Ve&&We.contains(Ve);!Xe&&!Qe&&ze&&Ve||this.attachTo(ce)}),{useCapture:!0}),this.listenTo(Qe.a.window,"resize",(()=>{this.attachTo(ce)}))}_stopPinning(){this.stopListening(Qe.a.document,"scroll"),this.stopListening(Qe.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";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";(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(143))},function(ce,ze,Ve){"use strict";var qe=Ve(121),Ye=Ve(784),We=Ve(785),Xe=Ve(134),Qe=Ve(447),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=qe?We?function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(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(Xe(ce),ze=Qe(ze),Xe(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(86),Ye=Ve(707),We=Ve(790).indexOf,Xe=Ve(472),Qe=Ye([].indexOf),ot=!!Qe&&1/Qe([1],1,-0)<0;qe({target:"Array",proto:!0,forced:ot||!Xe("indexOf")},{indexOf:function indexOf(ce){var ze=arguments.length>1?arguments[1]:void 0;return ot?Qe(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(48),Ye=Ve(66),We=Ve(263),Xe=Ve(66);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:Xe,errorPath:Qe},it:ot},st,mt,gt){const yt=gt?qe._`${ce}, ${ze}, ${Ye}${Xe}`:ze,bt=[[We.default.instancePath,(0,qe.strConcat)(We.default.instancePath,Qe)],[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 Qe=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?Qe:(0,Xe.useFunc)(ce,We)}(${Ve}, ${Ye})`})},ze.validateArray=function validateArray(ce){const{gen:ze,data:Ve,keyword:We,it:Xe}=ce,Qe=ze.name("valid");if(Xe.allErrors){const ce=ze.let("valid",!0);return validateItems((()=>ze.assign(ce,!1))),ce}return ze.var(Qe,!0),validateItems((()=>ze.break())),Qe;function validateItems(Xe){const ot=ze.const("len",qe._`${Ve}.length`);ze.forRange("i",0,ot,(Ve=>{ce.subschema({keyword:We,dataProp:Ve,dataPropType:Ye.Type.Num},Qe),ze.if((0,qe.not)(Qe),Xe)}))}},ze.validateUnion=function validateUnion(ce){const{gen:ze,schema:Ve,keyword:We,it:Xe}=ce;if(!Array.isArray(Ve))throw new Error("ajv implementation error");if(Ve.some((ce=>(0,Ye.alwaysValidSchema)(Xe,ce)))&&!Xe.opts.unevaluated)return;const Qe=ze.let("valid",!1),ot=ze.name("_valid");ze.block((()=>Ve.forEach(((Ve,Ye)=>{const Xe=ce.subschema({keyword:We,schemaProp:Ye,compositeRule:!0},ot);ze.assign(Qe,qe._`${Qe} || ${ot}`);ce.mergeValidEvaluated(Xe,ot)||ze.if((0,qe.not)(Qe))})))),ce.result(Qe,(()=>ce.reset()),(()=>ce.error(!0)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe,Ye=Ve(1),We=Ve(9),Xe=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),We=null),We}let Qe=(_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&&Xe.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,Xe=Ve(1),Qe=Ve(6),ot=Ve(32);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),We=null),We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=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=Xe,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(Qe.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(Xe.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",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,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),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",Xe,this),_initializerDefineProperty(this,"data",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_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";Ve.d(ze,"c",(function(){return createDropdown})),Ve.d(ze,"b",(function(){return addToolbarToDropdown})),Ve.d(ze,"a",(function(){return addListToDropdown}));var qe=Ve(27);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(149),Xe=Ve(393);class Qe 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=Qe._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:Xe,southMiddleWest:ot,northMiddleEast:st,northMiddleWest:mt}=Qe.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[Ve,qe,Xe,ot,ce,Ye,We,st,mt,ze]:[qe,Ve,ot,Xe,ce,We,Ye,mt,st,ze]}}Qe.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"})},Qe._getOptimalPosition=Xe.a;var ot=Ve(431),st=Ve(206),mt=Ve(278),gt=Ve(271);class yt extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bt=Ve(50),vt=Ve(435),wt=Ve(348);function createDropdown(ce){const ze=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.a)(ce),Ve=new Ye(ce),qe=new Qe(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",Xe="whole--EkCERIo1YX",Qe="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:Qe},Ve),Ye.a.createElement("div",{"aria-hidden":!0,className:ot},Ye.a.createElement("span",null,qe)),Ye.a.createElement("div",{className:Xe},ce))}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(390),Xe="toggler--LUfal72QUV";class Qe extends Ye.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:qe,children:Qe,onChange:ot}=this.props;return Ye.a.createElement(We.a,{checked:qe,className:Xe,disabled:ce,name:ze,onChange:ot,value:Ve},Qe)}}Qe.defaultProps={checked:!1,disabled:!1};ze.a=Qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return diff}));var qe=Ve(635);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,Xe;if(Yest?-1:1;mt[qe+yt]&&(mt[qe]=mt[qe+yt].slice(0)),mt[qe]||(mt[qe]=[]),mt[qe].push(Ye>st?We:Xe);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,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(30),yt=Ve(223),bt=Ve(12),vt=Ve(76),wt=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),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",Xe,this),_initializerDefineProperty(this,"loading",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_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(228),Xe=Ve(11);class Qe 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===Qe.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(Xe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:qe,skin:Xe}=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:Xe},ce)}}Qe.defaultProps={disabled:!1,skin:"default",values:[]},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.Divider=We.a.Divider;ze.a=Qe},function(ce,ze,Ve){"use strict";var qe=Ve(520);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe=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),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",Xe,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",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"props",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"size",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setConfig",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clearConfig",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clearConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"enabled",[Qe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"enabled"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setSize",[Qe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setSize"),qe.prototype),qe);ze.a=new st},function(ce,ze,Ve){"use strict";Ve.r(ze);var qe=Ve(521);ze.default=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(180),Ve(84),Ve(237),Ve(158);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Xe=Ve.n(We),Qe=Ve(82),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,Xe=ce.color,ot=ce.underlined,st=ce.children,mt=_objectWithoutPropertiesLoose(ce,["classes","semantic","size","color","underlined","children"]),gt=qe||"span",yt=Object(Qe.a)(Ve.text,Ve[We+"Size"],Ve[Xe+"Color"],((ze={})[Ve[gt]]=!!qe,ze[Ve.isUnderlined]=ot,ze));return Ye.a.createElement(gt,_extends({},mt,{className:yt}),st)};st.propTypes={classes:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,semantic:Xe.a.oneOf(["em","strong"]),size:Xe.a.oneOf(["inherit","small","base","text"]),color:Xe.a.oneOf(["base","light"]),underlined:Xe.a.bool,children:Xe.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},Xe=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 Qe=Xe(Ve(1769));ze.htmlDecodeTree=Qe.default;var ot=Xe(Ve(1770));ze.xmlDecodeTree=ot.default;var st=We(Ve(1001));ze.decodeCodePoint=st.default;var mt,gt=Ve(1001);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(Xe===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 Xe=Ve.write(ce,We+1);if(Xe<0){Ye=We+Ve.end();break}Ye=We+Xe,We=0===Xe?Ye+1:Ye}var Qe=ze+ce.slice(Ye);return ze="",Qe}}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 Xe=qe-We;return Xe<0||Xe>=Ye?-1:ce[Ve+Xe]-1}for(var Qe=Ve,ot=Qe+Ye-1;Qe<=ot;){var st=Qe+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(Qe.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(233),Ye=Object;ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(61),We=Ve(196),Xe=Ve(800),Qe=Ve(801);qe({target:"Object",stat:!0,forced:Ye((function(){Xe(1)})),sham:!Qe},{getPrototypeOf:function getPrototypeOf(ce){return Xe(We(ce))}})},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(234),We=Ve(461),Xe=Ve(1129),Qe=Ve(803),ot=Ve(134),st=Ve(133),mt=Ve(706),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){Qe(ce),ot(ze);var Ve=arguments.length<3?ce:Qe(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(Xe,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 Qe}));var qe,Ye=Ve(1),We=Ve(9),Xe=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),We=null),We}let Qe=(_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&&Xe.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),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(47),st=Ve(30),mt=Ve(403);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,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),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,Xe){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",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,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()),Qe.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=Xe,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,Xe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Xe)||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(){Qe.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(){Qe.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}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_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),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(45),st=Ve(51),mt=Ve(404);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,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),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,Xe){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",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,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()),Qe.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=Xe,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,Xe=Ye?Object.keys(Ye).reduce(((ce,ze)=>(void 0!==Ye[ze]&&(ce[ze]=Ye[ze]),ce)),{}):{};return We()(qe,Xe)||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(){Qe.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(){Qe.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}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_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 Ye}));var qe=Ve(126);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,Xe=Ye.y>=ze.y&&qe.y<=Ve.y;return We&&Xe},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,Xe=Ye.lng>=ze.lng&&qe.lng<=Ve.lng;return We&&Xe},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}(),er=!!document.createElement("canvas").getContext,tr=!(!document.createElementNS||!svgCreate("svg").createSVGRect),nr=!!tr&&((Et=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI)),rr=!tr&&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}}(),ar=0===navigator.platform.indexOf("Mac"),sr=0===navigator.platform.indexOf("Linux");function userAgentContains(ce){return navigator.userAgent.toLowerCase().indexOf(ce)>=0}var lr={ie:Tt,ielt9:Lt,edge:Ft,webkit:Bt,android:Ht,android23:Vt,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:Kn,touchNative:Un,mobileOpera:Gn,mobileGecko:Jn,retina:Zn,passiveEvents:Xn,canvas:er,svg:tr,vml:rr,inlineSvg:nr,mac:ar,linux:sr},dr=lr.msPointer?"MSPointerDown":"pointerdown",ur=lr.msPointer?"MSPointerMove":"pointermove",pr=lr.msPointer?"MSPointerUp":"pointerup",vr=lr.msPointer?"MSPointerCancel":"pointercancel",_r={touchstart:dr,touchmove:ur,touchend:pr,touchcancel:vr},Rr={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},Cr={},Dr=!1;function addPointerListener(ce,ze,Ve){return"touchstart"===ze&&_addPointerDocListener(),Rr[ze]?(Ve=Rr[ze].bind(this,Ve),ce.addEventListener(_r[ze],Ve,!1),Ve):(console.warn("wrong event specified:",ze),falseFn)}function removePointerListener(ce,ze,Ve){_r[ze]?ce.removeEventListener(_r[ze],Ve,!1):console.warn("wrong event specified:",ze)}function _globalPointerDown(ce){Cr[ce.pointerId]=ce}function _globalPointerMove(ce){Cr[ce.pointerId]&&(Cr[ce.pointerId]=ce)}function _globalPointerUp(ce){delete Cr[ce.pointerId]}function _addPointerDocListener(){Dr||(document.addEventListener(dr,_globalPointerDown,!0),document.addEventListener(ur,_globalPointerMove,!0),document.addEventListener(pr,_globalPointerUp,!0),document.addEventListener(vr,_globalPointerUp,!0),Dr=!0)}function _handlePointer(ce,ze){if(ze.pointerType!==(ze.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Ve in ze.touches=[],Cr)ze.touches.push(Cr[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 Er=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<=Er?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 Tr,Mr,Ar,jr,Lr,zr=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ir=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Br="webkitTransition"===Ir||"OTransition"===Ir?Ir+"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 lr.edge?ce.wheelDeltaY/2:ce.deltaY&&0===ce.deltaMode?-ce.deltaY/Yr: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 Ur={__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},Wr=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),Xe=this.getPixelBounds(),Qe=toBounds([Xe.min.add(Ve),Xe.max.subtract(qe)]),ot=Qe.getSize();if(!Qe.contains(We)){this._enforcingBounds=!0;var st=We.subtract(Qe.getCenter()),mt=Qe.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 Xe in ce.coords)"number"==typeof ce.coords[Xe]&&(We[Xe]=ce.coords[Xe]);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(),Xe=ce.getNorthWest(),Qe=ce.getSouthEast(),ot=this.getSize().subtract(Ve),st=toBounds(this.project(Qe,qe),this.project(Xe,qe)).getSize(),mt=lr.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&&lr.any3d,addClass(ce,"leaflet-container"+(lr.touch?" leaflet-touch":"")+(lr.retina?" leaflet-retina":"")+(lr.ielt9?" leaflet-oldie":"")+(lr.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),lr.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,Xe=!1;We;){if((Ve=this._targets[stamp(We)])&&("click"===ze||"preclick"===ze)&&this._draggableMoved(Ve)){Xe=!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||Xe||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=[],Xe=0;Xe0?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=lr.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=zr,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 $r(ce,ze)}var Kr=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 Kr(ce)};$r.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 Gr=Kr.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 Gr(ce,ze,Ve)},Jr=Kr.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"))}});$r.mergeOptions({zoomControl:!0}),$r.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Jr,this.addControl(this.zoomControl))}));var zoom=function(ce){return new Jr(ce)},Zr=Kr.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 Zr(ce)},ei='',si=Kr.extend({options:{position:"bottomright",prefix:''+(lr.inlineSvg?ei+" ":"")+"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(' ')}}});$r.mergeOptions({attributionControl:!0}),$r.addInitHook((function(){this.options.attributionControl&&(new si).addTo(this)}));var attribution=function(ce){return new si(ce)};Kr.Layers=Gr,Kr.Zoom=Jr,Kr.Scale=Zr,Kr.Attribution=si,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution;var _i=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}});_i.addTo=function(ce,ze){return ce.addHandler(ze,this),this};var Ri={Events:gt},Ci=lr.touch?"touchstart mousedown":"mousedown",Di=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,Ci,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Di._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,Ci,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)Di._dragging===this&&this.finishDrag();else if(!(Di._dragging||ce.shiftKey||1!==ce.which&&1!==ce.button&&!ce.touches||(Di._dragging=this,this._preventOutline&&preventOutline(this._element),disableImageDrag(),Tr(),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=Xe,ot=Qe);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,Xe=ze.y,Qe=Ve.x-We,ot=Ve.y-Xe,st=Qe*Qe+ot*ot;return st>0&&((Ye=((ce.x-We)*Qe+(ce.y-Xe)*ot)/st)>1?(We=Ve.x,Xe=Ve.y):Ye>0&&(We+=Qe*Ye,Xe+=ot*Ye)),Qe=ce.x-We,ot=ce.y-Xe,qe?Qe*Qe+ot*ot:new Point(We,Xe)}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,Xe,Qe,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=[Qe.x-ot*(Qe.x-Xe.x),Qe.y-ot*(Qe.y-Xe.y)];break}var wt=ze.unproject(toPoint(st));return toLatLng([wt.lat+mt.lat,wt.lng+mt.lng])}var Ti={__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),Xe=We*Math.sin(qe),Qe=Math.tan(Math.PI/4-qe/2)/Math.pow((1-Xe)/(1+Xe),We/2);return qe=-Ve*Math.log(Math.max(Qe,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),Xe=Math.exp(-ce.y/qe),Qe=Math.PI/2-2*Math.atan(Xe),ot=0,st=.1;ot<15&&Math.abs(st)>1e-7;ot++)ze=We*Math.sin(Qe),ze=Math.pow((1-ze)/(1+ze),We/2),Qe+=st=Math.PI/2-2*Math.atan(Xe*ze)-Qe;return new LatLng(Qe*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})}}});$r.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 Xe=0;XeYe?(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),Xe=toPoint(this.options.autoPanPadding),Qe=toPoint(this.options.autoPanPaddingTopLeft||Xe),ot=toPoint(this.options.autoPanPaddingBottomRight||Xe),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-Qe.x<0&&(mt=We.x-Qe.x),We.y+Ve+ot.y>st.y&&(gt=We.y+Ve-st.y+ot.y),We.y-gt-Qe.y<0&&(gt=We.y-Qe.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 Ho(ce,ze)};$r.mergeOptions({closePopupOnClick:!0}),$r.include({openPopup:function(ce,ze,Ve){return this._initOverlay(Ho,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(Ho,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 Vo=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()),Xe=qe.layerPointToContainerPoint(ce),Qe=this.options.direction,ot=Ye.offsetWidth,st=Ye.offsetHeight,mt=toPoint(this.options.offset),gt=this._getAnchor();"top"===Qe?(ze=ot/2,Ve=st):"bottom"===Qe?(ze=ot/2,Ve=0):"center"===Qe?(ze=ot/2,Ve=st/2):"right"===Qe?(ze=0,Ve=st/2):"left"===Qe?(ze=ot,Ve=st/2):Xe.xthis.options.maxZoom||Veqe&&this._retainParent(Ye,We,Xe,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 Xe=new Point(Ye,We);Xe.z=Ve+1;var Qe=this._tileCoordsToKey(Xe),ot=this._tiles[Qe];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:Xe.push(bt)}}if(Xe.sort((function(ce,ze){return ce.distanceTo(We)-ze.distanceTo(We)})),0!==Xe.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,lr.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"),lr.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&&lr.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:lr.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){lr.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=Xe;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",Xe),Wo.prototype._removeTile.call(this,ce)},_tileReady:function(ce,ze,Ve){if(this._map&&(!Ve||Ve.getAttribute("src")!==Xe))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&&lr.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,Xe=(this._wmsVersion>=1.3&&this._crs===_a?[Ye.y,Ye.x,We.y,We.x]:[Ye.x,Ye.y,We.x,We.y]).join(","),Qe=$o.prototype.getTileUrl.call(this,ce);return Qe+getParamString(this.wmsParams,Qe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Xe},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));lr.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=lr.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",lr.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=lr.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 lr.svg||lr.vml?new ls(ce):null}lr.vml&&ls.include(os),$r.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,$r.mergeOptions({boxZoom:!0});var ds=_i.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(),Tr(),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")),Mr(),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())}});$r.addInitHook("addHandler","boxZoom",ds),$r.mergeOptions({doubleClickZoom:!0});var us=_i.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)}});$r.addInitHook("addHandler","doubleClickZoom",us),$r.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ps=_i.extend({addHooks:function(){if(!this._draggable){var ce=this._map;this._draggable=new Di(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,Xe=Math.abs(Ye+Ve)0?We:-We))-ze;this._delta=0,this._startTime=null,Xe&&("center"===ce.options.scrollWheelZoom?ce.setZoom(ze+Xe):ce.setZoomAround(this._lastMousePos,ze+Xe))}});$r.addInitHook("addHandler","scrollWheelZoom",fs);var ms=600;$r.mergeOptions({tapHold:lr.touchNative&&lr.safari&&lr.mobile,tapTolerance:15});var gs=_i.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)}});$r.addInitHook("addHandler","tapHold",gs),$r.mergeOptions({touchZoom:lr.touch,bounceAtZoomLimits:!0});var ys=_i.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 Xe=bind(ze._move,ze,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimFrame(Xe,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}});$r.addInitHook("addHandler","touchZoom",ys),$r.BoxZoom=ds,$r.DoubleClickZoom=us,$r.Drag=ps,$r.Keyboard=hs,$r.ScrollWheelZoom=fs,$r.TapHold=gs,$r.TouchZoom=ys,ce.Bounds=Bounds,ce.Browser=lr,ce.CRS=wt,ce.Canvas=ns,ce.Circle=_o,ce.CircleMarker=go,ce.Class=Class,ce.Control=Kr,ce.DivIcon=Uo,ce.DivOverlay=Bo,ce.DomEvent=Ur,ce.DomUtil=Hr,ce.Draggable=Di,ce.Evented=yt,ce.FeatureGroup=Aa,ce.GeoJSON=Oo,ce.GridLayer=Wo,ce.Handler=_i,ce.Icon=Ba,ce.ImageOverlay=Ao,ce.LatLng=LatLng,ce.LatLngBounds=LatLngBounds,ce.Layer=ka,ce.LayerGroup=xa,ce.LineUtil=Ti,ce.Map=$r,ce.Marker=po,ce.Mixin=Ri,ce.Path=ho,ce.Point=Point,ce.PolyUtil=Oi,ce.Polygon=ko,ce.Polyline=Co,ce.Popup=Ho,ce.PosAnimation=Wr,ce.Projection=ba,ce.Rectangle=cs,ce.Renderer=ts,ce.SVG=ls,ce.SVGOverlay=Fo,ce.TileLayer=$o,ce.Tooltip=Vo,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 Ct}));var qe=Ve(27),Ye=Ve(113),We=Ve(269),Xe=Ve(149),Qe=Ve(432);class ot extends qe.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var st=Ve(267);function preventDefault(ce){return ce.bindTemplate.to((ze=>{ze.target===ce.element&&ze.preventDefault()}))}var mt=Ve(55),gt=Ve(70),yt=Ve(185),bt=Ve(8),vt=Ve(270),wt=Ve(641);class Ct 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 Xe.a,this.set("class"),this.set("isCompact",!1),this.itemsView=new Dt(ce),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const Qe="rtl"===ce.uiLanguageDirection;this._focusCycler=new We.a({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[Qe?"arrowright":"arrowleft","arrowup"],focusNext:[Qe?"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 St(this):new kt(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(vt.a)(ce),qe=Ve.items.filter(((ce,qe,Ye)=>"|"===ce||-1===Ve.removeItems.indexOf(ce)&&("-"===ce?!this.options.shouldGroupWhenFull||(Object(bt.b)("toolbarview-line-break-ignored-when-grouping-items",Ye),!1):!!ze.has(ce)||(Object(bt.b)("toolbarview-item-unavailable",{name:ce}),!1)))),Ye=this._cleanSeparators(qe).map((ce=>"|"===ce?new Qe.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 Dt 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 kt{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 St{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(!this.viewElement.offsetParent)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=gt.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 Qe.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(yt.c)(ce);return Ve.class="ck-toolbar__grouped-dropdown",Ve.panelPosition="ltr"===ce.uiLanguageDirection?"sw":"se",Object(yt.b)(Ve,[]),Ve.buttonView.set({label:ze("Show more items"),tooltip:!0,tooltipPosition:"rtl"===ce.uiLanguageDirection?"se":"sw",icon:wt.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),Xe=Ve.n(We),Qe="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=Xe()(Qe,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.r(ze);var qe=Ve(571);ze.default=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(576);ze.a=qe.default},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 Xe}));var qe=Ve(162),Ye=Ve(8),We=Ve(89);Ve(312);class Xe{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 Xe(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 Xe}));var qe=Ve(15),Ye=Ve(37),We=Ve(24);class Xe 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 Xe(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 Xe=null;if(Ye){"$graveyard"==Ve.root.rootName&&(Xe="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:Xe})}else We&&this.fire("change:content",this.toRange(),{deletionPosition:Xe})}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)(Xe,Ye.c)},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(2),Xe=Ve.n(We),Qe=Ve(35),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(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.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(Qe.b)(this,void 0,void 0,(function(){var Ve;return Object(Qe.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,Xe=ce.maxFiles;return!(!We&&ze.length>1||We&&Xe>=1&&ze.length>Xe)&&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)),Xe=We.open,Qe=_objectWithoutProperties(We,Et);return Object(qe.useImperativeHandle)(ze,(function(){return{open:Xe}}),[Xe]),Ye.a.createElement(qe.Fragment,null,Ve(es_objectSpread(es_objectSpread({},Qe),{},{open:Xe})))}));Lt.displayName="Dropzone";var Ft={disabled:!1,getFilesFromEvent:function fromEvent(ce){return Object(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.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:Xe.a.func,accept:Xe.a.oneOfType([Xe.a.string,Xe.a.arrayOf(Xe.a.string)]),multiple:Xe.a.bool,preventDropOnDocument:Xe.a.bool,noClick:Xe.a.bool,noKeyboard:Xe.a.bool,noDrag:Xe.a.bool,noDragEventsBubbling:Xe.a.bool,minSize:Xe.a.number,maxSize:Xe.a.number,maxFiles:Xe.a.number,disabled:Xe.a.bool,getFilesFromEvent:Xe.a.func,onFileDialogCancel:Xe.a.func,onFileDialogOpen:Xe.a.func,useFsAccessApi:Xe.a.bool,onDragEnter:Xe.a.func,onDragLeave:Xe.a.func,onDragOver:Xe.a.func,onDrop:Xe.a.func,onDropAccepted:Xe.a.func,onDropRejected:Xe.a.func,validator:Xe.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,Xe=ze.maxSize,Qe=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,Ht=ze.noDrag,Vt=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(),rr(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)&&!Vt||(mn({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(ce))}))}),[We,mt,Vt]),Ln=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce);var ze=isEvtWithFiles(ce);if(ze&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch(ce){}return ze&&yt&&yt(ce),!1}),[yt,Vt]),Fn=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(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,Vt]),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,Qe,Xe),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,Qe,Xe,st,bt,vt,wt,Ut]),Un=Object(qe.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce),Sn.current=[],isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Vt||Yn(ze,ce)})),mn({type:"reset"})}),[We,Yn,Vt]),Kn=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]),Gn=Object(qe.useCallback)((function(ce){Qt.current&&Qt.current.isEqualNode(ce.target)&&(32!==ce.keyCode&&13!==ce.keyCode||(ce.preventDefault(),Kn()))}),[Qt,en,Kn]),Jn=Object(qe.useCallback)((function(){mn({type:"focus"})}),[]),Zn=Object(qe.useCallback)((function(){mn({type:"blur"})}),[]),Xn=Object(qe.useCallback)((function(){Et||(isIeOrEdge()?setTimeout(Kn,0):Kn())}),[en,Et,Kn]),er=function composeHandler(ce){return Ye?null:ce},tr=function composeKeyboardHandler(ce){return Lt?null:er(ce)},nr=function composeDragHandler(ce){return Ht?null:er(ce)},rr=function stopPropagation(ce){Vt&&ce.stopPropagation()},ar=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,Xe=ce.onFocus,Qe=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:tr(composeEventHandlers(We,Gn)),onFocus:tr(composeEventHandlers(Xe,Jn)),onBlur:tr(composeEventHandlers(Qe,Zn)),onClick:er(composeEventHandlers(ot,Xn)),onDragEnter:nr(composeEventHandlers(st,Tn)),onDragOver:nr(composeEventHandlers(mt,Ln)),onDragLeave:nr(composeEventHandlers(gt,Fn)),onDrop:nr(composeEventHandlers(yt,Un)),role:"string"==typeof qe&&""!==qe?qe:"button"},Ve,Qt),Ye||Lt?{}:{tabIndex:0}),bt)}}),[Qt,Gn,Jn,Zn,Xn,Tn,Ln,Fn,Un,Lt,Ht,Ye]),sr=Object(qe.useCallback)((function(ce){ce.stopPropagation()}),[]),lr=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,Xe=_objectWithoutProperties(ce,Tt);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:Ve,multiple:ot,type:"file",style:{display:"none"},onChange:er(composeEventHandlers(Ye,Un)),onClick:er(composeEventHandlers(We,sr)),autoComplete:"off",tabIndex:-1},qe,en)),Xe)}}),[en,Ve,ot,Un,Ye]),dr=wn.length,ur=dr>0&&allFilesAccepted({files:wn,accept:Ve,minSize:Qe,maxSize:Xe,multiple:ot,maxFiles:st}),pr=dr>0&&!ur;return es_objectSpread(es_objectSpread({},ln),{},{isDragAccept:ur,isDragReject:pr,isFocused:gn&&!Ye,getRootProps:ar,getInputProps:lr,rootRef:Qt,inputRef:en,open:er(Kn)})}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(681),Ye=Ve(381),We=Ve(622),Xe=Object(We.a)(Object.keys,Object),Qe=Object.prototype.hasOwnProperty;var ot=function baseKeys(ce){if(!Object(Ye.a)(ce))return Xe(ce);var ze=[];for(var Ve in Object(ce))Qe.call(ce,Ve)&&"constructor"!=Ve&&ze.push(Ve);return ze},st=Ve(169);ze.a=function keys(ce){return Object(st.a)(ce)?Object(qe.a)(ce):ot(ce)}},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;Xe+=ce[Qe++]}if(!Xe)throw new TypeError("Missing parameter name at ".concat(Ve));ze.push({type:"NAME",index:Ve,value:Xe}),Ve=Qe}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||"/#?"),"]+?"),Xe=[],Qe=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,Xe=void 0===We||We,Qe=Ve.end,ot=void 0===Qe||Qe,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=Xe?"^":"",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 ot}));var qe=Ve(67),Ye=Ve(175),We=Ve(24),Xe=Ve(94),Qe=Ve(37);class ot{constructor(ce,ze){this.document=ce,this._children=[],ze&&this._insertChild(0,ze)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"view:documentFragment"===ce}_appendChild(ce){return this._insertChild(this.childCount,ce)}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}_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,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;Ve"string"==typeof ze?new qe.a(ce,ze):ze instanceof Ye.a?new qe.a(ce,ze.data):ze)))}Object(We.a)(ot,Qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(211),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(18),Ye=Ve(211),We=Ve(15),Xe=Ve(37),Qe=Ve(8),ot=Ve(24),st=Ve(94);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 Xe;if("in"==ze)Xe=We.a._createIn(ce);else if("on"==ze)Xe=We.a._createOn(ce);else{if(void 0===ze)throw new Qe.a("model-selection-setto-required-second-parameter",[this,ce]);Xe=new We.a(qe.a._createAt(ce,ze))}this._setRanges([Xe],Ye)}else{if(!Object(st.a)(ce))throw new Qe.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 Qe.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 Qe.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,Xe.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";var qe=Ve(292);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 Xe=function stackGet(ce){return this.__data__.get(ce)};var Qe=function stackHas(ce){return this.__data__.has(ce)},ot=Ve(295),st=Ve(326);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=Xe,Stack.prototype.has=Qe,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(114),Ye=Ve(67),We=Ve(175),Xe=Ve(25),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("view-tree-walker-no-start-position",null);if(ce.direction&&"forward"!=ce.direction&&"backward"!=ce.direction)throw new Qe.a("view-tree-walker-unknown-direction",ce.startPosition,{direction:ce.direction});this.boundaries=ce.boundaries||null,ce.startPosition?this.position=Xe.a._createAt(ce.startPosition):this.position=Xe.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 Qe;if(Ve instanceof Ye.a){if(ce.isAtEnd)return this.position=Xe.a._createAfter(Ve),this._next();Qe=Ve.data[ce.offset]}else Qe=Ve.getChild(ce.offset);if(Qe instanceof qe.a)return this.shallow?ce.offset++:ce=new Xe.a(Qe,0),this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1);if(Qe instanceof Ye.a){if(this.singleCharacters)return ce=new Xe.a(Qe,0),this.position=ce,this._next();{let Ve,qe=Qe.data.length;return Qe==this._boundaryEndParent?(qe=this.boundaries.end.offset,Ve=new We.a(Qe,0,qe),ce=Xe.a._createAfter(Ve)):(Ve=new We.a(Qe,0,Qe.data.length),ce.offset++),this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Qe){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=Xe.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 Qe;if(Ve instanceof Ye.a){if(ce.isAtStart)return this.position=Xe.a._createBefore(Ve),this._previous();Qe=Ve.data[ce.offset-1]}else Qe=Ve.getChild(ce.offset-1);if(Qe instanceof qe.a)return this.shallow?(ce.offset--,this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1)):(ce=new Xe.a(Qe,Qe.childCount),this.position=ce,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",Qe,ze,ce));if(Qe instanceof Ye.a){if(this.singleCharacters)return ce=new Xe.a(Qe,Qe.data.length),this.position=ce,this._previous();{let Ve,qe=Qe.data.length;if(Qe==this._boundaryStartParent){const ze=this.boundaries.start.offset;Ve=new We.a(Qe,ze,Qe.data.length-ze),qe=Ve.data.length,ce=Xe.a._createBefore(Ve)}else Ve=new We.a(Qe,0,Qe.data.length),ce.offset--;return this.position=ce,this._formatReturnValue("text",Ve,ze,ce,qe)}}if("string"==typeof Qe){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=Xe.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=Xe.a._createAfter(ze.textNode):(qe=Xe.a._createAfter(ze.textNode),this.position=qe)),0===ze.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?Ve=Xe.a._createBefore(ze.textNode):(qe=Xe.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,"d",(function(){return yt})),Ve.d(ze,"e",(function(){return insertText})),Ve.d(ze,"f",(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(15),Ye=Ve(220),We=Ve(57),Xe=Ve(332),Qe=Ve(115),ot=Ve(638),st=Ve(229),mt=Ve(8),gt=Ve(88);class yt extends ot.a{elementToElement(ce){return this.add(downcastElementToElement(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,"insert"))return;const qe=Ve.writer,Ye=Ve.mapper.toViewPosition(ze.range.start),We=qe.createText(ze.item.data);qe.insert(Ye,We)}}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}),Xe=Ve.writer.createRange(qe,We),Qe=Ve.writer.remove(Xe.getTrimmed());for(const ce of Ve.writer.createRangeIn(Qe).getItems())Ve.mapper.unbindViewElement(ce)}}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(),Xe=Ve.mapper.toViewPosition(We),Qe=Ye.breakAttributes(Xe);Ye.setSelection(Qe)}}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)=>{const We=ce(Ve.attributeOldValue,qe),Xe=ce(Ve.attributeNewValue,qe);if(!We&&!Xe)return;if(!qe.consumable.consume(Ve.item,ze.name))return;const ot=qe.writer,st=ot.document.selection;if(Ve.item instanceof Ye.a||Ve.item instanceof Qe.a)ot.wrap(st.getFirstRange(),Xe);else{let ce=qe.mapper.toViewRange(Ve.range);null!==Ve.attributeOldValue&&We&&(ce=ot.unwrap(ce,We)),null!==Ve.attributeNewValue&&Xe&&ot.wrap(ce,Xe)}}}function handleMarkerBoundary(ce,ze,Ve,qe,Ye){const We=ze?ce.start:ce.end,Xe=We.nodeAfter&&We.nodeAfter.is("element")?We.nodeAfter:null,Qe=We.nodeBefore&&We.nodeBefore.is("element")?We.nodeBefore:null;if(Xe||Qe){let ce,We;ze&&Xe||!ze&&!Qe?(ce=Xe,We=!0):(ce=Qe,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 Xe=`data-${We.group}-${ze?"start":"end"}-${Ve?"before":"after"}`,Qe=ce.hasAttribute(Xe)?ce.getAttribute(Xe).split(","):[];Qe.unshift(We.name),qe.writer.setAttribute(Xe,Qe.join(","),ce),qe.mapper.bindElementToMarker(ce,Ye.markerName)}function insertMarkerAsElement(ce,ze,Ve,qe,Ye){const We=`${Ye.group}-${ze?"start":"end"}`,Xe=Ye.name?{name:Ye.name}:null,Qe=Ve.writer.createUIElement(We,Xe);Ve.writer.insert(ce,Qe),Ve.mapper.bindElementToMarker(Qe,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 Xe=prepareDescriptor(ce,Ve,Ye);if(!Xe)return;if(!Ye.consumable.test(Ve.item,ze.name))return;const Qe=Ye.mapper.toViewElement(Ve.item);if(Qe&&Qe.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);Qe.getCustomProperty("addHighlight")(Qe,Xe,Ye.writer),Ye.mapper.bindElementToMarker(Qe,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),Xe=qe.mapper.markerNameToElements(Ve.markerName);if(Xe){for(const ce of Xe)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(st.a)(ce)).view=normalizeToElementConfig(ce.view,"container"),ze=>{var Ve;if(ze.on("insert:"+ce.model,(Ve=ce.view,(ce,ze,qe)=>{const Ye=Ve(ze.item,qe);if(!Ye)return;if(!qe.consumable.consume(ze.item,"insert"))return;const We=qe.mapper.toViewPosition(ze.range.start);qe.mapper.bindElements(ze.item,Ye),qe.writer.insert(We,Ye)}),{priority:ce.converterPriority||"normal"}),ce.triggerBy){if(ce.triggerBy.attributes)for(const Ve of ce.triggerBy.attributes)ze._mapReconversionTriggerEvent(ce.model,`attribute:${Ve}:${ce.model}`);if(ce.triggerBy.children)for(const Ve of ce.triggerBy.children)ze._mapReconversionTriggerEvent(ce.model,`insert:${Ve}`),ze._mapReconversionTriggerEvent(ce.model,`remove:${Ve}`)}}}function downcastAttributeToElement(ce){let ze="attribute:"+((ce=Object(st.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(st.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)=>{const qe=Ye(ze.attributeOldValue,Ve),We=Ye(ze.attributeNewValue,Ve);if(!qe&&!We)return;if(!Ve.consumable.consume(ze.item,ce.name))return;const Xe=Ve.mapper.toViewElement(ze.item),Qe=Ve.writer;if(!Xe)throw new mt.a("conversion-attribute-to-attribute-on-text",[ze,Ve]);if(null!==ze.attributeOldValue&&qe)if("class"==qe.key){const ce=Object(gt.a)(qe.value);for(const ze of ce)Qe.removeClass(ze,Xe)}else if("style"==qe.key){const ce=Object.keys(qe.value);for(const ze of ce)Qe.removeStyle(ze,Xe)}else Qe.removeAttribute(qe.key,Xe);if(null!==ze.attributeNewValue&&We)if("class"==We.key){const ce=Object(gt.a)(We.value);for(const ze of ce)Qe.addClass(ze,Xe)}else if("style"==We.key){const ce=Object.keys(We.value);for(const ze of ce)Qe.setStyle(ze,We.value[ze],Xe)}else Qe.setAttribute(We.key,We.value,Xe)}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToElement(ce){return(ce=Object(st.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 Xe=ze.markerRange;if(Xe.isCollapsed&&!qe.consumable.consume(Xe,ce.name))return;for(const ze of Xe)if(!qe.consumable.consume(ze.item,ce.name))return;const Qe=qe.mapper,ot=qe.writer;ot.insert(Qe.toViewPosition(Xe.start),Ye),qe.mapper.bindElementToMarker(Ye,ze.markerName),Xe.isCollapsed||(ot.insert(Qe.toViewPosition(Xe.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(st.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 Qe.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 Xe=qe.writer,ot=createViewElementFromHighlightDescriptor(Xe,We),st=Xe.document.selection;if(ze.item instanceof Ye.a||ze.item instanceof Qe.a)Xe.wrap(st.getFirstRange(),ot,st);else{const ce=qe.mapper.toViewRange(ze.range),Ve=Xe.wrap(ce,ot);for(const ce of Ve.getItems())if(ce.is("attributeElement")&&ce.isSimilar(ot)){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 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(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _createClass}));var qe=Ve(678);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(105),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,Xe=wt()(kt.option,kt[We],{[kt.selected]:ze});return Ye.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},Ye.a.createElement("button",{className:Xe,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(186),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,Ht,Vt,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),We=null),We}let Cn=Object(Xe.b)((bn=class extends Ye.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Ht,this),_initializerDefineProperty(this,"searchText",Vt,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}),Ht=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Vt=_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";var qe=Ve(386);ze.a=function cloneDeep(ce){return Object(qe.a)(ce,5)}},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(687),Ye=Function.prototype,We=Ye.call,Xe=qe&&Ye.bind.bind(We,We);ce.exports=qe?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";var qe=Ve(69),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(306),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(104),Ye=Ve(101);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(1187),Ve(1192),Ve(1193),Ve(1194),Ve(1196)},function(ce,ze,Ve){"use strict";var qe=Ve(86),Ye=Ve(121),We=Ve(104),Xe=Ve(69),Qe=Ve(109),ot=Ve(101),st=Ve(335),mt=Ve(146),gt=Ve(339),yt=Ve(788),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=Xe(vt.valueOf),St=Xe(vt.toString),xt=/^Symbol\((.*)\)[^)]+$/,Et=Xe("".replace),Pt=Xe("".slice);gt(vt,"description",{configurable:!0,get:function description(){var ce=kt(this);if(Qe(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(86),Ye=Ve(196),We=Ve(456);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(86),Ye=Ve(418).filter;qe({target:"Array",proto:!0,forced:!Ve(709)("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=void 0;const qe=Ve(1699),Ye=Ve(1708),We=Ve(1741),Xe=Ve(1743),Qe=["/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(Xe,Qe):Xe;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)}}ce.exports=ze=st,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=st;var mt=Ve(477);Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return mt.KeywordCxt}});var gt=Ve(48);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(730);Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return yt.default}});var bt=Ve(731);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(331),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";var qe,Ye,We,Xe=Ve(1),Qe=Ve(20),ot=Ve(103);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),We=null),We}let st=(qe=class{constructor(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=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=Xe,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(Qe.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(Xe.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",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"ids"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"removeById"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"move"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),qe);ze.a=st},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,ot=Ve(1),st=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),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",Xe,this),_initializerDefineProperty(this,"data",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_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=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(671);var gt=Object(ot.b)(((Ye=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.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(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,metadataOptions:Ye,options:We,preSelectedItem:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,qe&&(mt.locale=qe);const gt=[];Xe&>.push(Xe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,Ye,gt),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural}),this.selectionDisposer=Object(Qe.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:Qe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,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(566);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(403);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(97),Ye=Ve(1053),We="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?qe.a.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||Ye.a;ze.a=ot}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var qe=Ve(404);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 Xe.a}));const qe=new WeakMap;function enablePlaceholder(ce){const{view:ze,element:Ve,text:Ye,isDirectHost:We=!0,keepOnFocus:Xe=!1}=ce,Qe=ze.document;qe.has(Qe)||(qe.set(Qe,new Map),Qe.registerPostFixer((ce=>updateDocumentPlaceholders(Qe,ce)))),qe.get(Qe).set(Ve,{text:Ye,isDirectHost:We,keepOnFocus:Xe,hostElement:We?Ve:null}),ze.change((ce=>updateDocumentPlaceholders(Qe,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 Xe=!1;We.getAttribute("data-placeholder")!==qe&&(ce.setAttribute("data-placeholder",qe,We),Xe=!0);return(Ye||1==ze.childCount)&&needsPlaceholder(We,Ve.keepOnFocus)?showPlaceholder(ce,We)&&(Xe=!0):hidePlaceholder(ce,We)&&(Xe=!0),Xe}function getChildPlaceholderHostSubstitute(ce){if(ce.childCount){const ze=ce.getChild(0);if(ze.is("element")&&!ze.is("uiElement"))return ze}return null}Ve(513),Ve(554),Ve(502),Ve(601),Ve(107),Ve(140),Ve(503),Ve(504),Ve(115),Ve(15),Ve(212),Ve(119),Ve(511);var Ye=Ve(154),We=(Ve(57),Ve(277),Ve(536),Ve(369),Ve(287)),Xe=(Ve(125),Ve(204),Ve(126));Ve(272),Ve(362),Ve(218),Ve(114),Ve(67),Ve(331),Ve(25),Ve(40),Ve(137);Ve(240),Ve(266),Ve(350);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(153),Ye=Ve(97),We=Object(qe.a)(Ye.a,"DataView"),Xe=Ve(295),Qe=Object(qe.a)(Ye.a,"Promise"),ot=Object(qe.a)(Ye.a,"Set"),st=Object(qe.a)(Ye.a,"WeakMap"),mt=Ve(138),gt=Ve(256),yt="[object Map]",bt="[object Promise]",vt="[object Set]",wt="[object WeakMap]",Ct="[object DataView]",Dt=Object(gt.a)(We),kt=Object(gt.a)(Xe.a),St=Object(gt.a)(Qe),xt=Object(gt.a)(ot),Et=Object(gt.a)(st),Pt=mt.a;(We&&Pt(new We(new ArrayBuffer(1)))!=Ct||Xe.a&&Pt(new Xe.a)!=yt||Qe&&Pt(Qe.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(1236),Ve(65),Ve(84),Ve(145),Ve(261);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(618),Ye="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=Ye&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===Ye&&qe.a.process,Qe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Xe&&Xe.binding&&Xe.binding("util")}catch(ce){}}();ze.a=Qe}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var qe=Ve(496);ze.a=qe.default},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";Ve.d(ze,"a",(function(){return Ye}));var qe=Ve(424);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";Ve.d(ze,"a",(function(){return ot}));var qe=Ve(219),Ye=Ve(57),We=Ve(68),Xe=Ve(131),Qe=Ve(94);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(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";var qe=Ve(230);ce.exports=!qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var qe=Ve(101),Ye=Ve(178),We=Ve(786),Xe=Ve(699);ce.exports=function(ce,ze,Ve,Qe){Qe||(Qe={});var ot=Qe.enumerable,st=void 0!==Qe.name?Qe.name:ze;if(qe(Ve)&&We(Ve,st,Qe),Qe.global)ot?ce[ze]=Ve:Xe(ze,Ve);else{try{Qe.unsafe?ce[ze]&&(ot=!0):delete ce[ze]}catch(ce){}ot?ce[ze]=Ve:Ye.f(ce,ze,{value:Ve,enumerable:!1,configurable:!Qe.nonConfigurable,writable:!Qe.nonWritable})}return ce}},function(ce,ze,Ve){"use strict";var qe=Ve(461),Ye=Ve(144),We=Ve(69),Xe=Ve(459),Qe=Ve(61),ot=Ve(134),st=Ve(101),mt=Ve(306),gt=Ve(453),yt=Ve(454),bt=Ve(146),vt=Ve(233),wt=Ve(712),Ct=Ve(407),Dt=Ve(1131),kt=Ve(460),St=Ve(116)("replace"),xt=Math.max,Et=Math.min,Pt=We([].concat),Tt=We([].push),Lt=We("".indexOf),Ft=We("".slice),Bt="$0"==="a".replace(/./,"$0"),Ht=!!/./[St]&&""===/./[St]("a","$0");Xe("replace",(function(ce,ze,Ve){var We=Ht?"$":"$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 Xe=ot(this),Qe=bt(ce);if("string"==typeof Ye&&-1===Lt(Ye,We)&&-1===Lt(Ye,"$<")){var mt=Ve(ze,Xe,Qe,Ye);if(mt.done)return mt.value}var vt=st(Ye);vt||(Ye=bt(Ye));var Ct,St=Xe.global;St&&(Ct=Xe.unicode,Xe.lastIndex=0);for(var Bt,Ht=[];null!==(Bt=kt(Xe,Qe))&&(Tt(Ht,Bt),St);){""===bt(Bt[0])&&(Xe.lastIndex=wt(Qe,yt(Xe.lastIndex),Ct))}for(var Vt,Ut="",Wt=0,Jt=0;Jt=Wt&&(Ut+=Ft(Qe,Wt,rn)+Qt,Wt=rn+en.length)}return Ut+Ft(Qe,Wt)}]}),!!Qe((function(){var ce=/./;return ce.exec=function(){var ce=[];return ce.groups={a:"7"},ce},"7"!=="".replace(ce,"$")}))||!Bt||Ht)},function(ce,ze,Ve){var qe=Ve(714),Ye=Ve(719);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(48),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.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(685);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 Qe}));var qe=Ve(24),Ye=Ve(70),We=Ve(55),Xe=Ve(147);class Qe{constructor(ce,ze){Qe._observerInstance||Qe._createObserver(),this._element=ce,this._callback=ze,Qe._addElementCallback(ce,ze),Qe._observerInstance.observe(ce)}destroy(){Qe._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ce,ze){Qe._elementCallbacks||(Qe._elementCallbacks=new Map);let Ve=Qe._elementCallbacks.get(ce);Ve||(Ve=new Set,Qe._elementCallbacks.set(ce,Ve)),Ve.add(ze)}static _deleteElementCallback(ce,ze){const Ve=Qe._getElementCallbacks(ce);Ve&&(Ve.delete(ze),Ve.size||(Qe._elementCallbacks.delete(ce),Qe._observerInstance.unobserve(ce))),Qe._elementCallbacks&&!Qe._elementCallbacks.size&&(Qe._observerInstance=null,Qe._elementCallbacks=null)}static _getElementCallbacks(ce){return Qe._elementCallbacks?Qe._elementCallbacks.get(ce):null}static _createObserver(){let ce;ce="function"==typeof Ye.a.window.ResizeObserver?Ye.a.window.ResizeObserver:ot,Qe._observerInstance=new ce((ce=>{for(const ze of ce){const ce=Qe._getElementCallbacks(ze.target);if(ce)for(const Ve of ce)Ve(ze)}}))}}Qe._observerInstance=null,Qe._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,Xe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(8),Ye=Ve(124);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(70);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||"none"==qe.a.window.getComputedStyle(ce.element).display)}},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(27);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(126);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,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(3),St=Ve(1),xt=Ve(49),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(19),Ht=Ve(52),Vt=Ve(660),Ut=Ve(674),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),We=null),We}let mn=Object(kt.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"inputRef",Xe,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setLabelRef",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 Xe=Ye.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Xe)&&(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.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:qe,loading:Ye,searchProperties:We,suggestions:Xe,value:Qe}=this.props,ot=Ft()(Wt,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("label",{className:ot,ref:this.setLabelRef},Dt.a.createElement("div",{className:en},Ye?Dt.a.createElement(Ht.a,{size:16}):Dt.a.createElement(Bt.a,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Qe.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(Vt.a,{anchorElement:this.labelRef,idProperty:qe,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:this.inputValue,searchProperties:We,suggestions:Xe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((Ye=wt).prototype,"labelRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"inputRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_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,"setLabelRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=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(682);Ve(183);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:Xe,selectionStore:Qe}=this.props;return Dt.a.createElement(wn,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:qe,idProperty:Ye,inputRef:We,loading:this.searchStore.loading||Qe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Xe,suggestions:this.searchStore.searchResults,value:Qe.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},gn=bn))||gn;ze.a=Sn},function(ce,ze,Ve){"use strict";var qe=Ve(5),Ye=Ve.n(qe),We=Ve(0),Xe=Ve.n(We),Qe="backdrop--NZJVO6A-OW",ot="visible--hFwYopciso",st="fixed--aOYT+NGh1F";class mt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=Ye()(Qe,{[ot]:ce,[st]:ze});return Xe.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(28),Ye=Ve(78),We=Ve(440),Xe=Ve(645);class Qe extends Ye.a{constructor(ce,ze){super(ce),this.direction=ze,this._buffer=new Xe.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),Xe=ce.sequence||1,Qe=Ye.isCollapsed;if(Ye.isCollapsed&&ze.modifySelection(Ye,{direction:this.direction,unit:ce.unit}),this._shouldEntireContentBeReplacedWithParagraph(Xe))return void this._replaceEntireContentWithParagraph(qe);if(this._shouldReplaceFirstBlockWithParagraph(Ye,Xe))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:Qe,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(125),st=Ve(266),mt=Ve(288),gt=Ve(38),yt=Ve(58),bt=Ve(330);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 Qe(ce,"forward");if(ce.commands.add("deleteForward",Ye),ce.commands.add("forwardDelete",Ye),ce.commands.add("delete",new Qe(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 Et}));var qe=Ve(67),Ye=Ve(114),We=Ve(322),Xe=Ve(25),Qe=Ve(40),ot=Ve(137),st=Ve(218),mt=Ve(225),gt=Ve(240),yt=Ve(60),bt=Ve(70),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(99);const Ct=Object(yt.a)(document),Dt=Object(yt.e)(document),kt=Object(yt.d)(document),St="data-ck-unsafe-attribute-",xt="data-ck-unsafe-element";class Et{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._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),Xe=[];let Qe;for(;Qe=We.nextNode();)Xe.push(Qe);for(const ce of Xe){for(const ze of ce.getAttributeNames())this.setDomElementAttribute(ce,ze,ce.getAttribute(ze));const ze=ce.tagName.toLowerCase();this._shouldRenameElement(ze)&&(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),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)?(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),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(St+ze)&&Ye&&ce.removeAttribute(St+ze),ce.setAttribute(Ye?ze:St+ze,Ve)}removeDomElementAttribute(ce,ze){ze!=xt&&(ce.removeAttribute(ze),ce.removeAttribute(St+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 Xe of ce.getChildren())Ye===We&&(yield Ve._getBlockFiller(ze)),yield Ve.viewToDom(Xe,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(this.isComment(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-1;ce>=0;ce--)Ve._setAttribute(qe[ce].name,qe[ce].value);if(this._isViewElementWithRawContent(Ve,ze)||this.isComment(ce)){const ze=this.isComment(ce)?ce.data:ce.innerHTML;return Ve._setCustomProperty("$rawContent",ze),this._encounteredRawContentDomNodes.add(ce),Ve}}if(!1!==ze.withChildren)for(const qe of this.domChildrenToView(ce,ze))Ve._appendChild(qe);return Ve}}domChildrenToView(ce){var ze=this;let Ve=arguments.length>1&&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 Xe.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 Xe.a(Ve,qe)):null}if(0===ze){const ze=this.mapDomToView(ce);if(ze)return new Xe.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 Xe.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}isComment(ce){return ce&&ce.nodeType==Node.COMMENT_NODE}isBlockFiller(ce){return"br"==this.blockFillerMode?ce.isEqualNode(Ct):!("BR"!==ce.tagName||!hasBlockParent(ce,this.blockElements)||1!==ce.parentNode.childNodes.length)||(ce.isEqualNode(kt)||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 Xe=qe&&this.isElement(qe)&&"BR"!=qe.tagName,Qe=qe&&Object(wt.a)(qe)&&" "==qe.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(ze)||!qe||Xe||Qe)&&(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?Xe.a._createAfter(ce):Xe.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(this.isComment(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){return"editing"==this.renderingMode&&"script"==ce.toLowerCase()}_createReplacementDomElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=document.createElement("span");if(Ve.setAttribute(xt,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(Dt)&&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(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var qe=Ve(27),Ye=Ve(113),We=Ve(269),Xe=Ve(149);class Qe extends qe.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ye.a,this.keystrokes=new Xe.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(27);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(1746),Ye=Ve(828),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";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&&ce1&&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(164);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";var qe=Ve(545);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(222),Ye=Ve(326);var We=function setCacheAdd(ce){return this.__data__.set(ce,"__lodash_hash_undefined__"),this};var Xe=function setCacheHas(ce){return this.__data__.has(ce)};function SetCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.__data__=new Ye.a;++zemt))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 Qe:void 0;for(We.set(ce,ze),We.set(ze,ce);++vt{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,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}),Xe=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:Xe,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))))):Xe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((Ye=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_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()}}}),Qe=_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:Xe,sortable:Qe}=this.props,ot=this.createDragHandle(),st=bt()(Vt,{[Ut]:Ve}),gt=bt()(Jt,{[Qt]:Ye}),yt=bt()(Wt,{[ln]:Qe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Qe&&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"})),Xe&&(!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:Xe,onItemEdit:Qe,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(Ht,{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:Xe||ze.props.onClick,onEdit:Qe?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(210);var We=function assocIndexOf(ce,ze){for(var Ve=ce.length;Ve--;)if(Object(Ye.a)(ce[Ve][0],ze))return Ve;return-1},Xe=Array.prototype.splice;var Qe=function listCacheDelete(ce){var ze=this.__data__,Ve=We(ze,ce);return!(Ve<0)&&(Ve==ze.length-1?ze.pop():Xe.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{let{element:ze,newElement:Ve}=ce;ze.style.display="",Ve&&Ve.remove()})),this._replacedElements=[]}}Ve(598),Ve(147);var Qe=Ve(70);function getDataFromElement(ce){return ce instanceof HTMLTextAreaElement?ce.value:ce.innerHTML}Ve(55),Ve(267),Ve(500),Ve(148);var ot=Ve(38),st=(Ve(430),Ve(597),Ve(124)),mt=Ve(501),gt=(Ve(113),Ve(149),Ve(88),Ve(162),Ve(286));Ve(112),Ve(312)},function(ce,ze,Ve){"use strict";var qe=Ve(153),Ye=Ve(97),We=Object(qe.a)(Ye.a,"Map");ze.a=We},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return ot})),Ve.d(ze,"c",(function(){return convertToModelFragment})),Ve.d(ze,"b",(function(){return convertText})),Ve.d(ze,"a",(function(){return convertSelectionChange}));var qe=Ve(240),Ye=Ve(638),We=Ve(229),Xe=Ve(286),Qe=Ve(221);class ot extends Ye.a{elementToElement(ce){return this.add(upcastElementToElement(ce))}elementToAttribute(ce){return this.add(upcastElementToAttribute(ce))}attributeToAttribute(ce){return this.add(upcastAttributeToAttribute(ce))}elementToMarker(ce){return this.add(upcastElementToMarker(ce))}dataToMarker(ce){return this.add(upcastDataToMarker(ce))}}function convertToModelFragment(){return(ce,ze,Ve)=>{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,Xe=ze.modelCursor;if(!Ye.test(ze.viewItem))return;if(!qe.checkChild(Xe,"$text")){if(!Object(Qe.b)(Xe,"$text",qe))return;Xe=Object(Qe.c)(Xe,We)}Ye.consume(ze.viewItem);const ot=We.createText(ze.viewItem.data);We.insert(ot,Xe),ze.modelRange=We.createRange(Xe,Xe.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 Xe=ce.createSelection(We,{backward:Ye.isBackward});Xe.isEqual(ce.document.selection)||ce.change((ce=>{ce.setSelection(Xe)}))}}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=Xe.a.get("low"),We=Xe.a.get("highest"),Qe=Xe.a.get(ce.converterPriority)/We;qe.on("element",upcastAttributeToMarker(ce),{priority:Ye+Qe})}}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),Xe=qe.writer.createElement("$marker",{"data-name":Ye});qe.writer.insert(Xe,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 Xe=We.match;if(Xe.name=!0,!Ye.consumable.test(qe.viewItem,Xe))return;const Qe=getModelElement(ce.model,qe.viewItem,Ye);Qe&&Ye.safeInsert(Qe,qe.modelCursor)&&(Ye.consumable.consume(qe.viewItem,Xe),Ye.convertChildren(qe.viewItem,Qe),Ye.updateConversionResult(Qe,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){Ve={["class"==ze?"classes":"styles"]:ce.view.value}}else{Ve={attributes:{[ze]:void 0===ce.view.value?/[\s\S]*/:ce.view.value}}}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)=>{const Xe=Ve.match(Ye.viewItem);if(!Xe)return;if(onlyViewNameIsDefined(ce.view,Ye.viewItem)?Xe.match.name=!0:delete Xe.match.name,!We.consumable.test(Ye.viewItem,Xe.match))return;const Qe=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:Qe,value:ot},ze,We)&&We.consumable.consume(Ye.viewItem,Xe.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(95),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(28),Ye=Ve(78),We=Ve(645);class Xe extends Ye.a{constructor(ce,ze){super(ce),this._buffer=new We.a(ce.model,ze),this._batches=new WeakSet}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,Xe=ce.resultRange;ze.enqueueChange(this._buffer.batch,(ce=>{this._buffer.lock(),this._batches.add(this._buffer.batch),ze.deleteContent(We),qe&&ze.insertContent(ce.createText(qe,Ve.selection.getAttributes()),We),Xe?ce.setSelection(Xe):We.is("documentSelection")||ce.setSelection(We),this._buffer.unlock(),this._buffer.input(Ye)}))}}var Qe=Ve(349),ot=Ve(188),st=Ve(277),mt=Ve(330);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),Xe=this.editor.editing.mapper.toModelElement(Ve);if(!Xe)return;const Qe=Array.from(We.getChildren()),mt=Array.from(Xe.getChildren()),gt=Qe[Qe.length-1],yt=mt[mt.length-1],bt=gt&>.is("element","softBreak"),vt=yt&&!yt.is("element","softBreak");bt&&vt&&Qe.pop();const wt=this.editor.model.schema;if(!isSafeForTextMutation(Qe,wt)||!isSafeForTextMutation(mt,wt))return;const Ct=Qe.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(Xe,St),this.editor.model.createPositionAt(Xe,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:Xe,deletions:Qe}=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(Qe)),bt=Ve.substr(We,Xe);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)=>{"transparent"!=ze.type&&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:Xe}=getLastTextLine(Ye,Ve),Qe=this.testCallback(We);if(!Qe&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!Qe,Qe){const Ve=Object.assign(ze,{text:We,range:Xe});"object"==typeof Qe&&Object.assign(Ve,Qe),this.fire(`matched:${ce}`,Ve)}}}Object(wt.a)(Dt,Ct.a);var kt=Ve(38);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 Xe=qe.contentLanguageDirection;let Qe=!1;Qe="ltr"===Xe&&Ve||"rtl"===Xe&&We?this._handleForwardMovement(ze):this._handleBackwardMovement(ze),!0===Qe&&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(679);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),Xe=null;for(;We&&We.getAttribute(ze)==Ve;)Xe=We,We=qe?We.previousSibling:We.nextSibling;return Xe?Ye.createPositionAt(Xe,qe?"before":"after"):ce}function inlineHighlight(ce,ze,Ve,qe){const Ye=ce.editing.view,We=new Set;Ye.document.registerPostFixer((Ye=>{const Xe=ce.model.document.selection;let Qe=!1;if(Xe.hasAttribute(ze)){const ot=findAttributeRange(Xe.getFirstPosition(),ze,Xe.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),Qe=!0)}return Qe})),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";var qe=Ve(544);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe,Ye=Ve(0),We=Ve.n(Ye),Xe=Ve(1),Qe=Ve(3),ot=Ve(33),st=Ve(7),mt=Ve(6),gt=Ve(11),yt=Ve(75);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),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",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locked",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locked"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"permissions",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"permissions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"parentId",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"parentId"),qe.prototype),qe),Et=Ve(213),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(32);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),We=null),We}const Ft="media",Bt="media_preview",Ht="fileVersion";var Vt,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(Xe.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,Ht).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,Ht).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(Xe.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,Xe=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)),Xe.append(Ve,ce),We.send(Xe)}))}}).prototype,"uploading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"progress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"media",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"id"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"downloadUrl",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"downloadUrl"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"mimeType",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"mimeType"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setUploading",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setUploading"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setProgress",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setProgress"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"delete",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"delete"),bt.prototype),kt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleResponse",[Xe.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",[Xe.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(Qe.b)(Vt=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")}))}})||Vt,ln=Ve(26),mn=Ve.n(ln),gn=Ve(2080),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 Kn,Gn,Jn,Zn,Xn,er,tr,nr,rr=Object(Qe.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,ar="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),We=null),We}const sr="collections";let lr=Object(Qe.b)((nr=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,Xe=[];return ce.forEach((ce=>{const qe=new Ut(void 0,Ve),Ye=qe.create(ze,ce);Xe.push(Ye),this.addMediaUploadStore(qe)})),Promise.allSettled(Xe).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",er,this),MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",tr,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:Xe}=this.props,st=Tt()(ar,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(Qe.a,null,(()=>We.a.createElement("div",qe({className:st}),ze,We.a.createElement("input",Ve()),We.a.createElement(rr,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Xe},this.createMediaItems()))))})),We.a.createElement(ot.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:sr,locale:Ye,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:sr,title:Object(gt.b)("sulu_media.select_collection_for_upload")}))}},nr.defaultProps={accept:void 0,disabled:!1},Jn=MultiMediaDropzone_applyDecoratedDescriptor((Gn=nr).prototype,"filesScheduledForUpload",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"mediaUploadStores",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"addMediaUploadStore",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"addMediaUploadStore"),Gn.prototype),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"destroyMediaUploadStores",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"destroyMediaUploadStores"),Gn.prototype),Xn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.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}}}),er=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),tr=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),Kn=Gn))||Kn;var dr,ur,pr,vr,_r=lr,Rr=Ve(387),Cr=Ve(324),Dr="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),We=null),We}const Er="collection_details";var Tr,Mr,Ar=Object(Qe.b)((ur=class extends We.a.Component{constructor(ce){super(ce),CollectionFormOverlay_initializerDefineProperty(this,"title",pr,this),CollectionFormOverlay_initializerDefineProperty(this,"formStore",vr,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,Er)}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,Er))}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"),Xe=Object(mt.translate)("sulu_admin.cancel"),Qe=We.a.createElement(ot.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?We.a.createElement(st.Dialog,{cancelText:Xe,confirmLoading:Ve.saving,confirmText:Ye,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:qe,title:this.title},Qe):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:Dr},Qe))}},pr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"title",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"formStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(ur.prototype,"componentDidUpdate"),ur.prototype),dr=ur))||dr;let jr=Object(Qe.b)((Mr=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),We=null),We}(Mr.prototype,"breadcrumb",[Xe.computed],Object.getOwnPropertyDescriptor(Mr.prototype,"breadcrumb"),Mr.prototype),Tr=Mr))||Tr;var Lr,zr,Ir,Br,Nr,Hr,Vr,qr,Yr,Ur,Wr=jr,$r="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),We=null),We}const Kr={resourceKey:"media"};var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei=Object(Qe.b)((zr=class extends We.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Ir,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Br,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Nr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Hr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Vr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",qr,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,...Kr}).then((()=>ze())).catch((ce=>{ce.json().then(Object(Xe.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",Yr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",Ur,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,{},Kr),this.formStore=ot.j.createFromResourceStore(this.resourceStore,"permission_details",Kr),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:$r},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})))}},Ir=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"showInheritDialog",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Br=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(zr.prototype,"componentDidUpdate"),zr.prototype),Nr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Hr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirmInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Vr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSubmitInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),qr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleCancelInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),Yr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSnackbarCloseClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),Ur=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),Lr=zr))||Lr,Oi="collection-section--pi1B29igFv",Ti="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),We=null),We}const ya="collections";let ba=Object(Qe.b)((Jr=class extends We.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Zr,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",ei,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",si,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(Xe.action)((Ve=>{409!==ze.status||Ve.code!==Cr.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",_i,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ri,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",Ci,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",Di,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(Xe.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:Xe,resourceStore:Qe,securable:gt}=this.props,yt=this.openedCollectionOperationOverlayType;return We.a.createElement("div",null,!Qe.loading&&We.a.createElement("div",{className:Oi},We.a.createElement("div",{className:Ti},We.a.createElement(Wr,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Qe})),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")),!!Qe.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(Ar,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:yt,overlayType:Xe,resourceStore:this.resourceStoreByOperationType}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:Qe.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(Ei,{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:Qe.moving,disabledIds:Qe.id?[Qe.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")))}},Zr=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openedCollectionOperationOverlayType",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"movingRestrictedTargetCollection",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),si=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"dependantResourcesData",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"openCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"closeCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"collectionId",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"collectionId"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"hasChildren",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"hasChildren"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"resourceStoreByOperationType",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"resourceStoreByOperationType"),Jr.prototype),_i=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMoveCollectionConfirm",[Xe.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)}}}),Ri=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),Ci=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Di=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeDeleteDependantResourcesDialog",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions"),Jr.prototype),Gr=Jr))||Gr;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),We=null),We}let Ba=Object(Qe.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:Xe,locale:Qe,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&&!Xe&&Et.push({disabled:Ye.loading,icon:"su-upload",label:Object(gt.b)("sulu_media.upload_file"),onClick:Dt}),We.a.createElement(_r,{className:Ve,collectionId:Ye.id,disabled:Ye.loading||!Pt,locale:Qe,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:Qe,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",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(Xe.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),ka=MediaCollection_applyDecoratedDescriptor(_a.prototype,"handleUploadError",[Xe.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),We=null),We}const To="media",Ao="collections",jo="media_selection_overlay";var Fo=Object(Qe.b)(((ko=class extends We.a.Component{static createCollectionListStore(ce,ze){return new ot.c(Ao,Ao,jo,{page:Xe.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(Xe.isArrayLike)(qe)&&qe.length>0&&(Ye.types=qe.join(",")),new ot.c(To,To,jo,{page:Xe.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(Xe.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,Xe=[{title:Object(mt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return We.a.createElement(st.Overlay,{actions:Xe,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",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"showMediaUploadOverlay",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"updateCollectionStore",[Xe.action],Object.getOwnPropertyDescriptor(io.prototype,"updateCollectionStore"),io.prototype),go=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleCollectionNavigate",[Xe.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",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),Co=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayClose",[Xe.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,Xe,Qe){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,Xe,Qe],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(406),Ye=Ve(233);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(1143),Ye=Ve(1148);ce.exports=function getNative(ce,ze){var Ve=Ye(ce,ze);return qe(Ve)?Ve:void 0}},function(ce,ze,Ve){var qe=Ve(414),Ye=Ve(1144),We=Ve(1145),Xe=qe?qe.toStringTag:void 0;ce.exports=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":Xe&&Xe 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,Xe,{isClean:Qe,my:ot}=Ve(736),st=Ve(482),mt=Ve(486),gt=Ve(483);function cleanSource(ce){return ce.map((ce=>(ce.nodes&&(ce.nodes=cleanSource(ce.nodes)),delete ce.source,ce)))}function markDirtyUp(ce){if(ce[Qe]=!1,ce.proxyOf.nodes)for(let ze of ce.proxyOf.nodes)markDirtyUp(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[Qe]&&markDirtyUp(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=>{Xe=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,Xe.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="31.1.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(143))},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"Node",(function(){return Fn})),Ve.d(ze,"Parser",(function(){return Ut})),Ve.d(ze,"Position",(function(){return Bt})),Ve.d(ze,"SourceLocation",(function(){return Ht})),Ve.d(ze,"TokContext",(function(){return Un})),Ve.d(ze,"Token",(function(){return dr})),Ve.d(ze,"TokenType",(function(){return bt})),Ve.d(ze,"defaultOptions",(function(){return Vt})),Ve.d(ze,"getLineInfo",(function(){return getLineInfo})),Ve.d(ze,"isIdentifierChar",(function(){return isIdentifierChar})),Ve.d(ze,"isIdentifierStart",(function(){return isIdentifierStart})),Ve.d(ze,"isNewLine",(function(){return isNewLine})),Ve.d(ze,"keywordTypes",(function(){return Ct})),Ve.d(ze,"lineBreak",(function(){return kt})),Ve.d(ze,"lineBreakG",(function(){return St})),Ve.d(ze,"nonASCIIwhitespace",(function(){return xt})),Ve.d(ze,"parse",(function(){return parse})),Ve.d(ze,"parseExpressionAt",(function(){return parseExpressionAt})),Ve.d(ze,"tokContexts",(function(){return Kn})),Ve.d(ze,"tokTypes",(function(){return Dt})),Ve.d(ze,"tokenizer",(function(){return tokenizer})),Ve.d(ze,"version",(function(){return vr}));var qe={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ye="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",We={5:Ye,"5module":Ye+" export import",6:Ye+" const class extends export import super"},Xe=/^in(stanceof)?$/,Qe="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ot="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",st=new RegExp("["+Qe+"]"),mt=new RegExp("["+Qe+ot+"]");Qe=ot=null;var gt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],yt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(ce,ze){for(var Ve=65536,qe=0;qece)return!1;if((Ve+=ze[qe+1])>=ce)return!0}}function isIdentifierStart(ce,ze){return ce<65?36===ce:ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&st.test(String.fromCharCode(ce)):!1!==ze&&isInAstralSet(ce,gt)))}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&&mt.test(String.fromCharCode(ce)):!1!==ze&&(isInAstralSet(ce,gt)||isInAstralSet(ce,yt)))))}var bt=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 bt(ce,{beforeExpr:!0,binop:ze})}var vt={beforeExpr:!0},wt={startsExpr:!0},Ct={};function kw(ce,ze){return void 0===ze&&(ze={}),ze.keyword=ce,Ct[ce]=new bt(ce,ze)}var Dt={num:new bt("num",wt),regexp:new bt("regexp",wt),string:new bt("string",wt),name:new bt("name",wt),eof:new bt("eof"),bracketL:new bt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new bt("]"),braceL:new bt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new bt("}"),parenL:new bt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new bt(")"),comma:new bt(",",vt),semi:new bt(";",vt),colon:new bt(":",vt),dot:new bt("."),question:new bt("?",vt),arrow:new bt("=>",vt),template:new bt("template"),invalidTemplate:new bt("invalidTemplate"),ellipsis:new bt("...",vt),backQuote:new bt("`",wt),dollarBraceL:new bt("${",{beforeExpr:!0,startsExpr:!0}),eq:new bt("=",{beforeExpr:!0,isAssign:!0}),assign:new bt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new bt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new bt("!/~",{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 bt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new bt("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",vt),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",vt),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",vt),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",wt),_if:kw("if"),_return:kw("return",vt),_switch:kw("switch"),_throw:kw("throw",vt),_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",wt),_super:kw("super",wt),_class:kw("class",wt),_extends:kw("extends",vt),_export:kw("export"),_import:kw("import",wt),_null:kw("null",wt),_true:kw("true",wt),_false:kw("false",wt),_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})},kt=/\r\n?|\n|\u2028|\u2029/,St=new RegExp(kt.source,"g");function isNewLine(ce,ze){return 10===ce||13===ce||!ze&&(8232===ce||8233===ce)}var xt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Et=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Pt=Object.prototype,Tt=Pt.hasOwnProperty,Lt=Pt.toString;function has(ce,ze){return Tt.call(ce,ze)}var Ft=Array.isArray||function(ce){return"[object Array]"===Lt.call(ce)};function wordsRegexp(ce){return new RegExp("^(?:"+ce.replace(/ /g,"|")+")$")}var Bt=function Position(ce,ze){this.line=ce,this.column=ze};Bt.prototype.offset=function offset(ce){return new Bt(this.line,this.column+ce)};var Ht=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;;){St.lastIndex=qe;var Ye=St.exec(ce);if(!(Ye&&Ye.index=2015&&(ze.ecmaVersion-=2009),null==ze.allowReserved&&(ze.allowReserved=ze.ecmaVersion<5),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,Xe,Qe){var ot={type:Ve?"Block":"Line",value:qe,start:Ye,end:We};ce.locations&&(ot.loc=new Ht(this,Xe,Qe)),ce.ranges&&(ot.range=[Ye,We]),ze.push(ot)}}function functionFlags(ce,ze){return 2|(ce?4:0)|(ze?8:0)}var Ut=function Parser(ce,ze,Ve){this.options=ce=getOptions(ce),this.sourceFile=ce.sourceFile,this.keywords=wordsRegexp(We[ce.ecmaVersion>=6?6:"module"===ce.sourceType?"5module":5]);var Ye="";if(!0!==ce.allowReserved){for(var Xe=ce.ecmaVersion;!(Ye=qe[Xe]);Xe--);"module"===ce.sourceType&&(Ye+=" await")}this.reservedWords=wordsRegexp(Ye);var Qe=(Ye?Ye+" ":"")+qe.strict;this.reservedWordsStrict=wordsRegexp(Qe),this.reservedWordsStrictBind=wordsRegexp(Qe+" "+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(kt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Dt.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.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&ce.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Wt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Ut.prototype.parse=function parse(){var ce=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(ce)},Wt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Wt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Wt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Wt.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Wt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Wt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ut.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Ut.extend=function extend(){for(var ce=[],ze=arguments.length;ze--;)ce[ze]=arguments[ze];for(var Ve=this,qe=0;qe-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,"Parenthesized pattern")}},Jt.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")},Jt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(We,!1,!ce);case Dt._class:return ce&&this.unexpected(),this.parseClass(We,!0);case Dt._if:return this.parseIfStatement(We);case Dt._return:return this.parseReturnStatement(We);case Dt._switch:return this.parseSwitchStatement(We);case Dt._throw:return this.parseThrowStatement(We);case Dt._try:return this.parseTryStatement(We);case Dt._const:case Dt._var:return qe=qe||this.value,ce&&"var"!==qe&&this.unexpected(),this.parseVarStatement(We,qe);case Dt._while:return this.parseWhileStatement(We);case Dt._with:return this.parseWithStatement(We);case Dt.braceL:return this.parseBlock(!0,We);case Dt.semi:return this.parseEmptyStatement(We);case Dt._export:case Dt._import:if(this.options.ecmaVersion>10&&Ye===Dt._import){Et.lastIndex=this.pos;var Xe=Et.exec(this.input),Qe=this.pos+Xe[0].length;if(40===this.input.charCodeAt(Qe))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===Dt._import?this.parseImport(We):this.parseExport(We,Ve);default:if(this.isAsyncFunction())return ce&&this.unexpected(),this.next(),this.parseFunctionStatement(We,!0,!ce);var ot=this.value,st=this.parseExpression();return Ye===Dt.name&&"Identifier"===st.type&&this.eat(Dt.colon)?this.parseLabeledStatement(We,ot,st,ce):this.parseExpressionStatement(We,st)}},en.parseBreakContinueStatement=function(ce,ze){var Ve="break"===ze;this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.label=null:this.type!==Dt.name?this.unexpected():(ce.label=this.parseIdent(),this.semicolon());for(var qe=0;qe=6?this.eat(Dt.semi):this.semicolon(),this.finishNode(ce,"DoWhileStatement")},en.parseForStatement=function(ce){this.next();var ze=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rn),this.enterScope(0),this.expect(Dt.parenL),this.type===Dt.semi)return ze>-1&&this.unexpected(ze),this.parseFor(ce,null);var Ve=this.isLet();if(this.type===Dt._var||this.type===Dt._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===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===qe.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Dt._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=new DestructuringErrors,Xe=this.parseExpression(!0,We);return this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Dt._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.toAssignable(Xe,!1,We),this.checkLVal(Xe),this.parseForIn(ce,Xe)):(this.checkExpressionErrors(We,!0),ze>-1&&this.unexpected(ze),this.parseFor(ce,Xe))},en.parseFunctionStatement=function(ce,ze,Ve){return this.next(),this.parseFunction(ce,gn|(Ve?0:bn),!1,ze)},en.parseIfStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),ce.consequent=this.parseStatement("if"),ce.alternate=this.eat(Dt._else)?this.parseStatement("if"):null,this.finishNode(ce,"IfStatement")},en.parseReturnStatement=function(ce){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.argument=null:(ce.argument=this.parseExpression(),this.semicolon()),this.finishNode(ce,"ReturnStatement")},en.parseSwitchStatement=function(ce){var ze;this.next(),ce.discriminant=this.parseParenExpression(),ce.cases=[],this.expect(Dt.braceL),this.labels.push(ln),this.enterScope(0);for(var Ve=!1;this.type!==Dt.braceR;)if(this.type===Dt._case||this.type===Dt._default){var qe=this.type===Dt._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(Dt.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")},en.parseThrowStatement=function(ce){return this.next(),kt.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 mn=[];en.parseTryStatement=function(ce){if(this.next(),ce.block=this.parseBlock(),ce.handler=null,this.type===Dt._catch){var ze=this.startNode();if(this.next(),this.eat(Dt.parenL)){ze.param=this.parseBindingAtom();var Ve="Identifier"===ze.param.type;this.enterScope(Ve?32:0),this.checkLVal(ze.param,Ve?4:2),this.expect(Dt.parenR)}else 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(Dt._finally)?this.parseBlock():null,ce.handler||ce.finalizer||this.raise(ce.start,"Missing catch or finally clause"),this.finishNode(ce,"TryStatement")},en.parseVarStatement=function(ce,ze){return this.next(),this.parseVar(ce,!1,ze),this.semicolon(),this.finishNode(ce,"VariableDeclaration")},en.parseWhileStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),this.labels.push(rn),ce.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(ce,"WhileStatement")},en.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")},en.parseEmptyStatement=function(ce){return this.next(),this.finishNode(ce,"EmptyStatement")},en.parseLabeledStatement=function(ce,ze,Ve,qe){for(var Ye=0,We=this.labels;Ye=0;Qe--){var ot=this.labels[Qe];if(ot.statementStart!==ce.start)break;ot.statementStart=this.start,ot.kind=Xe}return this.labels.push({name:ze,kind:Xe,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")},en.parseExpressionStatement=function(ce,ze){return ce.expression=ze,this.semicolon(),this.finishNode(ce,"ExpressionStatement")},en.parseBlock=function(ce,ze){for(void 0===ce&&(ce=!0),void 0===ze&&(ze=this.startNode()),ze.body=[],this.expect(Dt.braceL),ce&&this.enterScope(0);!this.eat(Dt.braceR);){var Ve=this.parseStatement(null);ze.body.push(Ve)}return ce&&this.exitScope(),this.finishNode(ze,"BlockStatement")},en.parseFor=function(ce,ze){return ce.init=ze,this.expect(Dt.semi),ce.test=this.type===Dt.semi?null:this.parseExpression(),this.expect(Dt.semi),ce.update=this.type===Dt.parenR?null:this.parseExpression(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,"ForStatement")},en.parseForIn=function(ce,ze){var Ve=this.type===Dt._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"):"AssignmentPattern"===ze.type&&this.raise(ze.start,"Invalid left-hand side in for-loop"),ce.left=ze,ce.right=Ve?this.parseExpression():this.parseMaybeAssign(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,Ve?"ForInStatement":"ForOfStatement")},en.parseVar=function(ce,ze,Ve){for(ce.declarations=[],ce.kind=Ve;;){var qe=this.startNode();if(this.parseVarId(qe,Ve),this.eat(Dt.eq)?qe.init=this.parseMaybeAssign(ze):"const"!==Ve||this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===qe.id.type||ze&&(this.type===Dt._in||this.isContextual("of"))?qe.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),ce.declarations.push(this.finishNode(qe,"VariableDeclarator")),!this.eat(Dt.comma))break}return ce},en.parseVarId=function(ce,ze){ce.id=this.parseBindingAtom(),this.checkLVal(ce.id,"var"===ze?1:2,!1)};var gn=1,bn=2;en.parseFunction=function(ce,ze,Ve,qe){this.initFunction(ce),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!qe)&&(this.type===Dt.star&&ze&bn&&this.unexpected(),ce.generator=this.eat(Dt.star)),this.options.ecmaVersion>=8&&(ce.async=!!qe),ze&gn&&(ce.id=4&ze&&this.type!==Dt.name?null:this.parseIdent(),!ce.id||ze&bn||this.checkLVal(ce.id,this.strict||ce.generator||ce.async?this.treatFunctionsAsVar?1:2:3));var Ye=this.yieldPos,We=this.awaitPos,Xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(ce.async,ce.generator)),ze&gn||(ce.id=this.type===Dt.name?this.parseIdent():null),this.parseFunctionParams(ce),this.parseFunctionBody(ce,Ve,!1),this.yieldPos=Ye,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(ce,ze&gn?"FunctionDeclaration":"FunctionExpression")},en.parseFunctionParams=function(ce){this.expect(Dt.parenL),ce.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},en.parseClass=function(ce,ze){this.next();var Ve=this.strict;this.strict=!0,this.parseClassId(ce,ze),this.parseClassSuper(ce);var qe=this.startNode(),Ye=!1;for(qe.body=[],this.expect(Dt.braceL);!this.eat(Dt.braceR);){var We=this.parseClassElement(null!==ce.superClass);We&&(qe.body.push(We),"MethodDefinition"===We.type&&"constructor"===We.kind&&(Ye&&this.raise(We.start,"Duplicate constructor in the same class"),Ye=!0))}return ce.body=this.finishNode(qe,"ClassBody"),this.strict=Ve,this.finishNode(ce,ze?"ClassDeclaration":"ClassExpression")},en.parseClassElement=function(ce){var ze=this;if(this.eat(Dt.semi))return null;var Ve=this.startNode(),tryContextual=function(ce,qe){void 0===qe&&(qe=!1);var Ye=ze.start,We=ze.startLoc;return!!ze.eatContextual(ce)&&(!(ze.type===Dt.parenL||qe&&ze.canInsertSemicolon())||(Ve.key&&ze.unexpected(),Ve.computed=!1,Ve.key=ze.startNodeAt(Ye,We),Ve.key.name=ce,ze.finishNode(Ve.key,"Identifier"),!1))};Ve.kind="method",Ve.static=tryContextual("static");var qe=this.eat(Dt.star),Ye=!1;qe||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(Ye=!0,qe=this.options.ecmaVersion>=9&&this.eat(Dt.star)):tryContextual("get")?Ve.kind="get":tryContextual("set")&&(Ve.kind="set")),Ve.key||this.parsePropertyName(Ve);var We=Ve.key,Xe=!1;return Ve.computed||Ve.static||!("Identifier"===We.type&&"constructor"===We.name||"Literal"===We.type&&"constructor"===We.value)?Ve.static&&"Identifier"===We.type&&"prototype"===We.name&&this.raise(We.start,"Classes may not have a static property named prototype"):("method"!==Ve.kind&&this.raise(We.start,"Constructor can't have get/set modifier"),qe&&this.raise(We.start,"Constructor can't be a generator"),Ye&&this.raise(We.start,"Constructor can't be an async method"),Ve.kind="constructor",Xe=ce),this.parseClassMethod(Ve,qe,Ye,Xe),"get"===Ve.kind&&0!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"getter should have no params"),"set"===Ve.kind&&1!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"setter should have exactly one param"),"set"===Ve.kind&&"RestElement"===Ve.value.params[0].type&&this.raiseRecoverable(Ve.value.params[0].start,"Setter cannot use rest params"),Ve},en.parseClassMethod=function(ce,ze,Ve,qe){return ce.value=this.parseMethod(ze,Ve,qe),this.finishNode(ce,"MethodDefinition")},en.parseClassId=function(ce,ze){this.type===Dt.name?(ce.id=this.parseIdent(),ze&&this.checkLVal(ce.id,2,!1)):(!0===ze&&this.unexpected(),ce.id=null)},en.parseClassSuper=function(ce){ce.superClass=this.eat(Dt._extends)?this.parseExprSubscripts():null},en.parseExport=function(ce,ze){if(this.next(),this.eat(Dt.star))return this.expectContextual("from"),this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom(),this.semicolon(),this.finishNode(ce,"ExportAllDeclaration");if(this.eat(Dt._default)){var Ve;if(this.checkExport(ze,"default",this.lastTokStart),this.type===Dt._function||(Ve=this.isAsyncFunction())){var qe=this.startNode();this.next(),Ve&&this.next(),ce.declaration=this.parseFunction(qe,4|gn,!1,Ve)}else if(this.type===Dt._class){var Ye=this.startNode();ce.declaration=this.parseClass(Ye,"nullableID")}else ce.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(ce,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())ce.declaration=this.parseStatement(null),"VariableDeclaration"===ce.declaration.type?this.checkVariableExport(ze,ce.declaration.declarations):this.checkExport(ze,ce.declaration.id.name,ce.declaration.id.start),ce.specifiers=[],ce.source=null;else{if(ce.declaration=null,ce.specifiers=this.parseExportSpecifiers(ze),this.eatContextual("from"))this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom();else{for(var We=0,Xe=ce.specifiers;We=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"RestElement":break;case"ObjectExpression":ce.type="ObjectPattern",Ve&&this.checkPatternErrors(Ve,!0);for(var qe=0,Ye=ce.properties;qe=8&&!We&&"async"===Xe.name&&!this.canInsertSemicolon()&&this.eat(Dt._function))return this.parseFunction(this.startNodeAt(qe,Ye),0,!1,!0);if(Ve&&!this.canInsertSemicolon()){if(this.eat(Dt.arrow))return this.parseArrowExpression(this.startNodeAt(qe,Ye),[Xe],!1);if(this.options.ecmaVersion>=8&&"async"===Xe.name&&this.type===Dt.name&&!We)return Xe=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Dt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(qe,Ye),[Xe],!0)}return Xe;case Dt.regexp:var Qe=this.value;return(ze=this.parseLiteral(Qe.value)).regex={pattern:Qe.pattern,flags:Qe.flags},ze;case Dt.num:case Dt.string:return this.parseLiteral(this.value);case Dt._null:case Dt._true:case Dt._false:return(ze=this.startNode()).value=this.type===Dt._null?null:this.type===Dt._true,ze.raw=this.type.keyword,this.next(),this.finishNode(ze,"Literal");case Dt.parenL:var ot=this.start,st=this.parseParenAndDistinguishExpression(Ve);return ce&&(ce.parenthesizedAssign<0&&!this.isSimpleAssignTarget(st)&&(ce.parenthesizedAssign=ot),ce.parenthesizedBind<0&&(ce.parenthesizedBind=ot)),st;case Dt.bracketL:return ze=this.startNode(),this.next(),ze.elements=this.parseExprList(Dt.bracketR,!0,!0,ce),this.finishNode(ze,"ArrayExpression");case Dt.braceL:return this.parseObj(!1,ce);case Dt._function:return ze=this.startNode(),this.next(),this.parseFunction(ze,0);case Dt._class:return this.parseClass(this.startNode(),!1);case Dt._new:return this.parseNew();case Dt.backQuote:return this.parseTemplate();case Dt._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Cn.parseDynamicImport=function(){var ce=this.startNode();return this.next(),this.type!==Dt.parenL&&this.unexpected(),this.finishNode(ce,"Import")},Cn.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)),this.next(),this.finishNode(ze,"Literal")},Cn.parseParenExpression=function(){this.expect(Dt.parenL);var ce=this.parseExpression();return this.expect(Dt.parenR),ce},Cn.parseParenAndDistinguishExpression=function(ce){var ze,Ve=this.start,qe=this.startLoc,Ye=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var We,Xe=this.start,Qe=this.startLoc,ot=[],st=!0,mt=!1,gt=new DestructuringErrors,yt=this.yieldPos,bt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Dt.parenR;){if(st?st=!1:this.expect(Dt.comma),Ye&&this.afterTrailingComma(Dt.parenR,!0)){mt=!0;break}if(this.type===Dt.ellipsis){We=this.start,ot.push(this.parseParenItem(this.parseRestBinding())),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}ot.push(this.parseMaybeAssign(!1,gt,this.parseParenItem))}var vt=this.start,wt=this.startLoc;if(this.expect(Dt.parenR),ce&&!this.canInsertSemicolon()&&this.eat(Dt.arrow))return this.checkPatternErrors(gt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=yt,this.awaitPos=bt,this.parseParenArrowList(Ve,qe,ot);ot.length&&!mt||this.unexpected(this.lastTokStart),We&&this.unexpected(We),this.checkExpressionErrors(gt,!0),this.yieldPos=yt||this.yieldPos,this.awaitPos=bt||this.awaitPos,ot.length>1?((ze=this.startNodeAt(Xe,Qe)).expressions=ot,this.finishNodeAt(ze,"SequenceExpression",vt,wt)):ze=ot[0]}else ze=this.parseParenExpression();if(this.options.preserveParens){var Ct=this.startNodeAt(Ve,qe);return Ct.expression=ze,this.finishNode(Ct,"ParenthesizedExpression")}return ze},Cn.parseParenItem=function(ce){return ce},Cn.parseParenArrowList=function(ce,ze,Ve){return this.parseArrowExpression(this.startNodeAt(ce,ze),Ve)};var Sn=[];Cn.parseNew=function(){var ce=this.startNode(),ze=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Dt.dot)){ce.meta=ze;var Ve=this.containsEsc;return ce.property=this.parseIdent(!0),("target"!==ce.property.name||Ve)&&this.raiseRecoverable(ce.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(ce.start,"new.target can only be used in functions"),this.finishNode(ce,"MetaProperty")}var qe=this.start,Ye=this.startLoc;return ce.callee=this.parseSubscripts(this.parseExprAtom(),qe,Ye,!0),this.options.ecmaVersion>10&&"Import"===ce.callee.type&&this.raise(ce.callee.start,"Cannot use new with import(...)"),this.eat(Dt.parenL)?ce.arguments=this.parseExprList(Dt.parenR,this.options.ecmaVersion>=8&&"Import"!==ce.callee.type,!1):ce.arguments=Sn,this.finishNode(ce,"NewExpression")},Cn.parseTemplateElement=function(ce){var ze=ce.isTagged,Ve=this.startNode();return this.type===Dt.invalidTemplate?(ze||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),Ve.value={raw:this.value,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===Dt.backQuote,this.finishNode(Ve,"TemplateElement")},Cn.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===Dt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Dt.dollarBraceL),Ve.expressions.push(this.parseExpression()),this.expect(Dt.braceR),Ve.quasis.push(qe=this.parseTemplateElement({isTagged:ze}));return this.next(),this.finishNode(Ve,"TemplateLiteral")},Cn.isAsyncProp=function(ce){return!ce.computed&&"Identifier"===ce.key.type&&"async"===ce.key.name&&(this.type===Dt.name||this.type===Dt.num||this.type===Dt.string||this.type===Dt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Dt.star)&&!kt.test(this.input.slice(this.lastTokEnd,this.start))},Cn.parseObj=function(ce,ze){var Ve=this.startNode(),qe=!0,Ye={};for(Ve.properties=[],this.next();!this.eat(Dt.braceR);){if(qe)qe=!1;else if(this.expect(Dt.comma),this.afterTrailingComma(Dt.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")},Cn.parseProperty=function(ce,ze){var Ve,qe,Ye,We,Xe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Dt.ellipsis))return ce?(Xe.argument=this.parseIdent(!1),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(Xe,"RestElement")):(this.type===Dt.parenL&&ze&&(ze.parenthesizedAssign<0&&(ze.parenthesizedAssign=this.start),ze.parenthesizedBind<0&&(ze.parenthesizedBind=this.start)),Xe.argument=this.parseMaybeAssign(!1,ze),this.type===Dt.comma&&ze&&ze.trailingComma<0&&(ze.trailingComma=this.start),this.finishNode(Xe,"SpreadElement"));this.options.ecmaVersion>=6&&(Xe.method=!1,Xe.shorthand=!1,(ce||ze)&&(Ye=this.start,We=this.startLoc),ce||(Ve=this.eat(Dt.star)));var Qe=this.containsEsc;return this.parsePropertyName(Xe),!ce&&!Qe&&this.options.ecmaVersion>=8&&!Ve&&this.isAsyncProp(Xe)?(qe=!0,Ve=this.options.ecmaVersion>=9&&this.eat(Dt.star),this.parsePropertyName(Xe,ze)):qe=!1,this.parsePropertyValue(Xe,ce,Ve,qe,Ye,We,ze,Qe),this.finishNode(Xe,"Property")},Cn.parsePropertyValue=function(ce,ze,Ve,qe,Ye,We,Xe,Qe){if((Ve||qe)&&this.type===Dt.colon&&this.unexpected(),this.eat(Dt.colon))ce.value=ze?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Xe),ce.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Dt.parenL)ze&&this.unexpected(),ce.kind="init",ce.method=!0,ce.value=this.parseMethod(Ve,qe);else if(ze||Qe||!(this.options.ecmaVersion>=5)||ce.computed||"Identifier"!==ce.key.type||"get"!==ce.key.name&&"set"!==ce.key.name||this.type===Dt.comma||this.type===Dt.braceR)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,ce.key):this.type===Dt.eq&&Xe?(Xe.shorthandAssign<0&&(Xe.shorthandAssign=this.start),ce.value=this.parseMaybeDefault(Ye,We,ce.key)):ce.value=ce.key,ce.shorthand=!0):this.unexpected();else{(Ve||qe)&&this.unexpected(),ce.kind=ce.key.name,this.parsePropertyName(ce),ce.value=this.parseMethod(!1);var ot="get"===ce.kind?0:1;if(ce.value.params.length!==ot){var st=ce.value.start;"get"===ce.kind?this.raiseRecoverable(st,"getter should have no params"):this.raiseRecoverable(st,"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")}},Cn.parsePropertyName=function(ce){if(this.options.ecmaVersion>=6){if(this.eat(Dt.bracketL))return ce.computed=!0,ce.key=this.parseMaybeAssign(),this.expect(Dt.bracketR),ce.key;ce.computed=!1}return ce.key=this.type===Dt.num||this.type===Dt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Cn.initFunction=function(ce){ce.id=null,this.options.ecmaVersion>=6&&(ce.generator=ce.expression=!1),this.options.ecmaVersion>=8&&(ce.async=!1)},Cn.parseMethod=function(ce,ze,Ve){var qe=this.startNode(),Ye=this.yieldPos,We=this.awaitPos,Xe=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(Dt.parenL),qe.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(qe,!1,!0),this.yieldPos=Ye,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(qe,"FunctionExpression")},Cn.parseArrowExpression=function(ce,ze,Ve){var qe=this.yieldPos,Ye=this.awaitPos,We=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),this.yieldPos=qe,this.awaitPos=Ye,this.awaitIdentPos=We,this.finishNode(ce,"ArrowFunctionExpression")},Cn.parseFunctionBody=function(ce,ze,Ve){var qe=ze&&this.type!==Dt.braceL,Ye=this.strict,We=!1;if(qe)ce.body=this.parseMaybeAssign(),ce.expression=!0,this.checkParams(ce,!1);else{var Xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(ce.params);Ye&&!Xe||(We=this.strictDirective(this.end))&&Xe&&this.raiseRecoverable(ce.start,"Illegal 'use strict' directive in function with non-simple parameter list");var Qe=this.labels;this.labels=[],We&&(this.strict=!0),this.checkParams(ce,!Ye&&!We&&!ze&&!Ve&&this.isSimpleParamList(ce.params)),ce.body=this.parseBlock(!1),ce.expression=!1,this.adaptDirectivePrologue(ce.body.body),this.labels=Qe}this.exitScope(),this.strict&&ce.id&&this.checkLVal(ce.id,5),this.strict=Ye},Cn.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 Xe=this.scopeStack.length-1;Xe>=0;--Xe){var Qe=this.scopeStack[Xe];if(Qe.lexical.indexOf(ce)>-1&&!(32&Qe.flags&&Qe.lexical[0]===ce)||!this.treatFunctionsAsVarInScope(Qe)&&Qe.functions.indexOf(ce)>-1){qe=!0;break}if(Qe.var.push(ce),this.inModule&&1&Qe.flags&&delete this.undefinedExports[ce],3&Qe.flags)break}qe&&this.raiseRecoverable(Ve,"Identifier '"+ce+"' has already been declared")},Tn.checkLocalExport=function(ce){-1===this.scopeStack[0].lexical.indexOf(ce.name)&&-1===this.scopeStack[0].var.indexOf(ce.name)&&(this.undefinedExports[ce.name]=ce)},Tn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tn.currentVarScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags)return ze}},Tn.currentThisScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags&&!(16&ze.flags))return ze}};var Fn=function Node(ce,ze,Ve){this.type="",this.start=ze,this.end=0,ce.options.locations&&(this.loc=new Ht(ce,Ve)),ce.options.directSourceFile&&(this.sourceFile=ce.options.directSourceFile),ce.options.ranges&&(this.range=[ze,0])},Yn=Ut.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}Yn.startNode=function(){return new Fn(this,this.start,this.startLoc)},Yn.startNodeAt=function(ce,ze){return new Fn(this,ce,ze)},Yn.finishNode=function(ce,ze){return finishNodeAt.call(this,ce,ze,this.lastTokEnd,this.lastTokEndLoc)},Yn.finishNodeAt=function(ce,ze,Ve,qe){return finishNodeAt.call(this,ce,ze,Ve,qe)};var Un=function TokContext(ce,ze,Ve,qe,Ye){this.token=ce,this.isExpr=!!ze,this.preserveSpace=!!Ve,this.override=qe,this.generator=!!Ye},Kn={b_stat:new Un("{",!1),b_expr:new Un("{",!0),b_tmpl:new Un("${",!1),p_stat:new Un("(",!1),p_expr:new Un("(",!0),q_tmpl:new Un("`",!0,!0,(function(ce){return ce.tryReadTemplateToken()})),f_stat:new Un("function",!1),f_expr:new Un("function",!0),f_expr_gen:new Un("function",!0,!1,null,!0),f_gen:new Un("function",!1,!1,null,!0)},Gn=Ut.prototype;Gn.initialContext=function(){return[Kn.b_stat]},Gn.braceIsBlock=function(ce){var ze=this.curContext();return ze===Kn.f_expr||ze===Kn.f_stat||(ce!==Dt.colon||ze!==Kn.b_stat&&ze!==Kn.b_expr?ce===Dt._return||ce===Dt.name&&this.exprAllowed?kt.test(this.input.slice(this.lastTokEnd,this.start)):ce===Dt._else||ce===Dt.semi||ce===Dt.eof||ce===Dt.parenR||ce===Dt.arrow||(ce===Dt.braceL?ze===Kn.b_stat:ce!==Dt._var&&ce!==Dt._const&&ce!==Dt.name&&!this.exprAllowed):!ze.isExpr)},Gn.inGeneratorContext=function(){for(var ce=this.context.length-1;ce>=1;ce--){var ze=this.context[ce];if("function"===ze.token)return ze.generator}return!1},Gn.updateContext=function(ce){var ze,Ve=this.type;Ve.keyword&&ce===Dt.dot?this.exprAllowed=!1:(ze=Ve.updateContext)?ze.call(this,ce):this.exprAllowed=Ve.beforeExpr},Dt.parenR.updateContext=Dt.braceR.updateContext=function(){if(1!==this.context.length){var ce=this.context.pop();ce===Kn.b_stat&&"function"===this.curContext().token&&(ce=this.context.pop()),this.exprAllowed=!ce.isExpr}else this.exprAllowed=!0},Dt.braceL.updateContext=function(ce){this.context.push(this.braceIsBlock(ce)?Kn.b_stat:Kn.b_expr),this.exprAllowed=!0},Dt.dollarBraceL.updateContext=function(){this.context.push(Kn.b_tmpl),this.exprAllowed=!0},Dt.parenL.updateContext=function(ce){var ze=ce===Dt._if||ce===Dt._for||ce===Dt._with||ce===Dt._while;this.context.push(ze?Kn.p_stat:Kn.p_expr),this.exprAllowed=!0},Dt.incDec.updateContext=function(){},Dt._function.updateContext=Dt._class.updateContext=function(ce){!ce.beforeExpr||ce===Dt.semi||ce===Dt._else||ce===Dt._return&&kt.test(this.input.slice(this.lastTokEnd,this.start))||(ce===Dt.colon||ce===Dt.braceL)&&this.curContext()===Kn.b_stat?this.context.push(Kn.f_stat):this.context.push(Kn.f_expr),this.exprAllowed=!1},Dt.backQuote.updateContext=function(){this.curContext()===Kn.q_tmpl?this.context.pop():this.context.push(Kn.q_tmpl),this.exprAllowed=!1},Dt.star.updateContext=function(ce){if(ce===Dt._function){var ze=this.context.length-1;this.context[ze]===Kn.f_expr?this.context[ze]=Kn.f_expr_gen:this.context[ze]=Kn.f_gen}this.exprAllowed=!0},Dt.name.updateContext=function(ce){var ze=!1;this.options.ecmaVersion>=6&&ce!==Dt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(ze=!0),this.exprAllowed=ze};var Jn="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",Zn=Jn+" Extended_Pictographic",Xn={9:Jn,10:Zn,11:Zn},er="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",tr="Adlam Adlm Ahom 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 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",nr=tr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",rr={9:tr,10:nr,11:nr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ar={};function buildUnicodeData(ce){var ze=ar[ce]={binary:wordsRegexp(Xn[ce]+" "+er),nonBinary:{General_Category:wordsRegexp(er),Script:wordsRegexp(rr[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}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var sr=Ut.prototype,lr=function RegExpValidationState(ce){this.parser=ce,this.validFlags="gim"+(ce.options.ecmaVersion>=6?"uy":"")+(ce.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ar[ce.options.ecmaVersion>=11?11:ce.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ce){return ce<=65535?String.fromCharCode(ce):(ce-=65536,String.fromCharCode(55296+(ce>>10),56320+(1023&ce)))}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}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 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}lr.prototype.reset=function reset(ce,ze,Ve){var qe=-1!==Ve.indexOf("u");this.start=0|ce,this.source=ze+"",this.flags=Ve,this.switchU=qe&&this.parser.options.ecmaVersion>=6,this.switchN=qe&&this.parser.options.ecmaVersion>=9},lr.prototype.raise=function raise(ce){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+ce)},lr.prototype.at=function at(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return-1;var qe=ze.charCodeAt(ce);if(!this.switchU||qe<=55295||qe>=57344||ce+1>=Ve)return qe;var Ye=ze.charCodeAt(ce+1);return Ye>=56320&&Ye<=57343?(qe<<10)+Ye-56613888:qe},lr.prototype.nextIndex=function nextIndex(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return Ve;var qe,Ye=ze.charCodeAt(ce);return!this.switchU||Ye<=55295||Ye>=57344||ce+1>=Ve||(qe=ze.charCodeAt(ce+1))<56320||qe>57343?ce+1:ce+2},lr.prototype.current=function current(){return this.at(this.pos)},lr.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},lr.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},lr.prototype.eat=function eat(ce){return this.current()===ce&&(this.advance(),!0)},sr.validateRegExpFlags=function(ce){for(var ze=ce.validFlags,Ve=ce.flags,qe=0;qe-1&&this.raise(ce.start,"Duplicate regular expression flag")}},sr.validateRegExpPattern=function(ce){this.regexp_pattern(ce),!ce.switchN&&this.options.ecmaVersion>=9&&ce.groupNames.length>0&&(ce.switchN=!0,this.regexp_pattern(ce))},sr.regexp_pattern=function(ce){ce.pos=0,ce.lastIntValue=0,ce.lastStringValue="",ce.lastAssertionIsQuantifiable=!1,ce.numCapturingParens=0,ce.maxBackReference=0,ce.groupNames.length=0,ce.backReferenceNames.length=0,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=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},sr.regexp_eatQuantifier=function(ce,ze){return void 0===ze&&(ze=!1),!!this.regexp_eatQuantifierPrefix(ce,ze)&&(ce.eat(63),!0)},sr.regexp_eatQuantifierPrefix=function(ce,ze){return ce.eat(42)||ce.eat(43)||ce.eat(63)||this.regexp_eatBracedQuantifier(ce,ze)},sr.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},sr.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)},sr.regexp_eatInvalidBracedQuantifier=function(ce){return this.regexp_eatBracedQuantifier(ce,!0)&&ce.raise("Nothing to repeat"),!1},sr.regexp_eatSyntaxCharacter=function(ce){var ze=ce.current();return!!isSyntaxCharacter(ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},sr.regexp_eatPatternCharacters=function(ce){for(var ze=ce.pos,Ve=0;-1!==(Ve=ce.current())&&!isSyntaxCharacter(Ve);)ce.advance();return ce.pos!==ze},sr.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)},sr.regexp_groupSpecifier=function(ce){if(ce.eat(63)){if(this.regexp_eatGroupName(ce))return-1!==ce.groupNames.indexOf(ce.lastStringValue)&&ce.raise("Duplicate capture group name"),void ce.groupNames.push(ce.lastStringValue);ce.raise("Invalid group")}},sr.regexp_eatGroupName=function(ce){if(ce.lastStringValue="",ce.eat(60)){if(this.regexp_eatRegExpIdentifierName(ce)&&ce.eat(62))return!0;ce.raise("Invalid capture group name")}return!1},sr.regexp_eatRegExpIdentifierName=function(ce){if(ce.lastStringValue="",this.regexp_eatRegExpIdentifierStart(ce)){for(ce.lastStringValue+=codePointToString(ce.lastIntValue);this.regexp_eatRegExpIdentifierPart(ce);)ce.lastStringValue+=codePointToString(ce.lastIntValue);return!0}return!1},sr.regexp_eatRegExpIdentifierStart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierStart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.regexp_eatRegExpIdentifierPart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierPart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.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)},sr.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},sr.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},sr.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)||!ce.switchU&&this.regexp_eatLegacyOctalEscapeSequence(ce)||this.regexp_eatIdentityEscape(ce)},sr.regexp_eatCControlLetter=function(ce){var ze=ce.pos;if(ce.eat(99)){if(this.regexp_eatControlLetter(ce))return!0;ce.pos=ze}return!1},sr.regexp_eatZero=function(ce){return 48===ce.current()&&!isDecimalDigit(ce.lookahead())&&(ce.lastIntValue=0,ce.advance(),!0)},sr.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)},sr.regexp_eatControlLetter=function(ce){var ze=ce.current();return!!isControlLetter(ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.regexp_eatRegExpUnicodeEscapeSequence=function(ce){var ze,Ve=ce.pos;if(ce.eat(117)){if(this.regexp_eatFixedHexDigits(ce,4)){var qe=ce.lastIntValue;if(ce.switchU&&qe>=55296&&qe<=56319){var Ye=ce.pos;if(ce.eat(92)&&ce.eat(117)&&this.regexp_eatFixedHexDigits(ce,4)){var We=ce.lastIntValue;if(We>=56320&&We<=57343)return ce.lastIntValue=1024*(qe-55296)+(We-56320)+65536,!0}ce.pos=Ye,ce.lastIntValue=qe}return!0}if(ce.switchU&&ce.eat(123)&&this.regexp_eatHexDigits(ce)&&ce.eat(125)&&((ze=ce.lastIntValue)>=0&&ze<=1114111))return!0;ce.switchU&&ce.raise("Invalid unicode escape"),ce.pos=Ve}return!1},sr.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)},sr.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},sr.regexp_eatCharacterClassEscape=function(ce){var ze=ce.current();if(isCharacterClassEscape(ze))return ce.lastIntValue=-1,ce.advance(),!0;if(ce.switchU&&this.options.ecmaVersion>=9&&(80===ze||112===ze)){if(ce.lastIntValue=-1,ce.advance(),ce.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(ce)&&ce.eat(125))return!0;ce.raise("Invalid property name")}return!1},sr.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),!0}}if(ce.pos=ze,this.regexp_eatLoneUnicodePropertyNameOrValue(ce)){var Ye=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(ce,Ye),!0}return!1},sr.regexp_validateUnicodePropertyNameAndValue=function(ce,ze,Ve){has(ce.unicodeProperties.nonBinary,ze)||ce.raise("Invalid property name"),ce.unicodeProperties.nonBinary[ze].test(Ve)||ce.raise("Invalid property value")},sr.regexp_validateUnicodePropertyNameOrValue=function(ce,ze){ce.unicodeProperties.binary.test(ze)||ce.raise("Invalid property name")},sr.regexp_eatUnicodePropertyName=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyNameCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatUnicodePropertyValue=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyValueCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatLoneUnicodePropertyNameOrValue=function(ce){return this.regexp_eatUnicodePropertyValue(ce)},sr.regexp_eatCharacterClass=function(ce){if(ce.eat(91)){if(ce.eat(94),this.regexp_classRanges(ce),ce.eat(93))return!0;ce.raise("Unterminated character class")}return!1},sr.regexp_classRanges=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")}}},sr.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)},sr.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)},sr.regexp_eatClassControlLetter=function(ce){var ze=ce.current();return!(!isDecimalDigit(ze)&&95!==ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.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},sr.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},sr.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},sr.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},sr.regexp_eatOctalDigit=function(ce){var ze=ce.current();return isOctalDigit(ze)?(ce.lastIntValue=ze-48,ce.advance(),!0):(ce.lastIntValue=0,!1)},sr.regexp_eatFixedHexDigits=function(ce,ze){var Ve=ce.pos;ce.lastIntValue=0;for(var qe=0;qe>10),56320+(1023&ce)))}ur.next=function(){this.options.onToken&&this.options.onToken(new dr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ur.getToken=function(){return this.next(),new dr(this)},"undefined"!=typeof Symbol&&(ur[Symbol.iterator]=function(){var ce=this;return{next:function(){var ze=ce.getToken();return{done:ze.type===Dt.eof,value:ze}}}}),ur.curContext=function(){return this.context[this.context.length-1]},ur.nextToken=function(){var ce=this.curContext();return ce&&ce.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Dt.eof):ce.override?ce.override(this):void this.readToken(this.fullCharCodeAtPos())},ur.readToken=function(ce){return isIdentifierStart(ce,this.options.ecmaVersion>=6)||92===ce?this.readWord():this.getTokenFromCode(ce)},ur.fullCharCodeAtPos=function(){var ce=this.input.charCodeAt(this.pos);return ce<=55295||ce>=57344?ce:(ce<<10)+this.input.charCodeAt(this.pos+1)-56613888},ur.skipBlockComment=function(){var ce,ze=this.options.onComment&&this.curPosition(),Ve=this.pos,qe=this.input.indexOf("*/",this.pos+=2);if(-1===qe&&this.raise(this.pos-2,"Unterminated comment"),this.pos=qe+2,this.options.locations)for(St.lastIndex=Ve;(ce=St.exec(this.input))&&ce.index8&&ce<14||ce>=5760&&xt.test(String.fromCharCode(ce))))break e;++this.pos}}},ur.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)},ur.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(Dt.ellipsis)):(++this.pos,this.finishToken(Dt.dot))},ur.readToken_slash=function(){var ce=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===ce?this.finishOp(Dt.assign,2):this.finishOp(Dt.slash,1)},ur.readToken_mult_modulo_exp=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1,qe=42===ce?Dt.star:Dt.modulo;return this.options.ecmaVersion>=7&&42===ce&&42===ze&&(++Ve,qe=Dt.starstar,ze=this.input.charCodeAt(this.pos+2)),61===ze?this.finishOp(Dt.assign,Ve+1):this.finishOp(qe,Ve)},ur.readToken_pipe_amp=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?this.finishOp(124===ce?Dt.logicalOR:Dt.logicalAND,2):61===ze?this.finishOp(Dt.assign,2):this.finishOp(124===ce?Dt.bitwiseOR:Dt.bitwiseAND,1)},ur.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Dt.assign,2):this.finishOp(Dt.bitwiseXOR,1)},ur.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&&!kt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Dt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===ze?this.finishOp(Dt.assign,2):this.finishOp(Dt.plusMin,1)},ur.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(Dt.assign,Ve+1):this.finishOp(Dt.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(Dt.relational,Ve)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ur.readToken_eq_excl=function(ce){var ze=this.input.charCodeAt(this.pos+1);return 61===ze?this.finishOp(Dt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===ce&&62===ze&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Dt.arrow)):this.finishOp(61===ce?Dt.eq:Dt.prefix,1)},ur.getTokenFromCode=function(ce){switch(ce){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Dt.parenL);case 41:return++this.pos,this.finishToken(Dt.parenR);case 59:return++this.pos,this.finishToken(Dt.semi);case 44:return++this.pos,this.finishToken(Dt.comma);case 91:return++this.pos,this.finishToken(Dt.bracketL);case 93:return++this.pos,this.finishToken(Dt.bracketR);case 123:return++this.pos,this.finishToken(Dt.braceL);case 125:return++this.pos,this.finishToken(Dt.braceR);case 58:return++this.pos,this.finishToken(Dt.colon);case 63:return++this.pos,this.finishToken(Dt.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Dt.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 126:return this.finishOp(Dt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(ce)+"'")},ur.finishOp=function(ce,ze){var Ve=this.input.slice(this.pos,this.pos+ze);return this.pos+=ze,this.finishToken(ce,Ve)},ur.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(kt.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,Xe=this.readWord1();this.containsEsc&&this.unexpected(We);var Qe=this.regexpState||(this.regexpState=new lr(this));Qe.reset(Ve,Ye,Xe),this.validateRegExpFlags(Qe),this.validateRegExpPattern(Qe);var ot=null;try{ot=new RegExp(Ye,Xe)}catch(ce){}return this.finishToken(Dt.regexp,{pattern:Ye,flags:Xe,value:ot})},ur.readInt=function(ce,ze){for(var Ve=this.pos,qe=0,Ye=0,We=null==ze?1/0:ze;Ye=97?Xe-97+10:Xe>=65?Xe-65+10:Xe>=48&&Xe<=57?Xe-48:1/0)>=ce)break;++this.pos,qe=qe*ce+Qe}return this.pos===Ve||null!=ze&&this.pos-Ve!==ze?null:qe},ur.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="undefined"!=typeof BigInt?BigInt(this.input.slice(ze,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,Ve)},ur.readNumber=function(ce){var ze=this.pos;ce||null!==this.readInt(10)||this.raise(ze,"Invalid number");var Ve=this.pos-ze>=2&&48===this.input.charCodeAt(ze);Ve&&this.strict&&this.raise(ze,"Invalid number"),Ve&&/[89]/.test(this.input.slice(ze,this.pos))&&(Ve=!1);var qe=this.input.charCodeAt(this.pos);if(!Ve&&!ce&&this.options.ecmaVersion>=11&&110===qe){var Ye=this.input.slice(ze,this.pos),We="undefined"!=typeof BigInt?BigInt(Ye):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,We)}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 Xe=this.input.slice(ze,this.pos),Qe=Ve?parseInt(Xe,8):parseFloat(Xe);return this.finishToken(Dt.num,Qe)},ur.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},ur.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):(isNewLine(qe,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(Dt.string,ze)};var pr={};ur.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(ce){if(ce!==pr)throw ce;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ur.invalidStringToken=function(ce,ze){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pr;this.raise(ce,ze)},ur.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!==Dt.template&&this.type!==Dt.invalidTemplate?(ce+=this.input.slice(ze,this.pos),this.finishToken(Dt.template,ce)):36===Ve?(this.pos+=2,this.finishToken(Dt.dollarBraceL)):(++this.pos,this.finishToken(Dt.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}},ur.readInvalidTemplateToken=function(){for(;this.pos=48&&ze<=55){var Ve=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],qe=parseInt(Ve,8);return qe>255&&(Ve=Ve.slice(0,-1),qe=parseInt(Ve,8)),this.pos+=Ve.length-1,ze=this.input.charCodeAt(this.pos),"0"===Ve&&56!==ze&&57!==ze||!this.strict&&!ce||this.invalidStringToken(this.pos-1-Ve.length,ce?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(qe)}return isNewLine(ze)?"":String.fromCharCode(ze)}},ur.readHexChar=function(ce){var ze=this.pos,Ve=this.readInt(16,ce);return null===Ve&&this.invalidStringToken(ze,"Bad character escape sequence"),Ve},ur.readWord1=function(){this.containsEsc=!1;for(var ce="",ze=!0,Ve=this.pos,qe=this.options.ecmaVersion>=6;this.posce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Xe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.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)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.default.Action,Qe.Option=We.default.Option,Qe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var qe,Ye,We,Xe,Qe,ot=Ve(1),st=Ve(9),mt=Ve.n(st),gt=Ve(29),yt=Ve.n(gt),bt=Ve(353),vt=Ve(402);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),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",Xe,this),_initializerDefineProperty(this,"types",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_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 Xe extends Ye.a.PureComponent{render(){return Ye.a.createElement("li",{className:We})}}var Qe="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:Qe,ref:this.setRef,style:ce},ze)}}ot.Divider=Xe;ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(613),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(998),Ve(10)),xt=Ve.n(St),Et=Ve(54),Pt=Ve(128);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},Xe={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:Xe,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}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_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(561);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(489);ze.a=qe.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"b",(function(){return injectUiElementHandling}));var qe=Ve(114),Ye=Ve(8),We=Ve(172),Xe=Ve(38);class Qe extends qe.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this._isAllowedInsideAttributeElement=!0,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==Xe.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 Xe=!1;const Qe=We.getLastMatchingPosition((ce=>(ce.item.is("uiElement")&&(Xe=!0),!(!ce.item.is("uiElement")&&!ce.item.is("attributeElement")))));if(Xe){const ze=Ve.viewPositionToDom(Qe);qe?ce.collapse(ze.parent,ze.offset):ce.extend(ze.parent,ze.offset)}}}}},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,Xe,Qe,ot=Ve(537),st=(Ve(200),Ve(189),Ve(1)),mt=Ve(29),gt=Ve.n(mt),yt=Ve(30),bt=(Ve(344),Ve(345),Ve(9)),vt=Ve.n(bt),wt=Ve(352),Ct=Ve(397);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),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",Xe,this),_initializerDefineProperty(this,"types",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_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(245);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),We=null),We}let Tt=(St=st.computed.struct,Et=SchemaFormStoreDecorator_applyDecoratedDescriptor((xt=class{constructor(ce,ze,Ve,qe){var Ye,We,Xe,Qe;Ye=this,We="innerFormStore",Qe=this,(Xe=Et)&&Object.defineProperty(Ye,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):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(346);Ve(592);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,Ht,Vt,Ut,Wt,Jt,Qt=Ve(0),en=Ve.n(Qt),rn=Ve(3),ln=Ve(53),mn=Ve(47),gn=Ve(12);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),We=null),We}Object(rn.b)((Ht=class extends en.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vt,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)}},Vt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changer",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creator",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setChanger",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setChanger"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setCreator",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setCreator"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changed",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changed"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"created",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"created"),Ht.prototype),Bt=Ht));var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Ve(539).default,Kn=Ve(150),Gn="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),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(Kn.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:Gn},!!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,er=Ve(22),tr=Ve.n(er),nr=Ve(649),rr=Ve(202),ar=Ve(241),sr=Ve(373),lr=Ve(579).default,dr="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),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||tr()(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||tr()(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:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},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)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;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,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new rr.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 ar.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&&!tr()(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:Xe,label:Qe,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(lr,{adapter:qe,allowDeselectForDisabledItems:!!gt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Xe,itemDisabledCondition:mt,label:Object(gn.b)(Qe,{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(sr.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:dr},en.a.createElement(nr.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 ur,pr,vr,_r=Ve(528).default,Rr=Ve(580).default,Cr=Ve(617),Dr=Ve(434);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),We=null),We}Object(rn.b)((pr=class extends en.a.Component{constructor(ce){var ze,Ve,qe,Ye;if(super(ce),ze=this,Ve="requestOptions",Ye=this,(qe=vr)&&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:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},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)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;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,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Dr.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:Xe,empty_text:Qe,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(Cr.a,{adapter:qe,allowDeselectForDisabledItems:!!bt,detailOptions:St,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:Xe,emptyText:Object(gn.b)(Qe),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(_r,{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:Xe}}}=Ve;if(!Object(st.isArrayLike)(Ye))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const Qe=Ye;Qe.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={...Qe.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:Xe,selectionStore:this.autoCompleteSelectionStore})}},vr=SingleSelection_applyDecoratedDescriptor(pr.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(pr.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"value"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"type"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"locale"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"viewName"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"resultToView"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"useDeprecatedObjectDataFormat",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"useDeprecatedObjectDataFormat"),pr.prototype),ur=pr));var Er,Tr,Mr=Ve(118),Ar=Ve(208),jr=Ve(582).default;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),We=null),We}var Lr,zr,Ir=Object(rn.b)((Heading_applyDecoratedDescriptor((Tr=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(jr,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"schemaOptions"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"description",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"description"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"icon",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"icon"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"label"),Tr.prototype),Er=Tr))||Er;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(Ar.default,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):en.a.createElement(Mr.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?en.a.createElement(Ir,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"schemaOptions"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"label"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"skin",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"skin"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"type"),zr.prototype),Lr=zr)),Ve(541).default;en.a.Component;var Br,Nr,Hr=Ve(10),Vr=Ve.n(Hr),qr=Ve(437);function createStringValue(ce,ze){if(ce)return Vr()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Vr()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(rn.b)((Nr=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:Xe}=qe;if(void 0===We||void 0===Xe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const Qe={};return Xe&&(Qe.timeFormat=Xe),We||(Qe.dateFormat=!1),en.a.createElement(qr.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:Qe,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),We=null),We}(Nr.prototype,"format",[st.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"format"),Nr.prototype),Br=Nr));Ve(493).default;en.a.Component;Ve(42);en.a.Component;var Yr,Ur,Wr=Ve(628);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),We=null),We}Object(rn.b)((Ur=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(Wr.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(Ur.prototype,"min",[st.computed],Object.getOwnPropertyDescriptor(Ur.prototype,"min"),Ur.prototype),Number_applyDecoratedDescriptor(Ur.prototype,"max",[st.computed],Object.getOwnPropertyDescriptor(Ur.prototype,"max"),Ur.prototype),Number_applyDecoratedDescriptor(Ur.prototype,"step",[st.computed],Object.getOwnPropertyDescriptor(Ur.prototype,"step"),Ur.prototype),Yr=Ur));Ve(583).default;en.a.Component;Ve(495).default;en.a.Component;Ve(34);en.a.Component;var $r,Kr=Ve(254);(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),We=null),We})(($r=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(Kr.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(Kr.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[st.computed],Object.getOwnPropertyDescriptor($r.prototype,"values"),$r.prototype);var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di=Ve(584).default,Ei=Ve(585).default,Oi=Ve(76),Ti=Ve(36),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),We=null),We}const ba="sulu.rlp.part";Object(rn.b)((Jr=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",Zr,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",ei,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",si,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",_i,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Ri,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",Ci,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:Xe}=this.props;return"/"===Xe?"/":en.a.createElement(Qt.Fragment,null,en.a.createElement(Di,{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:Xe}),en.a.createElement("div",{className:ga},en.a.createElement(Ti.default,{className:ya,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(gn.b)("sulu_admin.refresh_url")),en.a.createElement(Ei,{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})))}},Zr=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"mode",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChanged",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"partsChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"parts",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"parts"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableAutoGeneration",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableAutoGeneration"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableRefreshButton",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableRefreshButton"),Jr.prototype),Ri=ResourceLocator_applyDecoratedDescriptor(Jr.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,Xe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,qe]=ce;const Ye=Object(st.toJS)(Ve.getValueByPath("/"+ze));void 0!==Ye&&(Xe[qe]=Ye)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,Oi.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,...Xe}).then(Object(st.action)((ce=>{qe(ce.resourcelocator)})))}}}),Ci=ResourceLocator_applyDecoratedDescriptor(Jr.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)}}}),Gr=Jr));var va,_a,wa=Ve(535),ka=Ve(756),xa=Ve(497),Aa=Ve(487),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),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),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||tr()(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:Xe=!1}={}}=Ye;if("boolean"!=typeof Xe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:Qe}=xa.a.getConfig(this.provider);void 0===We&&qe(this.value,{isDefaultValue:!0}),this.smartContentStore=new Aa.a(this.provider,this.value,Ve.locale,Qe,Ve.resourceKey===this.provider?Ve.id:void 0,Ye,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),io.add(this.smartContentStore,Xe),this.filterCriteriaChangeDisposer=Object(st.reaction)((()=>Object(st.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Xe&&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(629);en.a.Component;var po=Ve(498);Ve(423),po.default;en.a.Component;Ve(630);en.a.Component;Ve(588);en.a.Component;var ho=ze.b=ot.default},function(ce,ze,Ve){"use strict";var qe=Ve(153),Ye=Object(qe.a)(Object,"create");var We=function hashClear(){this.__data__=Ye?Ye(null):{},this.size=0};var Xe=function hashDelete(ce){var ze=this.has(ce)&&delete this.__data__[ce];return this.size-=ze?1:0,ze},Qe=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 Qe.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(138),Ye=Ve(93);var We=function baseIsArguments(ce){return Object(Ye.a)(ce)&&"[object Arguments]"==Object(qe.a)(ce)},Xe=Object.prototype,Qe=Xe.hasOwnProperty,ot=Xe.propertyIsEnumerable,st=We(function(){return arguments}())?We:function(ce){return Object(Ye.a)(ce)&&Qe.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),Xe=Ve.n(We),Qe=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:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,children:Xe.a.node.isRequired};var st=Object(Qe.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(188);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(38);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(138),Ye=Ve(379),We=Ve(93),Xe=Function.prototype,Qe=Object.prototype,ot=Xe.toString,st=Qe.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 We}));var qe=Ve(114),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(156),Ye=Ve(765),We=Ye.all;ce.exports=Ye.IS_HTMLDDA?function(ce){return"object"==typeof ce?null!==ce:qe(ce)||ce===We}:function(ce){return"object"==typeof ce?null!==ce:qe(ce)}},function(ce,ze,Ve){"use strict";var qe=Ve(231),Ye=Ve(688),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(69);ce.exports=qe({}.isPrototypeOf)},function(ce,ze,Ve){"use strict";var qe=Ve(697),Ye=Ve(61),We=Ve(104).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(783),Ye=Ve(698);(ce.exports=function(ce,ze){return Ye[ce]||(Ye[ce]=void 0!==ze?ze:{})})("versions",[]).push({version:"3.33.3",mode:qe?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},function(ce,ze,Ve){"use strict";var qe=Ve(121),Ye=Ve(178),We=Ve(446);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(786),Ye=Ve(178);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(819),Ye=Ve(836),We=Ve(262);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(994);function _defineProperties(ce,ze){for(var Ve=0;Ve2&&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,Xe,Qe,ot=Ve(1),st=Ve(29),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(352),vt=(Ve(592),Ve(397)),wt=Ve(245);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),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 Xe in ze){const{items:Qe,defaultType:st,type:mt,types:gt}=ze[Xe],{items:yt,defaultType:bt,type:wt,types:Ct}=ce[Xe]||{};if(mt===vt.a&&Qe)Ye=mergeData(ce,Qe,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[Xe]&&qe[Xe]&&Object(ot.isArrayLike)(Ve[Xe])&&Object(ot.isArrayLike)(qe[Xe]))for(let ce=0;cece&&qe[Xe][ce]||{}),Qe=Object(ot.toJS)(Ve[Xe].length>ce&&Ve[Xe][ce]||{}),mt=null==Qe?void 0:Qe.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(We=Ct[Qe.type])||void 0===We?void 0:We.form)||Ct[bt].form,gt[yt].form,Qe,ze);Ye[Xe]||(Ye[Xe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==Qe?void 0:Qe.settings)||ze.settings,Ye[Xe].push(vt))}else Ve[Xe]&&mt===wt?Ye[Xe]=Ve[Xe]:Ye[Xe]=qe[Xe]}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",Xe,this),_initializerDefineProperty(this,"handleSchemaTypeResponse",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"typesLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_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";Ve.d(ze,"a",(function(){return We}));var qe=Ve(41),Ye=Ve(24);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";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(38),Ye=Ve(58),We=Ve(330);function injectUnsafeKeystrokesHandling(ce){let ze=null;const Ve=ce.model,qe=ce.editing.view,Xe=ce.commands.get("input");function handleUnsafeKeystroke(ce){if(Ye.a.isWindows&&Object(We.c)(ce,qe.document))return;const Qe=Ve.document,ot=qe.document.isComposing,st=ze&&ze.isEqual(Qe.selection);ze=null,Xe.isEnabled&&(isNonTypingKeystroke(ce)||Qe.selection.isCollapsed||ot&&229===ce.keyCode||!ot&&229===ce.keyCode&&st||deleteSelectionContent())}function deleteSelectionContent(){const ce=Xe.buffer;ce.lock();const ze=ce.batch;Xe._batches.add(ze),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 Xe=[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++)Xe.push(ce);function isNonTypingKeystroke(ce){return!(!ce.ctrlKey&&!ce.metaKey)||Xe.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(72),Ye=Ve(293);var We=function last(ce){var ze=null==ce?0:ce.length;return ze?ce[ze-1]:void 0},Xe=Ve(383);var Qe=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 Xe=0;Xeot.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 Xe()(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(239),Ye=Ve.n(qe),We=Ve(606),Xe=Ve.n(We),Qe=Ve(280),ot=Ve.n(Qe);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 Xe()(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 Xe={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 Qe{static get(ce){const ze=ce.split("/")[0];return Xe[ce]?Xe[ce]:Xe[ze]?Xe[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:Xe,backgroundColor:st}=Qe.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:Xe}))}}st.defaultProps={iconSize:52};ze.a=st},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));Ve(851),Ve(852);var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),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,style:qe}=this.props;let We="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":We=null;break;case"fa-":We="fa";break;default:return logInvalidIconWarning(ze),null}const Qe=Xe()(We||void 0,ze,{[st]:Ve},ce),ot=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return Ye.a.createElement("span",_extends({"aria-label":ze,className:Qe,style:qe},ot))}}},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),Xe=Ve.n(We),Qe=Ve(607),ot=Ve(17),st=Ve(53),mt=Ve(559).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.setLabelRef=ce=>{const{labelRef: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:Ht,type:Vt,value:Ut,iconStyle:Wt,iconClassName:Jt,inputMode:Qt,inputRef:en,labelRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Xe()(gt.input,gt[ln],gt[ce],{[gt.error]:!bt,[gt.disabled]:vt,[gt.collapsed]:Dt,[gt.hasAppendIcon]:Lt,[gt.headline]:Ve}),Cn=Xe()(gt.icon,gt[ln],Jt,{[gt.iconClickable]:!!wt&&!!Tt,[gt.collapsed]:Dt}),Sn=Xe()(gt.prependedContainer,gt[ln],{[gt.collapsed]:Dt});return Ye.a.createElement(qe.Fragment,null,Ye.a.createElement("label",{className:wn,ref:rn?this.setLabelRef: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:Vt,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(Qe.a,{max:kt,value:Ut}),Ht&&St&&Ye.a.createElement(mt,{delimiter:Ht,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(78),Ye=Ve(501);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 Xe extends qe.a{execute(ce){const ze=this.editor.model;let Ve=ce.position;ze.change((ce=>{const qe=ce.createElement("paragraph");if(!ze.schema.checkChild(Ve.parent,qe)){const Ye=ze.schema.findAllowedParent(Ve,qe);if(!Ye)return;Ve=ce.split(Ve,Ye).position}ze.insertContent(qe,Ve),ce.setSelection(qe,"in")}))}}var Qe=Ve(28);class ot extends Qe.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 Xe(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),Xe=Ve.n(We),Qe=(Ve(39),Ve(750),"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=Xe()(ot,ce.props.className);return Ye.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return Ye.a.createElement("div",{className:Qe},this.cloneChildren())}}ze.a=st},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe="ghost-indicator--WSUP-JcZo9";class ot extends Ye.a.Component{render(){const{className:ce}=this.props,ze=Xe()(Qe,ce);return Ye.a.createElement("span",{className:ze},this.props.locale)}}ze.a=ot},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,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(280),Et=Ve.n(xt),Pt=Ve(31),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),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",Xe,this),_initializerDefineProperty(this,"validUrl",Qe,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}),Xe=_applyDecoratedDescriptor(Ye.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_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,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(87),vt=Ve.n(bt),wt=Ve(388),Ct=Ve(168),Dt=Ve(160),kt=Ve(243),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),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",Xe,this),_initializerDefineProperty(this,"handleOverlayClose",Qe,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:Xe,icon:Qe,itemDisabledCondition:ot,locale:gt,listOptions:yt,onItemClick:bt,overlayTitle:Dt,resourceKey:Tt}=this.props,{item:Lt,loading:Ft}=this.singleSelectionStore,Bt=We.length,Ht=!!Lt&&Ye.includes(Lt.id)||!!Lt&&!!ot&&vt.a.evalSync(ot,Lt),Vt=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:Xe,id:Lt&&Lt.id,itemDisabled:Ht,leftButton:{icon:Qe,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!==Vt)&&!(Ut&&Vt)&&mt.a.createElement("div",{className:xt},mt.a.createElement(Ct.a,{draft:!Ut,published:!!Vt})),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),Xe=_applyDecoratedDescriptor(Ye.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Qe=_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";Ve.d(ze,"a",(function(){return St}));var qe=Ve(25),Ye=Ve(40),We=Ve(137),Xe=Ve(287),Qe=Ve(332),ot=Ve(114),st=Ve(8),mt=Ve(172);class gt extends ot.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this._isAllowedInsideAttributeElement=!0,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 mt.a||Array.from(ze).length>0))throw new st.a("view-emptyelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}var yt=Ve(322);class bt extends ot.a{constructor(ce,ze,Ve,qe){super(ce,ze,Ve,qe),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=rawelement_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 mt.a||Array.from(ze).length>0))throw new st.a("view-rawelement-cannot-add",[this,ze])}}function rawelement_getFillerOffset(){return null}var vt=Ve(218),wt=Ve(94),Ct=Ve(67),Dt=Ve(384),kt=Ve(331);class St{constructor(ce){this.document=ce,this._cloneGroups=new Map}setSelection(ce,ze,Ve){this.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this.document.selection._setFocus(ce,ze)}createDocumentFragment(ce){return new vt.a(this.document,ce)}createText(ce){return new Ct.a(this.document,ce)}createAttributeElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new Qe.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]:{};const qe=new Xe.a(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createEditableElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const qe=new Dt.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 gt(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),qe}createUIElement(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=new yt.a(this.document,ce,ze);return Ve&&(Ye.render=Ve),void 0!==qe.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=qe.isAllowedInsideAttributeElement),Ye}createRawElement(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const Ye=new bt(this.document,ce,ze);return Ye.render=Ve||(()=>{}),void 0!==qe.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=qe.isAllowedInsideAttributeElement),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(kt.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 st.a("view-writer-break-non-container-element",this.document);if(!ze.parent)throw new st.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")),Xe=new qe.a(Ve,0);this.move(We,Xe)}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 st.a("view-writer-merge-containers-invalid-position",this.document);const We=ze.getChild(ze.childCount-1),Xe=We instanceof Ct.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)),Xe}insert(ce,ze){validateNodesToInsert(ze=Object(wt.a)(ze)?[...ze]:[ze],this.document);const Ve=ze.reduce(((ce,ze)=>{const Ve=ce[ce.length-1],qe=!(ze.is("uiElement")&&ze.isAllowedInsideAttributeElement);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 vt.a(this.document);const{start:Ve,end:qe}=this._breakAttributesRange(ze,!0),We=Ve.parent,Xe=qe.offset-Ve.offset,Qe=We._removeChildren(Ve.offset,Xe);for(const ce of Qe)this._removeFromClonedElementsGroup(ce);const ot=this.mergeAttributes(Ve);return ze.start=ot,ze.end=ot.clone(),new vt.a(this.document,Qe)}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 Qe.a))throw new st.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 Qe.a))throw new st.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,Xe=this._unwrapChildren(We,Ve.offset,qe.offset,ze),ot=this.mergeAttributes(Xe.start);ot.isEqual(Xe.start)||Xe.end.offset--;const mt=this.mergeAttributes(Xe.end);return new Ye.a(ot,mt)}rename(ce,ze){const Ve=new Xe.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)}_insertNodes(ce,ze,Ve){let qe,We;if(qe=Ve?getParentContainer(ce):ce.parent.is("$text")?ce.parent.parent:ce.parent,!qe)throw new st.a("view-writer-invalid-position-container",this.document);We=Ve?this._breakAttributes(ce,!0):ce.parent.is("$text")?breakTextNode(ce):ce;const Xe=qe._insertChild(We.offset,ze);for(const ce of ze)this._addToClonedElementsGroup(ce);const Qe=We.getShiftedBy(Xe),ot=this.mergeAttributes(We);ot.isEqual(We)||Qe.offset--;const mt=this.mergeAttributes(Qe);return new Ye.a(ot,mt)}_wrapChildren(ce,ze,Ve,We){let Xe=ze;const Qe=[];for(;Xe!1,ce.parent._insertChild(ce.offset,Ve);const We=new Ye.a(ce,ce.getShiftedBy(1));this.wrap(We,ze);const Xe=new qe.a(Ve.parent,Ve.index);Ve._remove();const Qe=Xe.nodeBefore,ot=Xe.nodeAfter;return Qe instanceof Ct.a&&ot instanceof Ct.a?mergeTextNodes(Qe,ot):movePositionToTextNode(Xe)}_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),Xe=We.parent.childCount,Qe=this._breakAttributes(Ve,ze);return We.offset+=We.parent.childCount-Xe,new Ye.a(Qe,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 st.a("view-writer-cannot-break-empty-element",this.document);if(ce.parent.is("uiElement"))throw new st.a("view-writer-cannot-break-ui-element",this.document);if(ce.parent.is("rawElement"))throw new st.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 Xe=Ye.childCount-Ve,Qe=Ye._removeChildren(Ve,Xe);We._appendChild(Qe);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 st.a("view-writer-insert-invalid-node-type",ze);Ve.is("$text")||validateNodesToInsert(Ve.getChildren(),ze)}}const xt=[Ct.a,Qe.a,Xe.a,gt,bt,yt.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 st.a("view-writer-invalid-range-container",ze)}function canBeJoined(ce,ze){return null===ce.id&&null===ze.id}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,ot,st,mt=Ve(1),gt=Ve(32);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),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",Xe,this),_initializerDefineProperty(this,"error",Qe,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,Xe=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)),Xe.append(Ve,ce),We.send(Xe)}))}}).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}),Xe=_applyDecoratedDescriptor(qe.prototype,"media",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_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(54);class Xe 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,labelRef:this.props.labelRef,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)}}Xe.defaultProps={alignment:"left",disabled:!1,valid:!0};ze.a=Xe},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(51),yt=Ve(224),bt=Ve(11),vt=Ve(98),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),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",Xe,this),_initializerDefineProperty(this,"loading",Qe,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}}),Xe=_applyDecoratedDescriptor(qe.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_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),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(671);var gt=Object(ot.b)(((Ye=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:qe,options:Ye,preloadSelectedItems:We,preSelectedItems:Xe,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?Xe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.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:Qe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:qe,disabledIds:Ye,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,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(634),Ye=Ve(124),We=Ve(24),Xe=Ve(164),Qe=Ve(8),ot=Ve(37),st=Ve(88),mt=Ve(288);const gt=Symbol("bubbling contexts"),yt={fire(ce){try{const Ye=ce instanceof Xe.a?ce:new Xe.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),Xe=3;XeYe.length?ze:Ve}var vt=Ve(41);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";Ve.r(ze);var qe=Ve(531);ze.default=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(565);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(573);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(138),Ye=Ve(72);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(399);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(400);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(622),Ye=Object(qe.a)(Object.getPrototypeOf,Object);ze.a=Ye},function(ce,ze,Ve){"use strict";var qe=Ve(376),Ye=Ve(210),We=Object.prototype.hasOwnProperty;ze.a=function assignValue(ce,ze,Ve){var Xe=ce[ze];We.call(ce,ze)&&Object(Ye.a)(Xe,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(80),Ye=Ve(285),We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xe=/^\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))||(Xe.test(ce)||!We.test(ce)||null!=ze&&ce in Object(ze))}},function(ce,ze,Ve){"use strict";var qe=Ve(293),Ye=Ve(171);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)(Xe,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),Xe=/alt="([^"]*)"/i.exec(ze);return null!==We&&(Ve=We[1]),null!==Xe&&(Ye=Xe[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,Qe-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(222),Ye=Ve(623),We=Ve(380),Xe=Ve(170),Qe=Ve(214);var ot=function baseAssign(ce,ze){return ce&&Object(Xe.a)(ze,Object(Qe.a)(ze),ce)},st=Ve(173);var mt=function baseAssignIn(ce,ze){return ce&&Object(Xe.a)(ze,Object(st.a)(ze),ce)},gt=Ve(620),yt=Ve(619),bt=Ve(394);var vt=function copySymbols(ce,ze){return Object(Xe.a)(ce,Object(bt.a)(ce),ze)},wt=Ve(626),Ct=Ve(379),Dt=Ve(627),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(Xe.a)(ce,kt(ce),ze)},xt=Ve(438),Et=Ve(625);var Pt=function getAllKeysIn(ce){return Object(Et.a)(ce,st.a,kt)},Tt=Ve(249),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(378);var Ht=function cloneDataView(ce,ze){var Ve=ze?Object(Bt.a)(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.byteLength)},Vt=/\w*$/;var Ut=function cloneRegExp(ce){var ze=new ce.constructor(ce.source,Vt.exec(ce));return ze.lastIndex=ce.lastIndex,ze},Wt=Ve(139),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(621);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 Ht(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(683),gn=Ve(80),bn=Ve(246),wn=Ve(93);var Cn=function baseIsMap(ce){return Object(wn.a)(ce)&&"[object Map]"==Object(Tt.a)(ce)},Sn=Ve(377),En=Ve(253),Tn=En.a&&En.a.isMap,Ln=Tn?Object(Sn.a)(Tn):Cn,Fn=Ve(72);var Yn=function baseIsSet(ce){return Object(wn.a)(ce)&&"[object Set]"==Object(Tt.a)(ce)},Un=En.a&&En.a.isSet,Kn=Un?Object(Sn.a)(Un):Yn,Gn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Xn={};Xn[Gn]=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,Xe,bt,wt){var Ct,Dt=1&ze,kt=2&ze,Et=4&ze;if(Ve&&(Ct=bt?Ve(ce,Xe,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),Ht=Bt==Jn||"[object GeneratorFunction]"==Bt;if(Object(bn.a)(ce))return Object(gt.a)(ce,Dt);if(Bt==Zn||Bt==Gn||Ht&&!bt){if(Ct=kt||Ht?{}: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 Vt=wt.get(ce);if(Vt)return Vt;wt.set(ce,Ct),Kn(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:Qe.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),Xe=Ve(1),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(96),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),Ht=(Ve(265),Ve(6)),Vt="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),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(Xe.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(Xe.toJS)(ce.dependantResourcesData),Object(Xe.toJS)(this.props.dependantResourcesData))&&ot()(Object(Xe.toJS)(ce.requestOptions),Object(Xe.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(Ht.translate)("sulu_admin.close"):Object(Ht.translate)("sulu_admin.cancel"),confirmDisabled:this.errored||this.finished,confirmLoading:this.inProgress,confirmText:Object(Ht.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:Vt},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(Ht.translate)("sulu_admin.delete_dependants_progress_text",{count:`${this.totalDeletedResources}/${this.dependantResourcesCount}`}))))}},Ct=_applyDecoratedDescriptor(wt.prototype,"inProgress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(wt.prototype,"finished",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(wt.prototype,"showSnackbar",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),St=_applyDecoratedDescriptor(wt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xt=_applyDecoratedDescriptor(wt.prototype,"closed",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(wt.prototype,"totalDeletedResources",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_applyDecoratedDescriptor(wt.prototype,"title",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"title"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"detail",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"detail"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourceBatches",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourceBatches"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourcesCount",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourcesCount"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"componentDidUpdate"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"errored",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"errored"),wt.prototype),Pt=_applyDecoratedDescriptor(wt.prototype,"handleConfirm",[Xe.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(Xe.action)((()=>{this.inProgress=!1,this.finished=!0,ce&&ce()}))).catch((ce=>{ce.json().then(Object(Xe.action)((ce=>{this.inProgress=!1,this.error=ce.detail||ce.title||Object(Ht.translate)("sulu_admin.unexpected_delete_server_error"),ze&&ze(ce)})))}))}}}),Tt=_applyDecoratedDescriptor(wt.prototype,"handleCancel",[Xe.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",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showSnackbar=!1}}}),_applyDecoratedDescriptor(wt.prototype,"snackbarType",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarType"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"snackbarMessage",[Xe.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,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(19),vt=Ve(392),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(63),Ht={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),We=null),We}let Vt=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",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:qe}=this.props,Ye=yt()(Ht.button,Ht[Ve],{[Ht.hasOptions]:qe}),We=mt.a.createElement("button",{className:Ye,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.a,{className:Ht.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}}),Xe=_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()}}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),qe=Ye))||qe;var Ut=Vt;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:Xe,loading:Qe,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({},Xe,{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},Qe?"…":We)),st&&!Qe&&!qe&&(!Ye||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.a,{name:"su-trash-alt"})),Qe&&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(1),Ye=Ve(0),We=Ve.n(Ye),Xe=Ve(3),Qe=Ve(215),ot=Ve(250),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),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(Xe.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(Qe.a)("withContainerSize",ce),yt}},function(ce,ze,Ve){"use strict";var qe=Ve(0),Ye=Ve.n(qe),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot="label--NExT2msrBj",st="disabled--G3RpqBocRC",mt="switch--s8wD-Fpng8";class gt 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:gt,className:yt,disabled:bt,tabIndex:vt}=this.props,wt=Xe()(ot,{[st]:bt}),Ct=Xe()(mt,{[st]:bt},yt);return Ye.a.createElement("label",{className:wt,onClick:this.handleClick,tabIndex:-1},Ye.a.createElement("span",{className:Ct},Ye.a.createElement("input",{checked:We,disabled:bt,name:Ve,onChange:this.handleChange,tabIndex:vt,type:ze,value:qe}),Ye.a.createElement("span",null,ce&&Ye.a.createElement(Qe.a,{name:ce}))),gt&&Ye.a.createElement("div",null,gt))}}gt.defaultProps={checked:!1,disabled:!1,type:"checkbox"};ze.a=gt},function(ce,ze,Ve){"use strict";var qe=Ve(138),Ye=Ve(375),We=Ve(93),Xe={};Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Qe=function baseIsTypedArray(ce){return Object(We.a)(ce)&&Object(Ye.a)(ce.length)&&!!Xe[Object(qe.a)(ce)]},ot=Ve(377),st=Ve(253),mt=st.a&&st.a.isTypedArray,gt=mt?Object(ot.a)(mt):Qe;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),Xe=Ve.n(We),Qe="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=Xe()(Qe,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(70),Ye=Ve(55);function getPositionedAncestor(ce){return ce&&ce.parentNode?ce.offsetParent===qe.a.document.body?null:ce.offsetParent:null}var We=Ve(636),Xe=Ve(374);function getOptimalPosition(ce){let{element:ze,target:Ve,positions:qe,limiter:We,fitInViewport:ot,viewportOffsetConfig:st}=ce;Object(Xe.a)(Ve)&&(Ve=Ve()),Object(Xe.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 Qe(qe[0],bt)}else yt=new Qe(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 Qe(ce,ze))).filter((ce=>!!ce.name));let We=0,Xe=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,Xe=ce)}return Xe}function shiftRectToCompensatePositionedAncestor(ce,ze){const Ve=getRectForAbsolutePositioning(new Ye.a(ze)),qe=Object(We.a)(ze);let Xe=0,Qe=0;Xe-=Ve.left,Qe-=Ve.top,Xe+=ze.scrollLeft,Qe+=ze.scrollTop,Xe-=qe.left,Qe-=qe.top,ce.moveBy(Xe,Qe)}function getRectForAbsolutePositioning(ce){const{scrollX:ze,scrollY:Ve}=qe.a.window;return ce.clone().moveBy(ze,Ve)}class Qe{constructor(ce,ze){const Ve=ce(ze.targetRect,ze.elementRect,ze.viewportRect);if(!Ve)return;const{left:qe,top:Ye,name:We,config:Xe}=Ve;Object.assign(this,{name:We,config:Xe}),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,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),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),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:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)Ye.push(...collectTagPathsWithPriority(ce,ze,Qe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.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(Xe.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(Xe.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(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(522);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(153),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(97).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,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),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),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:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)Ye.push(...collectTagPathsWithPriority(ce,ze,Qe,qe));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&Ye.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.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(Xe.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(Xe.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(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(qe.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"validate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"addMissingSchemaProperties"),qe.prototype),qe)},function(ce,ze,Ve){"use strict";var qe=Ve(130),Ye=Ve.n(qe),We=Ve(364),Xe=Ve(103);const Qe={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=Xe.b.fetch(ze,Qe).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(130),Ye=Ve.n(qe),We=Ve(365),Xe=Ve(32);const Qe={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=Xe.b.fetch(ze,Qe).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(69),Ye=Ve(61),We=Ve(232),Xe=Object,Qe=qe("".split);ce.exports=Ye((function(){return!Xe("z").propertyIsEnumerable(0)}))?function(ce){return"String"===We(ce)?Qe(ce,""):Xe(ce)}:Xe},function(ce,ze,Ve){"use strict";var qe=Ve(449),Ye=Ve(306);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(69),Ye=0,We=Math.random(),Xe=qe(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Xe(++Ye+We,36)}},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe=Ve(1115),Qe=Ve(104),ot=Ve(133),st=Ve(338),mt=Ve(109),gt=Ve(698),yt=Ve(452),bt=Ve(410),vt="Object already initialized",wt=Qe.TypeError,Ct=Qe.WeakMap;if(Xe||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(789),Ye=Ve(701).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function getOwnPropertyNames(ce){return qe(ce,Ye)}},function(ce,ze,Ve){"use strict";var qe=Ve(454);ce.exports=function(ce){return qe(ce.length)}},function(ce,ze){ce.exports=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){var qe=Ve(167).Symbol;ce.exports=qe},function(ce,ze,Ve){(function(ce){var qe=Ve(167),Ye=Ve(1166),We=ze&&!ze.nodeType&&ze,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?qe.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||Ye;ce.exports=ot}).call(this,Ve(309)(ce))},function(ce,ze,Ve){var qe=Ve(818),Ye=Ve(716);ce.exports=function copyObject(ce,ze,Ve,We){var Xe=!Ve;Ve||(Ve={});for(var Qe=-1,ot=ze.length;++QeLt;Lt++)if((bt||Lt in Et)&&(St=Pt(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(86),Ye=Ve(69),We=Ve(406),Xe=Ve(305),Qe=Ve(472),ot=Ye([].join);qe({target:"Array",proto:!0,forced:We!==Object||!Qe("join",",")},{join:function join(ce){return ot(Xe(this),void 0===ce?",":ce)}})},function(ce,ze,Ve){var qe=Ve(1218),Ye=Ve(713),We=Ve(1219),Xe=Ve(1220),Qe=Ve(1221),ot=Ve(308),st=Ve(806),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(Xe),St=st(Qe),xt=ot;(qe&&xt(new qe(new ArrayBuffer(1)))!=vt||Ye&&xt(new Ye)!=mt||We&&xt(We.resolve())!=gt||Xe&&xt(new Xe)!=yt||Qe&&xt(new Qe)!=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";let qe,Ye,We=Ve(311);class Xe 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()}}Xe.registerLazyResult=ce=>{qe=ce},Xe.registerProcessor=ce=>{Ye=ce},ce.exports=Xe,Xe.default=Xe,We.registerRoot(Xe)},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),Xe=Ve.n(We),Qe=Ve(372),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=Xe()(ot.radio,ot[this.props.skin],{[ot.disabled]:ce});return Ye.a.createElement(Qe.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),Xe=Ve(9),Qe=Ve.n(Xe);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),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 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",[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 Xe extends Ye.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.get(ce);return Ye.a.createElement(Ve,ze)}}Xe.defaultProps={disabled:!1};ze.a=Xe},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),Xe=Ve.n(We),Qe=Ve(372),ot={checkbox:"checkbox--W3VJ4iRnvV",dark:"dark--9ANew0mYch",light:"light--LZcLfDMoNI"};class st extends Ye.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:qe,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return Ye.a.createElement(Qe.a,{checked:qe,className:bt,disabled:gt,icon:qe?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,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),Xe="folder--w0696HNIyJ",Qe="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)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Ye.a.createElement("div",{className:Xe,onClick:this.handleClick,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:Qe},Ye.a.createElement("h5",{className:ot},Ve),Ye.a.createElement("div",{className:st},ze)))}}},function(ce,ze,Ve){"use strict";Ve(123);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 Xe}));var qe=Ve(50),Ye=Ve(642),We=Ve(279);class Xe 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(27);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(84);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 Xe=Ve(227),Qe=Ve(602);function _inheritsLoose(ce,ze){ce.prototype=Object.create(ze.prototype),ce.prototype.constructor=ce,Object(Qe.a)(ce,ze)}var ot=Ve(43);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 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,Xe=ce in this.style;if(We&&!Xe&&!qe)return this;var Qe=We&&Xe;if(Qe?delete this.style[ce]:this.style[ce]=Ye,this.renderable&&this.renderer)return Qe?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,Xe=qe.scoped,Qe=qe.sheet,st=qe.generateId;return We?Ye.selectorText=We:!1!==Xe&&(Ye.id=st(Object(ot.a)(Object(ot.a)(Ye)),Qe),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(Xe.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,Xe=Ve.sheet,Qe=Ve.generateId;for(var ot in this.id=!1===We?this.name:jss_esm_escape(Qe(this,Xe)),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,Ht=function findReferencedKeyframe(ce,ze){return"string"==typeof ce?ce.replace(Bt,(function(ce,Ve){return Ve in ze?ze[Ve]:ce})):ce},Vt=function replaceRef(ce,ze,Ve){var qe=ce[ze],Ye=Ht(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&&Vt(ce,"animation-name",Ve.keyframes),"animation"in ce&&Vt(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 Ht(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="",Xe=0;Xe-1?qe.substr(0,Ye-1):qe;ce.style.setProperty(ze,We,Ye>-1?"important":"")}}catch(ce){return!1}return!0},er=function removeProperty(ce,ze){try{ce.attributeStyleMap?ce.attributeStyleMap.delete(ze):ce.style.removeProperty(ze)}catch(ce){}},tr=function setSelector(ce,ze){return ce.selectorText=ze,ce.selectorText===ze},nr=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=nr(),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 nr().appendChild(ce)}var rr=Jn((function(){var ce=document.querySelector('meta[property="csp-nonce"]');return ce?ce.getAttribute("content"):null})),ar=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]},sr=function getValidRuleInsertionIndex(ce,ze){var Ve=ce.cssRules.length;return void 0===ze||ze>Ve?Ve:ze},lr=function createStyle(){var ce=document.createElement("style");return ce.textContent="\n",ce},dr=function(){function DomRenderer(ce){this.getPropertyValue=Zn,this.setProperty=Xn,this.removeProperty=er,this.setSelector=tr,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||lr(),this.element.setAttribute("data-jss",""),Ve&&this.element.setAttribute("media",Ve),qe&&this.element.setAttribute("data-meta",qe);var We=rr();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 Ri=function jssCompose(){return{onProcessStyle:function onProcessStyle(ce,ze){return"composes"in ce?(registerClass(ze,ce.composes),delete ce.composes,ce):ce}}},Ci=vr({createGenerateId:function createGenerateId(){var ce=0;return function(ze){return"rsg--"+ze.key+"-"+ce++}},plugins:[Mr(),Nr({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"})}),Yr(),Gr(),_i(),Ri()]});ze.a=Ci},function(ce,ze,Ve){"use strict";var qe,Ye,We,Xe=Ve(1),Qe=Ve(103);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),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),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.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",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(qe.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"set"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"clear"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"setLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loadItem",[Xe.action],Object.getOwnPropertyDescriptor(qe.prototype,"loadItem"),qe.prototype),qe);ze.a=ot},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var qe=Ve(27),Ye=Ve(50);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 Xe="separator-"+(ce.key||ze);Ve=qe.cloneElement(Ve,{key:Xe})}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(572);ze.a=qe.default},function(ce,ze,Ve){"use strict";var qe=Ve(625),Ye=Ve(394),We=Ve(214);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 Qe}));var qe=Ve(0),Ye=Ve.n(qe),We=Ve(228),Xe=Ve(11);class Qe 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(Xe.b)("sulu_admin.please_choose");return Ye.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.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)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.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(600),Ye=Ve(78),We=Ve(643);class Xe 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(),Xe=Ye.start.parent,Qe=Ye.end.parent,ot=Xe==Qe;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(Qe,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 Qe=Ve(644),ot=Ve(28);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(Qe.a),ce.commands.add("shiftEnter",new Xe(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),Xe=Ve(9),Qe=Ve.n(Xe);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),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 Qe.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 Qe.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){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,Xe=!1,Qe=!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),Xe=!0,Qe="%"===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),Xe=!0,Qe="hsv"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.l)&&(qe=convertToPercentage(ce.s),We=convertToPercentage(ce.l),ze=hslToRgb(ce.h,qe,We),Xe=!0,Qe="hsl"),ce.hasOwnProperty("a")&&(Ve=ce.a)),Ve=boundAlpha(Ve),{ok:Xe,format:ce.format||Qe,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),Xe=Math.min(ce,ze,Ve),Qe=(We+Xe)/2;if(We==Xe)qe=Ye=0;else{var ot=We-Xe;switch(Ye=Qe>.5?ot/(2-We-Xe):ot/(We+Xe),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 Xe=Ve<.5?Ve*(1+ze):Ve+ze-Ve*ze,Qe=2*Ve-Xe;qe=hue2rgb(Qe,Xe,ce+1/3),Ye=hue2rgb(Qe,Xe,ce),We=hue2rgb(Qe,Xe,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),Xe=Math.min(ce,ze,Ve),Qe=We,ot=We-Xe;if(Ye=0===We?0:ot/We,We==Xe)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,Xe=[],Qe=1/ze;ze--;)Xe.push(tinycolor({h:qe,s:Ye,v:We})),We=(We+Qe)%1;return Xe}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,Xe,Qe=null,ot=0;Ye=(Ve=Ve||{}).includeFallbackColors,We=Ve.level,Xe=Ve.size;for(var st=0;stot&&(ot=qe,Qe=tinycolor(ze[st]));return tinycolor.isReadable(ce,Qe,{level:We,size:Xe})||!Ye?Qe:(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,Xe,Qe=(We="[\\s|\\(]+("+(Ye="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",Xe="[\\s|\\(]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")[,|\\s]+("+Ye+")\\s*\\)?",{CSS_UNIT:new RegExp(Ye),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+Xe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+Xe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+Xe),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!!Qe.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=Qe.rgb.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3]}:(Ye=Qe.rgba.exec(qe))?{r:Ye[1],g:Ye[2],b:Ye[3],a:Ye[4]}:(Ye=Qe.hsl.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3]}:(Ye=Qe.hsla.exec(qe))?{h:Ye[1],s:Ye[2],l:Ye[3],a:Ye[4]}:(Ye=Qe.hsv.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3]}:(Ye=Qe.hsva.exec(qe))?{h:Ye[1],s:Ye[2],v:Ye[3],a:Ye[4]}:(Ye=Qe.hex8.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),a:convertHexToDecimal(Ye[4]),format:We?"name":"hex8"}:(Ye=Qe.hex6.exec(qe))?{r:parseIntFromHex(Ye[1]),g:parseIntFromHex(Ye[2]),b:parseIntFromHex(Ye[3]),format:We?"name":"hex"}:(Ye=Qe.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=Qe.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(177),Ye=Ve(767),We=Ve(334),Xe=Ve(690),Qe=Ve(769),ot=Ve(770),st=qe.Symbol,mt=Ye("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&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,Xe=[],Qe=!1,ot=-1;function cleanUpNextTick(){Qe&&We&&(Qe=!1,We.length?Xe=We.concat(Xe):ot=-1,Xe.length&&drainQueue())}function drainQueue(){if(!Qe){var ce=runTimeout(cleanUpNextTick);Qe=!0;for(var ze=Xe.length;ze;){for(We=Xe,Xe=[];++ot1)for(var Ve=1;Ve0?Ye(qe(ce),9007199254740991):0}},function(ce,ze,Ve){"use strict";ze.f=Object.getOwnPropertySymbols},function(ce,ze,Ve){"use strict";var qe=Ve(789),Ye=Ve(701);ce.exports=Object.keys||function keys(ce){return qe(ce,Ye)}},function(ce,ze,Ve){"use strict";var qe,Ye,We=Ve(144),Xe=Ve(69),Qe=Ve(146),ot=Ve(704),st=Ve(705),mt=Ve(337),gt=Ve(706),yt=Ve(409).get,bt=Ve(794),vt=Ve(795),wt=mt("native-string-replace",String.prototype.replace),Ct=RegExp.prototype.exec,Dt=Ct,kt=Xe("".charAt),St=Xe("".indexOf),xt=Xe("".replace),Et=Xe("".slice),Pt=(Ye=/b*/g,We(Ct,qe=/a/,"a"),We(Ct,Ye,"a"),0!==qe.lastIndex||0!==Ye.lastIndex),Tt=st.BROKEN_CARET,Lt=void 0!==/()??/.exec("")[1];(Pt||Lt||Tt||bt||vt)&&(Dt=function exec(ce){var ze,Ve,qe,Ye,Xe,st,mt,bt=this,vt=yt(bt),Ft=Qe(ce),Bt=vt.raw;if(Bt)return Bt.lastIndex=bt.lastIndex,ze=We(Dt,Bt,Ft),bt.lastIndex=Bt.lastIndex,ze;var Ht=vt.groups,Vt=Tt&&bt.sticky,Ut=We(ot,bt),Wt=bt.source,Jt=0,Qt=Ft;if(Vt&&(Ut=xt(Ut,"y",""),-1===St(Ut,"g")&&(Ut+="g"),Qt=Et(Ft,bt.lastIndex),bt.lastIndex>0&&(!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,Vt?Ve:bt,Qt),Vt?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(Xe=1;Xe=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,Xe=1,Qe=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;Xe=2,Qe/=2,ot/=2,Ve/=2}function read(ce,ze){return 1===Xe?ce[ze]:ce.readUInt16BE(ze*Xe)}if(Ye){var st=-1;for(We=Ve;WeQe&&(Ve=Qe-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 Xe=0;Xe239?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],Xe=ce[Ye+2],128==(192&We)&&128==(192&Xe)&&(ot=(15&st)<<12|(63&We)<<6|63&Xe)>2047&&(ot<55296||ot>57343)&&(mt=ot);break;case 4:We=ce[Ye+1],Xe=ce[Ye+2],Qe=ce[Ye+3],128==(192&We)&&128==(192&Xe)&&128==(192&Qe)&&(ot=(15&st)<<18|(63&We)<<12|(63&Xe)<<6|63&Qe)>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),Xe=(Ve>>>=0)-(ze>>>=0),Qe=Math.min(We,Xe),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 Xe=4096;function decodeCodePointsArray(ce){var ze=ce.length;if(ze<=Xe)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,Xe=1,Qe=0;for(this[ze]=255&ce;++We>0)-Qe&255;return ze+Ve},Buffer.prototype.writeIntBE=function writeIntBE(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=Ve-1,Xe=1,Qe=0;for(this[ze+We]=255&ce;--We>=0&&(Xe*=256);)ce<0&&0===Qe&&0!==this[ze+We+1]&&(Qe=1),this[ze+We]=(ce/Xe>>0)-Qe&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(Xe+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(143))},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:Qe,data:ot,allErrors:st,opts:yt,self:vt}=ce,{RULES:wt}=vt;function groupKeywords(bt){(0,We.shouldUseGroup)(Qe,bt)&&(bt.type?(Ye.if((0,Xe.checkDataType)(bt.type,ot,yt.strictNumbers)),iterateKeywords(ce,bt),1===ze.length&&ze[0]===bt.type&&Ve&&(Ye.else(),(0,Xe.reportTypeError)(ce)),Ye.endIf()):iterateKeywords(ce,bt),st||Ye.if(mt._`${gt.default.errors} === ${qe||0}`))}!Qe.$ref||!yt.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(Qe,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,Qe.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,Xe.checkDataTypes)(ce,ze,Ye.opts.strictNumbers,Xe.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 Xe=Dt.exec(ce);if(!Xe)throw new Error(`Invalid JSON-pointer: ${ce}`);const Qe=+Xe[1];if(Ye=Xe[2],"#"===Ye){if(Qe>=ze)throw new Error(errorMsg("property/index",Qe));return qe[ze-Qe]}if(Qe>ze)throw new Error(errorMsg("data",Qe));if(We=Ve[ze-Qe],!Ye)return We}let Xe=We;const Qe=Ye.split("/");for(const ce of Qe)ce&&(We=mt._`${We}${(0,mt.getProperty)((0,bt.unescapeJsonPointer)(ce))}`,Xe=mt._`${Xe} && ${We}`);return Xe;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(48),Ye=Ve(66),We=Ve(263);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:Xe}=ce,{gen:Qe,compositeRule:ot,allErrors:st}=Xe,mt=errorObjectCode(ce,Ve,Ye);(null!=We?We:ot||st)?addError(Qe,mt):returnErrors(Xe,qe._`[${mt}]`)},ze.reportExtraError=function reportExtraError(ce,Ve=ze.keywordError,qe){const{it:Ye}=ce,{gen:Xe,compositeRule:Qe,allErrors:ot}=Ye;addError(Xe,errorObjectCode(ce,Ve,qe)),Qe||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:Xe,it:Qe}){if(void 0===Xe)throw new Error("ajv implementation error");const ot=ce.name("err");ce.forRange("i",Xe,We.default.errors,(Xe=>{ce.const(ot,qe._`${We.default.vErrors}[${Xe}]`),ce.if(qe._`${ot}.instancePath === undefined`,(()=>ce.assign(qe._`${ot}.instancePath`,(0,qe.strConcat)(We.default.instancePath,Qe.errorPath)))),ce.assign(qe._`${ot}.schemaPath`,qe.str`${Qe.errSchemaPath}/${ze}`),Qe.opts.verbose&&(ce.assign(qe._`${ot}.schema`,Ve),ce.assign(qe._`${ot}.data`,Ye))}))};const Xe={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 Qe=We?ze:qe.str`${ze}/${ce}`;return Ve&&(Qe=qe.str`${Qe}${(0,Ye.getErrorPath)(Ve,Ye.Type.Str)}`),[Xe.schemaPath,Qe]}function extraErrorProps(ce,{params:ze,message:Ve},Ye){const{keyword:Qe,data:ot,schemaValue:st,it:mt}=ce,{opts:gt,propertyName:yt,topSchemaRef:bt,schemaPath:vt}=mt;Ye.push([Xe.keyword,Qe],[Xe.params,"function"==typeof ze?ze(ce):ze||qe._`{}`]),gt.messages&&Ye.push([Xe.message,"function"==typeof Ve?Ve(ce):Ve]),gt.verbose&&Ye.push([Xe.schema,st],[Xe.parentSchema,qe._`${bt}${vt}`],[We.default.data,ot]),yt&&Ye.push([Xe.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===Xe.length&&1===ze.length&&(0,Ye.schemaHasRulesForType)(ce,ze[0]));if(Qe){const Ye=checkDataTypes(ze,qe,We.strictNumbers,ot.Wrong);Ve.if(Ye,(()=>{Xe.length?coerceData(ce,ze,Xe):reportTypeError(ce)}))}return Qe};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,Qe=qe.let("dataType",Xe._`typeof ${Ye}`),ot=qe.let("coerced",Xe._`undefined`);"array"===We.coerceTypes&&qe.if(Xe._`${Qe} == 'object' && Array.isArray(${Ye}) && ${Ye}.length == 1`,(()=>qe.assign(Ye,Xe._`${Ye}[0]`).assign(Qe,Xe._`typeof ${Ye}`).if(checkDataTypes(ze,Ye,We.strictNumbers),(()=>qe.assign(ot,Ye))))),qe.if(Xe._`${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(Xe._`${Qe} == "number" || ${Qe} == "boolean"`).assign(ot,Xe._`"" + ${Ye}`).elseIf(Xe._`${Ye} === null`).assign(ot,Xe._`""`);case"number":return void qe.elseIf(Xe._`${Qe} == "boolean" || ${Ye} === null || (${Qe} == "string" && ${Ye} && ${Ye} == +${Ye})`).assign(ot,Xe._`+${Ye}`);case"integer":return void qe.elseIf(Xe._`${Qe} === "boolean" || ${Ye} === null || (${Qe} === "string" && ${Ye} && ${Ye} == +${Ye} && !(${Ye} % 1))`).assign(ot,Xe._`+${Ye}`);case"boolean":return void qe.elseIf(Xe._`${Ye} === "false" || ${Ye} === 0 || ${Ye} === null`).assign(ot,!1).elseIf(Xe._`${Ye} === "true" || ${Ye} === 1`).assign(ot,!0);case"null":return qe.elseIf(Xe._`${Ye} === "" || ${Ye} === 0 || ${Ye} === false`),void qe.assign(ot,null);case"array":qe.elseIf(Xe._`${Qe} === "string" || ${Qe} === "number" diff --git a/docs/2.4/build/bundle.86aac496.js.LICENSE.txt b/docs/2.4/build/bundle.60580742.js.LICENSE.txt similarity index 100% rename from docs/2.4/build/bundle.86aac496.js.LICENSE.txt rename to docs/2.4/build/bundle.60580742.js.LICENSE.txt diff --git a/docs/2.4/index.html b/docs/2.4/index.html index cb930da..d5c9d3d 100644 --- a/docs/2.4/index.html +++ b/docs/2.4/index.html @@ -5,10 +5,10 @@ Sulu Javascript Docs - +
- + \ No newline at end of file