diff --git a/Neos.Ui/core/src/application/LinkTypes/Web/Web.tsx b/Neos.Ui/core/src/application/LinkTypes/Web/Web.tsx index 792f79e..c5ca5d5 100644 --- a/Neos.Ui/core/src/application/LinkTypes/Web/Web.tsx +++ b/Neos.Ui/core/src/application/LinkTypes/Web/Web.tsx @@ -71,6 +71,7 @@ export const Web = makeLinkType('Sitegeist.Archaeopteryx:Web', ({c const [protocol, setProtocol] = useState(""); const i18n = useI18n(); + const form = useForm(); return (
@@ -86,7 +87,7 @@ export const Web = makeLinkType('Sitegeist.Archaeopteryx:Web', ({c } if(value === undefined){ - useForm().change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol); + form.change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol); } return value; }} @@ -128,7 +129,7 @@ export const Web = makeLinkType('Sitegeist.Archaeopteryx:Web', ({c if (matches) { const [, protocol, urlWithoutProtocol] = matches; - useForm().change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol); + form.change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol); return urlWithoutProtocol; } return value; diff --git a/Resources/Public/JavaScript/Plugin.js b/Resources/Public/JavaScript/Plugin.js index 65f79e8..447981b 100644 --- a/Resources/Public/JavaScript/Plugin.js +++ b/Resources/Public/JavaScript/Plugin.js @@ -1,3 +1,3 @@ /*! For license information please see Plugin.js.LICENSE.txt */ -!function(w){var S={};function __webpack_require__(O){if(S[O])return S[O].exports;var $=S[O]={i:O,l:!1,exports:{}};return w[O].call($.exports,$,$.exports,__webpack_require__),$.l=!0,$.exports}__webpack_require__.m=w,__webpack_require__.c=S,__webpack_require__.d=function(w,S,O){__webpack_require__.o(w,S)||Object.defineProperty(w,S,{enumerable:!0,get:O})},__webpack_require__.r=function(w){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},__webpack_require__.t=function(w,S){if(1&S&&(w=__webpack_require__(w)),8&S)return w;if(4&S&&"object"==typeof w&&w&&w.__esModule)return w;var O=Object.create(null);if(__webpack_require__.r(O),Object.defineProperty(O,"default",{enumerable:!0,value:w}),2&S&&"string"!=typeof w)for(var $ in w)__webpack_require__.d(O,$,function(S){return w[S]}.bind(null,$));return O},__webpack_require__.n=function(w){var S=w&&w.__esModule?function getDefault(){return w.default}:function getModuleExports(){return w};return __webpack_require__.d(S,"a",S),S},__webpack_require__.o=function(w,S){return Object.prototype.hasOwnProperty.call(w,S)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=141)}([function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("vendor")().React},function(w,S,O){"use strict";O.r(S),O.d(S,"__extends",(function(){return __extends})),O.d(S,"__assign",(function(){return __assign})),O.d(S,"__rest",(function(){return __rest})),O.d(S,"__decorate",(function(){return __decorate})),O.d(S,"__param",(function(){return __param})),O.d(S,"__metadata",(function(){return __metadata})),O.d(S,"__awaiter",(function(){return __awaiter})),O.d(S,"__generator",(function(){return __generator})),O.d(S,"__createBinding",(function(){return __createBinding})),O.d(S,"__exportStar",(function(){return __exportStar})),O.d(S,"__values",(function(){return __values})),O.d(S,"__read",(function(){return __read})),O.d(S,"__spread",(function(){return __spread})),O.d(S,"__spreadArrays",(function(){return __spreadArrays})),O.d(S,"__await",(function(){return __await})),O.d(S,"__asyncGenerator",(function(){return __asyncGenerator})),O.d(S,"__asyncDelegator",(function(){return __asyncDelegator})),O.d(S,"__asyncValues",(function(){return __asyncValues})),O.d(S,"__makeTemplateObject",(function(){return __makeTemplateObject})),O.d(S,"__importStar",(function(){return __importStar})),O.d(S,"__importDefault",(function(){return __importDefault})),O.d(S,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),O.d(S,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet}));var extendStatics=function(w,S){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var O in S)S.hasOwnProperty(O)&&(w[O]=S[O])})(w,S)};function __extends(w,S){function __(){this.constructor=w}extendStatics(w,S),w.prototype=null===S?Object.create(S):(__.prototype=S.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)};function __rest(w,S){var O={};for(var $ in w)Object.prototype.hasOwnProperty.call(w,$)&&S.indexOf($)<0&&(O[$]=w[$]);if(null!=w&&"function"==typeof Object.getOwnPropertySymbols){var x=0;for($=Object.getOwnPropertySymbols(w);x<$.length;x++)S.indexOf($[x])<0&&Object.prototype.propertyIsEnumerable.call(w,$[x])&&(O[$[x]]=w[$[x]])}return O}function __decorate(w,S,O,$){var x,C=arguments.length,j=C<3?S:null===$?$=Object.getOwnPropertyDescriptor(S,O):$;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(w,S,O,$);else for(var N=w.length-1;N>=0;N--)(x=w[N])&&(j=(C<3?x(j):C>3?x(S,O,j):x(S,O))||j);return C>3&&j&&Object.defineProperty(S,O,j),j}function __param(w,S){return function(O,$){S(O,$,w)}}function __metadata(w,S){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(w,S)}function __awaiter(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))}function __generator(w,S){var O,$,x,C,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(C){return function(N){return function step(C){if(O)throw new TypeError("Generator is already executing.");for(;j;)try{if(O=1,$&&(x=2&C[0]?$.return:C[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,C[1])).done)return x;switch($=0,x&&(C=[2&C[0],x.value]),C[0]){case 0:case 1:x=C;break;case 4:return j.label++,{value:C[1],done:!1};case 5:j.label++,$=C[1],C=[0];continue;case 7:C=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==C[0]&&2!==C[0])){j=0;continue}if(3===C[0]&&(!x||C[1]>x[0]&&C[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j}function __spread(){for(var w=[],S=0;S1||resume(w,S)}))})}function resume(w,S){try{!function step(w){w.value instanceof __await?Promise.resolve(w.value.v).then(fulfill,reject):settle(C[0][2],w)}(x[w](S))}catch(w){settle(C[0][3],w)}}function fulfill(w){resume("next",w)}function reject(w){resume("throw",w)}function settle(w,S){w(S),C.shift(),C.length&&resume(C[0][0],C[0][1])}}function __asyncDelegator(w){var S,O;return S={},verb("next"),verb("throw",(function(w){throw w})),verb("return"),S[Symbol.iterator]=function(){return this},S;function verb($,x){S[$]=w[$]?function(S){return(O=!O)?{value:__await(w[$](S)),done:"return"===$}:x?x(S):S}:x}}function __asyncValues(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,O=w[Symbol.asyncIterator];return O?O.call(w):(w=__values(w),S={},verb("next"),verb("throw"),verb("return"),S[Symbol.asyncIterator]=function(){return this},S);function verb(O){S[O]=w[O]&&function(S){return new Promise((function($,x){(function settle(w,S,O,$){Promise.resolve($).then((function(S){w({value:S,done:O})}),S)})($,x,(S=w[O](S)).done,S.value)}))}}}function __makeTemplateObject(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w}function __importStar(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)Object.hasOwnProperty.call(w,O)&&(S[O]=w[O]);return S.default=w,S}function __importDefault(w){return w&&w.__esModule?w:{default:w}}function __classPrivateFieldGet(w,S){if(!S.has(w))throw new TypeError("attempted to get private field on non-instance");return S.get(w)}function __classPrivateFieldSet(w,S,O){if(!S.has(w))throw new TypeError("attempted to set private field on non-instance");return S.set(w,O),O}},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(1),x=O(29),C=O(65),j=O(6),N=O(50),k=O(19),I=O(41),R=function(w){function Subscriber(S,O,$){var x=w.call(this)||this;switch(x.syncErrorValue=null,x.syncErrorThrown=!1,x.syncErrorThrowable=!1,x.isStopped=!1,arguments.length){case 0:x.destination=C.a;break;case 1:if(!S){x.destination=C.a;break}if("object"==typeof S){S instanceof Subscriber?(x.syncErrorThrowable=S.syncErrorThrowable,x.destination=S,S.add(x)):(x.syncErrorThrowable=!0,x.destination=new W(x,S));break}default:x.syncErrorThrowable=!0,x.destination=new W(x,S,O,$)}return x}return $.__extends(Subscriber,w),Subscriber.prototype[N.a]=function(){return this},Subscriber.create=function(w,S,O){var $=new Subscriber(w,S,O);return $.syncErrorThrowable=!1,$},Subscriber.prototype.next=function(w){this.isStopped||this._next(w)},Subscriber.prototype.error=function(w){this.isStopped||(this.isStopped=!0,this._error(w))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,w.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(w){this.destination.next(w)},Subscriber.prototype._error=function(w){this.destination.error(w),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var w=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=w,this},Subscriber}(j.a),W=function(w){function SafeSubscriber(S,O,$,j){var N,k=w.call(this)||this;k._parentSubscriber=S;var I=k;return Object(x.a)(O)?N=O:O&&(N=O.next,$=O.error,j=O.complete,O!==C.a&&(I=Object.create(O),Object(x.a)(I.unsubscribe)&&k.add(I.unsubscribe.bind(I)),I.unsubscribe=k.unsubscribe.bind(k))),k._context=I,k._next=N,k._error=$,k._complete=j,k}return $.__extends(SafeSubscriber,w),SafeSubscriber.prototype.next=function(w){if(!this.isStopped&&this._next){var S=this._parentSubscriber;k.a.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?this.__tryOrSetError(S,this._next,w)&&this.unsubscribe():this.__tryOrUnsub(this._next,w)}},SafeSubscriber.prototype.error=function(w){if(!this.isStopped){var S=this._parentSubscriber,O=k.a.useDeprecatedSynchronousErrorHandling;if(this._error)O&&S.syncErrorThrowable?(this.__tryOrSetError(S,this._error,w),this.unsubscribe()):(this.__tryOrUnsub(this._error,w),this.unsubscribe());else if(S.syncErrorThrowable)O?(S.syncErrorValue=w,S.syncErrorThrown=!0):Object(I.a)(w),this.unsubscribe();else{if(this.unsubscribe(),O)throw w;Object(I.a)(w)}}},SafeSubscriber.prototype.complete=function(){var w=this;if(!this.isStopped){var S=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return w._complete.call(w._context)};k.a.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?(this.__tryOrSetError(S,wrappedComplete),this.unsubscribe()):(this.__tryOrUnsub(wrappedComplete),this.unsubscribe())}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(w,S){try{w.call(this._context,S)}catch(w){if(this.unsubscribe(),k.a.useDeprecatedSynchronousErrorHandling)throw w;Object(I.a)(w)}},SafeSubscriber.prototype.__tryOrSetError=function(w,S,O){if(!k.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{S.call(this._context,O)}catch(S){return k.a.useDeprecatedSynchronousErrorHandling?(w.syncErrorValue=S,w.syncErrorThrown=!0,!0):(Object(I.a)(S),!0)}return!1},SafeSubscriber.prototype._unsubscribe=function(){var w=this._parentSubscriber;this._context=null,this._parentSubscriber=null,w.unsubscribe()},SafeSubscriber}(R)},function(w,S,O){"use strict";O.d(S,"a",(function(){return N})),O.d(S,"b",(function(){return k})),O.d(S,"c",(function(){return innerSubscribe}));var $=O(1),x=O(2),C=O(4),j=O(40),N=function(w){function SimpleInnerSubscriber(S){var O=w.call(this)||this;return O.parent=S,O}return $.__extends(SimpleInnerSubscriber,w),SimpleInnerSubscriber.prototype._next=function(w){this.parent.notifyNext(w)},SimpleInnerSubscriber.prototype._error=function(w){this.parent.notifyError(w),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(x.a),k=(x.a,function(w){function SimpleOuterSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(SimpleOuterSubscriber,w),SimpleOuterSubscriber.prototype.notifyNext=function(w){this.destination.next(w)},SimpleOuterSubscriber.prototype.notifyError=function(w){this.destination.error(w)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(x.a));x.a;function innerSubscribe(w,S){if(!S.closed){if(w instanceof C.a)return w.subscribe(S);var O;try{O=Object(j.a)(w)(S)}catch(w){S.error(w)}return O}}},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(63),x=O(2),C=O(50),j=O(65);var N=O(26),k=O(48),I=O(19),R=function(){function Observable(w){this._isScalar=!1,w&&(this._subscribe=w)}return Observable.prototype.lift=function(w){var S=new Observable;return S.source=this,S.operator=w,S},Observable.prototype.subscribe=function(w,S,O){var $=this.operator,N=function toSubscriber(w,S,O){if(w){if(w instanceof x.a)return w;if(w[C.a])return w[C.a]()}return w||S||O?new x.a(w,S,O):new x.a(j.a)}(w,S,O);if($?N.add($.call(N,this.source)):N.add(this.source||I.a.useDeprecatedSynchronousErrorHandling&&!N.syncErrorThrowable?this._subscribe(N):this._trySubscribe(N)),I.a.useDeprecatedSynchronousErrorHandling&&N.syncErrorThrowable&&(N.syncErrorThrowable=!1,N.syncErrorThrown))throw N.syncErrorValue;return N},Observable.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(S){I.a.useDeprecatedSynchronousErrorHandling&&(w.syncErrorThrown=!0,w.syncErrorValue=S),Object($.a)(w)?w.error(S):console.warn(S)}},Observable.prototype.forEach=function(w,S){var O=this;return new(S=getPromiseCtor(S))((function(S,$){var x;x=O.subscribe((function(S){try{w(S)}catch(w){$(w),x&&x.unsubscribe()}}),$,S)}))},Observable.prototype._subscribe=function(w){var S=this.source;return S&&S.subscribe(w)},Observable.prototype[N.a]=function(){return this},Observable.prototype.pipe=function(){for(var w=[],S=0;S=0;N--)(x=w[N])&&(j=(C<3?x(j):C>3?x(S,O,j):x(S,O))||j);return C>3&&j&&Object.defineProperty(S,O,j),j}function __param(w,S){return function(O,$){S(O,$,w)}}function __esDecorate(w,S,O,$,x,C){function accept(w){if(void 0!==w&&"function"!=typeof w)throw new TypeError("Function expected");return w}for(var j,N=$.kind,k="getter"===N?"get":"setter"===N?"set":"value",I=!S&&w?$.static?w:w.prototype:null,R=S||(I?Object.getOwnPropertyDescriptor(I,$.name):{}),W=!1,G=O.length-1;G>=0;G--){var J={};for(var re in $)J[re]="access"===re?{}:$[re];for(var re in $.access)J.access[re]=$.access[re];J.addInitializer=function(w){if(W)throw new TypeError("Cannot add initializers after decoration has completed");C.push(accept(w||null))};var ie=(0,O[G])("accessor"===N?{get:R.get,set:R.set}:R[k],J);if("accessor"===N){if(void 0===ie)continue;if(null===ie||"object"!=typeof ie)throw new TypeError("Object expected");(j=accept(ie.get))&&(R.get=j),(j=accept(ie.set))&&(R.set=j),(j=accept(ie.init))&&x.unshift(j)}else(j=accept(ie))&&("field"===N?x.unshift(j):R[k]=j)}I&&Object.defineProperty(I,$.name,R),W=!0}function __runInitializers(w,S,O){for(var $=arguments.length>2,x=0;x0&&x[x.length-1])||6!==N[0]&&2!==N[0])){C=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j}function __spread(){for(var w=[],S=0;S1||resume(w,S)}))},S&&($[w]=S($[w])))}function resume(w,S){try{!function step(w){w.value instanceof __await?Promise.resolve(w.value.v).then(fulfill,reject):settle(C[0][2],w)}(x[w](S))}catch(w){settle(C[0][3],w)}}function fulfill(w){resume("next",w)}function reject(w){resume("throw",w)}function settle(w,S){w(S),C.shift(),C.length&&resume(C[0][0],C[0][1])}}function __asyncDelegator(w){var S,O;return S={},verb("next"),verb("throw",(function(w){throw w})),verb("return"),S[Symbol.iterator]=function(){return this},S;function verb($,x){S[$]=w[$]?function(S){return(O=!O)?{value:__await(w[$](S)),done:!1}:x?x(S):S}:x}}function __asyncValues(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,O=w[Symbol.asyncIterator];return O?O.call(w):(w=__values(w),S={},verb("next"),verb("throw"),verb("return"),S[Symbol.asyncIterator]=function(){return this},S);function verb(O){S[O]=w[O]&&function(S){return new Promise((function($,x){(function settle(w,S,O,$){Promise.resolve($).then((function(S){w({value:S,done:O})}),S)})($,x,(S=w[O](S)).done,S.value)}))}}}function __makeTemplateObject(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w}var x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},ownKeys=function(w){return(ownKeys=Object.getOwnPropertyNames||function(w){var S=[];for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(S[S.length]=O);return S})(w)};function __importStar(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O=ownKeys(w),C=0;C1?S-1:0),$=1;$0?" Args: "+O.join(", "):""))}var de=function(){function e(w){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=w}var w=e.prototype;return w.indexOfGroup=function(w){for(var S=0,O=0;O=this.groupSizes.length){for(var O=this.groupSizes,$=O.length,x=$;w>=x;)(x<<=1)<0&&D(16,""+w);this.groupSizes=new Uint32Array(x),this.groupSizes.set(O),this.length=x;for(var C=$;C=this.length||0===this.groupSizes[w])return S;for(var O=this.groupSizes[w],$=this.indexOfGroup(w),x=$+O,C=$;C=ye&&(ye=S+1),le.set(w,S),he.set(S,w)},ve="style["+ie+'][data-styled-version="5.3.11"]',ge=new RegExp("^"+ie+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(w,S,O){for(var $,x=O.split(","),C=0,j=x.length;C=0;O--){var $=S[O];if($&&1===$.nodeType&&$.hasAttribute(ie))return $}}(O),C=void 0!==x?x.nextSibling:null;$.setAttribute(ie,"active"),$.setAttribute("data-styled-version","5.3.11");var j=Y();return j&&$.setAttribute("nonce",j),O.insertBefore($,C),$},Se=function(){function e(w){var S=this.element=q(w);S.appendChild(document.createTextNode("")),this.sheet=function(w){if(w.sheet)return w.sheet;for(var S=document.styleSheets,O=0,$=S.length;O<$;O++){var x=S[O];if(x.ownerNode===w)return x}D(17)}(S),this.length=0}var w=e.prototype;return w.insertRule=function(w,S){try{return this.sheet.insertRule(S,w),this.length++,!0}catch(w){return!1}},w.deleteRule=function(w){this.sheet.deleteRule(w),this.length--},w.getRule=function(w){var S=this.sheet.cssRules[w];return void 0!==S&&"string"==typeof S.cssText?S.cssText:""},e}(),Pe=function(){function e(w){var S=this.element=q(w);this.nodes=S.childNodes,this.length=0}var w=e.prototype;return w.insertRule=function(w,S){if(w<=this.length&&w>=0){var O=document.createTextNode(S),$=this.nodes[w];return this.element.insertBefore(O,$||null),this.length++,!0}return!1},w.deleteRule=function(w){this.element.removeChild(this.nodes[w]),this.length--},w.getRule=function(w){return w0&&(I+=w+",")})),$+=""+N+k+'{content:"'+I+'"}/*!sc*/\n'}}}return $}(this)},e}(),Re=/(a)(d)/gi,K=function(w){return String.fromCharCode(w+(w>25?39:97))};function Q(w){var S,O="";for(S=Math.abs(w);S>52;S=S/52|0)O=K(S%52)+O;return(K(S%52)+O).replace(Re,"$1-$2")}var ee=function(w,S){for(var O=S.length;O;)w=33*w^S.charCodeAt(--O);return w},te=function(w){return ee(5381,w)};function ne(w){for(var S=0;S>>0);if(!S.hasNameForId($,j)){var N=O(C,"."+j,void 0,$);S.insertRules($,j,N)}x.push(j),this.staticRulesId=j}else{for(var k=this.rules.length,I=ee(this.baseHash,O.hash),R="",W=0;W>>0);if(!S.hasNameForId($,ie)){var oe=O(R,"."+ie,void 0,$);S.insertRules($,ie,oe)}x.push(ie)}}return x.join(" ")},e}(),Ge=/^\s*\/\/.*$/gm,He=[":","[",".","#"];function ae(w){var S,O,$,x,C=void 0===w?re:w,j=C.options,N=void 0===j?re:j,I=C.plugins,R=void 0===I?J:I,W=new k.a(N),G=[],ie=function(w){function t(S){if(S)try{w(S+"}")}catch(w){}}return function(S,O,$,x,C,j,N,k,I,R){switch(S){case 1:if(0===I&&64===O.charCodeAt(0))return w(O+";"),"";break;case 2:if(0===k)return O+"/*|*/";break;case 3:switch(k){case 102:case 112:return w($[0]+O),"";default:return O+(0===R?"/*|*/":"")}case-2:O.split("/*|*/}").forEach(t)}}}((function(w){G.push(w)})),f=function(w,$,C){return 0===$&&-1!==He.indexOf(C[O.length])||C.match(x)?w:"."+S};function m(w,C,j,N){void 0===N&&(N="&");var k=w.replace(Ge,""),I=C&&j?j+" "+C+" { "+k+" }":k;return S=N,O=C,$=new RegExp("\\"+O+"\\b","g"),x=new RegExp("(\\"+O+"\\b){2,}"),W(j||!C?"":C,I)}return W.use([].concat(R,[function(w,S,x){2===w&&x.length&&x[0].lastIndexOf(O)>0&&(x[0]=x[0].replace($,f))},ie,function(w){if(-2===w){var S=G;return G=[],S}}])),m.hash=R.length?R.reduce((function(w,S){return S.name||D(15),ee(w,S.name)}),5381).toString():"",m}var Ke=C.a.createContext(),Ze=Ke.Consumer,Qe=C.a.createContext(),et=(Qe.Consumer,new Fe),tt=ae();function pe(){return Object(x.useContext)(Ke)||et}function fe(){return Object(x.useContext)(Qe)||tt}function me(w){var S=Object(x.useState)(w.stylisPlugins),O=S[0],$=S[1],j=pe(),k=Object(x.useMemo)((function(){var S=j;return w.sheet?S=w.sheet:w.target&&(S=S.reconstructWithOptions({target:w.target},!1)),w.disableCSSOMInjection&&(S=S.reconstructWithOptions({useCSSOMInjection:!1})),S}),[w.disableCSSOMInjection,w.sheet,w.target]),I=Object(x.useMemo)((function(){return ae({options:{prefix:!w.disableVendorPrefixes},plugins:O})}),[w.disableVendorPrefixes,O]);return Object(x.useEffect)((function(){N()(O,w.stylisPlugins)||$(w.stylisPlugins)}),[w.stylisPlugins]),C.a.createElement(Ke.Provider,{value:k},C.a.createElement(Qe.Provider,{value:I},w.children))}var rt=function(){function e(w,S){var O=this;this.inject=function(w,S){void 0===S&&(S=tt);var $=O.name+S.hash;w.hasNameForId(O.id,$)||w.insertRules(O.id,$,S(O.rules,$,"@keyframes"))},this.toString=function(){return D(12,String(O.name))},this.name=w,this.id="sc-keyframes-"+w,this.rules=S}return e.prototype.getName=function(w){return void 0===w&&(w=tt),this.name+w.hash},e}(),nt=/([A-Z])/,it=/([A-Z])/g,ot=/^ms-/,we=function(w){return"-"+w.toLowerCase()};function Ee(w){return nt.test(w)?w.replace(it,we).replace(ot,"-ms-"):w}var be=function(w){return null==w||!1===w||""===w};function _e(w,S,O,$){if(Array.isArray(w)){for(var x,C=[],j=0,N=w.length;j1?S-1:0),$=1;$?@[\\\]^`{|}~-]+/g,ut=/(^-|-$)/g;function je(w){return w.replace(at,"-").replace(ut,"")}var Te=function(w){return Q(te(w)>>>0)};function xe(w){return"string"==typeof w&&!0}var ke=function(w){return"function"==typeof w||"object"==typeof w&&null!==w&&!Array.isArray(w)},Ve=function(w){return"__proto__"!==w&&"constructor"!==w&&"prototype"!==w};function Be(w,S,O){var $=w[O];ke(S)&&ke($)?ze($,S):w[O]=S}function ze(w){for(var S=arguments.length,O=new Array(S>1?S-1:0),$=1;$=0||(x[O]=w[O]);return x}(S,["componentId"]),C=$&&$+"-"+(xe(w)?w:je(b(w)));return Ye(w,y({},x,{attrs:ce,componentId:C}),O)},Object.defineProperty(de,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=$?ze({},w.defaultProps,S):S}}),Object.defineProperty(de,"toString",{value:function(){return"."+de.styledComponentId}}),j&&G()(de,w,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),de}var qe=function(w){return function e(w,S,O){if(void 0===O&&(O=re),!Object($.isValidElementType)(S))return D(1,String(S));var s=function(){return w(S,O,Ae.apply(void 0,arguments))};return s.withConfig=function($){return e(w,S,y({},O,{},$))},s.attrs=function($){return e(w,S,y({},O,{attrs:Array.prototype.concat(O.attrs,$).filter(Boolean)}))},s}(Ye,w)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(w){qe[w]=qe(w)}));var lt=function(){function e(w,S){this.rules=w,this.componentId=S,this.isStatic=ne(w),Fe.registerId(this.componentId+1)}var w=e.prototype;return w.createStyles=function(w,S,O,$){var x=$(_e(this.rules,S,O,$).join(""),""),C=this.componentId+w;O.insertRules(C,C,x)},w.removeStyles=function(w,S){S.clearRules(this.componentId+w)},w.renderStyles=function(w,S,O,$){w>2&&Fe.registerId(this.componentId+w),this.removeStyles(w,O),this.createStyles(w,S,O,$)},e}();function $e(w){for(var S=arguments.length,O=new Array(S>1?S-1:0),$=1;$1?S-1:0),$=1;$"+S+""},this.getStyleTags=function(){return w.sealed?D(2):w._emitSheetCSS()},this.getStyleElement=function(){var S;if(w.sealed)return D(2);var O=((S={})[ie]="",S["data-styled-version"]="5.3.11",S.dangerouslySetInnerHTML={__html:w.instance.toString()},S),$=Y();return $&&(O.nonce=$),[C.a.createElement("style",y({},O,{key:"sc-0-0"}))]},this.seal=function(){w.sealed=!0},this.instance=new Fe({isServer:!0}),this.sealed=!1}var w=e.prototype;return w.collectStyles=function(w){return this.sealed?D(2):C.a.createElement(me,{sheet:this.instance},w)},w.interleaveWithNodeStream=function(w){return D(3)},e}(),Je=function(w){var S=C.a.forwardRef((function(S,O){var $=Object(x.useContext)(ct),j=w.defaultProps,N=Oe(S,$,j);return C.a.createElement(w,y({},S,{theme:N,ref:O}))}));return G()(S,w),S.displayName="WithTheme("+b(w)+")",S},Xe=function(){return Object(x.useContext)(ct)},pt={StyleSheet:Fe,masterSheet:et};S.default=qe}.call(this,O(44))},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("NeosProjectPackages")().ReactUiComponents},function(w,S,O){"use strict";O.d(S,"a",(function(){return subscribeToResult}));var $=O(1),x=function(w){function InnerSubscriber(S,O,$){var x=w.call(this)||this;return x.parent=S,x.outerValue=O,x.outerIndex=$,x.index=0,x}return $.__extends(InnerSubscriber,w),InnerSubscriber.prototype._next=function(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(w){this.parent.notifyError(w,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(O(2).a),C=O(40),j=O(4);function subscribeToResult(w,S,O,$,N){if(void 0===N&&(N=new x(w,O,$)),!N.closed)return S instanceof j.a?S.subscribe(N):Object(C.a)(S)(N)}},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=!1,x={Promise:void 0,set useDeprecatedSynchronousErrorHandling(w){w&&(new Error).stack;$=w},get useDeprecatedSynchronousErrorHandling(){return $}}},function(w,S,O){"use strict";function identity(w){return w}O.d(S,"a",(function(){return identity}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=O(1),x=function(w){function OuterSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(OuterSubscriber,w),OuterSubscriber.prototype.notifyNext=function(w,S,O,$,x){this.destination.next(S)},OuterSubscriber.prototype.notifyError=function(w,S){this.destination.error(w)},OuterSubscriber.prototype.notifyComplete=function(w){this.destination.complete()},OuterSubscriber}(O(2).a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return filter}));var $=O(1),x=O(2);function filter(w,S){return function filterOperatorFunction(O){return O.lift(new C(w,S))}}var C=function(){function FilterOperator(w,S){this.predicate=w,this.thisArg=S}return FilterOperator.prototype.call=function(w,S){return S.subscribe(new j(w,this.predicate,this.thisArg))},FilterOperator}(),j=function(w){function FilterSubscriber(S,O,$){var x=w.call(this,S)||this;return x.predicate=O,x.thisArg=$,x.count=0,x}return $.__extends(FilterSubscriber,w),FilterSubscriber.prototype._next=function(w){var S;try{S=this.predicate.call(this.thisArg,w,this.count++)}catch(w){return void this.destination.error(w)}S&&this.destination.next(w)},FilterSubscriber}(x.a)},function(w,S,O){"use strict";O.d(S,"b",(function(){return $})),O.d(S,"a",(function(){return N}));var $,x=O(13),C=O(45),j=O(57);$||($={});var N=function(){function Notification(w,S,O){this.kind=w,this.value=S,this.error=O,this.hasValue="N"===w}return Notification.prototype.observe=function(w){switch(this.kind){case"N":return w.next&&w.next(this.value);case"E":return w.error&&w.error(this.error);case"C":return w.complete&&w.complete()}},Notification.prototype.do=function(w,S,O){switch(this.kind){case"N":return w&&w(this.value);case"E":return S&&S(this.error);case"C":return O&&O()}},Notification.prototype.accept=function(w,S,O){return w&&"function"==typeof w.next?this.observe(w):this.do(w,S,O)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return Object(C.a)(this.value);case"E":return Object(j.a)(this.error);case"C":return Object(x.b)()}throw new Error("unexpected notification kind value")},Notification.createNext=function(w){return void 0!==w?new Notification("N",w):Notification.undefinedValueNotification},Notification.createError=function(w){return new Notification("E",void 0,w)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},function(w,S,O){"use strict";function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}O.d(S,"a",(function(){return $}));var $=getSymbolIterator()},function(w,S,O){"use strict";function noop(){}O.d(S,"a",(function(){return noop}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},function(w,S,O){"use strict";function isFunction(w){return"function"==typeof w}O.d(S,"a",(function(){return isFunction}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var $=O(184);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return $.makeLinkType}}),Object.defineProperty(S,"useLinkTypes",{enumerable:!0,get:function get(){return $.useLinkTypes}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return $.useLinkTypeForHref}}),Object.defineProperty(S,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return $.useSortedAndFilteredLinkTypes}});var x=O(125);Object.defineProperty(S,"createEditor",{enumerable:!0,get:function get(){return x.createEditor}}),Object.defineProperty(S,"EditorContext",{enumerable:!0,get:function get(){return x.EditorContext}}),Object.defineProperty(S,"useEditorState",{enumerable:!0,get:function get(){return x.useEditorState}}),Object.defineProperty(S,"useEditorTransactions",{enumerable:!0,get:function get(){return x.useEditorTransactions}})},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},function(w,S,O){"use strict";O.d(S,"b",(function(){return mergeMap})),O.d(S,"a",(function(){return I}));var $=O(1),x=O(10),C=O(14),j=O(3);function mergeMap(w,S,O){return void 0===O&&(O=Number.POSITIVE_INFINITY),"function"==typeof S?function($){return $.pipe(mergeMap((function(O,$){return Object(C.a)(w(O,$)).pipe(Object(x.a)((function(w,x){return S(O,w,$,x)})))}),O))}:("number"==typeof S&&(O=S),function(S){return S.lift(new N(w,O))})}var N=function(){function MergeMapOperator(w,S){void 0===S&&(S=Number.POSITIVE_INFINITY),this.project=w,this.concurrent=S}return MergeMapOperator.prototype.call=function(w,S){return S.subscribe(new k(w,this.project,this.concurrent))},MergeMapOperator}(),k=function(w){function MergeMapSubscriber(S,O,$){void 0===$&&($=Number.POSITIVE_INFINITY);var x=w.call(this,S)||this;return x.project=O,x.concurrent=$,x.hasCompleted=!1,x.buffer=[],x.active=0,x.index=0,x}return $.__extends(MergeMapSubscriber,w),MergeMapSubscriber.prototype._next=function(w){this.active0?this._next(w.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(j.b),I=mergeMap},function(w,S,O){"use strict";O.d(S,"a",(function(){return fromArray}));var $=O(4),x=O(90),C=O(64);function fromArray(w,S){return S?Object(C.a)(w,S):new $.a(Object(x.a)(w))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return C}));var $=O(1),x=O(72),C=function(w){function AsyncScheduler(S,O){void 0===O&&(O=x.a.now);var $=w.call(this,S,(function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==$?AsyncScheduler.delegate.now():O()}))||this;return $.actions=[],$.active=!1,$.scheduled=void 0,$}return $.__extends(AsyncScheduler,w),AsyncScheduler.prototype.schedule=function(S,O,$){return void 0===O&&(O=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this?AsyncScheduler.delegate.schedule(S,O,$):w.prototype.schedule.call(this,S,O,$)},AsyncScheduler.prototype.flush=function(w){var S=this.actions;if(this.active)S.push(w);else{var O;this.active=!0;do{if(O=w.execute(w.state,w.delay))break}while(w=S.shift());if(this.active=!1,O){for(;w=S.shift();)w.unsubscribe();throw O}}},AsyncScheduler}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return j}));var $=O(1),x=O(7),C=O(6),j=function(w){function AsyncSubject(){var S=null!==w&&w.apply(this,arguments)||this;return S.value=null,S.hasNext=!1,S.hasCompleted=!1,S}return $.__extends(AsyncSubject,w),AsyncSubject.prototype._subscribe=function(S){return this.hasError?(S.error(this.thrownError),C.a.EMPTY):this.hasCompleted&&this.hasNext?(S.next(this.value),S.complete(),C.a.EMPTY):w.prototype._subscribe.call(this,S)},AsyncSubject.prototype.next=function(w){this.hasCompleted||(this.value=w,this.hasNext=!0)},AsyncSubject.prototype.error=function(S){this.hasCompleted||w.prototype.error.call(this,S)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&w.prototype.next.call(this,this.value),w.prototype.complete.call(this)},AsyncSubject}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=O(1),x=function(w){function AsyncAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$.pending=!1,$}return $.__extends(AsyncAction,w),AsyncAction.prototype.schedule=function(w,S){if(void 0===S&&(S=0),this.closed)return this;this.state=w;var O=this.id,$=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId($,O,S)),this.pending=!0,this.delay=S,this.id=this.id||this.requestAsyncId($,this.id,S),this},AsyncAction.prototype.requestAsyncId=function(w,S,O){return void 0===O&&(O=0),setInterval(w.flush.bind(w,this),O)},AsyncAction.prototype.recycleAsyncId=function(w,S,O){if(void 0===O&&(O=0),null!==O&&this.delay===O&&!1===this.pending)return S;clearInterval(S)},AsyncAction.prototype.execute=function(w,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var O=this._execute(w,S);if(O)return O;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(w,S){var O=!1,$=void 0;try{this.work(w)}catch(w){O=!0,$=!!w&&w||new Error(w)}if(O)return this.unsubscribe(),$},AsyncAction.prototype._unsubscribe=function(){var w=this.id,S=this.scheduler,O=S.actions,$=O.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&O.splice($,1),null!=w&&(this.id=this.recycleAsyncId(S,w,null)),this.delay=null},AsyncAction}(function(w){function Action(S,O){return w.call(this)||this}return $.__extends(Action,w),Action.prototype.schedule=function(w,S){return void 0===S&&(S=0),this},Action}(O(6).a))},function(w,S,O){"use strict";O.d(S,"a",(function(){return isNumeric}));var $=O(9);function isNumeric(w){return!Object($.a)(w)&&w-parseFloat(w)+1>=0}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Layout=S.IconLabel=S.Deletable=S.Modal=S.Form=S.Tabs=S.ImageCard=S.IconCard=void 0;var C=O(238);Object.defineProperty(S,"IconCard",{enumerable:!0,get:function get(){return C.IconCard}});var j=O(240);Object.defineProperty(S,"ImageCard",{enumerable:!0,get:function get(){return j.ImageCard}});var N=O(241);Object.defineProperty(S,"Tabs",{enumerable:!0,get:function get(){return N.Tabs}});var k=O(242);Object.defineProperty(S,"Form",{enumerable:!0,get:function get(){return k.Form}});var I=O(243);Object.defineProperty(S,"Modal",{enumerable:!0,get:function get(){return I.Modal}});var R=O(245);Object.defineProperty(S,"Deletable",{enumerable:!0,get:function get(){return R.Deletable}});var W=O(246);Object.defineProperty(S,"IconLabel",{enumerable:!0,get:function get(){return W.IconLabel}}),S.Layout=__importStar(O(247))},function(w,S,O){"use strict";O.d(S,"a",(function(){return concat}));var $=O(45),x=O(84);function concat(){for(var w=[],S=0;S1)for(var O=1;O0?w.prototype.requestAsyncId.call(this,S,O,$):(S.actions.push(this),S.scheduled||(S.scheduled=Immediate_setImmediate(S.flush.bind(S,null))))},AsapAction.prototype.recycleAsyncId=function(S,O,$){if(void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0)return w.prototype.recycleAsyncId.call(this,S,O,$);0===S.actions.length&&(Immediate_clearImmediate(O),S.scheduled=void 0)},AsapAction}(O(36).a),k=new(function(w){function AsapScheduler(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(AsapScheduler,w),AsapScheduler.prototype.flush=function(w){this.active=!0,this.scheduled=void 0;var S,O=this.actions,$=-1,x=O.length;w=w||O.shift();do{if(S=w.execute(w.state,w.delay))break}while(++$w?exec():!0!==S&&(x=setTimeout($?clear:exec,void 0===$?w-W:w)))}return"boolean"!=typeof S&&($=O,O=S,S=void 0),wrapper.cancel=function cancel(){clearExistingTimeout(),C=!0},wrapper}var Fe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],esm_useIdle=function(w,S,O){void 0===w&&(w=6e4),void 0===S&&(S=!1),void 0===O&&(O=Fe);var x=Object($.useState)(S),C=x[0],j=x[1];return Object($.useEffect)((function(){for(var S,$=!0,x=C,set=function(w){$&&(x=w,j(w))},N=throttle(50,(function(){x&&set(!1),clearTimeout(S),S=setTimeout((function(){return set(!0)}),w)})),onVisibility=function(){document.hidden||N()},k=0;k=S[1]?1:-1}))}),[w]);return C.reduce((function(w,S){var $=S[0],x=S[1];return O>=x?$:w}),C[0][0])}},esm_useKeyPress=function(w){var S=Object($.useState)([!1,null]),O=S[0],x=S[1];return esm_useKey(w,(function(w){return x([!0,w])}),{event:"keydown"},[O]),esm_useKey(w,(function(w){return x([!1,w])}),{event:"keyup"},[O]),O},esm_useKeyPressEvent=function(w,S,O,$){void 0===$&&($=esm_useKeyPress);var x=$(w),C=x[0],j=x[1];esm_useUpdateEffect((function(){!C&&O?O(j):C&&S&&S(j)}),[C])},esm_useLatest=function(w){var S=Object($.useRef)(w);return S.current=w,S},esm_useLifecycles=function(w,S){Object($.useEffect)((function(){return w&&w(),function(){S&&S()}}),[])};var Re=function useList(w){void 0===w&&(w=[]);var S=Object($.useRef)(resolveHookState(w)),O=useUpdate(),x=Object($.useMemo)((function(){var $={set:function(w){S.current=resolveHookState(w,S.current),O()},push:function(){for(var w=[],S=0;S$.length?$[w]=S:$.splice(w,0,S),$}))},update:function(w,S){x.set((function(O){return O.map((function(O){return w(O,S)?S:O}))}))},updateFirst:function(w,O){var $=S.current.findIndex((function(S){return w(S,O)}));$>=0&&x.updateAt($,O)},upsert:function(w,O){var $=S.current.findIndex((function(S){return w(S,O)}));$>=0?x.updateAt($,O):x.push(O)},sort:function(w){x.set((function(S){return S.slice().sort(w)}))},filter:function(w,S){x.set((function(O){return O.slice().filter(w,S)}))},removeAt:function(w){x.set((function(S){var O=S.slice();return O.splice(w,1),O}))},clear:function(){x.set([])},reset:function(){x.set(resolveHookState(w).slice())}};return $.remove=$.removeAt,$}),[]);return[S.current,x]},esm_useLocalStorage=function(w,S,O){if(!j)return[S,noop,noop];if(!w)throw new Error("useLocalStorage key may not be falsy");var x=O?O.raw?function(w){return w}:O.deserializer:JSON.parse,C=Object($.useRef)((function(w){try{var $=O?O.raw?String:O.serializer:JSON.stringify,C=localStorage.getItem(w);return null!==C?x(C):(S&&localStorage.setItem(w,$(S)),S)}catch(w){return S}})),N=Object($.useState)((function(){return C.current(w)})),k=N[0],I=N[1];Object($.useLayoutEffect)((function(){return I(C.current(w))}),[w]);var R=Object($.useCallback)((function(S){try{var $="function"==typeof S?S(k):S;if(void 0===$)return;var C=void 0;C=O?O.raw?"string"==typeof $?$:JSON.stringify($):O.serializer?O.serializer($):JSON.stringify($):JSON.stringify($),localStorage.setItem(w,C),I(x(C))}catch(w){}}),[w,I]),W=Object($.useCallback)((function(){try{localStorage.removeItem(w),I(void 0)}catch(w){}}),[w,I]);return[k,R,W]},patchHistoryMethod=function(w){var S=window.history,O=S[w];S[w]=function(S){var $=O.apply(this,arguments),x=new Event(w.toLowerCase());return x.state=S,window.dispatchEvent(x),$}};j&&(patchHistoryMethod("pushState"),patchHistoryMethod("replaceState"));var buildState=function(w){var S=window.history,O=S.state,$=S.length,x=window.location;return{trigger:w,state:O,length:$,hash:x.hash,host:x.host,hostname:x.hostname,href:x.href,origin:x.origin,pathname:x.pathname,port:x.port,protocol:x.protocol,search:x.search}},De="function"==typeof Event,Ue=j&&De?function(){var w=Object($.useState)(buildState("load")),S=w[0],O=w[1];return Object($.useEffect)((function(){var onPopstate=function(){return O(buildState("popstate"))},onPushstate=function(){return O(buildState("pushstate"))},onReplacestate=function(){return O(buildState("replacestate"))};return on(window,"popstate",onPopstate),on(window,"pushstate",onPushstate),on(window,"replacestate",onReplacestate),function(){off(window,"popstate",onPopstate),off(window,"pushstate",onPushstate),off(window,"replacestate",onReplacestate)}}),[]),S}:function(){return{trigger:"load",length:1}};function getClosestBody(w){if(!w)return null;if("BODY"===w.tagName)return w;if("IFRAME"===w.tagName){var S=w.contentDocument;return S?S.body:null}return w.offsetParent?getClosestBody(w.offsetParent):null}function preventDefault(w){var S=w||window.event;return S.touches.length>1||(S.preventDefault&&S.preventDefault(),!1)}var Ge=j&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),He=new Map,Ke="object"==typeof document?document:void 0,Ze=!1,Qe=Ke?function useLockBody(w,S){void 0===w&&(w=!0);var O=Object($.useRef)(Ke.body);S=S||O;var unlock=function(w){var S=He.get(w);S&&(1===S.counter?(He.delete(w),Ge?(w.ontouchmove=null,Ze&&(off(document,"touchmove",preventDefault),Ze=!1)):w.style.overflow=S.initialOverflow):He.set(w,{counter:S.counter-1,initialOverflow:S.initialOverflow}))};Object($.useEffect)((function(){var O=getClosestBody(S.current);O&&(w?function(w){var S=He.get(w);S?He.set(w,{counter:S.counter+1,initialOverflow:S.initialOverflow}):(He.set(w,{counter:1,initialOverflow:w.style.overflow}),Ge?Ze||(on(document,"touchmove",preventDefault,{passive:!1}),Ze=!0):w.style.overflow="hidden")}(O):unlock(O))}),[w,S.current]),Object($.useEffect)((function(){var w=getClosestBody(S.current);if(w)return function(){unlock(w)}}),[])}:function useLockBodyMock(w,S){void 0===w&&(w=!0)},esm_useLogger=function(w){for(var S=[],O=1;O1?N=1:N<0&&(N=0),k&&(N=1-N),R({value:N}),(S.onScrub||noop)(N)}}))};return on(w.current,"mousedown",onMouseDown_1),on(w.current,"touchstart",onTouchStart_1),function(){off(w.current,"mousedown",onMouseDown_1),off(w.current,"touchstart",onTouchStart_1)}}}),[w,S.vertical]),I};!function(w){w[w.init=0]="init",w[w.play=1]="play",w[w.pause=2]="pause",w[w.end=3]="end"}(ct||(ct={}));var esm_useSpeech=function(w,S){var O=Object($.useRef)(!1),C=Object($.useState)((function(){var w=S.voice||{},O=w.lang,$=void 0===O?"default":O,x=w.name,C=void 0===x?"":x;return{isPlaying:!1,status:ct[ct.init],lang:S.lang||"default",voiceInfo:{lang:$,name:C},rate:S.rate||1,pitch:S.pitch||1,volume:S.volume||1}})),j=C[0],N=C[1],k=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!0,status:ct[ct.play]})}))}),[]),I=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!1,status:ct[ct.pause]})}))}),[]),R=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!1,status:ct[ct.end]})}))}),[]);return Object($.useEffect)((function(){O.current=!0;var $=new SpeechSynthesisUtterance(w);return S.lang&&($.lang=S.lang),S.voice&&($.voice=S.voice),$.rate=S.rate||1,$.pitch=S.pitch||1,$.volume=S.volume||1,$.onstart=k,$.onpause=I,$.onresume=k,$.onend=R,window.speechSynthesis.speak($),function(){O.current=!1}}),[]),j},esm_useStartTyping=function(w){he((function(){var keydown=function(S){var O,$,x,C,j;!function(){var w=document.activeElement,S=document.body;if(!w)return!1;if(w===S)return!1;switch(w.tagName){case"INPUT":case"TEXTAREA":return!0}return w.hasAttribute("contenteditable")}()&&($=(O=S).keyCode,x=O.metaKey,C=O.ctrlKey,j=O.altKey,!(x||C||j)&&($>=48&&$<=57||$>=65&&$<=90))&&w(S)};return on(document,"keydown",keydown),function(){off(document,"keydown",keydown)}}),[])};function useStateWithHistory(w,S,O){if(void 0===S&&(S=10),S<1)throw new Error("Capacity has to be greater than 1, got '"+S+"'");var x=useFirstMountState(),C=Object($.useState)(w),j=C[0],N=C[1],k=Object($.useRef)(null!=O?O:[]),I=Object($.useRef)(0);return x&&(k.current.length?(k.current[k.current.length-1]!==w&&k.current.push(w),k.current.length>S&&(k.current=k.current.slice(k.current.length-S))):k.current.push(w),I.current=k.current.length&&k.current.length-1),[j,Object($.useCallback)((function(w){N((function(O){return(w=resolveHookState(w,O))!==O&&(I.currentS&&(k.current=k.current.slice(k.current.length-S))),w}))}),[j,S]),Object($.useMemo)((function(){return{history:k.current,position:I.current,capacity:S,back:function(w){void 0===w&&(w=1),I.current&&N((function(){return I.current-=Math.min(w,I.current),k.current[I.current]}))},forward:function(w){void 0===w&&(w=1),I.current!==k.current.length-1&&N((function(){return I.current=Math.min(I.current+w,k.current.length-1),k.current[I.current]}))},go:function(w){w!==I.current&&N((function(){return I.current=w<0?Math.max(k.current.length+w,0):Math.min(k.current.length-1,w),k.current[I.current]}))}}}),[j])]}function useStateList(w){void 0===w&&(w=[]);var S=useMountedState(),O=useUpdate(),C=Object($.useRef)(0);esm_useUpdateEffect((function(){w.length<=C.current&&(C.current=w.length-1,O())}),[w.length]);var j=Object($.useMemo)((function(){return{next:function(){return j.setStateAt(C.current+1)},prev:function(){return j.setStateAt(C.current-1)},setStateAt:function($){S()&&w.length&&$!==C.current&&(C.current=$>=0?$%w.length:w.length+$%w.length,O())},setState:function($){if(S()){var x=w.length?w.indexOf($):-1;if(-1===x)throw new Error("State '"+$+"' is not a valid state (does not exist in state list)");C.current=x,O()}}}}),[w]);return Object(x.__assign)({state:w[C.current],currentIndex:C.current,isFirst:0===C.current,isLast:C.current===w.length-1},j)}var esm_useThrottle=function(w,S){void 0===S&&(S=200);var O=Object($.useState)(w),x=O[0],C=O[1],j=Object($.useRef)(),N=Object($.useRef)(null),k=Object($.useRef)(0);return Object($.useEffect)((function(){if(j.current)N.current=w,k.current=!0;else{C(w);var timeoutCallback_1=function(){k.current?(k.current=!1,C(N.current),j.current=setTimeout(timeoutCallback_1,S)):j.current=void 0};j.current=setTimeout(timeoutCallback_1,S)}}),[w]),esm_useUnmount((function(){j.current&&clearTimeout(j.current)})),x},esm_useThrottleFn=function(w,S,O){void 0===S&&(S=200);var x=Object($.useState)(null),C=x[0],j=x[1],N=Object($.useRef)(),k=Object($.useRef)();return Object($.useEffect)((function(){if(N.current)k.current=O;else{j(w.apply(void 0,O));var timeoutCallback_1=function(){k.current?(j(w.apply(void 0,k.current)),k.current=void 0,N.current=setTimeout(timeoutCallback_1,S)):N.current=void 0};N.current=setTimeout(timeoutCallback_1,S)}}),O),esm_useUnmount((function(){N.current&&clearTimeout(N.current)})),C};function useTimeout(w){return void 0===w&&(w=0),useTimeoutFn(useUpdate(),w)}var yt={restoreOnUnmount:!1};var vt="undefined"!=typeof document?function useTitle(w,S){void 0===S&&(S=yt);var O=Object($.useRef)(document.title);document.title!==w&&(document.title=w),Object($.useEffect)((function(){return S&&S.restoreOnUnmount?function(){document.title=O.current}:void 0}),[])}:function(w){},mt=O(137),esm_useTween=function(w,S,O){return void 0===w&&(w="inCirc"),void 0===S&&(S=200),void 0===O&&(O=0),(0,mt.easing[w])(esm_useRaf(S,O))},esm_useUnmountPromise=function(){var w=Object($.useRef)(!1);return esm_useEffectOnce((function(){return function(){w.current=!0}})),Object($.useMemo)((function(){return function(S,O){return new Promise((function($,x){S.then((function(S){w.current||$(S)}),(function(S){w.current?O?O(S):console.error("useUnmountPromise",S):x(S)}))}))}}),[])};function useUpsert(w,S){void 0===S&&(S=[]);var O=Re(S),$=O[0],C=O[1];return[$,Object(x.__assign)(Object(x.__assign)({},C),{upsert:function(S){C.upsert(w,S)}})]}var gt=N&&"vibrate"in navigator?function useVibrate(w,S,O){void 0===w&&(w=!0),void 0===S&&(S=[1e3,1e3]),void 0===O&&(O=!0),Object($.useEffect)((function(){var $;if(w&&(navigator.vibrate(S),O)){var x=S instanceof Array?S.reduce((function(w,S){return w+S})):S;$=setInterval((function(){navigator.vibrate(S)}),x)}return function(){w&&(navigator.vibrate(0),O&&clearInterval($))}}),[w])}:noop,wt=createHTMLMediaHook("video");function useStateValidator(w,S,O){void 0===O&&(O=[void 0]);var x=Object($.useRef)(S),C=Object($.useRef)(w);x.current=S,C.current=w;var j=Object($.useState)(O),N=j[0],k=j[1],I=Object($.useCallback)((function(){x.current.length>=2?x.current(C.current,k):k(x.current(C.current))}),[k]);return Object($.useEffect)((function(){I()}),[w]),[N,I]}var e=function(w){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==w&&"number"==typeof e.__cache)return e.__cache;var S=document.createElement("div"),O=S.style;O.display="block",O.position="absolute",O.width="100px",O.height="100px",O.left="-999px",O.top="-999px",O.overflow="scroll",document.body.insertBefore(S,null);var $=S.clientWidth;if(0!==$)return e.__cache=100-$,document.body.removeChild(S),e.__cache;document.body.removeChild(S)}};function useScrollbarWidth(){var w=Object($.useState)(e()),S=w[0],O=w[1];return Object($.useEffect)((function(){if(void 0===S){var w=requestAnimationFrame((function(){O(e())}));return function(){return cancelAnimationFrame(w)}}}),[]),S}function useMultiStateValidator(w,S,O){if(void 0===O&&(O=[void 0]),"object"!=typeof w)throw new Error("states expected to be an object or array, got "+typeof w);var x=Object($.useRef)(S),C=Object($.useRef)(w);x.current=S,C.current=w;var j=Object($.useState)(O),N=j[0],k=j[1],I=Object($.useCallback)((function(){x.current.length>=2?x.current(C.current,k):k(x.current(C.current))}),[k]);return Object($.useEffect)((function(){I()}),Object.values(w)),[N,I]}var esm_useWindowScroll=function(){var w=esm_useRafState((function(){return{x:j?window.pageXOffset:0,y:j?window.pageYOffset:0}})),S=w[0],O=w[1];return Object($.useEffect)((function(){var handler=function(){O((function(w){var S=window.pageXOffset,O=window.pageYOffset;return w.x!==S||w.y!==O?{x:S,y:O}:w}))};return handler(),on(window,"scroll",handler,{capture:!1,passive:!0}),function(){off(window,"scroll",handler)}}),[]),S},esm_useWindowSize=function(w){var S=void 0===w?{}:w,O=S.initialWidth,x=void 0===O?1/0:O,C=S.initialHeight,N=void 0===C?1/0:C,k=S.onChange,I=esm_useRafState({width:j?window.innerWidth:x,height:j?window.innerHeight:N}),R=I[0],W=I[1];return Object($.useEffect)((function(){if(j){var handler_1=function(){var w=window.innerWidth,S=window.innerHeight;W({width:w,height:S}),k&&k(w,S)};return on(window,"resize",handler_1),function(){off(window,"resize",handler_1)}}}),[]),R},St={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};var _t,Ot=j&&void 0!==window.ResizeObserver?function useMeasure(){var w=Object($.useState)(null),S=w[0],O=w[1],x=Object($.useState)(St),C=x[0],j=x[1],N=Object($.useMemo)((function(){return new window.ResizeObserver((function(w){if(w[0]){var S=w[0].contentRect,O=S.x,$=S.y,x=S.width,C=S.height,N=S.top,k=S.left,I=S.bottom,R=S.right;j({x:O,y:$,width:x,height:C,top:N,left:k,bottom:I,right:R})}}))}),[]);return he((function(){if(S)return N.observe(S),function(){N.disconnect()}}),[S]),[O,C]}:function(){return[noop,St]};!function(w){w.ZOOMING_IN="ZOOMING_IN",w.ZOOMING_OUT="ZOOMING_OUT"}(_t||(_t={}));var esm_usePinchZoom=function(w){var S=Object($.useMemo)((function(){return{evCache:[],prevDiff:-1}}),[w.current]),O=Object($.useState)(),x=O[0],C=O[1],pointermove_handler=function(w){for(var O=0;O0&&($>S.prevDiff&&C([_t.ZOOMING_IN,$]),$1)this.connection=null;else{var O=this.connection,$=w._connection;this.connection=null,!$||O&&$!==O||$.unsubscribe()}}else this.connection=null},RefCountSubscriber}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(1),x=O(7),C=O(71),j=O(6),N=O(82),k=O(27),I=O(89),R=function(w){function ReplaySubject(S,O,$){void 0===S&&(S=Number.POSITIVE_INFINITY),void 0===O&&(O=Number.POSITIVE_INFINITY);var x=w.call(this)||this;return x.scheduler=$,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=O<1?1:O,O===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return $.__extends(ReplaySubject,w),ReplaySubject.prototype.nextInfiniteTimeWindow=function(S){if(!this.isStopped){var O=this._events;O.push(S),O.length>this._bufferSize&&O.shift()}w.prototype.next.call(this,S)},ReplaySubject.prototype.nextTimeWindow=function(S){this.isStopped||(this._events.push(new W(this._getNow(),S)),this._trimBufferThenGetEvents()),w.prototype.next.call(this,S)},ReplaySubject.prototype._subscribe=function(w){var S,O=this._infiniteTimeWindow,$=O?this._events:this._trimBufferThenGetEvents(),x=this.scheduler,C=$.length;if(this.closed)throw new k.a;if(this.isStopped||this.hasError?S=j.a.EMPTY:(this.observers.push(w),S=new I.a(this,w)),x&&w.add(w=new N.a(w,x)),O)for(var R=0;RS&&(C=Math.max(C,x-S)),C>0&&$.splice(0,C),$},ReplaySubject}(x.a),W=function(){return function ReplayEvent(w,S){this.time=w,this.value=S}}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return throwError}));var $=O(4);function throwError(w,S){return S?new $.a((function(O){return S.schedule(dispatch,0,{error:w,subscriber:O})})):new $.a((function(S){return S.error(w)}))}function dispatch(w){var S=w.error;w.subscriber.error(S)}},function(w,S,O){"use strict";O.d(S,"b",(function(){return combineLatest})),O.d(S,"a",(function(){return R}));var $=O(1),x=O(11),C=O(9),j=O(21),N=O(18),k=O(33),I={};function combineLatest(){for(var w=[],S=0;Sthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),J=function(w){function ZipBufferIterator(S,O,$){var x=w.call(this,S)||this;return x.parent=O,x.observable=$,x.stillUnsubscribed=!0,x.buffer=[],x.isComplete=!1,x}return $.__extends(ZipBufferIterator,w),ZipBufferIterator.prototype[N.a]=function(){return this},ZipBufferIterator.prototype.next=function(){var w=this.buffer;return 0===w.length&&this.isComplete?{value:null,done:!0}:{value:w.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(w){this.buffer.push(w),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return Object(k.c)(this.observable,new k.a(this))},ZipBufferIterator}(k.b)},function(w,S,O){"use strict";function isObject(w){return null!==w&&"object"==typeof w}O.d(S,"a",(function(){return isObject}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return canReportError}));var $=O(2);function canReportError(w){for(;w;){var S=w,O=S.closed,x=S.destination,C=S.isStopped;if(O||C)return!1;w=x&&x instanceof $.a?x:null}return!0}},function(w,S,O){"use strict";O.d(S,"a",(function(){return scheduleArray}));var $=O(4),x=O(6);function scheduleArray(w,S){return new $.a((function(O){var $=new x.a,C=0;return $.add(S.schedule((function(){C!==w.length?(O.next(w[C++]),O.closed||$.add(this.schedule())):O.complete()}))),$}))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return C}));var $=O(19),x=O(41),C={closed:!0,next:function(w){},error:function(w){if($.a.useDeprecatedSynchronousErrorHandling)throw w;Object(x.a)(w)},complete:function(){}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Deletable=S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.useLinkTypeForHref=S.makeLinkType=S.registerDialog=S.registerLinkTypes=void 0;var $=O(150);Object.defineProperty(S,"registerLinkTypes",{enumerable:!0,get:function get(){return $.registerLinkTypes}}),Object.defineProperty(S,"registerDialog",{enumerable:!0,get:function get(){return $.registerDialog}});var x=O(30);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return x.makeLinkType}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return x.useLinkTypeForHref}}),Object.defineProperty(S,"createEditor",{enumerable:!0,get:function get(){return x.createEditor}}),Object.defineProperty(S,"EditorContext",{enumerable:!0,get:function get(){return x.EditorContext}}),Object.defineProperty(S,"useEditorState",{enumerable:!0,get:function get(){return x.useEditorState}}),Object.defineProperty(S,"useEditorTransactions",{enumerable:!0,get:function get(){return x.useEditorTransactions}});var C=O(38);Object.defineProperty(S,"Deletable",{enumerable:!0,get:function get(){return C.Deletable}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.useNeos=S.NeosContext=void 0;var C=__importStar(O(0));S.NeosContext=C.createContext(null),S.useNeos=function useNeos(){var w=C.useContext(S.NeosContext);if(!w)throw new Error("[Sitegeist.Archaeopteryx]: Could not determine Neos Context.");return w}},function(w,S,O){"use strict";(function(w){var $=O(187),x=O(188),C=O(110);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(w,S){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|w}function byteLength(w,S){if(Buffer.isBuffer(w))return w.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(w)||w instanceof ArrayBuffer))return w.byteLength;"string"!=typeof w&&(w=""+w);var O=w.length;if(0===O)return 0;for(var $=!1;;)switch(S){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":case void 0:return utf8ToBytes(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*O;case"hex":return O>>>1;case"base64":return base64ToBytes(w).length;default:if($)return utf8ToBytes(w).length;S=(""+S).toLowerCase(),$=!0}}function slowToString(w,S,O){var $=!1;if((void 0===S||S<0)&&(S=0),S>this.length)return"";if((void 0===O||O>this.length)&&(O=this.length),O<=0)return"";if((O>>>=0)<=(S>>>=0))return"";for(w||(w="utf8");;)switch(w){case"hex":return hexSlice(this,S,O);case"utf8":case"utf-8":return utf8Slice(this,S,O);case"ascii":return asciiSlice(this,S,O);case"latin1":case"binary":return latin1Slice(this,S,O);case"base64":return base64Slice(this,S,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,S,O);default:if($)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),$=!0}}function swap(w,S,O){var $=w[S];w[S]=w[O],w[O]=$}function bidirectionalIndexOf(w,S,O,$,x){if(0===w.length)return-1;if("string"==typeof O?($=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,isNaN(O)&&(O=x?0:w.length-1),O<0&&(O=w.length+O),O>=w.length){if(x)return-1;O=w.length-1}else if(O<0){if(!x)return-1;O=0}if("string"==typeof S&&(S=Buffer.from(S,$)),Buffer.isBuffer(S))return 0===S.length?-1:arrayIndexOf(w,S,O,$,x);if("number"==typeof S)return S&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(w,S,O):Uint8Array.prototype.lastIndexOf.call(w,S,O):arrayIndexOf(w,[S],O,$,x);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(w,S,O,$,x){var C,j=1,N=w.length,k=S.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(w.length<2||S.length<2)return-1;j=2,N/=2,k/=2,O/=2}function read(w,S){return 1===j?w[S]:w.readUInt16BE(S*j)}if(x){var I=-1;for(C=O;CN&&(O=N-k),C=O;C>=0;C--){for(var R=!0,W=0;Wx&&($=x):$=x;var C=S.length;if(C%2!=0)throw new TypeError("Invalid hex string");$>C/2&&($=C/2);for(var j=0;j<$;++j){var N=parseInt(S.substr(2*j,2),16);if(isNaN(N))return j;w[O+j]=N}return j}function utf8Write(w,S,O,$){return blitBuffer(utf8ToBytes(S,w.length-O),w,O,$)}function asciiWrite(w,S,O,$){return blitBuffer(function asciiToBytes(w){for(var S=[],O=0;O>8,x=O%256,C.push(x),C.push($);return C}(S,w.length-O),w,O,$)}function base64Slice(w,S,O){return 0===S&&O===w.length?$.fromByteArray(w):$.fromByteArray(w.slice(S,O))}function utf8Slice(w,S,O){O=Math.min(w.length,O);for(var $=[],x=S;x239?4:I>223?3:I>191?2:1;if(x+W<=O)switch(W){case 1:I<128&&(R=I);break;case 2:128==(192&(C=w[x+1]))&&(k=(31&I)<<6|63&C)>127&&(R=k);break;case 3:C=w[x+1],j=w[x+2],128==(192&C)&&128==(192&j)&&(k=(15&I)<<12|(63&C)<<6|63&j)>2047&&(k<55296||k>57343)&&(R=k);break;case 4:C=w[x+1],j=w[x+2],N=w[x+3],128==(192&C)&&128==(192&j)&&128==(192&N)&&(k=(15&I)<<18|(63&C)<<12|(63&j)<<6|63&N)>65535&&k<1114112&&(R=k)}null===R?(R=65533,W=1):R>65535&&(R-=65536,$.push(R>>>10&1023|55296),R=56320|1023&R),$.push(R),x+=W}return function decodeCodePointsArray(w){var S=w.length;if(S<=4096)return String.fromCharCode.apply(String,w);var O="",$=0;for(;$0&&(w=this.toString("hex",0,O).match(/.{2}/g).join(" "),this.length>O&&(w+=" ... ")),""},Buffer.prototype.compare=function compare(w,S,O,$,x){if(!Buffer.isBuffer(w))throw new TypeError("Argument must be a Buffer");if(void 0===S&&(S=0),void 0===O&&(O=w?w.length:0),void 0===$&&($=0),void 0===x&&(x=this.length),S<0||O>w.length||$<0||x>this.length)throw new RangeError("out of range index");if($>=x&&S>=O)return 0;if($>=x)return-1;if(S>=O)return 1;if(this===w)return 0;for(var C=(x>>>=0)-($>>>=0),j=(O>>>=0)-(S>>>=0),N=Math.min(C,j),k=this.slice($,x),I=w.slice(S,O),R=0;Rx)&&(O=x),w.length>0&&(O<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var C=!1;;)switch($){case"hex":return hexWrite(this,w,S,O);case"utf8":case"utf-8":return utf8Write(this,w,S,O);case"ascii":return asciiWrite(this,w,S,O);case"latin1":case"binary":return latin1Write(this,w,S,O);case"base64":return base64Write(this,w,S,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,w,S,O);default:if(C)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),C=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(w,S,O){var $="";O=Math.min(w.length,O);for(var x=S;x$)&&(O=$);for(var x="",C=S;CO)throw new RangeError("Trying to access beyond buffer length")}function checkInt(w,S,O,$,x,C){if(!Buffer.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>x||Sw.length)throw new RangeError("Index out of range")}function objectWriteUInt16(w,S,O,$){S<0&&(S=65535+S+1);for(var x=0,C=Math.min(w.length-O,2);x>>8*($?x:1-x)}function objectWriteUInt32(w,S,O,$){S<0&&(S=4294967295+S+1);for(var x=0,C=Math.min(w.length-O,4);x>>8*($?x:3-x)&255}function checkIEEE754(w,S,O,$,x,C){if(O+$>w.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function writeFloat(w,S,O,$,C){return C||checkIEEE754(w,0,O,4),x.write(w,S,O,$,23,4),O+4}function writeDouble(w,S,O,$,C){return C||checkIEEE754(w,0,O,8),x.write(w,S,O,$,52,8),O+8}Buffer.prototype.slice=function slice(w,S){var O,$=this.length;if((w=~~w)<0?(w+=$)<0&&(w=0):w>$&&(w=$),(S=void 0===S?$:~~S)<0?(S+=$)<0&&(S=0):S>$&&(S=$),S0&&(x*=256);)$+=this[w+--S]*x;return $},Buffer.prototype.readUInt8=function readUInt8(w,S){return S||checkOffset(w,1,this.length),this[w]},Buffer.prototype.readUInt16LE=function readUInt16LE(w,S){return S||checkOffset(w,2,this.length),this[w]|this[w+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(w,S){return S||checkOffset(w,2,this.length),this[w]<<8|this[w+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(w,S){return S||checkOffset(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(w,S){return S||checkOffset(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},Buffer.prototype.readIntLE=function readIntLE(w,S,O){w|=0,S|=0,O||checkOffset(w,S,this.length);for(var $=this[w],x=1,C=0;++C=(x*=128)&&($-=Math.pow(2,8*S)),$},Buffer.prototype.readIntBE=function readIntBE(w,S,O){w|=0,S|=0,O||checkOffset(w,S,this.length);for(var $=S,x=1,C=this[w+--$];$>0&&(x*=256);)C+=this[w+--$]*x;return C>=(x*=128)&&(C-=Math.pow(2,8*S)),C},Buffer.prototype.readInt8=function readInt8(w,S){return S||checkOffset(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},Buffer.prototype.readInt16LE=function readInt16LE(w,S){S||checkOffset(w,2,this.length);var O=this[w]|this[w+1]<<8;return 32768&O?4294901760|O:O},Buffer.prototype.readInt16BE=function readInt16BE(w,S){S||checkOffset(w,2,this.length);var O=this[w+1]|this[w]<<8;return 32768&O?4294901760|O:O},Buffer.prototype.readInt32LE=function readInt32LE(w,S){return S||checkOffset(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(w,S){return S||checkOffset(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},Buffer.prototype.readFloatLE=function readFloatLE(w,S){return S||checkOffset(w,4,this.length),x.read(this,w,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(w,S){return S||checkOffset(w,4,this.length),x.read(this,w,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(w,S){return S||checkOffset(w,8,this.length),x.read(this,w,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(w,S){return S||checkOffset(w,8,this.length),x.read(this,w,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(w,S,O,$){(w=+w,S|=0,O|=0,$)||checkInt(this,w,S,O,Math.pow(2,8*O)-1,0);var x=1,C=0;for(this[S]=255&w;++C=0&&(C*=256);)this[S+x]=w/C&255;return S+O},Buffer.prototype.writeUInt8=function writeUInt8(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(w=Math.floor(w)),this[S]=255&w,S+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8):objectWriteUInt16(this,w,S,!0),S+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>8,this[S+1]=255&w):objectWriteUInt16(this,w,S,!1),S+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=255&w):objectWriteUInt32(this,w,S,!0),S+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=255&w):objectWriteUInt32(this,w,S,!1),S+4},Buffer.prototype.writeIntLE=function writeIntLE(w,S,O,$){if(w=+w,S|=0,!$){var x=Math.pow(2,8*O-1);checkInt(this,w,S,O,x-1,-x)}var C=0,j=1,N=0;for(this[S]=255&w;++C>0)-N&255;return S+O},Buffer.prototype.writeIntBE=function writeIntBE(w,S,O,$){if(w=+w,S|=0,!$){var x=Math.pow(2,8*O-1);checkInt(this,w,S,O,x-1,-x)}var C=O-1,j=1,N=0;for(this[S+C]=255&w;--C>=0&&(j*=256);)w<0&&0===N&&0!==this[S+C+1]&&(N=1),this[S+C]=(w/j>>0)-N&255;return S+O},Buffer.prototype.writeInt8=function writeInt8(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(w=Math.floor(w)),w<0&&(w=255+w+1),this[S]=255&w,S+1},Buffer.prototype.writeInt16LE=function writeInt16LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8):objectWriteUInt16(this,w,S,!0),S+2},Buffer.prototype.writeInt16BE=function writeInt16BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>8,this[S+1]=255&w):objectWriteUInt16(this,w,S,!1),S+2},Buffer.prototype.writeInt32LE=function writeInt32LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24):objectWriteUInt32(this,w,S,!0),S+4},Buffer.prototype.writeInt32BE=function writeInt32BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=255&w):objectWriteUInt32(this,w,S,!1),S+4},Buffer.prototype.writeFloatLE=function writeFloatLE(w,S,O){return writeFloat(this,w,S,!0,O)},Buffer.prototype.writeFloatBE=function writeFloatBE(w,S,O){return writeFloat(this,w,S,!1,O)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(w,S,O){return writeDouble(this,w,S,!0,O)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(w,S,O){return writeDouble(this,w,S,!1,O)},Buffer.prototype.copy=function copy(w,S,O,$){if(O||(O=0),$||0===$||($=this.length),S>=w.length&&(S=w.length),S||(S=0),$>0&&$=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),w.length-S<$-O&&($=w.length-S+O);var x,C=$-O;if(this===w&&O=0;--x)w[x+S]=this[x+O];else if(C<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(x=0;x>>=0,O=void 0===O?this.length:O>>>0,w||(w=0),"number"==typeof w)for(C=S;C55295&&O<57344){if(!x){if(O>56319){(S-=3)>-1&&C.push(239,191,189);continue}if(j+1===$){(S-=3)>-1&&C.push(239,191,189);continue}x=O;continue}if(O<56320){(S-=3)>-1&&C.push(239,191,189),x=O;continue}O=65536+(x-55296<<10|O-56320)}else x&&(S-=3)>-1&&C.push(239,191,189);if(x=null,O<128){if((S-=1)<0)break;C.push(O)}else if(O<2048){if((S-=2)<0)break;C.push(O>>6|192,63&O|128)}else if(O<65536){if((S-=3)<0)break;C.push(O>>12|224,O>>6&63|128,63&O|128)}else{if(!(O<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;C.push(O>>18|240,O>>12&63|128,O>>6&63|128,63&O|128)}}return C}function base64ToBytes(w){return $.toByteArray(function base64clean(w){if((w=function stringtrim(w){return w.trim?w.trim():w.replace(/^\s+|\s+$/g,"")}(w).replace(j,"")).length<2)return"";for(;w.length%4!=0;)w+="=";return w}(w))}function blitBuffer(w,S,O,$){for(var x=0;x<$&&!(x+O>=S.length||x>=w.length);++x)S[x+O]=w[x];return x}}).call(this,O(46))},function(w,S,O){function objectToString(w){return Object.prototype.toString.call(w)}S.isArray=function isArray(w){return Array.isArray?Array.isArray(w):"[object Array]"===objectToString(w)},S.isBoolean=function isBoolean(w){return"boolean"==typeof w},S.isNull=function isNull(w){return null===w},S.isNullOrUndefined=function isNullOrUndefined(w){return null==w},S.isNumber=function isNumber(w){return"number"==typeof w},S.isString=function isString(w){return"string"==typeof w},S.isSymbol=function isSymbol(w){return"symbol"==typeof w},S.isUndefined=function isUndefined(w){return void 0===w},S.isRegExp=function isRegExp(w){return"[object RegExp]"===objectToString(w)},S.isObject=function isObject(w){return"object"==typeof w&&null!==w},S.isDate=function isDate(w){return"[object Date]"===objectToString(w)},S.isError=function isError(w){return"[object Error]"===objectToString(w)||w instanceof Error},S.isFunction=function isFunction(w){return"function"==typeof w},S.isPrimitive=function isPrimitive(w){return null===w||"boolean"==typeof w||"number"==typeof w||"string"==typeof w||"symbol"==typeof w||void 0===w},S.isBuffer=O(68).Buffer.isBuffer},function(w,S,O){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(w){for(var S=1;S=O.length)return $;var C=O[S];if(isNaN(C)){var j;if(null==w){var N,k=setInRecursor(void 0,S+1,O,$,x);return void 0===k?void 0:((N={})[C]=k,N)}if(Array.isArray(w))throw new Error("Cannot set a non-numeric property on an array");var I=setInRecursor(w[C],S+1,O,$,x);if(void 0===I){var R=Object.keys(w).length;if(void 0===w[C]&&0===R)return;return void 0!==w[C]&&R<=1?isNaN(O[S-1])||x?void 0:{}:(w[C],_objectWithoutPropertiesLoose(w,[C].map(_toPropertyKey)))}return _extends({},w,((j={})[C]=I,j))}var W=Number(C);if(null==w){var G=setInRecursor(void 0,S+1,O,$,x);if(void 0===G)return;var J=[];return J[W]=G,J}if(!Array.isArray(w))throw new Error("Cannot set a numeric property on an object");var re=setInRecursor(w[W],S+1,O,$,x),ie=[].concat(w);if(x&&void 0===re){if(ie.splice(W,1),0===ie.length)return}else ie[W]=re;return ie}(w,0,R(S),O,$)},J="FINAL_FORM/array-error";function publishFieldState(w,S){var O=w.errors,$=w.initialValues,x=w.lastSubmittedValues,C=w.submitErrors,j=w.submitFailed,N=w.submitSucceeded,k=w.submitting,I=w.values,R=S.active,G=S.blur,re=S.change,ie=S.data,oe=S.focus,ue=S.modified,ce=S.modifiedSinceLastSubmit,se=S.name,de=S.touched,le=S.validating,he=S.visited,ye=W(I,se),ve=W(O,se);ve&&ve[J]&&(ve=ve[J]);var ge=C&&W(C,se),Se=$&&W($,se),Pe=S.isEqual(Se,ye),Ce=!ve&&!ge;return{active:R,blur:G,change:re,data:ie,dirty:!Pe,dirtySinceLastSubmit:!(!x||S.isEqual(W(x,se),ye)),error:ve,focus:oe,initial:Se,invalid:!Ce,length:Array.isArray(ye)?ye.length:void 0,modified:ue,modifiedSinceLastSubmit:ce,name:se,pristine:Pe,submitError:ge,submitFailed:j,submitSucceeded:N,submitting:k,touched:de,valid:Ce,value:ye,visited:he,validating:le}}var re=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],ie=function shallowEqual(w,S){if(w===S)return!0;if("object"!=typeof w||!w||"object"!=typeof S||!S)return!1;var O=Object.keys(w),$=Object.keys(S);if(O.length!==$.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(S),C=0;C0,ve=++se,ge=Promise.all(le).then(function clearAsyncValidationPromise(w){return function(S){return delete ye[w],S}}(ve));he&&(ye[ve]=ge);var Se=function processErrors(w){var S=_extends({},j?$.errors:{},ue,w?ce:$.asyncErrors),k=function forEachError(w){C.forEach((function($){if(O[$]){var C=W(ue,$),k=W(S,$),I=Ce(x[$]).length,R=de[$];w($,I&&R||N&&C||(C||j?void 0:k))}}))};k((function(w,O){S=G(S,w,O)||{}})),k((function(w,O){if(O&&O[J]){var $=W(S,w),x=[].concat($);x[J]=O[J],S=G(S,w,x)}})),ie($.errors,S)||($.errors=S),w&&($.asyncErrors=ce),$.error=ue["FINAL_FORM/form-error"]};if(he&&(I.formState.validating++,S()),Se(!1),S(),he){var Pe=function afterPromise(){I.formState.validating--,S(),0===I.formState.validating&&I.lastFormState.validating&&Ge()};ge.then((function(){se>ve||Se(!0)})).then(Pe,Pe)}}else S()},Me=function notifyFieldListeners(w){if(!R){var S=I.fields,O=I.fieldSubscribers,$=I.formState,x=_extends({},S),C=function notifyField(w){var S=x[w],C=publishFieldState($,S),j=S.lastFieldState;S.lastFieldState=C;var N=O[w];N&¬ify(N,C,j,ue,void 0===j)};w?C(w):Object.keys(x).forEach(C)}},Fe=function markAllFieldsTouched(){Object.keys(I.fields).forEach((function(w){I.fields[w].touched=!0}))},Re=function calculateNextFormState(){var w=I.fields,S=I.formState,O=I.lastFormState,$=_extends({},w),x=Object.keys($),C=!1,j=x.reduce((function(w,O){return!$[O].isEqual(W(S.values,O),W(S.initialValues||{},O))&&(C=!0,w[O]=!0),w}),{}),N=x.reduce((function(w,O){var x=S.lastSubmittedValues||{};return $[O].isEqual(W(S.values,O),W(x,O))||(w[O]=!0),w}),{});S.pristine=!C,S.dirtySinceLastSubmit=!(!S.lastSubmittedValues||!Object.values(N).some((function(w){return w}))),S.modifiedSinceLastSubmit=!(!S.lastSubmittedValues||!Object.keys($).some((function(w){return $[w].modifiedSinceLastSubmit}))),S.valid=!(S.error||S.submitError||he(S.errors)||S.submitErrors&&he(S.submitErrors));var k=function convertToExternalFormState(w){var S=w.active,O=w.dirtySinceLastSubmit,$=w.modifiedSinceLastSubmit,x=w.error,C=w.errors,j=w.initialValues,N=w.pristine,k=w.submitting,I=w.submitFailed,R=w.submitSucceeded,W=w.submitError,G=w.submitErrors,J=w.valid,re=w.validating,ie=w.values;return{active:S,dirty:!N,dirtySinceLastSubmit:O,modifiedSinceLastSubmit:$,error:x,errors:C,hasSubmitErrors:!!(W||G&&he(G)),hasValidationErrors:!(!x&&!he(C)),invalid:!J,initialValues:j,pristine:N,submitting:k,submitFailed:I,submitSucceeded:R,submitError:W,submitErrors:G,valid:J,validating:re>0,values:ie}}(S),R=x.reduce((function(w,S){return w.modified[S]=$[S].modified,w.touched[S]=$[S].touched,w.visited[S]=$[S].visited,w}),{modified:{},touched:{},visited:{}}),G=R.modified,J=R.touched,re=R.visited;return k.dirtyFields=O&&ie(O.dirtyFields,j)?O.dirtyFields:j,k.dirtyFieldsSinceLastSubmit=O&&ie(O.dirtyFieldsSinceLastSubmit,N)?O.dirtyFieldsSinceLastSubmit:N,k.modified=O&&ie(O.modified,G)?O.modified:G,k.touched=O&&ie(O.touched,J)?O.touched:J,k.visited=O&&ie(O.visited,re)?O.visited:re,O&&ie(O,k)?O:k},De=!1,Ue=!1,Ge=function notifyFormListeners(){if(De)Ue=!0;else{if(De=!0,function callDebug(){S&&S(Re(),Object.keys(I.fields).reduce((function(w,S){return w[S]=I.fields[S],w}),{}))}(),!(R||re&&ce)){var w=I.lastFormState,O=Re();O!==w&&(I.lastFormState=O,notify(I.subscribers,O,w,filterFormState))}De=!1,Ue&&(Ue=!1,notifyFormListeners())}},He=function resetModifiedAfterSubmit(){return Object.keys(I.fields).forEach((function(w){return I.fields[w].modifiedSinceLastSubmit=!1}))};Ie(void 0,(function(){Ge()}));var Ke={batch:function batch(w){R++,w(),R--,Me(),Ge()},blur:function blur(w){var S=I.fields,O=I.formState,$=S[w];$&&(delete O.active,S[w]=_extends({},$,{active:!1,touched:!0}),k?Ie(w,(function(){Me(),Ge()})):(Me(),Ge()))},change:function change(w,S){var O=I.fields,$=I.formState;if(W($.values,w)!==S){ve(I,w,(function(){return S}));var x=O[w];x&&(O[w]=_extends({},x,{modified:!0,modifiedSinceLastSubmit:!!$.lastSubmittedValues})),k?(Me(),Ge()):Ie(w,(function(){Me(),Ge()}))}},get destroyOnUnregister(){return!!O},set destroyOnUnregister(w){O=w},focus:function focus(w){var S=I.fields[w];S&&!S.active&&(I.formState.active=w,S.active=!0,S.visited=!0,Me(),Ge())},mutators:Pe,getFieldState:function getFieldState(w){var S=I.fields[w];return S&&S.lastFieldState},getRegisteredFields:function getRegisteredFields(){return Object.keys(I.fields)},getState:function getState(){return Re()},initialize:function initialize(w){var S=I.fields,O=I.formState,x=_extends({},S),C="function"==typeof w?w(O.values):w;$||(O.values=C);var j=$?Object.keys(x).reduce((function(w,S){return x[S].isEqual(W(O.values,S),W(O.initialValues||{},S))||(w[S]=W(O.values,S)),w}),{}):{};O.initialValues=C,O.values=C,Object.keys(j).forEach((function(w){O.values=G(O.values,w,j[w])||{}})),Ie(void 0,(function(){Me(),Ge()}))},isValidationPaused:function isValidationPaused(){return re},pauseValidation:function pauseValidation(w){void 0===w&&(w=!0),re=!0,ce=w},registerField:function registerField(w,S,$,x){void 0===$&&($={}),I.fieldSubscribers[w]||(I.fieldSubscribers[w]={index:0,entries:{}});var C=I.fieldSubscribers[w].index++;I.fieldSubscribers[w].entries[C]={subscriber:de(S),subscription:$,notified:!1};var j=I.fields[w]||{active:!1,afterSubmit:x&&x.afterSubmit,beforeSubmit:x&&x.beforeSubmit,data:x&&x.data||{},isEqual:x&&x.isEqual||le,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:w,touched:!1,valid:!0,validateFields:x&&x.validateFields,validators:{},validating:!1,visited:!1};j.blur=j.blur||function(){return Ke.blur(w)},j.change=j.change||function(S){return Ke.change(w,S)},j.focus=j.focus||function(){return Ke.focus(w)},I.fields[w]=j;var N=!1,k=x&&x.silent,R=function notify(){k&&I.fields[w]?Me(w):(Ge(),Me())};if(x){N=!(!x.getValidator||!x.getValidator()),x.getValidator&&(I.fields[w].validators[C]=x.getValidator);var J=void 0===W(I.formState.values,w);void 0===x.initialValue||!J&&W(I.formState.values,w)!==W(I.formState.initialValues,w)||(I.formState.initialValues=G(I.formState.initialValues||{},w,x.initialValue),I.formState.values=G(I.formState.values,w,x.initialValue),Ie(void 0,R)),void 0!==x.defaultValue&&void 0===x.initialValue&&void 0===W(I.formState.initialValues,w)&&J&&(I.formState.values=G(I.formState.values,w,x.defaultValue))}return N?Ie(void 0,R):R(),function(){var S=!1;I.fields[w]&&(S=!(!I.fields[w].validators[C]||!I.fields[w].validators[C]()),delete I.fields[w].validators[C]);var $=!!I.fieldSubscribers[w];$&&delete I.fieldSubscribers[w].entries[C];var x=$&&!Object.keys(I.fieldSubscribers[w].entries).length;x&&(delete I.fieldSubscribers[w],delete I.fields[w],S&&(I.formState.errors=G(I.formState.errors,w,void 0)||{}),O&&(I.formState.values=G(I.formState.values,w,void 0,!0)||{})),k||(S?Ie(void 0,(function(){Ge(),Me()})):x&&Ge())}},reset:function reset(w){void 0===w&&(w=I.formState.initialValues),I.formState.submitting&&(I.formState.resetWhileSubmitting=!0),I.formState.submitFailed=!1,I.formState.submitSucceeded=!1,delete I.formState.submitError,delete I.formState.submitErrors,delete I.formState.lastSubmittedValues,Ke.initialize(w||{})},resetFieldState:function resetFieldState(w){I.fields[w]=_extends({},I.fields[w],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),Ie(void 0,(function(){Me(),Ge()}))},restart:function restart(w){void 0===w&&(w=I.formState.initialValues),Ke.batch((function(){for(var S in I.fields)Ke.resetFieldState(S),I.fields[S]=_extends({},I.fields[S],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});Ke.reset(w)}))},resumeValidation:function resumeValidation(){re=!1,ce=!1,oe&&Ie(void 0,(function(){Me(),Ge()})),oe=!1},setConfig:function setConfig(w,x){switch(w){case"debug":S=x;break;case"destroyOnUnregister":O=x;break;case"initialValues":Ke.initialize(x);break;case"keepDirtyOnReinitialize":$=x;break;case"mutators":C=x,x?(Object.keys(Pe).forEach((function(w){w in x||delete Pe[w]})),Object.keys(x).forEach((function(w){Pe[w]=Se(w)}))):Object.keys(Pe).forEach((function(w){delete Pe[w]}));break;case"onSubmit":j=x;break;case"validate":N=x,Ie(void 0,(function(){Me(),Ge()}));break;case"validateOnBlur":k=x;break;default:throw new Error("Unrecognised option "+w)}},submit:function submit(){var w=I.formState;if(!w.submitting){if(delete w.submitErrors,delete w.submitError,w.lastSubmittedValues=_extends({},w.values),function hasSyncErrors(){return!(!I.formState.error&&!he(I.formState.errors))}())return Fe(),He(),I.formState.submitFailed=!0,Ge(),void Me();var S=Object.keys(ye);if(S.length)Promise.all(S.map((function(w){return ye[Number(w)]}))).then(Ke.submit,console.error);else if(!function beforeSubmit(){return Object.keys(I.fields).some((function(w){return I.fields[w].beforeSubmit&&!1===I.fields[w].beforeSubmit()}))}()){var O,$=!1,x=function complete(S){w.submitting=!1;var x=w.resetWhileSubmitting;return x&&(w.resetWhileSubmitting=!1),S&&he(S)?(w.submitFailed=!0,w.submitSucceeded=!1,w.submitErrors=S,w.submitError=S["FINAL_FORM/form-error"],Fe()):(x||(w.submitFailed=!1,w.submitSucceeded=!0),function afterSubmit(){Object.keys(I.fields).forEach((function(w){return I.fields[w].afterSubmit&&I.fields[w].afterSubmit()}))}()),Ge(),Me(),$=!0,O&&O(S),S};w.submitting=!0,w.submitFailed=!1,w.submitSucceeded=!1,w.lastSubmittedValues=_extends({},w.values),He();var C=j(w.values,Ke,x);if(!$){if(C&&isPromise(C))return Ge(),Me(),C.then(x,(function(w){throw x(),w}));if(j.length>=3)return Ge(),Me(),new Promise((function(w){O=w}));x(C)}}}},subscribe:function subscribe(w,S){if(!w)throw new Error("No callback given.");if(!S)throw new Error("No subscription provided. What values do you want to listen to?");var O=de(w),$=I.subscribers,x=$.index++;$.entries[x]={subscriber:O,subscription:S,notified:!1};var C=Re();return notifySubscriber(O,S,C,C,filterFormState,!0),function(){delete $.entries[x]}}};return Ke}var ye=["render","children","component"];function renderComponent(w,S,O){var x=w.render,C=w.children,j=w.component,N=_objectWithoutPropertiesLoose(w,ye);if(j)return $.createElement(j,Object.assign(S,N,{children:C,render:x}));if(x)return x(void 0===C?Object.assign(S,N):Object.assign(S,N,{children:C}));if("function"!=typeof C)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+O);return C(Object.assign(S,N))}function useWhenValueChanges(w,S,O){void 0===O&&(O=function isEqual(w,S){return w===S});var $=x.a.useRef(w);x.a.useEffect((function(){O(w,$.current)||(S(),$.current=w)}))}var ve=function shallowEqual(w,S){if(w===S)return!0;if("object"!=typeof w||!w||"object"!=typeof S||!S)return!1;var O=Object.keys(w),$=Object.keys(S);if(O.length!==$.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(S),C=0;C component");return S}function useFormState(w){var S=void 0===w?{}:w,O=S.onChange,x=S.subscription,C=void 0===x?Re:x,j=useForm("useFormState"),N=$.useRef(!0),k=$.useRef(O);k.current=O;var I=$.useState((function(){var w={};return j.subscribe((function(S){w=S}),C)(),O&&O(w),w})),R=I[0],W=I[1];$.useEffect((function(){return j.subscribe((function(w){N.current?N.current=!1:(W(w),k.current&&k.current(w))}),C)}),[]);var G={};return Ie(G,R),G}var De=["onChange","subscription"];function FormSpy(w){var S=w.onChange,O=w.subscription,$=_objectWithoutPropertiesLoose(w,De),x=useForm("FormSpy"),C=useFormState({onChange:S,subscription:O});if(S)return null;var j={form:_extends({},x,{reset:function reset(w){ge(w)?x.reset():x.reset(w)}})};return renderComponent(_extends({},$,j),C,"FormSpy")}var Ue="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product;function useConstantCallback(w){var S=$.useRef(w);return $.useEffect((function(){S.current=w})),$.useCallback((function(){for(var w=arguments.length,O=new Array(w),$=0;$ component");return renderComponent(_extends({children:j,component:N,ref:S},he),ye,"Field("+ie+")")}));function withTypes(){return{Form:ReactFinalForm,FormSpy:FormSpy}}},function(w,S,O){"use strict";O.d(S,"b",(function(){return C})),O.d(S,"a",(function(){return j}));var $=O(1),x=function(w){function QueueAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$}return $.__extends(QueueAction,w),QueueAction.prototype.schedule=function(S,O){return void 0===O&&(O=0),O>0?w.prototype.schedule.call(this,S,O):(this.delay=O,this.state=S,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(S,O){return O>0||this.closed?w.prototype.execute.call(this,S,O):this._execute(S,O)},QueueAction.prototype.requestAsyncId=function(S,O,$){return void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0?w.prototype.requestAsyncId.call(this,S,O,$):S.flush(this)},QueueAction}(O(36).a),C=new(function(w){function QueueScheduler(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(QueueScheduler,w),QueueScheduler}(O(34).a))(x),j=C},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function Scheduler(w,S){void 0===S&&(S=Scheduler.now),this.SchedulerAction=w,this.now=S}return Scheduler.prototype.schedule=function(w,S,O){return void 0===S&&(S=0),new this.SchedulerAction(this,w).schedule(O,S)},Scheduler.now=function(){return Date.now()},Scheduler}()},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.useSelector=void 0;var C=__importStar(O(0)),j=O(67);S.useSelector=function useSelector(w){var S=(0,j.useNeos)(),O=__read(C.useState(w(S.store.getState())),2),$=O[0],x=O[1];return C.useEffect((function(){return S.store.subscribe((function(){var O=S.store.getState(),$=w(O);x($)}))}),[]),$}},function(w,S,O){var $=O(186),x=O(76),C=O(233),j=O(234).isError,N=C.sprintf;function parseConstructorArguments(w){var S,O,x,C;if($.object(w,"args"),$.bool(w.strict,"args.strict"),$.array(w.argv,"args.argv"),0===(S=w.argv).length)O={},x=[];else if(j(S[0]))O={cause:S[0]},x=S.slice(1);else if("object"==typeof S[0]){for(C in O={},S[0])O[C]=S[0][C];x=S.slice(1)}else $.string(S[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),O={},x=S;return $.object(O),O.strict||w.strict||(x=x.map((function(w){return null===w?"null":void 0===w?"undefined":w}))),{options:O,shortmessage:0===x.length?"":N.apply(null,x)}}function VError(){var w,S,O,x,C,N,k;if(w=Array.prototype.slice.call(arguments,0),!(this instanceof VError))return S=Object.create(VError.prototype),VError.apply(S,arguments),S;if((O=parseConstructorArguments({argv:w,strict:!1})).options.name&&($.string(O.options.name,'error\'s "name" must be a string'),this.name=O.options.name),this.jse_shortmsg=O.shortmessage,N=O.shortmessage,(x=O.options.cause)&&($.ok(j(x),"cause is not an Error"),this.jse_cause=x,O.options.skipCauseMessage||(N+=": "+x.message)),this.jse_info={},O.options.info)for(k in O.options.info)this.jse_info[k]=O.options.info[k];return this.message=N,Error.call(this,N),Error.captureStackTrace&&(C=O.options.constructorOpt||this.constructor,Error.captureStackTrace(this,C)),this}function SError(){var w,S,O,$;return w=Array.prototype.slice.call(arguments,0),this instanceof SError?($=(O=parseConstructorArguments({argv:w,strict:!0})).options,VError.call(this,$,"%s",O.shortmessage),this):(S=Object.create(SError.prototype),SError.apply(S,arguments),S)}function MultiError(w){$.array(w,"list of errors"),$.ok(w.length>0,"must be at least one error"),this.ase_errors=w,VError.call(this,{cause:w[0]},"first of %d error%s",w.length,1==w.length?"":"s")}function WError(){var w,S,O,$;return w=Array.prototype.slice.call(arguments,0),this instanceof WError?(($=(O=parseConstructorArguments({argv:w,strict:!1})).options).skipCauseMessage=!0,VError.call(this,$,"%s",O.shortmessage),this):(S=Object.create(WError.prototype),WError.apply(S,w),S)}w.exports=VError,VError.VError=VError,VError.SError=SError,VError.WError=WError,VError.MultiError=MultiError,x.inherits(VError,Error),VError.prototype.name="VError",VError.prototype.toString=function ve_toString(){var w=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(w+=": "+this.message),w},VError.prototype.cause=function ve_cause(){var w=VError.cause(this);return null===w?void 0:w},VError.cause=function(w){return $.ok(j(w),"err must be an Error"),j(w.jse_cause)?w.jse_cause:null},VError.info=function(w){var S,O,x;if($.ok(j(w),"err must be an Error"),S=null!==(O=VError.cause(w))?VError.info(O):{},"object"==typeof w.jse_info&&null!==w.jse_info)for(x in w.jse_info)S[x]=w.jse_info[x];return S},VError.findCauseByName=function(w,S){var O;for($.ok(j(w),"err must be an Error"),$.string(S,"name"),$.ok(S.length>0,"name cannot be empty"),O=w;null!==O;O=VError.cause(O))if($.ok(j(O)),O.name==S)return O;return null},VError.hasCauseWithName=function(w,S){return null!==VError.findCauseByName(w,S)},VError.fullStack=function(w){$.ok(j(w),"err must be an Error");var S=VError.cause(w);return S?w.stack+"\ncaused by: "+VError.fullStack(S):w.stack},VError.errorFromList=function(w){return $.arrayOfObject(w,"errors"),0===w.length?null:(w.forEach((function(w){$.ok(j(w))})),1==w.length?w[0]:new MultiError(w))},VError.errorForEach=function(w,S){$.ok(j(w),"err must be an Error"),$.func(S,"func"),w instanceof MultiError?w.errors().forEach((function iterError(w){S(w)})):S(w)},x.inherits(SError,VError),x.inherits(MultiError,VError),MultiError.prototype.name="MultiError",MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)},x.inherits(WError,VError),WError.prototype.name="WError",WError.prototype.toString=function we_toString(){var w=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(w+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(w+="; caused by "+this.jse_cause.toString()),w},WError.prototype.cause=function we_cause(w){return j(w)&&(this.jse_cause=w),this.jse_cause}},function(w,S,O){"use strict";var $=O(214);w.exports=Function.prototype.bind||$},function(w,S,O){(function(w){var $=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(w){for(var S=Object.keys(w),O={},$=0;$=C)return w;switch(w){case"%s":return String($[O++]);case"%d":return Number($[O++]);case"%j":try{return JSON.stringify($[O++])}catch(w){return"[Circular]"}default:return w}})),N=$[O];O=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),isBoolean(O)?$.showHidden=O:O&&S._extend($,O),isUndefined($.showHidden)&&($.showHidden=!1),isUndefined($.depth)&&($.depth=2),isUndefined($.colors)&&($.colors=!1),isUndefined($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=stylizeWithColor),formatValue($,w,$.depth)}function stylizeWithColor(w,S){var O=inspect.styles[S];return O?"["+inspect.colors[O][0]+"m"+w+"["+inspect.colors[O][1]+"m":w}function stylizeNoColor(w,S){return w}function formatValue(w,O,$){if(w.customInspect&&O&&isFunction(O.inspect)&&O.inspect!==S.inspect&&(!O.constructor||O.constructor.prototype!==O)){var x=O.inspect($,w);return isString(x)||(x=formatValue(w,x,$)),x}var C=function formatPrimitive(w,S){if(isUndefined(S))return w.stylize("undefined","undefined");if(isString(S)){var O="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(O,"string")}if(isNumber(S))return w.stylize(""+S,"number");if(isBoolean(S))return w.stylize(""+S,"boolean");if(isNull(S))return w.stylize("null","null")}(w,O);if(C)return C;var j=Object.keys(O),N=function arrayToHash(w){var S={};return w.forEach((function(w,O){S[w]=!0})),S}(j);if(w.showHidden&&(j=Object.getOwnPropertyNames(O)),isError(O)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return formatError(O);if(0===j.length){if(isFunction(O)){var k=O.name?": "+O.name:"";return w.stylize("[Function"+k+"]","special")}if(isRegExp(O))return w.stylize(RegExp.prototype.toString.call(O),"regexp");if(isDate(O))return w.stylize(Date.prototype.toString.call(O),"date");if(isError(O))return formatError(O)}var I,R="",W=!1,G=["{","}"];(isArray(O)&&(W=!0,G=["[","]"]),isFunction(O))&&(R=" [Function"+(O.name?": "+O.name:"")+"]");return isRegExp(O)&&(R=" "+RegExp.prototype.toString.call(O)),isDate(O)&&(R=" "+Date.prototype.toUTCString.call(O)),isError(O)&&(R=" "+formatError(O)),0!==j.length||W&&0!=O.length?$<0?isRegExp(O)?w.stylize(RegExp.prototype.toString.call(O),"regexp"):w.stylize("[Object]","special"):(w.seen.push(O),I=W?function formatArray(w,S,O,$,x){for(var C=[],j=0,N=S.length;j=0&&0,w+S.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return O[0]+(""===S?"":S+"\n ")+" "+w.join(",\n ")+" "+O[1];return O[0]+S+" "+w.join(", ")+" "+O[1]}(I,R,G)):G[0]+R+G[1]}function formatError(w){return"["+Error.prototype.toString.call(w)+"]"}function formatProperty(w,S,O,$,x,C){var j,N,k;if((k=Object.getOwnPropertyDescriptor(S,x)||{value:S[x]}).get?N=k.set?w.stylize("[Getter/Setter]","special"):w.stylize("[Getter]","special"):k.set&&(N=w.stylize("[Setter]","special")),hasOwnProperty($,x)||(j="["+x+"]"),N||(w.seen.indexOf(k.value)<0?(N=isNull(O)?formatValue(w,k.value,null):formatValue(w,k.value,O-1)).indexOf("\n")>-1&&(N=C?N.split("\n").map((function(w){return" "+w})).join("\n").substr(2):"\n"+N.split("\n").map((function(w){return" "+w})).join("\n")):N=w.stylize("[Circular]","special")),isUndefined(j)){if(C&&x.match(/^\d+$/))return N;(j=JSON.stringify(""+x)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.substr(1,j.length-2),j=w.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=w.stylize(j,"string"))}return j+": "+N}function isArray(w){return Array.isArray(w)}function isBoolean(w){return"boolean"==typeof w}function isNull(w){return null===w}function isNumber(w){return"number"==typeof w}function isString(w){return"string"==typeof w}function isUndefined(w){return void 0===w}function isRegExp(w){return isObject(w)&&"[object RegExp]"===objectToString(w)}function isObject(w){return"object"==typeof w&&null!==w}function isDate(w){return isObject(w)&&"[object Date]"===objectToString(w)}function isError(w){return isObject(w)&&("[object Error]"===objectToString(w)||w instanceof Error)}function isFunction(w){return"function"==typeof w}function objectToString(w){return Object.prototype.toString.call(w)}function pad(w){return w<10?"0"+w.toString(10):w.toString(10)}S.debuglog=function(O){if(isUndefined(C)&&(C=w.env.NODE_DEBUG||""),O=O.toUpperCase(),!j[O])if(new RegExp("\\b"+O+"\\b","i").test(C)){var $=w.pid;j[O]=function(){var w=S.format.apply(S,arguments);console.error("%s %d: %s",O,$,w)}}else j[O]=function(){};return j[O]},S.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=isArray,S.isBoolean=isBoolean,S.isNull=isNull,S.isNullOrUndefined=function isNullOrUndefined(w){return null==w},S.isNumber=isNumber,S.isString=isString,S.isSymbol=function isSymbol(w){return"symbol"==typeof w},S.isUndefined=isUndefined,S.isRegExp=isRegExp,S.isObject=isObject,S.isDate=isDate,S.isError=isError,S.isFunction=isFunction,S.isPrimitive=function isPrimitive(w){return null===w||"boolean"==typeof w||"number"==typeof w||"string"==typeof w||"symbol"==typeof w||void 0===w},S.isBuffer=O(218);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var w=new Date,S=[pad(w.getHours()),pad(w.getMinutes()),pad(w.getSeconds())].join(":");return[w.getDate(),N[w.getMonth()],S].join(" ")}function hasOwnProperty(w,S){return Object.prototype.hasOwnProperty.call(w,S)}S.log=function(){console.log("%s - %s",timestamp(),S.format.apply(S,arguments))},S.inherits=O(219),S._extend=function(w,S){if(!S||!isObject(S))return w;for(var O=Object.keys(S),$=O.length;$--;)w[O[$]]=S[O[$]];return w};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(w,S){if(!w){var O=new Error("Promise was rejected with a falsy value");O.reason=w,w=O}return S(w)}S.promisify=function promisify(w){if("function"!=typeof w)throw new TypeError('The "original" argument must be of type Function');if(k&&w[k]){var S;if("function"!=typeof(S=w[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(S,k,{value:S,enumerable:!1,writable:!1,configurable:!0}),S}function S(){for(var S,O,$=new Promise((function(w,$){S=w,O=$})),x=[],C=0;C1&&"number"==typeof w[w.length-1]&&(O=w.pop())):"number"==typeof k&&(O=w.pop()),null===N&&1===w.length&&w[0]instanceof $.a?w[0]:Object(C.a)(O)(Object(j.a)(w,N))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return race}));var $=O(1),x=O(9),C=O(33),j=O(21),N=O(18);function race(){for(var w=[],S=0;S0&&j.length>x&&!j.warned){j.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=w,N.type=S,N.count=j.length,function ProcessEmitWarning(w){console&&console.warn&&console.warn(w)}(N)}return w}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(w,S,O){var $={fired:!1,wrapFn:void 0,target:w,type:S,listener:O},x=onceWrapper.bind($);return x.listener=O,$.wrapFn=x,x}function _listeners(w,S,O){var $=w._events;if(void 0===$)return[];var x=$[S];return void 0===x?[]:"function"==typeof x?O?[x.listener||x]:[x]:O?function unwrapListeners(w){for(var S=new Array(w.length),O=0;O0&&(j=S[0]),j instanceof Error)throw j;var N=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw N.context=j,N}var k=x[w];if(void 0===k)return!1;if("function"==typeof k)C(k,this,S);else{var I=k.length,R=arrayClone(k,I);for(O=0;O=0;C--)if(O[C]===S||O[C].listener===S){j=O[C].listener,x=C;break}if(x<0)return this;0===x?O.shift():function spliceOne(w,S){for(;S+1=0;$--)this.removeListener(w,S[$]);return this},EventEmitter.prototype.listeners=function listeners(w){return _listeners(this,w,!0)},EventEmitter.prototype.rawListeners=function rawListeners(w){return _listeners(this,w,!1)},EventEmitter.listenerCount=function(w,S){return"function"==typeof w.listenerCount?w.listenerCount(S):listenerCount.call(w,S)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?$(this._events):[]}},function(w,S,O){(S=w.exports=O(120)).Stream=S,S.Readable=S,S.Writable=O(100),S.Duplex=O(47),S.Transform=O(124),S.PassThrough=O(228)},function(w,S,O){var $=O(68),x=$.Buffer;function copyProps(w,S){for(var O in w)S[O]=w[O]}function SafeBuffer(w,S,O){return x(w,S,O)}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?w.exports=$:(copyProps($,S),S.Buffer=SafeBuffer),copyProps(x,SafeBuffer),SafeBuffer.from=function(w,S,O){if("number"==typeof w)throw new TypeError("Argument must not be a number");return x(w,S,O)},SafeBuffer.alloc=function(w,S,O){if("number"!=typeof w)throw new TypeError("Argument must be a number");var $=x(w);return void 0!==S?"string"==typeof O?$.fill(S,O):$.fill(S):$.fill(0),$},SafeBuffer.allocUnsafe=function(w){if("number"!=typeof w)throw new TypeError("Argument must be a number");return x(w)},SafeBuffer.allocUnsafeSlow=function(w){if("number"!=typeof w)throw new TypeError("Argument must be a number");return $.SlowBuffer(w)}},function(w,S,O){"use strict";(function(S,$,x){var C=O(77);function CorkedRequest(w){var S=this;this.next=null,this.entry=null,this.finish=function(){!function onCorkedFinish(w,S,O){var $=w.entry;w.entry=null;for(;$;){var x=$.callback;S.pendingcb--,x(O),$=$.next}S.corkedRequestsFree.next=w}(S,w)}}w.exports=Writable;var j,N=!S.browser&&["v0.10","v0.9."].indexOf(S.version.slice(0,5))>-1?$:C.nextTick;Writable.WritableState=WritableState;var k=Object.create(O(69));k.inherits=O(53);var I={deprecate:O(226)},R=O(121),W=O(99).Buffer,G=(void 0!==x?x:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var J,re=O(122);function nop(){}function WritableState(w,S){j=j||O(47),w=w||{};var $=S instanceof j;this.objectMode=!!w.objectMode,$&&(this.objectMode=this.objectMode||!!w.writableObjectMode);var x=w.highWaterMark,k=w.writableHighWaterMark,I=this.objectMode?16:16384;this.highWaterMark=x||0===x?x:$&&(k||0===k)?k:I,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=!1===w.decodeStrings;this.decodeStrings=!R,this.defaultEncoding=w.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){!function onwrite(w,S){var O=w._writableState,$=O.sync,x=O.writecb;if(function onwriteStateUpdate(w){w.writing=!1,w.writecb=null,w.length-=w.writelen,w.writelen=0}(O),S)!function onwriteError(w,S,O,$,x){--S.pendingcb,O?(C.nextTick(x,$),C.nextTick(finishMaybe,w,S),w._writableState.errorEmitted=!0,w.emit("error",$)):(x($),w._writableState.errorEmitted=!0,w.emit("error",$),finishMaybe(w,S))}(w,O,$,S,x);else{var j=needFinish(O);j||O.corked||O.bufferProcessing||!O.bufferedRequest||clearBuffer(w,O),$?N(afterWrite,w,O,j,x):afterWrite(w,O,j,x)}}(S,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(w){if(j=j||O(47),!(J.call(Writable,this)||this instanceof j))return new Writable(w);this._writableState=new WritableState(w,this),this.writable=!0,w&&("function"==typeof w.write&&(this._write=w.write),"function"==typeof w.writev&&(this._writev=w.writev),"function"==typeof w.destroy&&(this._destroy=w.destroy),"function"==typeof w.final&&(this._final=w.final)),R.call(this)}function doWrite(w,S,O,$,x,C,j){S.writelen=$,S.writecb=j,S.writing=!0,S.sync=!0,O?w._writev(x,S.onwrite):w._write(x,C,S.onwrite),S.sync=!1}function afterWrite(w,S,O,$){O||function onwriteDrain(w,S){0===S.length&&S.needDrain&&(S.needDrain=!1,w.emit("drain"))}(w,S),S.pendingcb--,$(),finishMaybe(w,S)}function clearBuffer(w,S){S.bufferProcessing=!0;var O=S.bufferedRequest;if(w._writev&&O&&O.next){var $=S.bufferedRequestCount,x=new Array($),C=S.corkedRequestsFree;C.entry=O;for(var j=0,N=!0;O;)x[j]=O,O.isBuf||(N=!1),O=O.next,j+=1;x.allBuffers=N,doWrite(w,S,!0,S.length,x,"",C.finish),S.pendingcb++,S.lastBufferedRequest=null,C.next?(S.corkedRequestsFree=C.next,C.next=null):S.corkedRequestsFree=new CorkedRequest(S),S.bufferedRequestCount=0}else{for(;O;){var k=O.chunk,I=O.encoding,R=O.callback;if(doWrite(w,S,!1,S.objectMode?1:k.length,k,I,R),O=O.next,S.bufferedRequestCount--,S.writing)break}null===O&&(S.lastBufferedRequest=null)}S.bufferedRequest=O,S.bufferProcessing=!1}function needFinish(w){return w.ending&&0===w.length&&null===w.bufferedRequest&&!w.finished&&!w.writing}function callFinal(w,S){w._final((function(O){S.pendingcb--,O&&w.emit("error",O),S.prefinished=!0,w.emit("prefinish"),finishMaybe(w,S)}))}function finishMaybe(w,S){var O=needFinish(S);return O&&(!function prefinish(w,S){S.prefinished||S.finalCalled||("function"==typeof w._final?(S.pendingcb++,S.finalCalled=!0,C.nextTick(callFinal,w,S)):(S.prefinished=!0,w.emit("prefinish")))}(w,S),0===S.pendingcb&&(S.finished=!0,w.emit("finish"))),O}k.inherits(Writable,R),WritableState.prototype.getBuffer=function getBuffer(){for(var w=this.bufferedRequest,S=[];w;)S.push(w),w=w.next;return S},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:I.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(w){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(w){return!!J.call(this,w)||this===Writable&&(w&&w._writableState instanceof WritableState)}})):J=function(w){return w instanceof this},Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(w,S,O){var $=this._writableState,x=!1,j=!$.objectMode&&function _isUint8Array(w){return W.isBuffer(w)||w instanceof G}(w);return j&&!W.isBuffer(w)&&(w=function _uint8ArrayToBuffer(w){return W.from(w)}(w)),"function"==typeof S&&(O=S,S=null),j?S="buffer":S||(S=$.defaultEncoding),"function"!=typeof O&&(O=nop),$.ended?function writeAfterEnd(w,S){var O=new Error("write after end");w.emit("error",O),C.nextTick(S,O)}(this,O):(j||function validChunk(w,S,O,$){var x=!0,j=!1;return null===O?j=new TypeError("May not write null values to stream"):"string"==typeof O||void 0===O||S.objectMode||(j=new TypeError("Invalid non-string/buffer chunk")),j&&(w.emit("error",j),C.nextTick($,j),x=!1),x}(this,$,w,O))&&($.pendingcb++,x=function writeOrBuffer(w,S,O,$,x,C){if(!O){var j=function decodeChunk(w,S,O){w.objectMode||!1===w.decodeStrings||"string"!=typeof S||(S=W.from(S,O));return S}(S,$,x);$!==j&&(O=!0,x="buffer",$=j)}var N=S.objectMode?1:$.length;S.length+=N;var k=S.length-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(w,S,O){O(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(w,S,O){var $=this._writableState;"function"==typeof w?(O=w,w=null,S=null):"function"==typeof S&&(O=S,S=null),null!=w&&this.write(w,S),$.corked&&($.corked=1,this.uncork()),$.ending||function endWritable(w,S,O){S.ending=!0,finishMaybe(w,S),O&&(S.finished?C.nextTick(O):w.once("finish",O));S.ended=!0,w.writable=!1}(this,$,O)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(w){this._writableState&&(this._writableState.destroyed=w)}}),Writable.prototype.destroy=re.destroy,Writable.prototype._undestroy=re.undestroy,Writable.prototype._destroy=function(w,S){this.end(),S(w)}}).call(this,O(44),O(224).setImmediate,O(46))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getTree=S.getNodeTypeFilterOptions=S.getChildrenForTreeNode=void 0;var $=O(261);Object.defineProperty(S,"getChildrenForTreeNode",{enumerable:!0,get:function get(){return $.getChildrenForTreeNode}});var x=O(262);Object.defineProperty(S,"getNodeTypeFilterOptions",{enumerable:!0,get:function get(){return x.getNodeTypeFilterOptions}});var C=O(263);Object.defineProperty(S,"getTree",{enumerable:!0,get:function get(){return C.getTree}})},function(w,S,O){"use strict";w.exports=O(180)},function(w,S,O){"use strict";var $=O(181),x={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},j={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},N={};function getStatics(w){return $.isMemo(w)?j:N[w.$$typeof]||x}N[$.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},N[$.Memo]=j;var k=Object.defineProperty,I=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,J=Object.prototype;w.exports=function hoistNonReactStatics(w,S,O){if("string"!=typeof S){if(J){var $=G(S);$&&$!==J&&hoistNonReactStatics(w,$,O)}var x=I(S);R&&(x=x.concat(R(S)));for(var j=getStatics(w),N=getStatics(S),re=0;re15,isFn=function(w){return"function"==typeof w};S.default=function(w,S){for(var O=[],j=2;j=0;I--)if(W[I]!==G[I])return!1;for(I=W.length-1;I>=0;I--)if(k=W[I],!_deepEqual(w[k],S[k],O,$))return!1;return!0}(w,S,O,$))}return O?w===S:w==S}function isArguments(w){return"[object Arguments]"==Object.prototype.toString.call(w)}function expectedException(w,S){if(!w||!S)return!1;if("[object RegExp]"==Object.prototype.toString.call(S))return S.test(w);try{if(w instanceof S)return!0}catch(w){}return!Error.isPrototypeOf(S)&&!0===S.call({},w)}function _throws(w,S,O,$){var C;if("function"!=typeof S)throw new TypeError('"block" argument must be a function');"string"==typeof O&&($=O,O=null),C=function _tryBlock(w){var S;try{w()}catch(w){S=w}return S}(S),$=(O&&O.name?" ("+O.name+").":".")+($?" "+$:"."),w&&!C&&fail(C,O,"Missing expected exception"+$);var j="string"==typeof $,N=!w&&C&&!O;if((!w&&x.isError(C)&&j&&expectedException(C,O)||N)&&fail(C,O,"Got unwanted exception"+$),w&&C&&O&&!expectedException(C,O)||!w&&C)throw C}k.AssertionError=function AssertionError(w){this.name="AssertionError",this.actual=w.actual,this.expected=w.expected,this.operator=w.operator,w.message?(this.message=w.message,this.generatedMessage=!1):(this.message=function getMessage(w){return truncate(inspect(w.actual),128)+" "+w.operator+" "+truncate(inspect(w.expected),128)}(this),this.generatedMessage=!0);var S=w.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,S);else{var O=new Error;if(O.stack){var $=O.stack,x=getName(S),C=$.indexOf("\n"+x);if(C>=0){var j=$.indexOf("\n",C+1);$=$.substring(j+1)}this.stack=$}}},x.inherits(k.AssertionError,Error),k.fail=fail,k.ok=ok,k.equal=function equal(w,S,O){w!=S&&fail(w,S,O,"==",k.equal)},k.notEqual=function notEqual(w,S,O){w==S&&fail(w,S,O,"!=",k.notEqual)},k.deepEqual=function deepEqual(w,S,O){_deepEqual(w,S,!1)||fail(w,S,O,"deepEqual",k.deepEqual)},k.deepStrictEqual=function deepStrictEqual(w,S,O){_deepEqual(w,S,!0)||fail(w,S,O,"deepStrictEqual",k.deepStrictEqual)},k.notDeepEqual=function notDeepEqual(w,S,O){_deepEqual(w,S,!1)&&fail(w,S,O,"notDeepEqual",k.notDeepEqual)},k.notDeepStrictEqual=function notDeepStrictEqual(w,S,O){_deepEqual(w,S,!0)&&fail(w,S,O,"notDeepStrictEqual",notDeepStrictEqual)},k.strictEqual=function strictEqual(w,S,O){w!==S&&fail(w,S,O,"===",k.strictEqual)},k.notStrictEqual=function notStrictEqual(w,S,O){w===S&&fail(w,S,O,"!==",k.notStrictEqual)},k.throws=function(w,S,O){_throws(!0,w,S,O)},k.doesNotThrow=function(w,S,O){_throws(!1,w,S,O)},k.ifError=function(w){if(w)throw w},k.strict=$((function strict(w,S){w||fail(w,!0,S,"==",strict)}),k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStrictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict;var R=Object.keys||function(w){var S=[];for(var O in w)C.call(w,O)&&S.push(O);return S}}).call(this,O(46))},function(w,S,O){"use strict";var $=Object.prototype.toString;w.exports=function isArguments(w){var S=$.call(w),O="[object Arguments]"===S;return O||(O="[object Array]"!==S&&null!==w&&"object"==typeof w&&"number"==typeof w.length&&w.length>=0&&"[object Function]"===$.call(w.callee)),O}},function(w,S,O){"use strict";w.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var w={},S=Symbol("test"),O=Object(S);if("string"==typeof S)return!1;if("[object Symbol]"!==Object.prototype.toString.call(S))return!1;if("[object Symbol]"!==Object.prototype.toString.call(O))return!1;for(var $ in w[S]=42,w)return!1;if("function"==typeof Object.keys&&0!==Object.keys(w).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(w).length)return!1;var x=Object.getOwnPropertySymbols(w);if(1!==x.length||x[0]!==S)return!1;if(!Object.prototype.propertyIsEnumerable.call(w,S))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var C=Object.getOwnPropertyDescriptor(w,S);if(42!==C.value||!0!==C.enumerable)return!1}return!0}},function(w,S,O){"use strict";w.exports=TypeError},function(w,S,O){"use strict";var $=O(209);if($)try{$([],"length")}catch(w){$=null}w.exports=$},function(w,S,O){"use strict";w.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(w,S,O){"use strict";var $=O(95);w.exports=$.getPrototypeOf||null},function(w,S,O){"use strict";var $=O(75),x=O(114),C=O(96),j=O(215);w.exports=function callBindBasic(w){if(w.length<1||"function"!=typeof w[0])throw new x("a function is required");return j($,C,w)}},function(w,S,O){"use strict";w.exports=Function.prototype.apply},function(w,S,O){"use strict";(function(S,$){var x=O(77);w.exports=Readable;var C,j=O(110);Readable.ReadableState=ReadableState;O(97).EventEmitter;var EElistenerCount=function(w,S){return w.listeners(S).length},N=O(121),k=O(99).Buffer,I=(void 0!==S?S:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var R=Object.create(O(69));R.inherits=O(53);var W=O(221),G=void 0;G=W&&W.debuglog?W.debuglog("stream"):function(){};var J,re=O(222),ie=O(122);R.inherits(Readable,N);var oe=["error","close","destroy","pause","resume"];function ReadableState(w,S){w=w||{};var $=S instanceof(C=C||O(47));this.objectMode=!!w.objectMode,$&&(this.objectMode=this.objectMode||!!w.readableObjectMode);var x=w.highWaterMark,j=w.readableHighWaterMark,N=this.objectMode?16:16384;this.highWaterMark=x||0===x?x:$&&(j||0===j)?j:N,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(J||(J=O(123).StringDecoder),this.decoder=new J(w.encoding),this.encoding=w.encoding)}function Readable(w){if(C=C||O(47),!(this instanceof Readable))return new Readable(w);this._readableState=new ReadableState(w,this),this.readable=!0,w&&("function"==typeof w.read&&(this._read=w.read),"function"==typeof w.destroy&&(this._destroy=w.destroy)),N.call(this)}function readableAddChunk(w,S,O,$,x){var C,j=w._readableState;null===S?(j.reading=!1,function onEofChunk(w,S){if(S.ended)return;if(S.decoder){var O=S.decoder.end();O&&O.length&&(S.buffer.push(O),S.length+=S.objectMode?1:O.length)}S.ended=!0,emitReadable(w)}(w,j)):(x||(C=function chunkInvalid(w,S){var O;(function _isUint8Array(w){return k.isBuffer(w)||w instanceof I})(S)||"string"==typeof S||void 0===S||w.objectMode||(O=new TypeError("Invalid non-string/buffer chunk"));return O}(j,S)),C?w.emit("error",C):j.objectMode||S&&S.length>0?("string"==typeof S||j.objectMode||Object.getPrototypeOf(S)===k.prototype||(S=function _uint8ArrayToBuffer(w){return k.from(w)}(S)),$?j.endEmitted?w.emit("error",new Error("stream.unshift() after end event")):addChunk(w,j,S,!0):j.ended?w.emit("error",new Error("stream.push() after EOF")):(j.reading=!1,j.decoder&&!O?(S=j.decoder.write(S),j.objectMode||0!==S.length?addChunk(w,j,S,!1):maybeReadMore(w,j)):addChunk(w,j,S,!1))):$||(j.reading=!1));return function needMoreData(w){return!w.ended&&(w.needReadable||w.lengthS.highWaterMark&&(S.highWaterMark=function computeNewHighWaterMark(w){return w>=8388608?w=8388608:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}(w)),w<=S.length?w:S.ended?S.length:(S.needReadable=!0,0))}function emitReadable(w){var S=w._readableState;S.needReadable=!1,S.emittedReadable||(G("emitReadable",S.flowing),S.emittedReadable=!0,S.sync?x.nextTick(emitReadable_,w):emitReadable_(w))}function emitReadable_(w){G("emit readable"),w.emit("readable"),flow(w)}function maybeReadMore(w,S){S.readingMore||(S.readingMore=!0,x.nextTick(maybeReadMore_,w,S))}function maybeReadMore_(w,S){for(var O=S.length;!S.reading&&!S.flowing&&!S.ended&&S.length=S.length?(O=S.decoder?S.buffer.join(""):1===S.buffer.length?S.buffer.head.data:S.buffer.concat(S.length),S.buffer.clear()):O=function fromListPartial(w,S,O){var $;wC.length?C.length:w;if(j===C.length?x+=C:x+=C.slice(0,w),0===(w-=j)){j===C.length?(++$,O.next?S.head=O.next:S.head=S.tail=null):(S.head=O,O.data=C.slice(j));break}++$}return S.length-=$,x}(w,S):function copyFromBuffer(w,S){var O=k.allocUnsafe(w),$=S.head,x=1;$.data.copy(O),w-=$.data.length;for(;$=$.next;){var C=$.data,j=w>C.length?C.length:w;if(C.copy(O,O.length-w,0,j),0===(w-=j)){j===C.length?(++x,$.next?S.head=$.next:S.head=S.tail=null):(S.head=$,$.data=C.slice(j));break}++x}return S.length-=x,O}(w,S);return $}(w,S.buffer,S.decoder),O);var O}function endReadable(w){var S=w._readableState;if(S.length>0)throw new Error('"endReadable()" called on non-empty stream');S.endEmitted||(S.ended=!0,x.nextTick(endReadableNT,S,w))}function endReadableNT(w,S){w.endEmitted||0!==w.length||(w.endEmitted=!0,S.readable=!1,S.emit("end"))}function indexOf(w,S){for(var O=0,$=w.length;O<$;O++)if(w[O]===S)return O;return-1}Readable.prototype.read=function(w){G("read",w),w=parseInt(w,10);var S=this._readableState,O=w;if(0!==w&&(S.emittedReadable=!1),0===w&&S.needReadable&&(S.length>=S.highWaterMark||S.ended))return G("read: emitReadable",S.length,S.ended),0===S.length&&S.ended?endReadable(this):emitReadable(this),null;if(0===(w=howMuchToRead(w,S))&&S.ended)return 0===S.length&&endReadable(this),null;var $,x=S.needReadable;return G("need readable",x),(0===S.length||S.length-w0?fromList(w,S):null)?(S.needReadable=!0,w=0):S.length-=w,0===S.length&&(S.ended||(S.needReadable=!0),O!==w&&S.ended&&endReadable(this)),null!==$&&this.emit("data",$),$},Readable.prototype._read=function(w){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(w,S){var O=this,C=this._readableState;switch(C.pipesCount){case 0:C.pipes=w;break;case 1:C.pipes=[C.pipes,w];break;default:C.pipes.push(w)}C.pipesCount+=1,G("pipe count=%d opts=%j",C.pipesCount,S);var N=(!S||!1!==S.end)&&w!==$.stdout&&w!==$.stderr?onend:unpipe;function onunpipe(S,$){G("onunpipe"),S===O&&$&&!1===$.hasUnpiped&&($.hasUnpiped=!0,function cleanup(){G("cleanup"),w.removeListener("close",onclose),w.removeListener("finish",onfinish),w.removeListener("drain",k),w.removeListener("error",onerror),w.removeListener("unpipe",onunpipe),O.removeListener("end",onend),O.removeListener("end",unpipe),O.removeListener("data",ondata),I=!0,!C.awaitDrain||w._writableState&&!w._writableState.needDrain||k()}())}function onend(){G("onend"),w.end()}C.endEmitted?x.nextTick(N):O.once("end",N),w.on("unpipe",onunpipe);var k=function pipeOnDrain(w){return function(){var S=w._readableState;G("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,0===S.awaitDrain&&EElistenerCount(w,"data")&&(S.flowing=!0,flow(w))}}(O);w.on("drain",k);var I=!1;var R=!1;function ondata(S){G("ondata"),R=!1,!1!==w.write(S)||R||((1===C.pipesCount&&C.pipes===w||C.pipesCount>1&&-1!==indexOf(C.pipes,w))&&!I&&(G("false write response, pause",C.awaitDrain),C.awaitDrain++,R=!0),O.pause())}function onerror(S){G("onerror",S),unpipe(),w.removeListener("error",onerror),0===EElistenerCount(w,"error")&&w.emit("error",S)}function onclose(){w.removeListener("finish",onfinish),unpipe()}function onfinish(){G("onfinish"),w.removeListener("close",onclose),unpipe()}function unpipe(){G("unpipe"),O.unpipe(w)}return O.on("data",ondata),function prependListener(w,S,O){if("function"==typeof w.prependListener)return w.prependListener(S,O);w._events&&w._events[S]?j(w._events[S])?w._events[S].unshift(O):w._events[S]=[O,w._events[S]]:w.on(S,O)}(w,"error",onerror),w.once("close",onclose),w.once("finish",onfinish),w.emit("pipe",O),C.flowing||(G("pipe resume"),O.resume()),w},Readable.prototype.unpipe=function(w){var S=this._readableState,O={hasUnpiped:!1};if(0===S.pipesCount)return this;if(1===S.pipesCount)return w&&w!==S.pipes||(w||(w=S.pipes),S.pipes=null,S.pipesCount=0,S.flowing=!1,w&&w.emit("unpipe",this,O)),this;if(!w){var $=S.pipes,x=S.pipesCount;S.pipes=null,S.pipesCount=0,S.flowing=!1;for(var C=0;C>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function utf8FillLast(w){var S=this.lastTotal-this.lastNeed,O=function utf8CheckExtraBytes(w,S,O){if(128!=(192&S[0]))return w.lastNeed=0,"�";if(w.lastNeed>1&&S.length>1){if(128!=(192&S[1]))return w.lastNeed=1,"�";if(w.lastNeed>2&&S.length>2&&128!=(192&S[2]))return w.lastNeed=2,"�"}}(this,w);return void 0!==O?O:this.lastNeed<=w.length?(w.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,S,0,w.length),void(this.lastNeed-=w.length))}function utf16Text(w,S){if((w.length-S)%2==0){var O=w.toString("utf16le",S);if(O){var $=O.charCodeAt(O.length-1);if($>=55296&&$<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",S,w.length-1)}function utf16End(w){var S=w&&w.length?this.write(w):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,O)}return S}function base64Text(w,S){var O=(w.length-S)%3;return 0===O?w.toString("base64",S):(this.lastNeed=3-O,this.lastTotal=3,1===O?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",S,w.length-O))}function base64End(w){var S=w&&w.length?this.write(w):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function simpleWrite(w){return w.toString(this.encoding)}function simpleEnd(w){return w&&w.length?this.write(w):""}S.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(w){if(0===w.length)return"";var S,O;if(this.lastNeed){if(void 0===(S=this.fillLast(w)))return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O=0)return x>0&&(w.lastNeed=x-1),x;if(--$=0)return x>0&&(w.lastNeed=x-2),x;if(--$=0)return x>0&&(2===x?x=0:w.lastNeed=x-3),x;return 0}(this,w,S);if(!this.lastNeed)return w.toString("utf8",S);this.lastTotal=O;var $=w.length-(O-this.lastNeed);return w.copy(this.lastChar,0,$),w.toString("utf8",S,$)},StringDecoder.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},function(w,S,O){"use strict";w.exports=Transform;var $=O(47),x=Object.create(O(69));function afterTransform(w,S){var O=this._transformState;O.transforming=!1;var $=O.writecb;if(!$)return this.emit("error",new Error("write callback called multiple times"));O.writechunk=null,O.writecb=null,null!=S&&this.push(S),$(w);var x=this._readableState;x.reading=!1,(x.needReadable||x.length>>0).toString(36)}(O.stringify(w))},selector:function(w,S){return w+(":"===S[0]?"":" ")+S},putRaw:function(w){O.raw+=w}},w);return O.client&&(O.sh||document.head.appendChild(O.sh=document.createElement("style")),O.putRaw=function(w){var S=O.sh.sheet;try{S.insertRule(w,S.cssRules.length)}catch(w){}}),O.put=function(w,S,$){var x,C,j="",N=[];for(x in S)(C=S[x])instanceof Object&&!(C instanceof Array)?N.push(x):j+=O.decl(x,C,w,$);j&&(j=w+"{"+j+"}",O.putRaw($?$+"{"+j+"}":j));for(var k=0;k-1,I=O.split(",");if(k)for(var R=0;R$&&($=(S=S.trim()).charCodeAt(0)),$){case 38:return S.replace(N,"$1"+w.trim());case 58:return w.trim()+S.replace(N,"$1"+w.trim());default:if(0<1*O&&0I.charCodeAt(8))break;case 115:N=N.replace(I,"-webkit-"+I)+";"+N;break;case 207:case 102:N=N.replace(I,"-webkit-"+(102x.charCodeAt(0)&&(x=x.trim()),x=[x],0N)&&(De=(He=He.replace(" ",":")).length),0=0)){if(Ce.push(w),ye[w]){var N=Ie(ye[w],!0);try{for(var k=$.__values(N),I=k.next();!I.done;I=k.next()){var R=I.value;addToResults(ye[w][R],S)}}catch(w){O={error:w}}finally{try{I&&!I.done&&(x=k.return)&&x.call(k)}finally{if(O)throw O.error}}}if(S.push(w),ve[w]){var W=Ie(ve[w],!1);try{for(var G=$.__values(W),J=G.next();!J.done;J=G.next()){R=J.value;addToResults(ve[w][R],S)}}catch(w){C={error:w}}finally{try{J&&!J.done&&(j=G.return)&&j.call(G)}finally{if(C)throw C.error}}}}}))};try{for(var Fe=$.__values(Ie(le,!1)),Re=Fe.next();!Re.done;Re=Fe.next()){var De=Re.value;Me(le[De],ge)}}catch(w){x={error:w}}finally{try{Re&&!Re.done&&(C=Fe.return)&&C.call(Fe)}finally{if(x)throw x.error}}try{for(var Ue=$.__values(Ie(de,!0)),Ge=Ue.next();!Ge.done;Ge=Ue.next()){De=Ge.value;Me(de[De],Se)}}catch(w){j={error:w}}finally{try{Ge&&!Ge.done&&(N=Ue.return)&&N.call(Ue)}finally{if(j)throw j.error}}try{for(var He=$.__values(Ie(he,!0)),Ke=He.next();!Ke.done;Ke=He.next()){De=Ke.value;Me(he[De],Pe)}}catch(w){k={error:w}}finally{try{Ke&&!Ke.done&&(I=He.return)&&I.call(He)}finally{if(k)throw k.error}}try{for(var Ze=$.__values(Object.keys(ye)),Qe=Ze.next();!Qe.done;Qe=Ze.next()){var et=Qe.value;if(!(Ce.indexOf(et)>=0))try{for(var tt=(G=void 0,$.__values(Ie(ye[et],!1))),rt=tt.next();!rt.done;rt=tt.next()){De=rt.value;Me(ye[et][De],ge)}}catch(w){G={error:w}}finally{try{rt&&!rt.done&&(J=tt.return)&&J.call(tt)}finally{if(G)throw G.error}}}}catch(w){R={error:w}}finally{try{Qe&&!Qe.done&&(W=Ze.return)&&W.call(Ze)}finally{if(R)throw R.error}}try{for(var nt=$.__values(Object.keys(ve)),it=nt.next();!it.done;it=nt.next()){et=it.value;if(!(Ce.indexOf(et)>=0))try{for(var ot=(oe=void 0,$.__values(Ie(ve[et],!1))),at=ot.next();!at.done;at=ot.next()){De=at.value;Me(ve[et][De],Se)}}catch(w){oe={error:w}}finally{try{at&&!at.done&&(ue=ot.return)&&ue.call(ot)}finally{if(oe)throw oe.error}}}}catch(w){re={error:w}}finally{try{it&&!it.done&&(ie=nt.return)&&ie.call(nt)}finally{if(re)throw re.error}}return $.__spread(ge,Se,Pe).map((function(w){return se[w]})).map((function(S){return w[S]}))}},function(w,S,O){"use strict";S.__esModule=!0;var $=O(1),x=function(w){function SynchronousMetaRegistry(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(SynchronousMetaRegistry,w),SynchronousMetaRegistry.prototype.set=function(S,O){if("d8a5aa78-978e-11e6-ae22-56b6b6499611"!==O.SERIAL_VERSION_UID)throw new Error("You can only add registries to a meta registry");return w.prototype.set.call(this,S,O)},SynchronousMetaRegistry}($.__importDefault(O(106)).default);S.default=x},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.registerDialog=S.registerLinkTypes=void 0;var $=O(151);Object.defineProperty(S,"registerLinkTypes",{enumerable:!0,get:function get(){return $.registerLinkTypes}});var x=O(279);Object.defineProperty(S,"registerDialog",{enumerable:!0,get:function get(){return x.registerDialog}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.registerLinkTypes=void 0;var $=O(105),x=O(152),C=O(248),j=O(270),N=O(273),k=O(275),I=O(277);S.registerLinkTypes=function registerLinkTypes(w){var S=new $.SynchronousRegistry("\n # Sitegeist.Archaeopteryx LinkType Registry\n ");S.set(C.Node.id,C.Node),S.set(j.Asset.id,j.Asset),S.set(x.Web.id,x.Web),S.set(N.MailTo.id,N.MailTo),S.set(k.PhoneNumber.id,k.PhoneNumber),S.set(I.CustomLink.id,I.CustomLink),w.set("@sitegeist/archaeopteryx/link-types",S)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Web=void 0;var $=O(153);Object.defineProperty(S,"Web",{enumerable:!0,get:function get(){return $.Web}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Web=void 0;var C=__importStar(O(0)),j=O(0),N=O(70),k=O(17),I=O(12),R=O(43),W=O(30),G=O(38);function removeHttp(w){return w.replace(/^https?:\/\//,"")}S.Web=(0,W.makeLinkType)("Sitegeist.Archaeopteryx:Web",(function(w){var S=w.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){var S=w.href.startsWith("http://"),O=w.href.startsWith("https://");return S||O},useResolvedModel:function useResolvedModel(w){var O=w.href.match(/^(https?):\/\/(.*)$/);if(O){var $=__read(O,3),x=$[1],C=$[2];return R.Process.success({protocol:x,urlWithoutProtocol:C})}return R.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"".concat(w.protocol,"://").concat(removeHttp(w.urlWithoutProtocol))}},TabHeader:function TabHeader(){var w=(0,I.useI18n)();return C.createElement(G.IconLabel,{icon:"globe"},w("Sitegeist.Archaeopteryx:LinkTypes.Web:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(G.IconCard,{icon:"external-link",title:"".concat(S.protocol,"://").concat(removeHttp(S.urlWithoutProtocol))})},Editor:function Editor(w){var S,O=w.model,$=__read((0,j.useState)(""),2),x=$[0],W=$[1],G=(0,I.useI18n)();return C.createElement("div",null,C.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:Web.urlWithoutProtocol"},G("Sitegeist.Archaeopteryx:LinkTypes.Web:label.link"),":"),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},C.createElement(R.Field,{name:"protocol",format:function format(w){return void 0===w&&""===w||W(w),void 0===w&&(0,N.useForm)().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",x),w},initialValue:null!==(S=null==O?void 0:O.protocol)&&void 0!==S?S:"https",validate:function validate(w){if(!w)return G("Sitegeist.Archaeopteryx:LinkTypes.Web:protocol.validation.required")}},(function(w){var S=w.input;return C.createElement(k.SelectBox,{onValueChange:S.onChange,allowEmpty:!1,value:S.value,options:[{value:"https",label:"HTTPS",icon:"lock"},{value:"http",label:"HTTP",icon:"unlock"}]})})),C.createElement(R.Field,{name:"urlWithoutProtocol",initialValue:null==O?void 0:O.urlWithoutProtocol,format:function format(w){var S=null==w?void 0:w.match(/^(https?):\/\/(.*)$/);return S?__read(S,3)[2]:w},parse:function parse(w){var S=null==w?void 0:w.match(/^(https?):\/\/(.*)$/);if(S){var O=__read(S,3),$=O[1],x=O[2];return(0,N.useForm)().change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",$),x}return w},validate:function validate(w){if(!w)return G("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.validation.required")}},(function(w){var S=w.input;return C.createElement(k.TextInput,__assign({id:S.name,type:"text",placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.placeholder")},S))}))))}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fetchWithErrorHandling=void 0;var $=O(155);Object.defineProperty(S,"fetchWithErrorHandling",{enumerable:!0,get:function get(){return $.fetchWithErrorHandling}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fetchWithErrorHandling=void 0;var $=O(107);S.fetchWithErrorHandling=$.fetchWithErrorHandling},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useAssetSummary=S.useI18n=S.useSelector=S.useRoutes=S.useConfiguration=S.useGlobalRegistry=S.useNeos=S.NeosContext=S.usePersonalWorkspaceName=S.useDimensionValues=S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var $=O(157);Object.defineProperty(S,"ContextPath",{enumerable:!0,get:function get(){return $.ContextPath}}),Object.defineProperty(S,"useSiteNodeContextPath",{enumerable:!0,get:function get(){return $.useSiteNodeContextPath}}),Object.defineProperty(S,"useDocumentNodeContextPath",{enumerable:!0,get:function get(){return $.useDocumentNodeContextPath}}),Object.defineProperty(S,"useDimensionValues",{enumerable:!0,get:function get(){return $.useDimensionValues}}),Object.defineProperty(S,"usePersonalWorkspaceName",{enumerable:!0,get:function get(){return $.usePersonalWorkspaceName}});var x=O(161);Object.defineProperty(S,"NeosContext",{enumerable:!0,get:function get(){return x.NeosContext}}),Object.defineProperty(S,"useNeos",{enumerable:!0,get:function get(){return x.useNeos}}),Object.defineProperty(S,"useGlobalRegistry",{enumerable:!0,get:function get(){return x.useGlobalRegistry}}),Object.defineProperty(S,"useConfiguration",{enumerable:!0,get:function get(){return x.useConfiguration}}),Object.defineProperty(S,"useRoutes",{enumerable:!0,get:function get(){return x.useRoutes}}),Object.defineProperty(S,"useSelector",{enumerable:!0,get:function get(){return x.useSelector}}),Object.defineProperty(S,"useI18n",{enumerable:!0,get:function get(){return x.useI18n}});var C=O(165);Object.defineProperty(S,"useAssetSummary",{enumerable:!0,get:function get(){return C.useAssetSummary}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.usePersonalWorkspaceName=S.useDimensionValues=S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var $=O(158);Object.defineProperty(S,"ContextPath",{enumerable:!0,get:function get(){return $.ContextPath}}),Object.defineProperty(S,"useSiteNodeContextPath",{enumerable:!0,get:function get(){return $.useSiteNodeContextPath}}),Object.defineProperty(S,"useDocumentNodeContextPath",{enumerable:!0,get:function get(){return $.useDocumentNodeContextPath}});var x=O(159);Object.defineProperty(S,"useDimensionValues",{enumerable:!0,get:function get(){return x.useDimensionValues}});var C=O(160);Object.defineProperty(S,"usePersonalWorkspaceName",{enumerable:!0,get:function get(){return C.usePersonalWorkspaceName}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__values=function(w){var S="function"==typeof Symbol&&Symbol.iterator,O=S&&w[S],$=0;if(O)return O.call(w);if(w&&"number"==typeof w.length)return{next:function next(){return w&&$>=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(S,"__esModule",{value:!0}),S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var C=__importStar(O(0)),j=O(73),N=function(){function ContextPath(w,S){this.path=w,this.context=S}return ContextPath.fromString=function(w){var S=__read((null!=w?w:"").split("@"),2),O=S[0],$=S[1];return O&&w?new ContextPath(O,$):null},ContextPath.prototype.adopt=function(w){var S=__read((null!=w?w:"").split("@"),1)[0];return S?new ContextPath(S,this.context):null},ContextPath.prototype.getIntermediateContextPaths=function(w){var S,O;if(w.path.startsWith(this.path)){var $=w.path.split("/"),x=[];try{for(var C=__values($.entries()),j=C.next();!j.done;j=C.next()){var N=__read(j.value,1)[0],k=$.slice(0,-N).join("/");if(k&&x.push(new ContextPath(k,this.context)),k===this.path)break}}catch(w){S={error:w}}finally{try{j&&!j.done&&(O=C.return)&&O.call(C)}finally{if(S)throw S.error}}return x}return[]},ContextPath.prototype.equals=function(w){return this.path===w.path&&this.context===w.context},ContextPath.prototype.toString=function(){return"".concat(this.path,"@").concat(this.context)},Object.defineProperty(ContextPath.prototype,"depth",{get:function get(){var w,S;return null!==(S=null===(w=this.path.match(/\//g))||void 0===w?void 0:w.length)&&void 0!==S?S:0},enumerable:!1,configurable:!0}),ContextPath}();S.ContextPath=N,S.useSiteNodeContextPath=function useSiteNodeContextPath(){var w=(0,j.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.nodes)||void 0===O?void 0:O.siteNode}));return C.useMemo((function(){return w?N.fromString(w):null}),[w])},S.useDocumentNodeContextPath=function useDocumentNodeContextPath(){var w=(0,j.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.nodes)||void 0===O?void 0:O.documentNode}));return C.useMemo((function(){return w?N.fromString(w):null}),[w])}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useDimensionValues=void 0;var $=O(73);S.useDimensionValues=function useDimensionValues(){var w=(0,$.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.contentDimensions)||void 0===O?void 0:O.active}));return null!=w?w:null}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.usePersonalWorkspaceName=void 0;var $=O(73);S.usePersonalWorkspaceName=function usePersonalWorkspaceName(){var w=(0,$.useSelector)((function(w){var S,O,$;return null===($=null===(O=null===(S=w.cr)||void 0===S?void 0:S.workspaces)||void 0===O?void 0:O.personalWorkspace)||void 0===$?void 0:$.name}));return null!=w?w:null}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useI18n=S.useSelector=S.useNeos=S.NeosContext=S.useRoutes=S.useConfiguration=S.useGlobalRegistry=void 0;var $=O(108);Object.defineProperty(S,"useGlobalRegistry",{enumerable:!0,get:function get(){return $.useGlobalRegistry}});var x=O(162);Object.defineProperty(S,"useConfiguration",{enumerable:!0,get:function get(){return x.useConfiguration}});var C=O(163);Object.defineProperty(S,"useRoutes",{enumerable:!0,get:function get(){return C.useRoutes}});var j=O(67);Object.defineProperty(S,"NeosContext",{enumerable:!0,get:function get(){return j.NeosContext}}),Object.defineProperty(S,"useNeos",{enumerable:!0,get:function get(){return j.useNeos}});var N=O(73);Object.defineProperty(S,"useSelector",{enumerable:!0,get:function get(){return N.useSelector}});var k=O(164);Object.defineProperty(S,"useI18n",{enumerable:!0,get:function get(){return k.useI18n}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useConfiguration=void 0;var $=O(67);S.useConfiguration=function useConfiguration(w){var S=(0,$.useNeos)();return w?w(S.configuration):S.configuration}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useRoutes=void 0;var $=O(67);S.useRoutes=function useRoutes(w){var S=(0,$.useNeos)();if(S.routes)return w?w(S.routes):S.routes}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.useI18n=void 0;var C=__importStar(O(0)),j=O(108);S.useI18n=function useI18n(){var w=(0,j.useGlobalRegistry)().get("i18n");return C.useMemo((function(){return function(S,O,$,x,C,j){return void 0===$&&($={}),void 0===x&&(x="Neos.Neos"),void 0===C&&(C="Main"),void 0===j&&(j=0),w.translate(S,O,$,x,C,j)}}),[w])}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useAssetSummary=void 0;var $=O(166);Object.defineProperty(S,"useAssetSummary",{enumerable:!0,get:function get(){return $.useAssetSummary}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=0;){if($[S]===w){O.deleteRule(S);break}S--}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.divWrapper=void 0;var $=O(5),x=$.__importStar(O(0)),C=$.__importDefault(O(170)),j=x.createElement,noWrap=function(w,S,O,x){var C;return j(w,S?$.__assign(((C={})[S]=x,C),O):$.__assign($.__assign({},x),O))};S.divWrapper=function(w,S,O,$){return j("div",null,noWrap(w,S,O,$))};S.default=function(w,S,O){void 0===O&&(O=noWrap);var enhancer=function($,x,N){void 0===x&&(x=S),void 0===N&&(N=null);var k="string"==typeof $;if(k)return function(w){return enhancer(w,$||S,x)};var Enhanced=function(S){return j(w,N,(function(w){return O($,x,S,w)}))};return k?C.default(Enhanced):Enhanced};return enhancer}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5).__importDefault(O(171));S.default=function(w){return!w.prototype?$.default(w):w}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5),x=$.__importStar(O(0));S.default=function(w){return function(S){function class_1(){return null!==S&&S.apply(this,arguments)||this}return $.__extends(class_1,S),class_1.prototype.render=function(){return w(this.props,this.context)},class_1}(x.Component)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5).__importDefault(O(109)),defaultMapPropsToArgs=function(w){return[w]};S.default=function(w,S){return void 0===S&&(S=defaultMapPropsToArgs),function(O){return $.default(O,w.apply(void 0,S(O)))}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.endpoints=void 0;var $=O(174);Object.defineProperty(S,"endpoints",{enumerable:!0,get:function get(){return $.endpoints}})},function(w,S,O){"use strict";var __importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.endpoints=void 0;var $=__importDefault(O(107));S.endpoints=function endpoints(){return $.default.get().endpoints}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Process=void 0,S.Process=__importStar(O(176))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fromAsyncState=S.success=S.error=S.busy=void 0;var $={busy:!0,error:null,result:null};S.busy=function busy(){return $},S.error=function error(w){return{busy:!1,error:w,result:null}},S.success=function success(w){return{busy:!1,error:null,result:w}},S.fromAsyncState=function fromAsyncState(w){var S,O;return{busy:w.loading,error:null!==(S=w.error)&&void 0!==S?S:null,result:null!==(O=w.value)&&void 0!==O?O:null}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.EditorEnvelope=S.FieldGroup=S.Field=void 0;var $=O(178);Object.defineProperty(S,"Field",{enumerable:!0,get:function get(){return $.Field}}),Object.defineProperty(S,"FieldGroup",{enumerable:!0,get:function get(){return $.FieldGroup}});var x=O(179);Object.defineProperty(S,"EditorEnvelope",{enumerable:!0,get:function get(){return x.EditorEnvelope}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.FieldGroup=S.Field=void 0;var C=__importStar(O(0)),j=O(70),N=C.createContext(null);S.Field=function Field(w){var S=C.useContext(N),O=null!==S?"".concat(S,".").concat(w.name):w.name;return C.createElement(j.Field,__assign({},w,{name:O}))};S.FieldGroup=function FieldGroup(w){return C.createElement(N.Provider,{value:w.prefix},w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.EditorEnvelope=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(183),I=N.default.div(C||(C=__makeTemplateObject(["\n ul, li {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n"],["\n ul, li {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n"])));S.EditorEnvelope=function EditorEnvelope(w){return j.createElement(I,null,j.createElement(k.EditorEnvelope,{identifier:"Sitegeist-Archaeopteryx-".concat(w.input.name),label:w.label,editor:w.editor,options:w.editorOptions,validationErrors:w.meta.dirty&&w.meta.error?[w.meta.error]:[],value:w.input.value,commit:w.input.onChange}))}},function(w,S,O){"use strict";var $=60103,x=60106,C=60107,j=60108,N=60114,k=60109,I=60110,R=60112,W=60113,G=60120,J=60115,re=60116,ie=60121,oe=60122,ue=60117,ce=60129,se=60131;if("function"==typeof Symbol&&Symbol.for){var de=Symbol.for;$=de("react.element"),x=de("react.portal"),C=de("react.fragment"),j=de("react.strict_mode"),N=de("react.profiler"),k=de("react.provider"),I=de("react.context"),R=de("react.forward_ref"),W=de("react.suspense"),G=de("react.suspense_list"),J=de("react.memo"),re=de("react.lazy"),ie=de("react.block"),oe=de("react.server.block"),ue=de("react.fundamental"),ce=de("react.debug_trace_mode"),se=de("react.legacy_hidden")}function y(w){if("object"==typeof w&&null!==w){var S=w.$$typeof;switch(S){case $:switch(w=w.type){case C:case N:case j:case W:case G:return w;default:switch(w=w&&w.$$typeof){case I:case R:case re:case J:case k:return w;default:return S}}case x:return S}}}var le=k,he=$,ye=R,ve=C,ge=re,Se=J,Pe=x,Ce=N,Ie=j,Me=W;S.ContextConsumer=I,S.ContextProvider=le,S.Element=he,S.ForwardRef=ye,S.Fragment=ve,S.Lazy=ge,S.Memo=Se,S.Portal=Pe,S.Profiler=Ce,S.StrictMode=Ie,S.Suspense=Me,S.isAsyncMode=function(){return!1},S.isConcurrentMode=function(){return!1},S.isContextConsumer=function(w){return y(w)===I},S.isContextProvider=function(w){return y(w)===k},S.isElement=function(w){return"object"==typeof w&&null!==w&&w.$$typeof===$},S.isForwardRef=function(w){return y(w)===R},S.isFragment=function(w){return y(w)===C},S.isLazy=function(w){return y(w)===re},S.isMemo=function(w){return y(w)===J},S.isPortal=function(w){return y(w)===x},S.isProfiler=function(w){return y(w)===N},S.isStrictMode=function(w){return y(w)===j},S.isSuspense=function(w){return y(w)===W},S.isValidElementType=function(w){return"string"==typeof w||"function"==typeof w||w===C||w===N||w===ce||w===j||w===W||w===G||w===se||"object"==typeof w&&null!==w&&(w.$$typeof===re||w.$$typeof===J||w.$$typeof===k||w.$$typeof===I||w.$$typeof===R||w.$$typeof===ue||w.$$typeof===ie||w[0]===oe)},S.typeOf=y},function(w,S,O){"use strict";w.exports=O(182)},function(w,S,O){"use strict";var $="function"==typeof Symbol&&Symbol.for,x=$?Symbol.for("react.element"):60103,C=$?Symbol.for("react.portal"):60106,j=$?Symbol.for("react.fragment"):60107,N=$?Symbol.for("react.strict_mode"):60108,k=$?Symbol.for("react.profiler"):60114,I=$?Symbol.for("react.provider"):60109,R=$?Symbol.for("react.context"):60110,W=$?Symbol.for("react.async_mode"):60111,G=$?Symbol.for("react.concurrent_mode"):60111,J=$?Symbol.for("react.forward_ref"):60112,re=$?Symbol.for("react.suspense"):60113,ie=$?Symbol.for("react.suspense_list"):60120,oe=$?Symbol.for("react.memo"):60115,ue=$?Symbol.for("react.lazy"):60116,ce=$?Symbol.for("react.block"):60121,se=$?Symbol.for("react.fundamental"):60117,de=$?Symbol.for("react.responder"):60118,le=$?Symbol.for("react.scope"):60119;function z(w){if("object"==typeof w&&null!==w){var S=w.$$typeof;switch(S){case x:switch(w=w.type){case W:case G:case j:case k:case N:case re:return w;default:switch(w=w&&w.$$typeof){case R:case J:case ue:case oe:case I:return w;default:return S}}case C:return S}}}function A(w){return z(w)===G}S.AsyncMode=W,S.ConcurrentMode=G,S.ContextConsumer=R,S.ContextProvider=I,S.Element=x,S.ForwardRef=J,S.Fragment=j,S.Lazy=ue,S.Memo=oe,S.Portal=C,S.Profiler=k,S.StrictMode=N,S.Suspense=re,S.isAsyncMode=function(w){return A(w)||z(w)===W},S.isConcurrentMode=A,S.isContextConsumer=function(w){return z(w)===R},S.isContextProvider=function(w){return z(w)===I},S.isElement=function(w){return"object"==typeof w&&null!==w&&w.$$typeof===x},S.isForwardRef=function(w){return z(w)===J},S.isFragment=function(w){return z(w)===j},S.isLazy=function(w){return z(w)===ue},S.isMemo=function(w){return z(w)===oe},S.isPortal=function(w){return z(w)===C},S.isProfiler=function(w){return z(w)===k},S.isStrictMode=function(w){return z(w)===N},S.isSuspense=function(w){return z(w)===re},S.isValidElementType=function(w){return"string"==typeof w||"function"==typeof w||w===j||w===G||w===k||w===N||w===re||w===ie||"object"==typeof w&&null!==w&&(w.$$typeof===ue||w.$$typeof===oe||w.$$typeof===I||w.$$typeof===R||w.$$typeof===J||w.$$typeof===se||w.$$typeof===de||w.$$typeof===le||w.$$typeof===ce)},S.typeOf=z},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("NeosProjectPackages")().NeosUiEditors},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var $=O(185);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return $.makeLinkType}}),Object.defineProperty(S,"useLinkTypes",{enumerable:!0,get:function get(){return $.useLinkTypes}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return $.useLinkTypeForHref}}),Object.defineProperty(S,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return $.useSortedAndFilteredLinkTypes}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__spreadArray=function(w,S,O){if(O||2===arguments.length)for(var $,x=0,C=S.length;x=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var C=__importStar(O(0)),j=O(74),N=__importDefault(O(235)),k=O(12),I=O(125);function useLinkTypes(){var w,S;return null!==(S=null===(w=(0,k.useGlobalRegistry)().get("@sitegeist/archaeopteryx/link-types"))||void 0===w?void 0:w.getAllAsList())&&void 0!==S?S:[]}S.makeLinkType=function makeLinkType(w,S){var O,$,x=S({createError:function createError(S,O){return O?new j.VError(O,"[".concat(w,"]: ").concat(S)):new j.VError("[".concat(w,"]: ").concat(S))}});return __assign(__assign({id:w,supportedLinkOptions:[]},x),{LoadingPreview:null!==(O=x.LoadingPreview)&&void 0!==O?O:function(){return C.createElement("div",{},"Loading...")},LoadingEditor:null!==($=x.LoadingEditor)&&void 0!==$?$:function(){return C.createElement("div",{},"Loading...")}})},S.useLinkTypes=useLinkTypes,S.useLinkTypeForHref=function useLinkTypeForHref(w){var S=useLinkTypes();return C.useMemo((function(){var O,$;if(null===w)return null;try{for(var x=__values(__spreadArray([],__read(S),!1).reverse()),C=x.next();!C.done;C=x.next()){var j=C.value;if(j.isSuitableFor({href:w}))return j}}catch(w){O={error:w}}finally{try{C&&!C.done&&($=x.return)&&$.call(x)}finally{if(O)throw O.error}}return null}),[S,w])},S.useSortedAndFilteredLinkTypes=function useSortedAndFilteredLinkTypes(){var w=useLinkTypes(),S=(0,I.useEditorState)().editorOptions,O=w.map((function(w){var O;return{linkType:w,options:null===(O=S.linkTypes)||void 0===O?void 0:O[w.id]}}));return(0,N.default)(O,(function(w){var S=w.options;return null==S?void 0:S.position})).filter((function(w){var S=w.options;return!S||!("enabled"in S)||S.enabled})).map((function(w){return w.linkType}))}},function(w,S,O){(function(S,$){var x=O(111),C=O(220).Stream,j=O(76),N=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(w){return w.charAt(0).toUpperCase()+w.slice(1)}function _toss(w,S,O,$,C){throw new x.AssertionError({message:j.format("%s (%s) is required",w,S),actual:void 0===C?typeof $:C($),expected:S,operator:O||"===",stackStartFunction:_toss.caller})}function _getClass(w){return Object.prototype.toString.call(w).slice(8,-1)}function noop(){}var k={bool:{check:function(w){return"boolean"==typeof w}},func:{check:function(w){return"function"==typeof w}},string:{check:function(w){return"string"==typeof w}},object:{check:function(w){return"object"==typeof w&&null!==w}},number:{check:function(w){return"number"==typeof w&&!isNaN(w)}},finite:{check:function(w){return"number"==typeof w&&!isNaN(w)&&isFinite(w)}},buffer:{check:function(w){return S.isBuffer(w)},operator:"Buffer.isBuffer"},array:{check:function(w){return Array.isArray(w)},operator:"Array.isArray"},stream:{check:function(w){return w instanceof C},operator:"instanceof",actual:_getClass},date:{check:function(w){return w instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(w){return w instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(w){return"string"==typeof w&&N.test(w)},operator:"isUUID"}};w.exports=function _setExports(w){var S,O=Object.keys(k);return S=$.env.NODE_NDEBUG?noop:function(w,S){w||_toss(S,"true",w)},O.forEach((function(O){if(w)S[O]=noop;else{var $=k[O];S[O]=function(w,S){$.check(w)||_toss(S,O,$.operator,w,$.actual)}}})),O.forEach((function(O){var $="optional"+_capitalize(O);if(w)S[$]=noop;else{var x=k[O];S[$]=function(w,S){null!=w&&(x.check(w)||_toss(S,O,x.operator,w,x.actual))}}})),O.forEach((function(O){var $="arrayOf"+_capitalize(O);if(w)S[$]=noop;else{var x=k[O],C="["+O+"]";S[$]=function(w,S){var O;for(Array.isArray(w)||_toss(S,C,x.operator,w,x.actual),O=0;O0?j-4:j;for(O=0;O>16&255,k[I++]=S>>8&255,k[I++]=255&S;2===N&&(S=x[w.charCodeAt(O)]<<2|x[w.charCodeAt(O+1)]>>4,k[I++]=255&S);1===N&&(S=x[w.charCodeAt(O)]<<10|x[w.charCodeAt(O+1)]<<4|x[w.charCodeAt(O+2)]>>2,k[I++]=S>>8&255,k[I++]=255&S);return k},S.fromByteArray=function fromByteArray(w){for(var S,O=w.length,x=O%3,C=[],j=0,N=O-x;jN?N:j+16383));1===x?(S=w[O-1],C.push($[S>>2]+$[S<<4&63]+"==")):2===x&&(S=(w[O-2]<<8)+w[O-1],C.push($[S>>10]+$[S>>4&63]+$[S<<2&63]+"="));return C.join("")};for(var $=[],x=[],C="undefined"!=typeof Uint8Array?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0,k=j.length;N0)throw new Error("Invalid string. Length must be a multiple of 4");var O=w.indexOf("=");return-1===O&&(O=S),[O,O===S?0:4-O%4]}function encodeChunk(w,S,O){for(var x,C,j=[],N=S;N>18&63]+$[C>>12&63]+$[C>>6&63]+$[63&C]);return j.join("")}x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63},function(w,S){S.read=function(w,S,O,$,x){var C,j,N=8*x-$-1,k=(1<>1,R=-7,W=O?x-1:0,G=O?-1:1,J=w[S+W];for(W+=G,C=J&(1<<-R)-1,J>>=-R,R+=N;R>0;C=256*C+w[S+W],W+=G,R-=8);for(j=C&(1<<-R)-1,C>>=-R,R+=$;R>0;j=256*j+w[S+W],W+=G,R-=8);if(0===C)C=1-I;else{if(C===k)return j?NaN:1/0*(J?-1:1);j+=Math.pow(2,$),C-=I}return(J?-1:1)*j*Math.pow(2,C-$)},S.write=function(w,S,O,$,x,C){var j,N,k,I=8*C-x-1,R=(1<>1,G=23===x?Math.pow(2,-24)-Math.pow(2,-77):0,J=$?0:C-1,re=$?1:-1,ie=S<0||0===S&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(N=isNaN(S)?1:0,j=R):(j=Math.floor(Math.log(S)/Math.LN2),S*(k=Math.pow(2,-j))<1&&(j--,k*=2),(S+=j+W>=1?G/k:G*Math.pow(2,1-W))*k>=2&&(j++,k/=2),j+W>=R?(N=0,j=R):j+W>=1?(N=(S*k-1)*Math.pow(2,x),j+=W):(N=S*Math.pow(2,W-1)*Math.pow(2,x),j=0));x>=8;w[O+J]=255&N,J+=re,N/=256,x-=8);for(j=j<0;w[O+J]=255&j,J+=re,j/=256,I-=8);w[O+J-re]|=128*ie}},function(w,S,O){"use strict";var $=O(190);w.exports=function getPolyfill(){return Object.assign?function(){if(!Object.assign)return!1;for(var w="abcdefghijklmnopqrst",S=w.split(""),O={},$=0;$0&&!x.call(w,0))for(var re=0;re0)for(var ie=0;ie-1?x([O]):O}},function(w,S,O){"use strict";var $=O(95),x=O(195),C=O(196),j=O(197),N=O(198),k=O(199),I=O(114),R=O(200),W=O(201),G=O(202),J=O(203),re=O(204),ie=O(205),oe=O(206),ue=O(207),ce=Function,getEvalledConstructor=function(w){try{return ce('"use strict"; return ('+w+").constructor;")()}catch(w){}},se=O(115),de=O(210),throwTypeError=function(){throw new I},le=se?function(){try{return throwTypeError}catch(w){try{return se(arguments,"callee").get}catch(w){return throwTypeError}}}():throwTypeError,he=O(211)(),ye=O(212),ve=O(117),ge=O(116),Se=O(119),Pe=O(96),Ce={},Ie="undefined"!=typeof Uint8Array&&ye?ye(Uint8Array):void 0,Me={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":he&&ye?ye([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":Ce,"%AsyncGenerator%":Ce,"%AsyncGeneratorFunction%":Ce,"%AsyncIteratorPrototype%":Ce,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":x,"%eval%":eval,"%EvalError%":C,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":ce,"%GeneratorFunction%":Ce,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":he&&ye?ye(ye([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&he&&ye?ye((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":$,"%Object.getOwnPropertyDescriptor%":se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":j,"%ReferenceError%":N,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&he&&ye?ye((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":he&&ye?ye(""[Symbol.iterator]()):void 0,"%Symbol%":he?Symbol:void 0,"%SyntaxError%":k,"%ThrowTypeError%":le,"%TypedArray%":Ie,"%TypeError%":I,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":R,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":Pe,"%Function.prototype.apply%":Se,"%Object.defineProperty%":de,"%Object.getPrototypeOf%":ve,"%Math.abs%":W,"%Math.floor%":G,"%Math.max%":J,"%Math.min%":re,"%Math.pow%":ie,"%Math.round%":oe,"%Math.sign%":ue,"%Reflect.getPrototypeOf%":ge};if(ye)try{null.error}catch(w){var Fe=ye(ye(w));Me["%Error.prototype%"]=Fe}var Re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=O(75),Ue=O(217),Ge=De.call(Pe,Array.prototype.concat),He=De.call(Se,Array.prototype.splice),Ke=De.call(Pe,String.prototype.replace),Ze=De.call(Pe,String.prototype.slice),Qe=De.call(Pe,RegExp.prototype.exec),et=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tt=/\\(\\)?/g,rt=function stringToPath(w){var S=Ze(w,0,1),O=Ze(w,-1);if("%"===S&&"%"!==O)throw new k("invalid intrinsic syntax, expected closing `%`");if("%"===O&&"%"!==S)throw new k("invalid intrinsic syntax, expected opening `%`");var $=[];return Ke(w,et,(function(w,S,O,x){$[$.length]=O?Ke(x,tt,"$1"):S||w})),$},nt=function getBaseIntrinsic(w,S){var O,$=w;if(Ue(Re,$)&&($="%"+(O=Re[$])[0]+"%"),Ue(Me,$)){var x=Me[$];if(x===Ce&&(x=function doEval(w){var S;if("%AsyncFunction%"===w)S=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===w)S=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===w)S=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===w){var O=doEval("%AsyncGeneratorFunction%");O&&(S=O.prototype)}else if("%AsyncIteratorPrototype%"===w){var $=doEval("%AsyncGenerator%");$&&ye&&(S=ye($.prototype))}return Me[w]=S,S}($)),void 0===x&&!S)throw new I("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:O,name:$,value:x}}throw new k("intrinsic "+w+" does not exist!")};w.exports=function GetIntrinsic(w,S){if("string"!=typeof w||0===w.length)throw new I("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof S)throw new I('"allowMissing" argument must be a boolean');if(null===Qe(/^%?[^%]*%?$/,w))throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var O=rt(w),$=O.length>0?O[0]:"",x=nt("%"+$+"%",S),C=x.name,j=x.value,N=!1,R=x.alias;R&&($=R[0],He(O,Ge([0,1],R)));for(var W=1,G=!0;W=O.length){var oe=se(j,J);j=(G=!!oe)&&"get"in oe&&!("originalValue"in oe.get)?oe.get:j[J]}else G=Ue(j,J),j=j[J];G&&!N&&(Me[C]=j)}}return j}},function(w,S,O){"use strict";w.exports=Error},function(w,S,O){"use strict";w.exports=EvalError},function(w,S,O){"use strict";w.exports=RangeError},function(w,S,O){"use strict";w.exports=ReferenceError},function(w,S,O){"use strict";w.exports=SyntaxError},function(w,S,O){"use strict";w.exports=URIError},function(w,S,O){"use strict";w.exports=Math.abs},function(w,S,O){"use strict";w.exports=Math.floor},function(w,S,O){"use strict";w.exports=Math.max},function(w,S,O){"use strict";w.exports=Math.min},function(w,S,O){"use strict";w.exports=Math.pow},function(w,S,O){"use strict";w.exports=Math.round},function(w,S,O){"use strict";var $=O(208);w.exports=function sign(w){return $(w)||0===w?w:w<0?-1:1}},function(w,S,O){"use strict";w.exports=Number.isNaN||function isNaN(w){return w!=w}},function(w,S,O){"use strict";w.exports=Object.getOwnPropertyDescriptor},function(w,S,O){"use strict";var $=Object.defineProperty||!1;if($)try{$({},"a",{value:1})}catch(w){$=!1}w.exports=$},function(w,S,O){"use strict";var $="undefined"!=typeof Symbol&&Symbol,x=O(113);w.exports=function hasNativeSymbols(){return"function"==typeof $&&("function"==typeof Symbol&&("symbol"==typeof $("foo")&&("symbol"==typeof Symbol("bar")&&x())))}},function(w,S,O){"use strict";var $=O(116),x=O(117),C=O(213);w.exports=$?function getProto(w){return $(w)}:x?function getProto(w){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new TypeError("getProto: not an object");return x(w)}:C?function getProto(w){return C(w)}:null},function(w,S,O){"use strict";var $,x=O(118),C=O(115);try{$=[].__proto__===Array.prototype}catch(w){if(!w||"object"!=typeof w||!("code"in w)||"ERR_PROTO_ACCESS"!==w.code)throw w}var j=!!$&&C&&C(Object.prototype,"__proto__"),N=Object,k=N.getPrototypeOf;w.exports=j&&"function"==typeof j.get?x([j.get]):"function"==typeof k&&function getDunder(w){return k(null==w?w:N(w))}},function(w,S,O){"use strict";var $="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,C=Math.max,j=function concatty(w,S){for(var O=[],$=0;$0?this.tail.next=S:this.head=S,this.tail=S,++this.length},BufferList.prototype.unshift=function unshift(w){var S={data:w,next:this.head};0===this.length&&(this.tail=S),this.head=S,++this.length},BufferList.prototype.shift=function shift(){if(0!==this.length){var w=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,w}},BufferList.prototype.clear=function clear(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function join(w){if(0===this.length)return"";for(var S=this.head,O=""+S.data;S=S.next;)O+=w+S.data;return O},BufferList.prototype.concat=function concat(w){if(0===this.length)return $.alloc(0);for(var S,O,x,C=$.allocUnsafe(w>>>0),j=this.head,N=0;j;)S=j.data,O=C,x=N,S.copy(O,x),N+=j.data.length,j=j.next;return C},BufferList}(),x&&x.inspect&&x.inspect.custom&&(w.exports.prototype[x.inspect.custom]=function(){var w=x.inspect({length:this.length});return this.constructor.name+" "+w})},function(w,S){},function(w,S,O){(function(w){var $=void 0!==w&&w||"undefined"!=typeof self&&self||window,x=Function.prototype.apply;function Timeout(w,S){this._id=w,this._clearFn=S}S.setTimeout=function(){return new Timeout(x.call(setTimeout,$,arguments),clearTimeout)},S.setInterval=function(){return new Timeout(x.call(setInterval,$,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(w){w&&w.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call($,this._id)},S.enroll=function(w,S){clearTimeout(w._idleTimeoutId),w._idleTimeout=S},S.unenroll=function(w){clearTimeout(w._idleTimeoutId),w._idleTimeout=-1},S._unrefActive=S.active=function(w){clearTimeout(w._idleTimeoutId);var S=w._idleTimeout;S>=0&&(w._idleTimeoutId=setTimeout((function onTimeout(){w._onTimeout&&w._onTimeout()}),S))},O(225),S.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==w&&w.setImmediate||this&&this.setImmediate,S.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==w&&w.clearImmediate||this&&this.clearImmediate}).call(this,O(46))},function(w,S,O){(function(w,S){!function(w,O){"use strict";if(!w.setImmediate){var $,x=1,C={},j=!1,N=w.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(w);k=k&&k.setTimeout?k:w,"[object process]"==={}.toString.call(w.process)?function installNextTickImplementation(){$=function(w){S.nextTick((function(){runIfPresent(w)}))}}():!function canUsePostMessage(){if(w.postMessage&&!w.importScripts){var S=!0,O=w.onmessage;return w.onmessage=function(){S=!1},w.postMessage("","*"),w.onmessage=O,S}}()?w.MessageChannel?function installMessageChannelImplementation(){var w=new MessageChannel;w.port1.onmessage=function(w){runIfPresent(w.data)},$=function(S){w.port2.postMessage(S)}}():N&&"onreadystatechange"in N.createElement("script")?function installReadyStateChangeImplementation(){var w=N.documentElement;$=function(S){var O=N.createElement("script");O.onreadystatechange=function(){runIfPresent(S),O.onreadystatechange=null,w.removeChild(O),O=null},w.appendChild(O)}}():function installSetTimeoutImplementation(){$=function(w){setTimeout(runIfPresent,0,w)}}():function installPostMessageImplementation(){var S="setImmediate$"+Math.random()+"$",onGlobalMessage=function(O){O.source===w&&"string"==typeof O.data&&0===O.data.indexOf(S)&&runIfPresent(+O.data.slice(S.length))};w.addEventListener?w.addEventListener("message",onGlobalMessage,!1):w.attachEvent("onmessage",onGlobalMessage),$=function(O){w.postMessage(S+O,"*")}}(),k.setImmediate=function setImmediate(w){"function"!=typeof w&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),O=0;O0)throw jsError(w,G,J,"uses non-zero precision (not supported)");switch(S.match(/-/)&&(N=!0),S.match(/0/)&&(k="0"),S.match(/\+/)&&(I=!0),j){case"s":if(null==R)throw jsError(w,G,J,"attempted to print undefined or null as a string (argument "+se+" to sprintf)");ce+=doPad(k,O,N,R.toString());break;case"d":R=Math.floor(R);case"f":ce+=(I=I&&R>0?"+":"")+doPad(k,O,N,R.toString());break;case"x":ce+=doPad(k,O,N,R.toString(16));break;case"j":0===O&&(O=10),ce+=x.inspect(R,!1,O);break;case"r":ce+=dumpException(R);break;default:throw jsError(w,G,J,"is not supported")}}else ce+="%";return ce+=ue}function jsError(w,S,O,x){return $.equal(typeof w,"string"),$.equal(typeof O,"string"),$.equal(typeof S,"number"),$.equal(typeof x,"string"),new Error('format string "'+w+'": conversion specifier "'+O+'" at character '+S+" "+x)}function jsFprintf(w){var S=Array.prototype.slice.call(arguments,1);return w.write(jsSprintf.apply(this,S))}function doPad(w,S,O,$){for(var x=$;x.length1&&void 0!==arguments[1]?arguments[1]:"position",O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",$="string"==typeof S?function(w){return w[S]}:S,x={},C={},j={},N={},k={},I={};w.forEach((function(w,S){var R=w[O]?w[O]:String(S);x[R]=S;var W=$(w),G=String(W||S),J=!1;if(G.startsWith("start")){var re=G.match(/start\s+(\d+)/),ie=re&&re[1]?Number(re[1]):0;j[ie]||(j[ie]=[]),j[ie].push(R)}else if(G.startsWith("end")){var oe=G.match(/end\s+(\d+)/),ue=oe&&oe[1]?Number(oe[1]):0;N[ue]||(N[ue]=[]),N[ue].push(R)}else if(G.startsWith("before")){var ce=G.match(/before\s+(\S+)(\s+(\d+))?/);if(ce){var se=ce[1],de=ce[3]?Number(ce[3]):0;k[se]||(k[se]={}),k[se][de]||(k[se][de]=[]),k[se][de].push(R)}else J=!0}else if(G.startsWith("after")){var le=G.match(/after\s+(\S+)(\s+(\d+))?/);if(le){var he=le[1],ye=le[3]?Number(le[3]):0;I[he]||(I[he]={}),I[he][ye]||(I[he][ye]=[]),I[he][ye].push(R)}else J=!0}else J=!0;if(J){var ve=parseFloat(G);!isNaN(ve)&&isFinite(ve)||(ve=S),C[ve]||(C[ve]=[]),C[ve].push(R)}}));var R=[],W=[],G=[],J=[],re=function sortedWeights(w,S){var O=Object.keys(w).map((function(w){return Number(w)})).sort((function(w,S){return w-S}));return S?O:O.reverse()},ie=function addToResults(w,S){w.forEach((function(w){if(!(J.indexOf(w)>=0)){if(J.push(w),k[w]){var O=re(k[w],!0),$=!0,x=!1,C=void 0;try{for(var j,N=O[Symbol.iterator]();!($=(j=N.next()).done);$=!0){var R=j.value;addToResults(k[w][R],S)}}catch(w){x=!0,C=w}finally{try{!$&&N.return&&N.return()}finally{if(x)throw C}}}if(S.push(w),I[w]){var W=re(I[w],!1),G=!0,ie=!1,oe=void 0;try{for(var ue,ce=W[Symbol.iterator]();!(G=(ue=ce.next()).done);G=!0){var se=ue.value;addToResults(I[w][se],S)}}catch(w){ie=!0,oe=w}finally{try{!G&&ce.return&&ce.return()}finally{if(ie)throw oe}}}}}))},oe=!0,ue=!1,ce=void 0;try{for(var se,de=re(j,!1)[Symbol.iterator]();!(oe=(se=de.next()).done);oe=!0){var le=se.value;ie(j[le],R)}}catch(w){ue=!0,ce=w}finally{try{!oe&&de.return&&de.return()}finally{if(ue)throw ce}}var he=!0,ye=!1,ve=void 0;try{for(var ge,Se=re(C,!0)[Symbol.iterator]();!(he=(ge=Se.next()).done);he=!0){var Pe=ge.value;ie(C[Pe],W)}}catch(w){ye=!0,ve=w}finally{try{!he&&Se.return&&Se.return()}finally{if(ye)throw ve}}var Ce=!0,Ie=!1,Me=void 0;try{for(var Fe,Re=re(N,!0)[Symbol.iterator]();!(Ce=(Fe=Re.next()).done);Ce=!0){var De=Fe.value;ie(N[De],G)}}catch(w){Ie=!0,Me=w}finally{try{!Ce&&Re.return&&Re.return()}finally{if(Ie)throw Me}}var Ue=!0,Ge=!1,He=void 0;try{for(var Ke,Ze=Object.keys(k)[Symbol.iterator]();!(Ue=(Ke=Ze.next()).done);Ue=!0){var Qe=Ke.value;if(!(J.indexOf(Qe)>=0)){var et=!0,tt=!1,rt=void 0;try{for(var nt,it=re(k[Qe],!1)[Symbol.iterator]();!(et=(nt=it.next()).done);et=!0){var ot=nt.value;ie(k[Qe][ot],R)}}catch(w){tt=!0,rt=w}finally{try{!et&&it.return&&it.return()}finally{if(tt)throw rt}}}}}catch(w){Ge=!0,He=w}finally{try{!Ue&&Ze.return&&Ze.return()}finally{if(Ge)throw He}}var at=!0,ut=!1,ct=void 0;try{for(var st,dt=Object.keys(I)[Symbol.iterator]();!(at=(st=dt.next()).done);at=!0){var lt=st.value;if(!(J.indexOf(lt)>=0)){var ft=!0,pt=!1,ht=void 0;try{for(var bt,yt=re(I[lt],!1)[Symbol.iterator]();!(ft=(bt=yt.next()).done);ft=!0){var vt=bt.value;ie(I[lt][vt],W)}}catch(w){pt=!0,ht=w}finally{try{!ft&&yt.return&&yt.return()}finally{if(pt)throw ht}}}}}catch(w){ut=!0,ct=w}finally{try{!at&&dt.return&&dt.return()}finally{if(ut)throw ct}}var mt=[].concat(R,W,G);return mt.map((function(w){return x[w]})).map((function(S){return w[S]}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.editorReducer=void 0;var C=__importStar(O(0)),j=O(126),N=O(289),k=O(287),I=__importStar(O(237)),R={enabledLinkOptions:[],editorOptions:{},isOpen:!1,initialValue:null};function editorReducer(w,S){switch(void 0===w&&(w=R),S.type){case(0,j.getType)(I.EditorWasOpened):return __assign(__assign({},S.payload),{isOpen:!0});case(0,j.getType)(I.EditorWasDismissed):case(0,j.getType)(I.ValueWasUnset):case(0,j.getType)(I.ValueWasApplied):return R;default:return w}}function createEditor(){var w=new N.Subject,S=function dispatch(S){return w.next(S)},O=new N.BehaviorSubject(R);w.pipe((0,k.scan)(editorReducer,R),(0,k.shareReplay)(1)).subscribe(O);return{state$:O,tx:{dismiss:function dismiss(){return S(I.EditorWasDismissed())},unset:function unset(){return S(I.ValueWasUnset())},apply:function apply(w){return S(I.ValueWasApplied(w))},editLink:function editLink(O,$,x){return void 0===$&&($=[]),void 0===x&&(x={}),new Promise((function(C){S(I.EditorWasOpened(O,$,x)),w.subscribe((function(w){switch(w.type){case(0,j.getType)(I.EditorWasDismissed):return C({change:!1});case(0,j.getType)(I.ValueWasUnset):return C({change:!0,value:null});case(0,j.getType)(I.ValueWasApplied):return C({change:!0,value:w.payload});default:return}}))}))}},initialState:R}}S.editorReducer=editorReducer,S.createEditor=createEditor,S.EditorContext=C.createContext(createEditor()),S.useEditorState=function useEditorState(){var w=C.useContext(S.EditorContext).state$,O=__read(C.useState(w.getValue()),2),$=O[0],x=O[1];return C.useEffect((function(){var S=w.subscribe(x);return function(){return S.unsubscribe()}}),[w]),$},S.useEditorTransactions=function useEditorTransactions(){return C.useContext(S.EditorContext).tx}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ValueWasApplied=S.ValueWasUnset=S.EditorWasDismissed=S.EditorWasOpened=void 0;var $=O(126);S.EditorWasOpened=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasOpened",(function(w,S,O){return void 0===O&&(O={}),{initialValue:w,enabledLinkOptions:S,editorOptions:O}}))(),S.EditorWasDismissed=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasDismissed")(),S.ValueWasUnset=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasUnset")(),S.ValueWasApplied=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasApplied",(function(w){return w}))()},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.IconCard=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(17),R=O(127),W=O(239),G=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"]))),J=k.default.span(j||(j=__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"])),(function(w){return w.span}));S.IconCard=function IconCard(w){return N.createElement(G,null,N.createElement(J,{span:w.subTitle?1:2},N.createElement(I.Icon,{icon:w.icon})),N.createElement(R.CardTitle,{span:w.subTitle?1:2},w.title),N.createElement(W.CardSubTitle,null,w.subTitle))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.CardSubTitle=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(128),I=N.default.span(C||(C=__makeTemplateObject(["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"],["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"])));S.CardSubTitle=function CardSubTitle(w){return j.createElement(I,null,j.createElement(k.Ellipsis,null,w.children))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.ImageCard=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(127),R=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"]))),W=k.default.img(j||(j=__makeTemplateObject(["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"],["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"])));S.ImageCard=function ImageCard(w){return N.createElement(R,null,N.createElement(W,{src:w.src}),N.createElement(I.CardTitle,{span:1},w.label))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Tabs=void 0;var C,j,N,k,I,R,W,G=__importStar(O(0)),J=__importStar(O(16)),re=J.default.ul(C||(C=__makeTemplateObject(["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"],["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"]))),ie=J.default.button(R||(R=__makeTemplateObject(["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"],["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"])),(function(w){return w.isActive?(0,J.css)(j||(j=__makeTemplateObject(["border-top: 2px solid #00adee;"],["border-top: 2px solid #00adee;"]))):(0,J.css)(N||(N=__makeTemplateObject(["border-top: 1px solid #3f3f3f;"],["border-top: 1px solid #3f3f3f;"])))}),(function(w){return w.isActive?(0,J.css)(k||(k=__makeTemplateObject(["border-bottom: 1px solid #222;"],["border-bottom: 1px solid #222;"]))):(0,J.css)(I||(I=__makeTemplateObject(["border-bottom: 1px solid #3f3f3f;"],["border-bottom: 1px solid #3f3f3f;"])))})),oe=J.default.div(W||(W=__makeTemplateObject(["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"],["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"])));S.Tabs=function Tabs(w){if(w.from.length<1)throw new Error("[Sitegeist.Archaeopteryx]: Tabs must have at least one item!");var S=G.createElement("header",null,G.createElement("nav",null,G.createElement(re,null,w.from.map((function(S){return G.createElement("li",{key:w.getKey(S)},G.createElement(ie,{type:"button",isActive:w.getKey(S)===w.activeItemKey,onClick:function onClick(){w.onSwitchTab&&w.onSwitchTab(w.getKey(S))}},w.renderHeader(S)))}))))),O=w.lazy?G.createElement("div",null,w.from.filter((function(S){return w.getKey(S)===w.activeItemKey})).map((function(S){return G.createElement(oe,{key:w.getKey(S)},w.renderPanel(S))}))):G.createElement("div",null,w.from.map((function(S){return G.createElement(oe,{key:w.getKey(S),hidden:w.getKey(S)!==w.activeItemKey},w.renderPanel(S))})));return G.createElement("div",null,S,O)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Form=void 0;var C,j,N,k=__importStar(O(0)),I=__importDefault(O(16)),R=I.default.form(C||(C=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),W=I.default.div(j||(j=__makeTemplateObject(["\n padding: 0 16px;\n"],["\n padding: 0 16px;\n"]))),G=I.default.div(N||(N=__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n"],["\n display: flex;\n justify-content: flex-end;\n"])));S.Form=function Form(w){return k.createElement(R,{onSubmit:w.onSubmit},k.createElement(W,null,w.renderBody()),k.createElement(G,null,w.renderActions()))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Modal=void 0;var C,j=__importStar(O(0)),N=__importStar(O(244)),k=__importDefault(O(16)),I=O(17),R=(0,k.default)(I.Dialog)(C||(C=__makeTemplateObject(['\n z-index: 100;\n\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'],['\n z-index: 100;\n\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'])));S.Modal=function Modal(w){return N.createPortal(j.createElement(R,{isOpen:!0,title:w.renderTitle(),onRequestClose:function onRequestClose(){},preventClosing:!0},w.renderBody()),document.body)}},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("vendor")().ReactDOM},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Deletable=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(17),R=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"],["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"]))),W=(0,k.default)(I.IconButton)(j||(j=__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"])));S.Deletable=function Deletable(w){return N.createElement(R,null,N.createElement("div",null,w.children),N.createElement(W,{icon:"trash",hoverStyle:"error",onClick:w.onDelete}))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.IconLabel=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(17),I=N.default.div(C||(C=__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n white-space: nowrap;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n white-space: nowrap;\n"])));S.IconLabel=function IconLabel(w){return j.createElement(I,null,j.createElement(k.Icon,{icon:w.icon}),w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Columns=S.Stack=S.Container=void 0;var $,x,C,j=__importDefault(O(16));S.Container=j.default.div($||($=__makeTemplateObject(["\n padding: 16px;\n"],["\n padding: 16px;\n"]))),S.Stack=j.default.div(x||(x=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),S.Columns=j.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"],["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"])))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Node=void 0;var $=O(249);Object.defineProperty(S,"Node",{enumerable:!0,get:function get(){return $.Node}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1] ");return $.default.createElement(k.IconCard,{icon:null!==(j=null===(O=re.value)||void 0===O?void 0:O.icon)&&void 0!==j?j:"ban",title:null!==(I=null===(N=re.value)||void 0===N?void 0:N.label)&&void 0!==I?I:"[".concat(W("Sitegeist.Archaeopteryx:LinkTypes.Node:labelOfNonExistingNode"),"]"),subTitle:null!=ie?ie:"node://".concat(w.nodeId)})};S.Node=(0,N.makeLinkType)("Sitegeist.Archaeopteryx:Node",(function(w){var S=w.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){return w.href.startsWith("node://")},useResolvedModel:function useResolvedModel(w){var O=/node:\/\/(.*)/.exec(w.href);if(!O)throw S('Cannot handle href "'.concat(w.href,'".'));var $=O[1];return I.Process.success({nodeId:$})},convertModelToLink:function convertModelToLink(w){var S=w.nodeId;return{href:"node://".concat(S)}},TabHeader:function TabHeader(){var w=(0,C.useI18n)();return $.default.createElement(k.IconLabel,{icon:"file"},w("Sitegeist.Archaeopteryx:LinkTypes.Node:title"))},Preview:function Preview(w){return $.default.createElement(W,{nodeId:w.model.nodeId})},Editor:function Editor(w){var O,x,N,k=w.model,R=w.options,W=(0,C.useI18n)(),G=(0,C.usePersonalWorkspaceName)(),J=(0,C.useDimensionValues)(),re=(0,C.useSiteNodeContextPath)(),ie=null!==(O=(0,C.useConfiguration)((function(w){var S;return null===(S=w.nodeTree)||void 0===S?void 0:S.loadingDepth})))&&void 0!==O?O:4,oe=null!==(x=(0,C.useSelector)((function(w){var S,O;return null===(O=null===(S=w.ui)||void 0===S?void 0:S.pageTree)||void 0===O?void 0:O.query})))&&void 0!==x?x:"",ue=null!==(N=(0,C.useSelector)((function(w){var S,O;return null===(O=null===(S=w.ui)||void 0===S?void 0:S.pageTree)||void 0===O?void 0:O.filterNodeType})))&&void 0!==N?N:"",ce=$.default.useMemo((function(){var w;return null!==(w=R.startingPoint)&&void 0!==w?w:null==re?void 0:re.path}),[R.startingPoint,re]);if(ce){if(G){if(J)return $.default.createElement(I.Field,{name:"nodeId",initialValue:null==k?void 0:k.nodeId,validate:function validate(w){if(!w)return W("Sitegeist.Archaeopteryx:LinkTypes.Node:node.validation.required")}},(function(w){var S,O,x,C=w.input;return $.default.createElement(j.Tree,{initialSearchTerm:oe,workspaceName:G,dimensionValues:J,startingPoint:ce,loadingDepth:null!==(S=R.loadingDepth)&&void 0!==S?S:ie,baseNodeTypeFilter:null!==(O=R.baseNodeType)&&void 0!==O?O:"Neos.Neos:Document",initialNarrowNodeTypeFilter:ue,linkableNodeTypes:R.allowedNodeTypes,selectedTreeNodeId:null!==(x=C.value)&&void 0!==x?x:void 0,options:{enableSearch:!0,enableNodeTypeFilter:!0},onSelect:function onSelect(w){C.onChange(w)}})}));throw S("Could not load node tree, because dimensionValues could not be determined.")}throw S("Could not load node tree, because workspaceName could not be determined.")}throw S("Could not load node tree, because startingPoint could not be determined.")}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var $=O(251);Object.defineProperty(S,"Tree",{enumerable:!0,get:function get(){return $.Tree}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var $=O(252);Object.defineProperty(S,"Tree",{enumerable:!0,get:function get(){return $.Tree}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var C=__importStar(O(0)),j=O(54),N=O(74),k=O(17),I=O(79),R=O(260),W=O(264),G=O(267),J=O(101);S.Tree=function Tree(w){var S,O,$,x,re,ie,oe=__read(C.useState(null!==(S=w.initialSearchTerm)&&void 0!==S?S:""),2),ue=oe[0],ce=oe[1],se=__read(C.useState(null!==(O=w.initialNarrowNodeTypeFilter)&&void 0!==O?O:""),2),de=se[0],le=se[1],he=(0,j.useAsync)((function(){return __awaiter(void 0,void 0,void 0,(function(){var S;return __generator(this,(function(O){switch(O.label){case 0:return[4,(0,J.getTree)({workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,startingPoint:w.startingPoint,loadingDepth:w.loadingDepth,baseNodeTypeFilter:w.baseNodeTypeFilter,linkableNodeTypes:w.linkableNodeTypes,selectedNodeId:w.selectedTreeNodeId,narrowNodeTypeFilter:de,searchTerm:ue})];case 1:if("success"in(S=O.sent()))return[2,S.success];if("error"in S)throw new N.VError(S.error.message);throw new N.VError("Something went wrong while fetching the tree.")}}))}))}),[w.workspaceName,w.dimensionValues,w.startingPoint,w.loadingDepth,w.baseNodeTypeFilter,w.linkableNodeTypes,de,ue]),ye=C.useCallback((function(S){w.onSelect(S)}),[]),ve=C.useCallback((function(w){ce(w)}),[]),ge=C.useCallback((function(w){le(w)}),[]);if(he.error)throw new N.VError((0,I.decodeError)(he.error),"NodeTree could not be loaded.");ie=he.loading||!he.value?C.createElement("div",null,"Loading..."):C.createElement(k.Tree,null,C.createElement(R.TreeNode,{workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,baseNodeTypeFilter:w.baseNodeTypeFilter,treeNode:he.value.root,selectedTreeNodeId:w.selectedTreeNodeId,level:1,onClick:ye}));var Se=null;(null===($=w.options)||void 0===$?void 0:$.enableSearch)&&(Se=C.createElement(W.Search,{initialValue:null!==(x=w.initialSearchTerm)&&void 0!==x?x:"",onChange:ve}));var Pe=null;return(null===(re=w.options)||void 0===re?void 0:re.enableNodeTypeFilter)&&(Pe=C.createElement(G.SelectNodeTypeFilter,{baseNodeTypeFilter:w.baseNodeTypeFilter,value:de,onChange:ge})),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",backgroundColor:"#141414",border:"1px solid #3f3f3f"}},Se?C.createElement("div",{style:{gridColumn:Pe?"1 / span 1":"1 / span 2"}},Se):null,Pe?C.createElement("div",{style:{gridColumn:Se?"2 / span 1":"1 / span 2"}},Pe):null,ie?C.createElement("div",{style:{marginTop:"-5px",borderTop:"1px solid #3f3f3f",gridColumn:"1 / span 2",height:"50vh",maxHeight:"300px",overflowY:"auto"}},ie):null)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.decodeError=S.ErrorBoundary=void 0;var $=O(254);Object.defineProperty(S,"ErrorBoundary",{enumerable:!0,get:function get(){return $.ErrorBoundary}});var x=O(259);Object.defineProperty(S,"decodeError",{enumerable:!0,get:function get(){return x.decodeError}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorBoundary=void 0;var C=__importStar(O(0)),j=O(255),N=O(74),k=O(256),I=function ErrorFallback(w){var S=Boolean(document.querySelector('[data-env^="Development"]'));return C.createElement(k.Alert,{title:"".concat(w.error.name)},C.createElement("div",null,w.error.message),w.error instanceof N.VError?C.createElement(R,{error:w.error,level:0}):null,S?C.createElement(k.Trace,{title:"Stacktrace"},w.error.stack):null)},R=function RecursiveCauseChain(w){return w.error?C.createElement(k.Trace,{title:"Cause: ".concat(w.error.name)},w.error.message,w.error instanceof N.VError&&w.level<10?C.createElement(RecursiveCauseChain,{error:w.error.cause(),level:w.level+1}):null):null};function logError(w,S){console.warn("[Sitegeist.Archaeopteryx::".concat(w.name,"]: An error occurred.")),console.error("[Sitegeist.Archaeopteryx::".concat(w.name,"]: "),w),console.error("[Sitegeist.Archaeopteryx::".concat(w.name,"]: Component Stack:"),S.componentStack)}S.ErrorBoundary=function ErrorBoundary(w){return C.createElement(j.ErrorBoundary,{fallbackRender:I,onError:logError},w.children)}},function(w,S,O){!function(w,S){"use strict";function _interopNamespace(w){if(w&&w.__esModule)return w;var S=Object.create(null);return w&&Object.keys(w).forEach((function(O){if("default"!==O){var $=Object.getOwnPropertyDescriptor(w,O);Object.defineProperty(S,O,$.get?$:{enumerable:!0,get:function(){return w[O]}})}})),S.default=w,Object.freeze(S)}var O=_interopNamespace(S);function _setPrototypeOf(w,S){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(w,S){return w.__proto__=S,w})(w,S)}var $={error:null},x=function(w){function ErrorBoundary(){for(var S,O=arguments.length,x=new Array(O),C=0;C * + * {\n margin-top: 8px;\n }\n"],["\n padding: 8px;\n background-color: #ff6a3c;\n color: #fff;\n\n > * + * {\n margin-top: 8px;\n }\n"]))),W=k.default.header(j||(j=__makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n"],["\n display: flex;\n gap: 8px;\n align-items: center;\n"])));S.Alert=function Alert(w){return N.createElement(R,{role:"alert"},N.createElement(W,null,N.createElement(I.Icon,{icon:"exclamation-triangle"}),w.title),w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Trace=void 0;var C,j,N,k=__importStar(O(0)),I=__importDefault(O(16)),R=I.default.details(C||(C=__makeTemplateObject(["\n"],["\n"]))),W=I.default.summary(j||(j=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),G=I.default.pre(N||(N=__makeTemplateObject(["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"],["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"])));S.Trace=function Trace(w){return k.createElement(R,null,k.createElement(W,null,w.title),k.createElement(G,null,w.children))}},function(w,S,O){"use strict";function decodeErrorMessage(w){var S;if(w.includes("")){var O=(new DOMParser).parseFromString(w,"text/html");return"[".concat(O.title,"] ").concat(null===(S=O.querySelector("h1"))||void 0===S?void 0:S.innerText)}return w}Object.defineProperty(S,"__esModule",{value:!0}),S.decodeError=void 0,S.decodeError=function decodeError(w){return w instanceof Error?(w.message=decodeErrorMessage(w.message),w):new Error(decodeErrorMessage(w))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeNode=void 0;var $=__importDefault(O(0)),x=O(17),C=O(101);S.TreeNode=function TreeNode(w){var O=w.selectedTreeNodeId===w.treeNode.nodeAggregateIdentifier,j=w.treeNode.children.length>0||w.treeNode.hasUnloadedChildren,N=__read($.default.useState(w.treeNode.hasUnloadedChildren),2),k=N[0],I=N[1],R=__read($.default.useState(!1),2),W=R[0],G=R[1],J=__read($.default.useState(w.treeNode.children),2),re=J[0],ie=J[1],oe=__read($.default.useState(!1),2),ue=oe[0],ce=oe[1],se=$.default.useMemo((function(){if(w.treeNode.hasScheduledDisabledState){var S=w.treeNode.isDisabled?"error":"primaryBlue";return $.default.createElement("span",{className:"fa-layers fa-fw"},$.default.createElement(x.Icon,{icon:w.treeNode.icon}),$.default.createElement(x.Icon,{icon:"circle",color:S,transform:"shrink-5 down-6 right-4"}),$.default.createElement(x.Icon,{icon:"clock",transform:"shrink-9 down-6 right-4"}))}return w.treeNode.isDisabled?$.default.createElement("span",{className:"fa-layers fa-fw"},$.default.createElement(x.Icon,{icon:w.treeNode.icon}),$.default.createElement(x.Icon,{icon:"circle",color:"error",transform:"shrink-3 down-6 right-4"}),$.default.createElement(x.Icon,{icon:"times",transform:"shrink-7 down-6 right-4"})):null}),[w.treeNode.hasScheduledDisabledState,w.treeNode.isDisabled,w.treeNode.icon]),de=$.default.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var S;return __generator(this,(function(O){switch(O.label){case 0:if(!k||!w.treeNode.hasUnloadedChildren||0!==re.length)return[3,5];G(!0),O.label=1;case 1:return O.trys.push([1,3,,4]),[4,(0,C.getChildrenForTreeNode)({workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,treeNodeId:w.treeNode.nodeAggregateIdentifier,nodeTypeFilter:w.baseNodeTypeFilter})];case 2:return"success"in(S=O.sent())&&ie(S.success.children),"error"in S&&ce(!0),[3,4];case 3:return O.sent(),ce(!0),[3,4];case 4:return G(!1),I(!1),[3,6];case 5:I((function(w){return!w})),O.label=6;case 6:return[2]}}))}))}),[w.workspaceName,w.dimensionValues,w.treeNode.nodeAggregateIdentifier,w.baseNodeTypeFilter,re.length]),le=$.default.useCallback((function(){w.treeNode.isMatchedByFilter&&w.treeNode.isLinkable&&w.onClick(w.treeNode.nodeAggregateIdentifier)}),[w.treeNode.isMatchedByFilter,w.treeNode.nodeAggregateIdentifier]);return $.default.createElement(x.Tree.Node,null,$.default.createElement(x.Tree.Node.Header,{labelIdentifier:"labelIdentifier",id:w.treeNode.nodeAggregateIdentifier,hasChildren:j,isLastChild:!0,isCollapsed:k,isActive:O,isFocused:O,isLoading:W,isDirty:!1,isHidden:w.treeNode.isDisabled,isHiddenInIndex:w.treeNode.isHiddenInMenu||!w.treeNode.isMatchedByFilter||!w.treeNode.isLinkable,isDragging:!1,hasError:ue,label:w.treeNode.label,icon:w.treeNode.isLinkable?w.treeNode.icon:"fas fa-unlink",customIconComponent:se,iconLabel:w.treeNode.nodeTypeLabel,level:w.level,onToggle:de,onClick:le,dragForbidden:!0,title:w.treeNode.label}),k?null:re.map((function(O){return $.default.createElement(S.TreeNode,__assign({},w,{treeNode:O,level:w.level+1}))})))}},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getChildrenForTreeNode=void 0;var $=O(12);S.getChildrenForTreeNode=function getChildrenForTreeNode(w){return __awaiter(this,void 0,void 0,(function(){var S,O,x,C,j,N,k,I,R,W,G,J,re,ie,oe;return __generator(this,(function(ue){switch(ue.label){case 0:(S=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(O=__values(Object.entries(w.dimensionValues)),x=O.next();!x.done;x=O.next()){C=__read(x.value,2),j=C[0],N=C[1];try{for(ie=void 0,k=__values(N),I=k.next();!I.done;I=k.next())R=I.value,S.set("dimensionValues[".concat(j,"][]"),R)}catch(w){ie={error:w}}finally{try{I&&!I.done&&(oe=k.return)&&oe.call(k)}finally{if(ie)throw ie.error}}}}catch(w){J={error:w}}finally{try{x&&!x.done&&(re=O.return)&&re.call(O)}finally{if(J)throw J.error}}S.set("treeNodeId",w.treeNodeId),S.set("nodeTypeFilter",w.nodeTypeFilter),ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-children-for-tree-node?"+S.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return W=ue.sent(),[2,$.fetchWithErrorHandling.parseJson(W)];case 3:throw G=ue.sent(),$.fetchWithErrorHandling.generalErrorHandler(G),G;case 4:return[2]}}))}))}},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getTree=void 0;var $=O(12);S.getTree=function getTree(w){var S;return __awaiter(this,void 0,void 0,(function(){var O,x,C,j,N,k,I,R,W,G,J,re,ie,oe,ue,ce,se,de,le,he;return __generator(this,(function(ye){switch(ye.label){case 0:(O=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(x=__values(Object.entries(w.dimensionValues)),C=x.next();!C.done;C=x.next()){j=__read(C.value,2),N=j[0],k=j[1];try{for(se=void 0,I=__values(k),R=I.next();!R.done;R=I.next())W=R.value,O.set("dimensionValues[".concat(N,"][]"),W)}catch(w){se={error:w}}finally{try{R&&!R.done&&(de=I.return)&&de.call(I)}finally{if(se)throw se.error}}}}catch(w){ue={error:w}}finally{try{C&&!C.done&&(ce=x.return)&&ce.call(x)}finally{if(ue)throw ue.error}}O.set("startingPoint",w.startingPoint),O.set("loadingDepth",String(w.loadingDepth)),O.set("baseNodeTypeFilter",w.baseNodeTypeFilter);try{for(G=__values(null!==(S=w.linkableNodeTypes)&&void 0!==S?S:[]),J=G.next();!J.done;J=G.next())re=J.value,O.append("linkableNodeTypes[]",re)}catch(w){le={error:w}}finally{try{J&&!J.done&&(he=G.return)&&he.call(G)}finally{if(le)throw le.error}}O.set("narrowNodeTypeFilter",w.narrowNodeTypeFilter),O.set("searchTerm",w.searchTerm),w.selectedNodeId&&O.set("selectedNodeId",w.selectedNodeId),ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-tree?"+O.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return ie=ye.sent(),[2,$.fetchWithErrorHandling.parseJson(ie)];case 3:throw oe=ye.sent(),$.fetchWithErrorHandling.generalErrorHandler(oe),oe;case 4:return[2]}}))}))}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Search=void 0;var C=__importStar(O(0)),j=O(54),N=O(265);S.Search=function Search(w){var S=__read(C.useState(w.initialValue),2),O=S[0],$=S[1],x=C.useCallback((function(){$("")}),[$]);return(0,j.useDebounce)((function(){w.onChange(O)}),300,[O]),C.createElement(N.SearchInput,{value:O,onChange:$,onClear:x})}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.SearchInput=void 0;var $=O(266);Object.defineProperty(S,"SearchInput",{enumerable:!0,get:function get(){return $.SearchInput}})},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.SearchInput=void 0;var C,j,N,k,I=__importStar(O(0)),R=__importDefault(O(16)),W=O(17),G=O(12),J=(0,R.default)(W.Icon)(C||(C=__makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"],["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"]))),re=(0,R.default)(W.IconButton)(j||(j=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"]))),ie=(0,R.default)(W.TextInput)(N||(N=__makeTemplateObject(["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"],["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"]))),oe=R.default.div(k||(k=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));S.SearchInput=function SearchInput(w){var S=(0,G.useI18n)(),O=I.useRef(w.value);return I.useEffect((function(){O.current===w.value||w.value||w.onClear(),O.current=w.value}),[w.value]),I.createElement(oe,null,I.createElement(J,{icon:"search"}),I.createElement(ie,{type:"search",value:w.value,placeholder:S("Neos.Neos:Main:search"),onChange:w.onChange}),w.value&&I.createElement(re,{icon:"times",onClick:w.onClear}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectNodeTypeFilter=void 0;var C=__importStar(O(0)),j=O(54),N=O(74),k=O(17),I=O(12),R=O(101);S.SelectNodeTypeFilter=function SelectNodeTypeFilter(w){var S=(0,I.useI18n)(),O=__read(C.useState(""),2),$=O[0],x=O[1],W=(0,j.useAsync)((function(){return __awaiter(void 0,void 0,void 0,(function(){var O;return __generator(this,(function($){switch($.label){case 0:return[4,(0,R.getNodeTypeFilterOptions)({baseNodeTypeFilter:w.baseNodeTypeFilter})];case 1:if("success"in(O=$.sent()))return[2,O.success.options.map((function(w){return __assign(__assign({},w),{label:S(w.label)})}))];if("error"in O)throw new N.VError(O.error.message);throw new N.VError("Unable to fetch node type filter options")}}))}))}),[w.baseNodeTypeFilter]),G=C.useMemo((function(){var w;return function searchNodeTypeFilterOptions(w,S){return S.filter((function(S){return-1!==S.label.toLowerCase().indexOf(w.toLowerCase())}))}($,null!==(w=W.value)&&void 0!==w?w:[])}),[$,W.value]);return C.createElement(k.SelectBox,{disabled:W.loading||W.error,placeholder:S("Neos.Neos:Main:filter"),placeholderIcon:"filter",onValueChange:w.onChange,allowEmpty:!0,value:w.value,options:G,displaySearchBox:!0,searchTerm:$,onSearchTermChange:x,threshold:0,noMatchesFoundLabel:S("Neos.Neos:Main:noMatchesFound"),searchBoxLeftToTypeLabel:S("Neos.Neos:Main:searchBoxLeftToType")})}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getNodeSummary=void 0;var $=O(269);Object.defineProperty(S,"getNodeSummary",{enumerable:!0,get:function get(){return $.getNodeSummary}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getNodeSummary=void 0;var $=O(12);S.getNodeSummary=function getNodeSummary(w){return __awaiter(this,void 0,void 0,(function(){var S,O,x,C,j,N,k,I,R,W,G,J,re,ie,oe;return __generator(this,(function(ue){switch(ue.label){case 0:(S=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(O=__values(Object.entries(w.dimensionValues)),x=O.next();!x.done;x=O.next()){C=__read(x.value,2),j=C[0],N=C[1];try{for(ie=void 0,k=__values(N),I=k.next();!I.done;I=k.next())R=I.value,S.set("dimensionValues[".concat(j,"][]"),R)}catch(w){ie={error:w}}finally{try{I&&!I.done&&(oe=k.return)&&oe.call(k)}finally{if(ie)throw ie.error}}}}catch(w){J={error:w}}finally{try{x&&!x.done&&(re=O.return)&&re.call(O)}finally{if(J)throw J.error}}S.set("nodeId",w.nodeId),ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-node-summary?"+S.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return W=ue.sent(),[2,$.fetchWithErrorHandling.parseJson(W)];case 3:throw G=ue.sent(),$.fetchWithErrorHandling.generalErrorHandler(G),G;case 4:return[2]}}))}))}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Asset=void 0;var $=O(271);Object.defineProperty(S,"Asset",{enumerable:!0,get:function get(){return $.Asset}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Asset=void 0;var C=__importStar(O(0)),j=O(12),N=O(43),k=O(30),I=O(38),R=O(272);S.Asset=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:Asset",(function(w){var S=w.createError;return{supportedLinkOptions:["title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){return w.href.startsWith("asset://")},useResolvedModel:function useResolvedModel(w){var O=/asset:\/\/(.*)/.exec(w.href);return O?N.Process.success({identifier:O[1]}):N.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"asset://".concat(w.identifier)}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(I.IconLabel,{icon:"camera"},w("Sitegeist.Archaeopteryx:LinkTypes.Asset:title"))},Preview:function Preview(w){var S,O,$=w.model,x=(0,j.useAssetSummary)($.identifier);return x.value?C.createElement(I.ImageCard,{label:null===(S=x.value)||void 0===S?void 0:S.label,src:null===(O=x.value)||void 0===O?void 0:O.preview}):null},Editor:function Editor(w){var S=w.model,O=(0,j.useI18n)();return C.createElement(N.Field,{name:"identifier",initialValue:null==S?void 0:S.identifier,validate:function validate(w){if(!w)return O("Sitegeist.Archaeopteryx:LinkTypes.Asset:identifier.validation.required")}},(function(w){var S=w.input;return C.createElement(R.MediaBrowser,{assetIdentifier:S.value,onSelectAsset:S.onChange})}))}}}))},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.MediaBrowser=void 0;var C,j=__importStar(O(0)),N=O(0),k=O(12),I=__importDefault(O(16)).default.div(C||(C=__makeTemplateObject(["\n\twidth: calc(-80px - 64px + 100vw);\n\tmax-width: 1260px;\n\n\t& > div {\n\t\tpadding: 0;\n\t}\n\n\t& > iframe {\n\t\twidth: calc(100vw - 160px);\n\t\tmax-width: 100%;\n\t\theight: calc(100vh - 580px);\n\t\tposition: relative;\n\t}\n"],["\n\twidth: calc(-80px - 64px + 100vw);\n\tmax-width: 1260px;\n\n\t& > div {\n\t\tpadding: 0;\n\t}\n\n\t& > iframe {\n\t\twidth: calc(100vw - 160px);\n\t\tmax-width: 100%;\n\t\theight: calc(100vh - 580px);\n\t\tposition: relative;\n\t}\n"])));S.MediaBrowser=function MediaBrowser(w){var S,O,$=(0,k.useGlobalRegistry)(),x=(0,N.useRef)(null),C=(0,N.useRef)(null),R=null===(S=null==$?void 0:$.get("inspector"))||void 0===S?void 0:S.get("secondaryEditors"),W=(null==R?void 0:R.get("Neos.Neos/Inspector/Secondary/Editors/MediaSelectionScreen")).component,G=null===(O=x.current)||void 0===O?void 0:O.querySelector("& > iframe");return(0,N.useEffect)((function(){var w=function handleIframeLoad(w){var S,O,$=w.target.contentDocument;$&&($.body.style.overflowX="hidden",$.body.style.padding="0",null===(S=$.querySelector("form > .neos-footer"))||void 0===S||S.remove(),null===(O=$.querySelectorAll("input, select, textarea"))||void 0===O||O.forEach((function(w){w.readOnly=!0})))};return null==G||G.addEventListener("load",w),function(){null==G||G.removeEventListener("load",w)}}),[G]),j.createElement(I,{ref:x},j.createElement(W,{ref:C,assetIdentifier:w.assetIdentifier,onComplete:w.onSelectAsset,constraints:{mediaTypes:[]}}))}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.MailTo=void 0;var $=O(274);Object.defineProperty(S,"MailTo",{enumerable:!0,get:function get(){return $.MailTo}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.MailTo=void 0;var C=__importStar(O(0)),j=O(12),N=O(43),k=O(30),I=O(38),R=/^[^\s@]+@[^\s@]+$/;S.MailTo=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:MailTo",(function(w){var S=w.createError;return{isSuitableFor:function isSuitableFor(w){return w.href.startsWith("mailto:")},useResolvedModel:function useResolvedModel(w){var O,$,x,C;if(!w.href.startsWith("mailto:"))return N.Process.error(S('Cannot handle href "'.concat(w.href,'".')));var j=new URL(w.href);return N.Process.success({recipient:j.pathname,subject:null!==(O=j.searchParams.get("subject"))&&void 0!==O?O:void 0,cc:null!==($=j.searchParams.get("cc"))&&void 0!==$?$:void 0,bcc:null!==(x=j.searchParams.get("bcc"))&&void 0!==x?x:void 0,body:null!==(C=j.searchParams.get("body"))&&void 0!==C?C:void 0})},convertModelToLink:function convertModelToLink(w){var S="mailto:".concat(w.recipient,"?");return w.subject&&(S+="subject=".concat(w.subject)),w.cc&&!w.subject?S+="cc=".concat(w.cc):w.cc&&(S+="&cc=".concat(w.cc)),!w.bcc||w.subject||w.cc?w.bcc&&(S+="&bcc=".concat(w.bcc)):S+="bcc=".concat(w.bcc),!w.body||w.subject||w.cc||w.bcc?w.body&&(S+="&body=".concat(w.body)):S+="body=".concat(w.body),{href:S}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(I.IconLabel,{icon:"envelope"},w("Sitegeist.Archaeopteryx:LinkTypes.MailTo:title"))},Preview:function Preview(w){var S,O,$=w.model;return C.createElement(I.IconCard,{icon:"envelope",title:$.recipient,subTitle:$.subject||$.body?"".concat(null!==(S=$.subject)&&void 0!==S?S:""," ").concat(null!==(O=$.body)&&void 0!==O?O:"").trim():void 0})},Editor:function Editor(w){var S,O,$,x,k=w.model,W=w.options,G=(0,j.useI18n)();return C.createElement(I.Layout.Columns,null,C.createElement(N.Field,{name:"recipient",initialValue:null==k?void 0:k.recipient,validate:function validate(w){return w?R.test(w)?void 0:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.email"):G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.required")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:S,meta:O}))})),!1!==(null===(S=W.enabledFields)||void 0===S?void 0:S.subject)?C.createElement(N.Field,{name:"subject",initialValue:null==k?void 0:k.subject},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:subject.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:S,meta:O}))})):null,!1!==(null===(O=W.enabledFields)||void 0===O?void 0:O.cc)?C.createElement(N.Field,{name:"cc",initialValue:null==k?void 0:k.cc,validate:function validate(w){if(null!=w&&!w.split(",").every((function(w){return R.test(w.trim())})))return G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.validation.emaillist")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.placeholder")},input:S,meta:O}))})):null,!1!==(null===($=W.enabledFields)||void 0===$?void 0:$.bcc)?C.createElement(N.Field,{name:"bcc",initialValue:null==k?void 0:k.bcc,validate:function validate(w){if(null!=w&&!w.split(",").every((function(w){return R.test(w.trim())})))return G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.validation.emaillist")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.placeholder")},input:S,meta:O}))})):null,!1!==(null===(x=W.enabledFields)||void 0===x?void 0:x.body)?C.createElement(N.Field,{name:"body",initialValue:null==k?void 0:k.body},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:body.label"),editor:"Neos.Neos/Inspector/Editors/TextAreaEditor",input:S,meta:O}))})):null)}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PhoneNumber=void 0;var $=O(276);Object.defineProperty(S,"PhoneNumber",{enumerable:!0,get:function get(){return $.PhoneNumber}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.PhoneNumber=void 0;var C=__importStar(O(0)),j=O(0),N=O(70),k=O(17),I=O(12),R=O(288),W=O(30),G=O(43),J=O(38);S.PhoneNumber=(0,W.makeLinkType)("Sitegeist.Archaeopteryx:PhoneNumber",(function(w){var S=w.createError;return{isSuitableFor:function isSuitableFor(w){return w.href.startsWith("tel:")},useResolvedModel:function useResolvedModel(w){var O=(0,R.parsePhoneNumber)(w.href.replace("tel:",""));return O?G.Process.success({phoneNumber:O.number.replace("+".concat(O.countryCallingCode),""),countryCallingCode:"+".concat(O.countryCallingCode.toString())}):G.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"tel:".concat(w.countryCallingCode).concat(w.phoneNumber)}},TabHeader:function TabHeader(){var w=(0,I.useI18n)();return C.createElement(J.IconLabel,{icon:"phone-alt"},w("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(J.IconCard,{icon:"phone-alt",title:(new R.AsYouType).input("".concat(S.countryCallingCode).concat(S.phoneNumber))})},Editor:function Editor(w){var S,O=w.model,$=w.options,x=(null==O?void 0:O.countryCallingCode)||((null==$?void 0:$.defaultCountry)?"+".concat((0,R.getCountryCallingCode)(null==$?void 0:$.defaultCountry).toString()):"+".concat((0,R.getCountryCallingCode)((0,R.getCountries)()[0]).toString())),W=__read((0,j.useState)(x),2),J=W[0],re=W[1],ie=(0,I.useI18n)(),oe={};null===(S=$.favoredCountries)||void 0===S||S.map((function(w){oe["+".concat((0,R.getCountryCallingCode)(w))]?oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(oe["+".concat((0,R.getCountryCallingCode)(w))].label.split(/\s\+/)[0],", ").concat(w," +").concat((0,R.getCountryCallingCode)(w))}:oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(w," +").concat((0,R.getCountryCallingCode)(w))}})),(0,R.getCountries)().map((function(w){var S;(null===(S=$.favoredCountries)||void 0===S?void 0:S.includes(w))||(oe["+".concat((0,R.getCountryCallingCode)(w))]?oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(oe["+".concat((0,R.getCountryCallingCode)(w))].label.split(/\s\+/)[0],", ").concat(w," +").concat((0,R.getCountryCallingCode)(w))}:oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(w," +").concat((0,R.getCountryCallingCode)(w))})}));var ue=/^[1-9][0-9]*$/;return C.createElement("div",null,C.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.phoneNumber"},ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.label")),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},C.createElement(G.Field,{name:"countryCallingCode",format:function format(w){return void 0===w&&""===w||re(w),""!==w&&void 0!==w||(0,N.useForm)().change("linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.countryCallingCode",J),w},initialValue:J||x,validate:function validate(w){if(!w)return ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:countryCallingCode.validation.required")}},(function(w){var S=w.input;return C.createElement("div",{style:{margin:"0.25rem 0 0 0"}},C.createElement(k.SelectBox,{allowEmpty:!1,options:Object.values(oe),onValueChange:function onValueChange(w){re(w),S.onChange(w)},value:S.value}))})),C.createElement(G.Field,{name:"phoneNumber",initialValue:null==O?void 0:O.phoneNumber,validate:function validate(w){return w?ue.test(w)?void 0:ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.numbersOnly"):ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.required")}},(function(w){var S=w.input,O=w.meta;return C.createElement(G.EditorEnvelope,{label:"",editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.placeholder")},input:S,meta:O})}))))}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CustomLink=void 0;var $=O(278);Object.defineProperty(S,"CustomLink",{enumerable:!0,get:function get(){return $.CustomLink}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.CustomLink=void 0;var C=__importStar(O(0)),j=O(12),N=O(17),k=O(30),I=O(43),R=O(38);S.CustomLink=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:CustomLink",(function(w){w.createError;return{isSuitableFor:function isSuitableFor(w){return!(w.href.startsWith("asset://")||w.href.startsWith("mailto:")||w.href.startsWith("node://")||w.href.startsWith("tel:")||w.href.startsWith("http://")||w.href.startsWith("https://"))},useResolvedModel:function useResolvedModel(w){return I.Process.success({customLink:w.href})},convertModelToLink:function convertModelToLink(w){return{href:"".concat(w.customLink)}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(R.IconLabel,{icon:""},w("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(R.IconCard,{icon:"",title:'...')})},Editor:function Editor(w){var S=w.model,O=(0,j.useI18n)();return C.createElement("div",null,C.createElement("label",null,O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.label")),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"400px 1fr",minWidth:"600px"}},C.createElement(I.Field,{name:"customLink",initialValue:null==S?void 0:S.customLink,validate:function validate(w){if(!w)return O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:validation.required")}},(function(w){var S=w.input;return C.createElement(N.TextInput,__assign({id:S.name,type:"text",placeHolder:O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.placeholder")},S))}))))}}}))},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.registerDialog=void 0;var C=__importStar(O(0)),j=O(12),N=O(30),k=O(280);S.registerDialog=function registerDialog(w,S){var O=w.globalRegistry.get("containers");null==O||O.set("Modals/Sitegeist.Archaeopteryx",(function(O){return C.createElement(j.NeosContext.Provider,{value:w},C.createElement(N.EditorContext.Provider,{value:S},C.createElement(k.Dialog,O)))}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Dialog=void 0;var C=__importStar(O(0)),j=O(70),N=O(54),k=O(17),I=O(12),R=O(79),W=O(43),G=O(30),J=O(38),re=O(281),ie=O(282);S.Dialog=function Dialog(){var w=(0,I.useI18n)(),S=(0,G.useLinkTypes)(),O=(0,I.useSelector)((function(w){var S;return!(null===(S=w.system)||void 0===S?void 0:S.authenticationTimeout)})),$=(0,G.useEditorTransactions)(),x=$.dismiss,W=$.apply,re=$.unset,ie=(0,G.useEditorState)(),ce=ie.isOpen,se=ie.initialValue,de=__read(C.useState(!1),2),le=de[0],he=de[1],ye=C.useCallback((function(w){var O,$=S.find((function(S){return S.id===w.linkTypeId}));if($){var x=null===(O=w.linkTypeProps)||void 0===O?void 0:O[$.id.split(".").join("_")];if(x){var C=__assign(__assign({},$.convertModelToLink(x)),{options:w.options?Object.keys(w.options).filter((function(w){return $.supportedLinkOptions.includes(w)})).reduce((function(S,O){return S[O]=w.options[O],S}),{}):{}});W(C),he(!1)}}else le&&(re(),he(!1))}),[S,le]);return(0,N.useKey)("Escape",x),ce&&O?C.createElement(J.Modal,{renderTitle:function renderTitle(){return C.createElement("div",null,w("Sitegeist.Archaeopteryx:Main:dialog.title"))},renderBody:function renderBody(){return C.createElement(j.Form,{onSubmit:ye},(function(S){var O=S.handleSubmit,$=S.valid,j=S.dirty;S.values;return C.createElement(R.ErrorBoundary,null,C.createElement(J.Form,{renderBody:function renderBody(){return null===se||le?C.createElement(oe,{valid:$,onDelete:function onDelete(){return he(!0)}}):C.createElement(ue,{value:se,onDelete:function onDelete(){return he(!0)}})},renderActions:function renderActions(){return C.createElement(C.Fragment,null,C.createElement(k.Button,{onClick:x},w("Sitegeist.Archaeopteryx:Main:dialog.action.cancel")),$&&j||!le?C.createElement(k.Button,{style:"success",type:"submit",disabled:!$||!j},w("Sitegeist.Archaeopteryx:Main:dialog.action.apply")):C.createElement(k.Button,{style:"success",type:"button",onClick:re},w("Sitegeist.Archaeopteryx:Main:dialog.action.apply")))},onSubmit:O}))}))}}):(le&&he(!1),null)};var oe=function DialogWithEmptyValue(w){var S,O=(0,j.useForm)(),$=(0,G.useEditorState)(),x=$.enabledLinkOptions,N=$.editorOptions,k=(0,G.useSortedAndFilteredLinkTypes)();return C.createElement(W.Field,{name:"linkTypeId",initialValue:null===(S=k[0])||void 0===S?void 0:S.id},(function(S){var $=S.input;return C.createElement(J.Tabs,{lazy:!0,from:k,activeItemKey:$.value,getKey:function getKey(w){return w.id},renderHeader:function renderHeader(w){var S,O,$=w.id,x=w.TabHeader;return C.createElement(x,{options:null!==(O=null===(S=N.linkTypes)||void 0===S?void 0:S[$])&&void 0!==O?O:{}})},renderPanel:function renderPanel(S){var $,j,k,I,W=S.Preview,G=null===($=O.getState().values.linkTypeProps)||void 0===$?void 0:$[S.id.split(".").join("_")];return C.createElement(J.Layout.Stack,null,w.valid&&G?C.createElement(J.Deletable,{onDelete:function onDelete(){w.onDelete(),O.change("linkTypeProps",null)}},C.createElement(R.ErrorBoundary,null,C.createElement(W,{model:null===(j=O.getState().values.linkTypeProps)||void 0===j?void 0:j[S.id.split(".").join("_")],options:null!==(I=null===(k=N.linkTypes)||void 0===k?void 0:k[S.id])&&void 0!==I?I:{},link:{href:""}}))):null,C.createElement("div",{style:{overflow:"auto"}},C.createElement(re.LinkEditor,{key:S.id,link:null,linkType:S}),x.length&&S.supportedLinkOptions.length?C.createElement(ie.Settings,{enabledLinkOptions:x.filter((function(w){return S.supportedLinkOptions.includes(w)}))}):null))},onSwitchTab:$.onChange})}))},ue=function DialogWithValue(w){var S,O,$,x=(0,j.useForm)(),N=(0,G.useEditorState)(),k=N.enabledLinkOptions,I=N.editorOptions,oe=(0,G.useLinkTypeForHref)(w.value.href),ue=oe.useResolvedModel(w.value).result,ce=oe.Preview,se=x.getState(),de=null!==(O=se.valid?null===(S=se.values.linkTypeProps)||void 0===S?void 0:S[oe.id.split(".").join("_")]:ue)&&void 0!==O?O:ue,le=(0,G.useSortedAndFilteredLinkTypes)();return C.createElement(W.Field,{name:"linkTypeId",initialValue:null===($=le[0])||void 0===$?void 0:$.id},(function(S){var O=S.input;return C.createElement(J.Tabs,{lazy:!0,from:le,activeItemKey:O.value||oe.id,getKey:function getKey(w){return w.id},renderHeader:function renderHeader(w){var S,O,$=w.id,x=w.TabHeader;return C.createElement(x,{options:null!==(O=null===(S=I.linkTypes)||void 0===S?void 0:S[$])&&void 0!==O?O:{}})},renderPanel:function renderPanel(S){var O,$,j,N=null===(O=x.getState().values.linkTypeProps)||void 0===O?void 0:O[S.id.split(".").join("_")],W=S.Preview,G=N;return(!N||"Sitegeist.Archaeopteryx:Web"===S.id&&!(null==N?void 0:N.urlWithoutProtocol)||"Sitegeist.Archaeopteryx:PhoneNumber"===S.id&&!(null==N?void 0:N.phoneNumber)||"Sitegeist.Archaeopteryx:CustomLink"===S.id&&!(null==N?void 0:N.CustomLink))&&(W=ce,G=de),C.createElement(J.Layout.Stack,null,G?C.createElement(J.Deletable,{onDelete:function onDelete(){w.onDelete(),x.change("linkTypeProps",null)}},C.createElement(R.ErrorBoundary,null,C.createElement(W,{model:G,options:null!==(j=null===($=I.linkTypes)||void 0===$?void 0:$[S.id])&&void 0!==j?j:{},link:w.value}))):null,C.createElement(re.LinkEditor,{key:S.id,link:S.isSuitableFor(w.value)?w.value:null,linkType:S}),k.length&&S.supportedLinkOptions.length?C.createElement(ie.Settings,{initialValue:w.value.options,enabledLinkOptions:k.filter((function(w){return S.supportedLinkOptions.includes(w)}))}):null)},onSwitchTab:O.onChange})}))}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.LinkEditor=void 0;var C=__importStar(O(0)),j=O(79),N=O(43),k=O(30);S.LinkEditor=function LinkEditor(w){return C.createElement(j.ErrorBoundary,null,null===w.link?C.createElement(I,{linkType:w.linkType}):C.createElement(R,{link:w.link,linkType:w.linkType}))};var I=function LinkEditorWithoutValue(w){var S,O,$=(0,k.useEditorState)().editorOptions,x=w.linkType.Editor,j="linkTypeProps.".concat(w.linkType.id.split(".").join("_"));return C.createElement(N.FieldGroup,{prefix:j},C.createElement(x,{model:null,options:null!==(O=null===(S=$.linkTypes)||void 0===S?void 0:S[w.linkType.id])&&void 0!==O?O:{},link:null}))},R=function LinkEditorWithValue(w){var S,O,$,x,j,I=(0,k.useEditorState)().editorOptions,R=w.linkType.useResolvedModel(w.link),W=R.busy,G=R.error,J=function useLastNonNull(w){var S=C.useRef(w);return null!==w&&(S.current=w),S.current}(R.result),re=w.linkType,ie=re.Editor,oe=re.LoadingEditor;if(G)throw G;return W&&!J?C.createElement(oe,{link:null!==(S=w.link)&&void 0!==S?S:void 0,options:null!==($=null===(O=I.linkTypes)||void 0===O?void 0:O[w.linkType.id])&&void 0!==$?$:{}}):C.createElement(N.FieldGroup,{prefix:"linkTypeProps.".concat(w.linkType.id.split(".").join("_"))},C.createElement(ie,{model:J,options:null!==(j=null===(x=I.linkTypes)||void 0===x?void 0:x[w.linkType.id])&&void 0!==j?j:{},link:w.link}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Settings=void 0;var C=__importStar(O(0)),j=O(70),N=O(17),k=O(38),I=O(12);S.Settings=function Settings(w){var S,O,$,x,R=(0,I.useI18n)();return C.createElement(k.Layout.Stack,null,w.enabledLinkOptions.includes("anchor")||w.enabledLinkOptions.includes("title")?C.createElement(k.Layout.Columns,null,w.enabledLinkOptions.includes("anchor")?C.createElement(j.Field,{name:"options.anchor",initialValue:null===(S=w.initialValue)||void 0===S?void 0:S.anchor},(function(w){var S=w.input;return C.createElement("label",null,R("Sitegeist.Archaeopteryx:Main:options.label.anchor"),":",C.createElement(N.TextInput,__assign({type:"text"},S)))})):null,w.enabledLinkOptions.includes("title")?C.createElement(j.Field,{name:"options.title",initialValue:null===(O=w.initialValue)||void 0===O?void 0:O.title},(function(w){var S=w.input;return C.createElement("label",null,R("Sitegeist.Archaeopteryx:Main:options.label.title"),":",C.createElement(N.TextInput,__assign({type:"text"},S)))})):null):null,w.enabledLinkOptions.includes("targetBlank")||w.enabledLinkOptions.includes("relNofollow")?C.createElement(k.Layout.Columns,null,w.enabledLinkOptions.includes("targetBlank")?C.createElement(j.Field,{type:"checkbox",name:"options.targetBlank",initialValue:Boolean(null===($=w.initialValue)||void 0===$?void 0:$.targetBlank)},(function(w){var S=w.input;return C.createElement("label",null,C.createElement(N.CheckBox,{onChange:S.onChange,isChecked:S.checked}),R("Sitegeist.Archaeopteryx:Main:options.label.targetBlank"))})):null,w.enabledLinkOptions.includes("relNofollow")?C.createElement(j.Field,{type:"checkbox",name:"options.relNoFollow",initialValue:Boolean(null===(x=w.initialValue)||void 0===x?void 0:x.relNoFollow)},(function(w){var S=w.input;return C.createElement("label",null,C.createElement(N.CheckBox,{onChange:S.onChange,isChecked:S.checked}),R("Sitegeist.Archaeopteryx:Main:options.label.relNofollow"))})):null):null)}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.registerInspectorEditor=void 0;var C=__importStar(O(0)),j=O(12),N=O(66),k=O(284);S.registerInspectorEditor=function registerInspectorEditor(w,S){var O=w.globalRegistry.get("inspector");if(!O)return console.warn("[Sitegeist.Archaeopteryx]: Could not find inspector registry."),void console.warn("[Sitegeist.Archaeopteryx]: Skipping registration of InspectorEditor...");var $=O.get("editors");if(!$)return console.warn("[Sitegeist.Archaeopteryx]: Could not find inspector editors registry."),void console.warn("[Sitegeist.Archaeopteryx]: Skipping registration of InspectorEditor...");$.set("Sitegeist.Archaeopteryx/Inspector/Editors/LinkEditor",{component:function component(O){return C.createElement(j.NeosContext.Provider,{value:w},C.createElement(N.EditorContext.Provider,{value:S},C.createElement(k.InspectorEditor,O)))}})}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.LinkButton=void 0;var C=__importStar(O(0)),j=O(17),N=O(66),k=O(12);S.LinkButton=function LinkButton(w){var S,O,$,x,I,R,W,G,J=(0,k.useI18n)(),re=(0,N.useEditorTransactions)(),ie=__assign(__assign({},null===(O=null===(S=w.inlineEditorOptions)||void 0===S?void 0:S.linking)||void 0===O?void 0:O["Sitegeist.Archaeopteryx"]),{linkTypes:__assign({},null===(I=null===(x=null===($=w.inlineEditorOptions)||void 0===$?void 0:$.linking)||void 0===x?void 0:x["Sitegeist.Archaeopteryx"])||void 0===I?void 0:I.linkTypes)});(null===(W=null===(R=w.inlineEditorOptions)||void 0===R?void 0:R.linking)||void 0===W?void 0:W.startingPoint)&&(ie.linkTypes["Sitegeist.Archaeopteryx:Node"]=__assign(__assign({},ie.linkTypes["Sitegeist.Archaeopteryx:Node"]),{startingPoint:null!==(G=ie.linkTypes["Sitegeist.Archaeopteryx:Node"].startingPoint)&&void 0!==G?G:w.inlineEditorOptions.linking.startingPoint}));var oe=C.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var S,O,$,x,C,j,N,k,I,R;return __generator(this,(function(W){switch(W.label){case 0:return S=function(){if(w.formattingUnderCursor.link){var S=__read(w.formattingUnderCursor.link.split("#"),2);return{href:S[0],options:{anchor:S[1],title:w.formattingUnderCursor.linkTitle,targetBlank:w.formattingUnderCursor.linkTargetBlank,relNofollow:w.formattingUnderCursor.linkRelNofollow}}}return null}(),O=function(){var S,O,$,x,C,j,N,k,I=[];return(null===(O=null===(S=w.inlineEditorOptions)||void 0===S?void 0:S.linking)||void 0===O?void 0:O.anchor)&&I.push("anchor"),(null===(x=null===($=w.inlineEditorOptions)||void 0===$?void 0:$.linking)||void 0===x?void 0:x.title)&&I.push("title"),(null===(j=null===(C=w.inlineEditorOptions)||void 0===C?void 0:C.linking)||void 0===j?void 0:j.relNofollow)&&I.push("relNofollow"),(null===(k=null===(N=w.inlineEditorOptions)||void 0===N?void 0:N.linking)||void 0===k?void 0:k.targetBlank)&&I.push("targetBlank"),I}(),[4,re.editLink(S,O,ie)];case 1:return($=W.sent()).change?null===$.value?(w.executeCommand("linkTitle",!1,!1),w.executeCommand("linkRelNofollow",!1,!1),w.executeCommand("linkTargetBlank",!1,!1),w.executeCommand("unlink",void 0,!0)):(w.executeCommand("linkTitle",(null===(x=$.value.options)||void 0===x?void 0:x.title)||!1,!1),w.executeCommand("linkTargetBlank",null!==(j=null===(C=$.value.options)||void 0===C?void 0:C.targetBlank)&&void 0!==j&&j,!1),w.executeCommand("linkRelNofollow",null!==(k=null===(N=$.value.options)||void 0===N?void 0:N.relNofollow)&&void 0!==k&&k,!1),(null===(I=$.value.options)||void 0===I?void 0:I.anchor)?w.executeCommand("link","".concat($.value.href,"#").concat(null===(R=$.value.options)||void 0===R?void 0:R.anchor),!0):w.executeCommand("link",$.value.href,!0)):(w.executeCommand("undo",void 0,!0),w.executeCommand("redo",void 0,!0)),[2]}}))}))}),[w.executeCommand,w.formattingUnderCursor.link,re,ie]);return C.createElement(j.IconButton,{title:J("Sitegeist.Archaeopteryx:Main:linkButton.title"),isActive:Boolean(w.formattingUnderCursor.link),icon:Boolean(w.formattingUnderCursor.link)?"unlink":"link",onClick:oe})}},function(w,S,O){"use strict";O.r(S),O.d(S,"audit",(function(){return audit})),O.d(S,"auditTime",(function(){return auditTime})),O.d(S,"buffer",(function(){return buffer_buffer})),O.d(S,"bufferCount",(function(){return bufferCount})),O.d(S,"bufferTime",(function(){return bufferTime})),O.d(S,"bufferToggle",(function(){return bufferToggle})),O.d(S,"bufferWhen",(function(){return bufferWhen})),O.d(S,"catchError",(function(){return catchError})),O.d(S,"combineAll",(function(){return combineAll})),O.d(S,"combineLatest",(function(){return combineLatest_combineLatest})),O.d(S,"concat",(function(){return concat_concat})),O.d(S,"concatAll",(function(){return Re.a})),O.d(S,"concatMap",(function(){return concatMap})),O.d(S,"concatMapTo",(function(){return concatMapTo})),O.d(S,"count",(function(){return count_count})),O.d(S,"debounce",(function(){return debounce})),O.d(S,"debounceTime",(function(){return debounceTime})),O.d(S,"defaultIfEmpty",(function(){return defaultIfEmpty})),O.d(S,"delay",(function(){return delay_delay})),O.d(S,"delayWhen",(function(){return delayWhen})),O.d(S,"dematerialize",(function(){return dematerialize})),O.d(S,"distinct",(function(){return distinct})),O.d(S,"distinctUntilChanged",(function(){return distinctUntilChanged})),O.d(S,"distinctUntilKeyChanged",(function(){return distinctUntilKeyChanged})),O.d(S,"elementAt",(function(){return elementAt})),O.d(S,"endWith",(function(){return endWith})),O.d(S,"every",(function(){return every})),O.d(S,"exhaust",(function(){return exhaust})),O.d(S,"exhaustMap",(function(){return exhaustMap})),O.d(S,"expand",(function(){return expand})),O.d(S,"filter",(function(){return mt.a})),O.d(S,"finalize",(function(){return finalize})),O.d(S,"find",(function(){return find})),O.d(S,"findIndex",(function(){return findIndex})),O.d(S,"first",(function(){return first})),O.d(S,"groupBy",(function(){return Bt.b})),O.d(S,"ignoreElements",(function(){return ignoreElements})),O.d(S,"isEmpty",(function(){return isEmpty})),O.d(S,"last",(function(){return last})),O.d(S,"map",(function(){return Tt.a})),O.d(S,"mapTo",(function(){return mapTo})),O.d(S,"materialize",(function(){return materialize})),O.d(S,"max",(function(){return max_max})),O.d(S,"merge",(function(){return merge_merge})),O.d(S,"mergeAll",(function(){return tr.a})),O.d(S,"mergeMap",(function(){return De.b})),O.d(S,"flatMap",(function(){return De.a})),O.d(S,"mergeMapTo",(function(){return mergeMapTo})),O.d(S,"mergeScan",(function(){return mergeScan})),O.d(S,"min",(function(){return min_min})),O.d(S,"multicast",(function(){return multicast})),O.d(S,"observeOn",(function(){return ar.b})),O.d(S,"onErrorResumeNext",(function(){return onErrorResumeNext})),O.d(S,"pairwise",(function(){return pairwise})),O.d(S,"partition",(function(){return partition})),O.d(S,"pluck",(function(){return pluck})),O.d(S,"publish",(function(){return publish})),O.d(S,"publishBehavior",(function(){return publishBehavior})),O.d(S,"publishLast",(function(){return publishLast})),O.d(S,"publishReplay",(function(){return publishReplay})),O.d(S,"race",(function(){return race_race})),O.d(S,"reduce",(function(){return reduce})),O.d(S,"repeat",(function(){return repeat})),O.d(S,"repeatWhen",(function(){return repeatWhen})),O.d(S,"retry",(function(){return retry})),O.d(S,"retryWhen",(function(){return retryWhen})),O.d(S,"refCount",(function(){return xr.a})),O.d(S,"sample",(function(){return sample})),O.d(S,"sampleTime",(function(){return sampleTime})),O.d(S,"scan",(function(){return scan})),O.d(S,"sequenceEqual",(function(){return sequenceEqual})),O.d(S,"share",(function(){return share})),O.d(S,"shareReplay",(function(){return shareReplay})),O.d(S,"single",(function(){return single})),O.d(S,"skip",(function(){return skip})),O.d(S,"skipLast",(function(){return skipLast})),O.d(S,"skipUntil",(function(){return skipUntil})),O.d(S,"skipWhile",(function(){return skipWhile})),O.d(S,"startWith",(function(){return startWith})),O.d(S,"subscribeOn",(function(){return subscribeOn})),O.d(S,"switchAll",(function(){return switchAll})),O.d(S,"switchMap",(function(){return switchMap})),O.d(S,"switchMapTo",(function(){return switchMapTo})),O.d(S,"take",(function(){return take})),O.d(S,"takeLast",(function(){return takeLast})),O.d(S,"takeUntil",(function(){return takeUntil})),O.d(S,"takeWhile",(function(){return takeWhile})),O.d(S,"tap",(function(){return tap})),O.d(S,"throttle",(function(){return throttle})),O.d(S,"throttleTime",(function(){return throttleTime})),O.d(S,"throwIfEmpty",(function(){return throwIfEmpty})),O.d(S,"timeInterval",(function(){return timeInterval})),O.d(S,"timeout",(function(){return timeout})),O.d(S,"timeoutWith",(function(){return timeoutWith})),O.d(S,"timestamp",(function(){return timestamp})),O.d(S,"toArray",(function(){return toArray})),O.d(S,"window",(function(){return window_window})),O.d(S,"windowCount",(function(){return windowCount})),O.d(S,"windowTime",(function(){return windowTime_windowTime})),O.d(S,"windowToggle",(function(){return windowToggle})),O.d(S,"windowWhen",(function(){return windowWhen})),O.d(S,"withLatestFrom",(function(){return withLatestFrom})),O.d(S,"zip",(function(){return zip_zip})),O.d(S,"zipAll",(function(){return zipAll}));var $=O(1),x=O(3);function audit(w){return function auditOperatorFunction(S){return S.lift(new C(w))}}var C=function(){function AuditOperator(w){this.durationSelector=w}return AuditOperator.prototype.call=function(w,S){return S.subscribe(new j(w,this.durationSelector))},AuditOperator}(),j=function(w){function AuditSubscriber(S,O){var $=w.call(this,S)||this;return $.durationSelector=O,$.hasValue=!1,$}return $.__extends(AuditSubscriber,w),AuditSubscriber.prototype._next=function(w){if(this.value=w,this.hasValue=!0,!this.throttled){var S=void 0;try{S=(0,this.durationSelector)(w)}catch(w){return this.destination.error(w)}var O=Object(x.c)(S,new x.a(this));!O||O.closed?this.clearThrottle():this.add(this.throttled=O)}},AuditSubscriber.prototype.clearThrottle=function(){var w=this.value,S=this.hasValue,O=this.throttled;O&&(this.remove(O),this.throttled=void 0,O.unsubscribe()),S&&(this.value=void 0,this.hasValue=!1,this.destination.next(w))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(x.b),N=O(8),k=O(87);function auditTime(w,S){return void 0===S&&(S=N.a),audit((function(){return Object(k.a)(w,S)}))}function buffer_buffer(w){return function bufferOperatorFunction(S){return S.lift(new I(w))}}var I=function(){function BufferOperator(w){this.closingNotifier=w}return BufferOperator.prototype.call=function(w,S){return S.subscribe(new R(w,this.closingNotifier))},BufferOperator}(),R=function(w){function BufferSubscriber(S,O){var $=w.call(this,S)||this;return $.buffer=[],$.add(Object(x.c)(O,new x.a($))),$}return $.__extends(BufferSubscriber,w),BufferSubscriber.prototype._next=function(w){this.buffer.push(w)},BufferSubscriber.prototype.notifyNext=function(){var w=this.buffer;this.buffer=[],this.destination.next(w)},BufferSubscriber}(x.b),W=O(2);function bufferCount(w,S){return void 0===S&&(S=null),function bufferCountOperatorFunction(O){return O.lift(new G(w,S))}}var G=function(){function BufferCountOperator(w,S){this.bufferSize=w,this.startBufferEvery=S,this.subscriberClass=S&&w!==S?re:J}return BufferCountOperator.prototype.call=function(w,S){return S.subscribe(new this.subscriberClass(w,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),J=function(w){function BufferCountSubscriber(S,O){var $=w.call(this,S)||this;return $.bufferSize=O,$.buffer=[],$}return $.__extends(BufferCountSubscriber,w),BufferCountSubscriber.prototype._next=function(w){var S=this.buffer;S.push(w),S.length==this.bufferSize&&(this.destination.next(S),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var S=this.buffer;S.length>0&&this.destination.next(S),w.prototype._complete.call(this)},BufferCountSubscriber}(W.a),re=function(w){function BufferSkipCountSubscriber(S,O,$){var x=w.call(this,S)||this;return x.bufferSize=O,x.startBufferEvery=$,x.buffers=[],x.count=0,x}return $.__extends(BufferSkipCountSubscriber,w),BufferSkipCountSubscriber.prototype._next=function(w){var S=this.bufferSize,O=this.startBufferEvery,$=this.buffers,x=this.count;this.count++,x%O==0&&$.push([]);for(var C=$.length;C--;){var j=$[C];j.push(w),j.length===S&&($.splice(C,1),this.destination.next(j))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var S=this.buffers,O=this.destination;S.length>0;){var $=S.shift();$.length>0&&O.next($)}w.prototype._complete.call(this)},BufferSkipCountSubscriber}(W.a),ie=O(11);function bufferTime(w){var S=arguments.length,O=N.a;Object(ie.a)(arguments[arguments.length-1])&&(O=arguments[arguments.length-1],S--);var $=null;S>=2&&($=arguments[1]);var x=Number.POSITIVE_INFINITY;return S>=3&&(x=arguments[2]),function bufferTimeOperatorFunction(S){return S.lift(new oe(w,$,x,O))}}var oe=function(){function BufferTimeOperator(w,S,O,$){this.bufferTimeSpan=w,this.bufferCreationInterval=S,this.maxBufferSize=O,this.scheduler=$}return BufferTimeOperator.prototype.call=function(w,S){return S.subscribe(new ce(w,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),ue=function(){return function Context(){this.buffer=[]}}(),ce=function(w){function BufferTimeSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;j.bufferTimeSpan=O,j.bufferCreationInterval=$,j.maxBufferSize=x,j.scheduler=C,j.contexts=[];var N=j.openContext();if(j.timespanOnly=null==$||$<0,j.timespanOnly){var k={subscriber:j,context:N,bufferTimeSpan:O};j.add(N.closeAction=C.schedule(dispatchBufferTimeSpanOnly,O,k))}else{var I={subscriber:j,context:N},R={bufferTimeSpan:O,bufferCreationInterval:$,subscriber:j,scheduler:C};j.add(N.closeAction=C.schedule(dispatchBufferClose,O,I)),j.add(C.schedule(dispatchBufferCreation,$,R))}return j}return $.__extends(BufferTimeSubscriber,w),BufferTimeSubscriber.prototype._next=function(w){for(var S,O=this.contexts,$=O.length,x=0;x<$;x++){var C=O[x],j=C.buffer;j.push(w),j.length==this.maxBufferSize&&(S=C)}S&&this.onBufferFull(S)},BufferTimeSubscriber.prototype._error=function(S){this.contexts.length=0,w.prototype._error.call(this,S)},BufferTimeSubscriber.prototype._complete=function(){for(var S=this.contexts,O=this.destination;S.length>0;){var $=S.shift();O.next($.buffer)}w.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(w){this.closeContext(w);var S=w.closeAction;if(S.unsubscribe(),this.remove(S),!this.closed&&this.timespanOnly){w=this.openContext();var O=this.bufferTimeSpan,$={subscriber:this,context:w,bufferTimeSpan:O};this.add(w.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,O,$))}},BufferTimeSubscriber.prototype.openContext=function(){var w=new ue;return this.contexts.push(w),w},BufferTimeSubscriber.prototype.closeContext=function(w){this.destination.next(w.buffer);var S=this.contexts;(S?S.indexOf(w):-1)>=0&&S.splice(S.indexOf(w),1)},BufferTimeSubscriber}(W.a);function dispatchBufferTimeSpanOnly(w){var S=w.subscriber,O=w.context;O&&S.closeContext(O),S.closed||(w.context=S.openContext(),w.context.closeAction=this.schedule(w,w.bufferTimeSpan))}function dispatchBufferCreation(w){var S=w.bufferCreationInterval,O=w.bufferTimeSpan,$=w.subscriber,x=w.scheduler,C=$.openContext();$.closed||($.add(C.closeAction=x.schedule(dispatchBufferClose,O,{subscriber:$,context:C})),this.schedule(w,S))}function dispatchBufferClose(w){var S=w.subscriber,O=w.context;S.closeContext(O)}var se=O(6),de=O(18),le=O(21);function bufferToggle(w,S){return function bufferToggleOperatorFunction(O){return O.lift(new he(w,S))}}var he=function(){function BufferToggleOperator(w,S){this.openings=w,this.closingSelector=S}return BufferToggleOperator.prototype.call=function(w,S){return S.subscribe(new ye(w,this.openings,this.closingSelector))},BufferToggleOperator}(),ye=function(w){function BufferToggleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.closingSelector=$,x.contexts=[],x.add(Object(de.a)(x,O)),x}return $.__extends(BufferToggleSubscriber,w),BufferToggleSubscriber.prototype._next=function(w){for(var S=this.contexts,O=S.length,$=0;$0;){var $=O.shift();$.subscription.unsubscribe(),$.buffer=null,$.subscription=null}this.contexts=null,w.prototype._error.call(this,S)},BufferToggleSubscriber.prototype._complete=function(){for(var S=this.contexts;S.length>0;){var O=S.shift();this.destination.next(O.buffer),O.subscription.unsubscribe(),O.buffer=null,O.subscription=null}this.contexts=null,w.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(w,S){w?this.closeBuffer(w):this.openBuffer(S)},BufferToggleSubscriber.prototype.notifyComplete=function(w){this.closeBuffer(w.context)},BufferToggleSubscriber.prototype.openBuffer=function(w){try{var S=this.closingSelector.call(this,w);S&&this.trySubscribe(S)}catch(w){this._error(w)}},BufferToggleSubscriber.prototype.closeBuffer=function(w){var S=this.contexts;if(S&&w){var O=w.buffer,$=w.subscription;this.destination.next(O),S.splice(S.indexOf(w),1),this.remove($),$.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(w){var S=this.contexts,O=new se.a,$={buffer:[],subscription:O};S.push($);var x=Object(de.a)(this,w,$);!x||x.closed?this.closeBuffer($):(x.context=$,this.add(x),O.add(x))},BufferToggleSubscriber}(le.a);function bufferWhen(w){return function(S){return S.lift(new ve(w))}}var ve=function(){function BufferWhenOperator(w){this.closingSelector=w}return BufferWhenOperator.prototype.call=function(w,S){return S.subscribe(new ge(w,this.closingSelector))},BufferWhenOperator}(),ge=function(w){function BufferWhenSubscriber(S,O){var $=w.call(this,S)||this;return $.closingSelector=O,$.subscribing=!1,$.openBuffer(),$}return $.__extends(BufferWhenSubscriber,w),BufferWhenSubscriber.prototype._next=function(w){this.buffer.push(w)},BufferWhenSubscriber.prototype._complete=function(){var S=this.buffer;S&&this.destination.next(S),w.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var w=this.closingSubscription;w&&(this.remove(w),w.unsubscribe());var S,O=this.buffer;this.buffer&&this.destination.next(O),this.buffer=[];try{S=(0,this.closingSelector)()}catch(w){return this.error(w)}w=new se.a,this.closingSubscription=w,this.add(w),this.subscribing=!0,w.add(Object(x.c)(S,new x.a(this))),this.subscribing=!1},BufferWhenSubscriber}(x.b);function catchError(w){return function catchErrorOperatorFunction(S){var O=new Se(w),$=S.lift(O);return O.caught=$}}var Se=function(){function CatchOperator(w){this.selector=w}return CatchOperator.prototype.call=function(w,S){return S.subscribe(new Pe(w,this.selector,this.caught))},CatchOperator}(),Pe=function(w){function CatchSubscriber(S,O,$){var x=w.call(this,S)||this;return x.selector=O,x.caught=$,x}return $.__extends(CatchSubscriber,w),CatchSubscriber.prototype.error=function(S){if(!this.isStopped){var O=void 0;try{O=this.selector(S,this.caught)}catch(S){return void w.prototype.error.call(this,S)}this._unsubscribeAndRecycle();var $=new x.a(this);this.add($);var C=Object(x.c)(O,$);C!==$&&this.add(C)}},CatchSubscriber}(x.b),Ce=O(58);function combineAll(w){return function(S){return S.lift(new Ce.a(w))}}var Ie=O(9),Me=O(14);function combineLatest_combineLatest(){for(var w=[],S=0;S0&&O[0].time-$.now()<=0;)O.shift().notification.observe(x);if(O.length>0){var C=Math.max(0,O[0].time-$.now());this.schedule(w,C)}else this.unsubscribe(),S.active=!1},DelaySubscriber.prototype._schedule=function(w){this.active=!0,this.destination.add(w.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:w}))},DelaySubscriber.prototype.scheduleNotification=function(w){if(!0!==this.errored){var S=this.scheduler,O=new ot(S.now()+this.delay,w);this.queue.push(O),!1===this.active&&this._schedule(S)}},DelaySubscriber.prototype._next=function(w){this.scheduleNotification(rt.a.createNext(w))},DelaySubscriber.prototype._error=function(w){this.errored=!0,this.queue=[],this.destination.error(w),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(rt.a.createComplete()),this.unsubscribe()},DelaySubscriber}(W.a),ot=function(){return function DelayMessage(w,S){this.time=w,this.notification=S}}(),at=O(4);function delayWhen(w,S){return S?function(O){return new st(O,S).lift(new ut(w))}:function(S){return S.lift(new ut(w))}}var ut=function(){function DelayWhenOperator(w){this.delayDurationSelector=w}return DelayWhenOperator.prototype.call=function(w,S){return S.subscribe(new ct(w,this.delayDurationSelector))},DelayWhenOperator}(),ct=function(w){function DelayWhenSubscriber(S,O){var $=w.call(this,S)||this;return $.delayDurationSelector=O,$.completed=!1,$.delayNotifierSubscriptions=[],$.index=0,$}return $.__extends(DelayWhenSubscriber,w),DelayWhenSubscriber.prototype.notifyNext=function(w,S,O,$,x){this.destination.next(w),this.removeSubscription(x),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(w,S){this._error(w)},DelayWhenSubscriber.prototype.notifyComplete=function(w){var S=this.removeSubscription(w);S&&this.destination.next(S),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(w){var S=this.index++;try{var O=this.delayDurationSelector(w,S);O&&this.tryDelay(O,w)}catch(w){this.destination.error(w)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(w){w.unsubscribe();var S=this.delayNotifierSubscriptions.indexOf(w);return-1!==S&&this.delayNotifierSubscriptions.splice(S,1),w.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(w,S){var O=Object(de.a)(this,w,S);O&&!O.closed&&(this.destination.add(O),this.delayNotifierSubscriptions.push(O))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(le.a),st=function(w){function SubscriptionDelayObservable(S,O){var $=w.call(this)||this;return $.source=S,$.subscriptionDelay=O,$}return $.__extends(SubscriptionDelayObservable,w),SubscriptionDelayObservable.prototype._subscribe=function(w){this.subscriptionDelay.subscribe(new dt(w,this.source))},SubscriptionDelayObservable}(at.a),dt=function(w){function SubscriptionDelaySubscriber(S,O){var $=w.call(this)||this;return $.parent=S,$.source=O,$.sourceSubscribed=!1,$}return $.__extends(SubscriptionDelaySubscriber,w),SubscriptionDelaySubscriber.prototype._next=function(w){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(w){this.unsubscribe(),this.parent.error(w)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(W.a);function dematerialize(){return function dematerializeOperatorFunction(w){return w.lift(new lt)}}var lt=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(w,S){return S.subscribe(new ft(w))},DeMaterializeOperator}(),ft=function(w){function DeMaterializeSubscriber(S){return w.call(this,S)||this}return $.__extends(DeMaterializeSubscriber,w),DeMaterializeSubscriber.prototype._next=function(w){w.observe(this.destination)},DeMaterializeSubscriber}(W.a);function distinct(w,S){return function(O){return O.lift(new pt(w,S))}}var pt=function(){function DistinctOperator(w,S){this.keySelector=w,this.flushes=S}return DistinctOperator.prototype.call=function(w,S){return S.subscribe(new ht(w,this.keySelector,this.flushes))},DistinctOperator}(),ht=function(w){function DistinctSubscriber(S,O,$){var C=w.call(this,S)||this;return C.keySelector=O,C.values=new Set,$&&C.add(Object(x.c)($,new x.a(C))),C}return $.__extends(DistinctSubscriber,w),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(w){this._error(w)},DistinctSubscriber.prototype._next=function(w){this.keySelector?this._useKeySelector(w):this._finalizeNext(w,w)},DistinctSubscriber.prototype._useKeySelector=function(w){var S,O=this.destination;try{S=this.keySelector(w)}catch(w){return void O.error(w)}this._finalizeNext(S,w)},DistinctSubscriber.prototype._finalizeNext=function(w,S){var O=this.values;O.has(w)||(O.add(w),this.destination.next(S))},DistinctSubscriber}(x.b);function distinctUntilChanged(w,S){return function(O){return O.lift(new bt(w,S))}}var bt=function(){function DistinctUntilChangedOperator(w,S){this.compare=w,this.keySelector=S}return DistinctUntilChangedOperator.prototype.call=function(w,S){return S.subscribe(new yt(w,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),yt=function(w){function DistinctUntilChangedSubscriber(S,O,$){var x=w.call(this,S)||this;return x.keySelector=$,x.hasKey=!1,"function"==typeof O&&(x.compare=O),x}return $.__extends(DistinctUntilChangedSubscriber,w),DistinctUntilChangedSubscriber.prototype.compare=function(w,S){return w===S},DistinctUntilChangedSubscriber.prototype._next=function(w){var S;try{var O=this.keySelector;S=O?O(w):w}catch(w){return this.destination.error(w)}var $=!1;if(this.hasKey)try{$=(0,this.compare)(this.key,S)}catch(w){return this.destination.error(w)}else this.hasKey=!0;$||(this.key=S,this.destination.next(w))},DistinctUntilChangedSubscriber}(W.a);function distinctUntilKeyChanged(w,S){return distinctUntilChanged((function(O,$){return S?S(O[w],$[w]):O[w]===$[w]}))}var vt=O(28),mt=O(22),gt=O(31);function throwIfEmpty(w){return void 0===w&&(w=defaultErrorFactory),function(S){return S.lift(new wt(w))}}var wt=function(){function ThrowIfEmptyOperator(w){this.errorFactory=w}return ThrowIfEmptyOperator.prototype.call=function(w,S){return S.subscribe(new St(w,this.errorFactory))},ThrowIfEmptyOperator}(),St=function(w){function ThrowIfEmptySubscriber(S,O){var $=w.call(this,S)||this;return $.errorFactory=O,$.hasValue=!1,$}return $.__extends(ThrowIfEmptySubscriber,w),ThrowIfEmptySubscriber.prototype._next=function(w){this.hasValue=!0,this.destination.next(w)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var w=void 0;try{w=this.errorFactory()}catch(S){w=S}this.destination.error(w)},ThrowIfEmptySubscriber}(W.a);function defaultErrorFactory(){return new gt.a}var _t=O(13);function take(w){return function(S){return 0===w?Object(_t.b)():S.lift(new Ot(w))}}var Ot=function(){function TakeOperator(w){if(this.total=w,this.total<0)throw new vt.a}return TakeOperator.prototype.call=function(w,S){return S.subscribe(new $t(w,this.total))},TakeOperator}(),$t=function(w){function TakeSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.count=0,$}return $.__extends(TakeSubscriber,w),TakeSubscriber.prototype._next=function(w){var S=this.total,O=++this.count;O<=S&&(this.destination.next(w),O===S&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(W.a);function elementAt(w,S){if(w<0)throw new vt.a;var O=arguments.length>=2;return function($){return $.pipe(Object(mt.a)((function(S,O){return O===w})),take(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new vt.a})))}}var xt=O(45);function endWith(){for(var w=[],S=0;S0&&this._next(w.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(x.b);function finalize(w){return function(S){return S.lift(new Mt(w))}}var Mt=function(){function FinallyOperator(w){this.callback=w}return FinallyOperator.prototype.call=function(w,S){return S.subscribe(new Ft(w,this.callback))},FinallyOperator}(),Ft=function(w){function FinallySubscriber(S,O){var $=w.call(this,S)||this;return $.add(new se.a(O)),$}return $.__extends(FinallySubscriber,w),FinallySubscriber}(W.a);function find(w,S){if("function"!=typeof w)throw new TypeError("predicate is not a function");return function(O){return O.lift(new Rt(w,O,!1,S))}}var Rt=function(){function FindValueOperator(w,S,O,$){this.predicate=w,this.source=S,this.yieldIndex=O,this.thisArg=$}return FindValueOperator.prototype.call=function(w,S){return S.subscribe(new Lt(w,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),Lt=function(w){function FindValueSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;return j.predicate=O,j.source=$,j.yieldIndex=x,j.thisArg=C,j.index=0,j}return $.__extends(FindValueSubscriber,w),FindValueSubscriber.prototype.notifyComplete=function(w){var S=this.destination;S.next(w),S.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(w){var S=this.predicate,O=this.thisArg,$=this.index++;try{S.call(O||this,w,$,this.source)&&this.notifyComplete(this.yieldIndex?$:w)}catch(w){this.destination.error(w)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(W.a);function findIndex(w,S){return function(O){return O.lift(new Rt(w,O,!0,S))}}var Dt=O(20);function first(w,S){var O=arguments.length>=2;return function($){return $.pipe(w?Object(mt.a)((function(S,O){return w(S,O,$)})):Dt.a,take(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new gt.a})))}}var Bt=O(78);function ignoreElements(){return function ignoreElementsOperatorFunction(w){return w.lift(new Wt)}}var Wt=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(w,S){return S.subscribe(new Vt(w))},IgnoreElementsOperator}(),Vt=function(w){function IgnoreElementsSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(IgnoreElementsSubscriber,w),IgnoreElementsSubscriber.prototype._next=function(w){},IgnoreElementsSubscriber}(W.a);function isEmpty(){return function(w){return w.lift(new Ut)}}var Ut=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(w,S){return S.subscribe(new zt(w))},IsEmptyOperator}(),zt=function(w){function IsEmptySubscriber(S){return w.call(this,S)||this}return $.__extends(IsEmptySubscriber,w),IsEmptySubscriber.prototype.notifyComplete=function(w){var S=this.destination;S.next(w),S.complete()},IsEmptySubscriber.prototype._next=function(w){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(W.a);function takeLast(w){return function takeLastOperatorFunction(S){return 0===w?Object(_t.b)():S.lift(new Gt(w))}}var Gt=function(){function TakeLastOperator(w){if(this.total=w,this.total<0)throw new vt.a}return TakeLastOperator.prototype.call=function(w,S){return S.subscribe(new Yt(w,this.total))},TakeLastOperator}(),Yt=function(w){function TakeLastSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.ring=new Array,$.count=0,$}return $.__extends(TakeLastSubscriber,w),TakeLastSubscriber.prototype._next=function(w){var S=this.ring,O=this.total,$=this.count++;S.length0)for(var O=this.count>=this.total?this.total:this.count,$=this.ring,x=0;x=2;return function($){return $.pipe(w?Object(mt.a)((function(S,O){return w(S,O,$)})):Dt.a,takeLast(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new gt.a})))}}function mapTo(w){return function(S){return S.lift(new qt(w))}}var qt=function(){function MapToOperator(w){this.value=w}return MapToOperator.prototype.call=function(w,S){return S.subscribe(new Ht(w,this.value))},MapToOperator}(),Ht=function(w){function MapToSubscriber(S,O){var $=w.call(this,S)||this;return $.value=O,$}return $.__extends(MapToSubscriber,w),MapToSubscriber.prototype._next=function(w){this.destination.next(this.value)},MapToSubscriber}(W.a);function materialize(){return function materializeOperatorFunction(w){return w.lift(new Kt)}}var Kt=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(w,S){return S.subscribe(new Xt(w))},MaterializeOperator}(),Xt=function(w){function MaterializeSubscriber(S){return w.call(this,S)||this}return $.__extends(MaterializeSubscriber,w),MaterializeSubscriber.prototype._next=function(w){this.destination.next(rt.a.createNext(w))},MaterializeSubscriber.prototype._error=function(w){var S=this.destination;S.next(rt.a.createError(w)),S.complete()},MaterializeSubscriber.prototype._complete=function(){var w=this.destination;w.next(rt.a.createComplete()),w.complete()},MaterializeSubscriber}(W.a);function scan(w,S){var O=!1;return arguments.length>=2&&(O=!0),function scanOperatorFunction($){return $.lift(new Zt(w,S,O))}}var Zt=function(){function ScanOperator(w,S,O){void 0===O&&(O=!1),this.accumulator=w,this.seed=S,this.hasSeed=O}return ScanOperator.prototype.call=function(w,S){return S.subscribe(new Jt(w,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),Jt=function(w){function ScanSubscriber(S,O,$,x){var C=w.call(this,S)||this;return C.accumulator=O,C._seed=$,C.hasSeed=x,C.index=0,C}return $.__extends(ScanSubscriber,w),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(w){this.hasSeed=!0,this._seed=w},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(w){if(this.hasSeed)return this._tryNext(w);this.seed=w,this.destination.next(w)},ScanSubscriber.prototype._tryNext=function(w){var S,O=this.index++;try{S=this.accumulator(this.seed,w,O)}catch(w){this.destination.error(w)}this.seed=S,this.destination.next(S)},ScanSubscriber}(W.a),Qt=O(48);function reduce(w,S){return arguments.length>=2?function reduceOperatorFunctionWithSeed(O){return Object(Qt.a)(scan(w,S),takeLast(1),defaultIfEmpty(S))(O)}:function reduceOperatorFunction(S){return Object(Qt.a)(scan((function(S,O,$){return w(S,O,$+1)})),takeLast(1))(S)}}function max_max(w){return reduce("function"==typeof w?function(S,O){return w(S,O)>0?S:O}:function(w,S){return w>S?w:S})}var er=O(85);function merge_merge(){for(var w=[],S=0;S0?this._next(w.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(x.b);function min_min(w){return reduce("function"==typeof w?function(S,O){return w(S,O)<0?S:O}:function(w,S){return w-1&&(this.count=O-1),S.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(W.a);function repeatWhen(w){return function(S){return S.lift(new gr(w))}}var gr=function(){function RepeatWhenOperator(w){this.notifier=w}return RepeatWhenOperator.prototype.call=function(w,S){return S.subscribe(new wr(w,this.notifier,S))},RepeatWhenOperator}(),wr=function(w){function RepeatWhenSubscriber(S,O,$){var x=w.call(this,S)||this;return x.notifier=O,x.source=$,x.sourceIsBeingSubscribedTo=!0,x}return $.__extends(RepeatWhenSubscriber,w),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return w.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return w.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var w=this.notifications,S=this.retriesSubscription;w&&(w.unsubscribe(),this.notifications=void 0),S&&(S.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var S=this._unsubscribe;return this._unsubscribe=null,w.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=S,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){var S;this.notifications=new fr.a;try{S=(0,this.notifier)(this.notifications)}catch(S){return w.prototype.complete.call(this)}this.retries=S,this.retriesSubscription=Object(x.c)(S,new x.a(this))},RepeatWhenSubscriber}(x.b);function retry(w){return void 0===w&&(w=-1),function(S){return S.lift(new Sr(w,S))}}var Sr=function(){function RetryOperator(w,S){this.count=w,this.source=S}return RetryOperator.prototype.call=function(w,S){return S.subscribe(new _r(w,this.count,this.source))},RetryOperator}(),_r=function(w){function RetrySubscriber(S,O,$){var x=w.call(this,S)||this;return x.count=O,x.source=$,x}return $.__extends(RetrySubscriber,w),RetrySubscriber.prototype.error=function(S){if(!this.isStopped){var O=this.source,$=this.count;if(0===$)return w.prototype.error.call(this,S);$>-1&&(this.count=$-1),O.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(W.a);function retryWhen(w){return function(S){return S.lift(new Or(w,S))}}var Or=function(){function RetryWhenOperator(w,S){this.notifier=w,this.source=S}return RetryWhenOperator.prototype.call=function(w,S){return S.subscribe(new $r(w,this.notifier,this.source))},RetryWhenOperator}(),$r=function(w){function RetryWhenSubscriber(S,O,$){var x=w.call(this,S)||this;return x.notifier=O,x.source=$,x}return $.__extends(RetryWhenSubscriber,w),RetryWhenSubscriber.prototype.error=function(S){if(!this.isStopped){var O=this.errors,$=this.retries,C=this.retriesSubscription;if($)this.errors=void 0,this.retriesSubscription=void 0;else{O=new fr.a;try{$=(0,this.notifier)(O)}catch(S){return w.prototype.error.call(this,S)}C=Object(x.c)($,new x.a(this))}this._unsubscribeAndRecycle(),this.errors=O,this.retries=$,this.retriesSubscription=C,O.next(S)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var w=this.errors,S=this.retriesSubscription;w&&(w.unsubscribe(),this.errors=void 0),S&&(S.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var w=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=w,this.source.subscribe(this)},RetryWhenSubscriber}(x.b),xr=O(55);function sample(w){return function(S){return S.lift(new Er(w))}}var Er=function(){function SampleOperator(w){this.notifier=w}return SampleOperator.prototype.call=function(w,S){var O=new Pr(w),$=S.subscribe(O);return $.add(Object(x.c)(this.notifier,new x.a(O))),$},SampleOperator}(),Pr=function(w){function SampleSubscriber(){var S=null!==w&&w.apply(this,arguments)||this;return S.hasValue=!1,S}return $.__extends(SampleSubscriber,w),SampleSubscriber.prototype._next=function(w){this.value=w,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(x.b);function sampleTime(w,S){return void 0===S&&(S=N.a),function(O){return O.lift(new Cr(w,S))}}var Cr=function(){function SampleTimeOperator(w,S){this.period=w,this.scheduler=S}return SampleTimeOperator.prototype.call=function(w,S){return S.subscribe(new jr(w,this.period,this.scheduler))},SampleTimeOperator}(),jr=function(w){function SampleTimeSubscriber(S,O,$){var x=w.call(this,S)||this;return x.period=O,x.scheduler=$,x.hasValue=!1,x.add($.schedule(dispatchNotification,O,{subscriber:x,period:O})),x}return $.__extends(SampleTimeSubscriber,w),SampleTimeSubscriber.prototype._next=function(w){this.lastValue=w,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(W.a);function dispatchNotification(w){var S=w.subscriber,O=w.period;S.notifyNext(),this.schedule(w,O)}function sequenceEqual(w,S){return function(O){return O.lift(new Tr(w,S))}}var Tr=function(){function SequenceEqualOperator(w,S){this.compareTo=w,this.comparator=S}return SequenceEqualOperator.prototype.call=function(w,S){return S.subscribe(new Nr(w,this.compareTo,this.comparator))},SequenceEqualOperator}(),Nr=function(w){function SequenceEqualSubscriber(S,O,$){var x=w.call(this,S)||this;return x.compareTo=O,x.comparator=$,x._a=[],x._b=[],x._oneComplete=!1,x.destination.add(O.subscribe(new kr(S,x))),x}return $.__extends(SequenceEqualSubscriber,w),SequenceEqualSubscriber.prototype._next=function(w){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(w),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var w=this._a,S=this._b,O=this.comparator;w.length>0&&S.length>0;){var $=w.shift(),x=S.shift(),C=!1;try{C=O?O($,x):$===x}catch(w){this.destination.error(w)}C||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(w){var S=this.destination;S.next(w),S.complete()},SequenceEqualSubscriber.prototype.nextB=function(w){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(w),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(W.a),kr=function(w){function SequenceEqualCompareToSubscriber(S,O){var $=w.call(this,S)||this;return $.parent=O,$}return $.__extends(SequenceEqualCompareToSubscriber,w),SequenceEqualCompareToSubscriber.prototype._next=function(w){this.parent.nextB(w)},SequenceEqualCompareToSubscriber.prototype._error=function(w){this.parent.error(w),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(W.a);function shareSubjectFactory(){return new fr.a}function share(){return function(w){return Object(xr.a)()(multicast(shareSubjectFactory)(w))}}function shareReplay(w,S,O){var $;return $=w&&"object"==typeof w?w:{bufferSize:w,windowTime:S,refCount:!1,scheduler:O},function(w){return w.lift(function shareReplayOperator(w){var S,O,$=w.bufferSize,x=void 0===$?Number.POSITIVE_INFINITY:$,C=w.windowTime,j=void 0===C?Number.POSITIVE_INFINITY:C,N=w.refCount,k=w.scheduler,I=0,R=!1,W=!1;return function shareReplayOperation(w){var $;I++,!S||R?(R=!1,S=new br.a(x,j,k),$=S.subscribe(this),O=w.subscribe({next:function(w){S.next(w)},error:function(w){R=!0,S.error(w)},complete:function(){W=!0,O=void 0,S.complete()}}),W&&(O=void 0)):$=S.subscribe(this),this.add((function(){I--,$.unsubscribe(),$=void 0,O&&!W&&N&&0===I&&(O.unsubscribe(),O=void 0,S=void 0)}))}}($))}}function single(w){return function(S){return S.lift(new Ar(w,S))}}var Ar=function(){function SingleOperator(w,S){this.predicate=w,this.source=S}return SingleOperator.prototype.call=function(w,S){return S.subscribe(new Ir(w,this.predicate,this.source))},SingleOperator}(),Ir=function(w){function SingleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.predicate=O,x.source=$,x.seenValue=!1,x.index=0,x}return $.__extends(SingleSubscriber,w),SingleSubscriber.prototype.applySingleValue=function(w){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=w)},SingleSubscriber.prototype._next=function(w){var S=this.index++;this.predicate?this.tryNext(w,S):this.applySingleValue(w)},SingleSubscriber.prototype.tryNext=function(w,S){try{this.predicate(w,S,this.source)&&this.applySingleValue(w)}catch(w){this.destination.error(w)}},SingleSubscriber.prototype._complete=function(){var w=this.destination;this.index>0?(w.next(this.seenValue?this.singleValue:void 0),w.complete()):w.error(new gt.a)},SingleSubscriber}(W.a);function skip(w){return function(S){return S.lift(new Mr(w))}}var Mr=function(){function SkipOperator(w){this.total=w}return SkipOperator.prototype.call=function(w,S){return S.subscribe(new Fr(w,this.total))},SkipOperator}(),Fr=function(w){function SkipSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.count=0,$}return $.__extends(SkipSubscriber,w),SkipSubscriber.prototype._next=function(w){++this.count>this.total&&this.destination.next(w)},SkipSubscriber}(W.a);function skipLast(w){return function(S){return S.lift(new Rr(w))}}var Rr=function(){function SkipLastOperator(w){if(this._skipCount=w,this._skipCount<0)throw new vt.a}return SkipLastOperator.prototype.call=function(w,S){return 0===this._skipCount?S.subscribe(new W.a(w)):S.subscribe(new Lr(w,this._skipCount))},SkipLastOperator}(),Lr=function(w){function SkipLastSubscriber(S,O){var $=w.call(this,S)||this;return $._skipCount=O,$._count=0,$._ring=new Array(O),$}return $.__extends(SkipLastSubscriber,w),SkipLastSubscriber.prototype._next=function(w){var S=this._skipCount,O=this._count++;if(O0?this.startWindowEvery:this.windowSize,O=this.destination,$=this.windowSize,x=this.windows,C=x.length,j=0;j=0&&N%S==0&&!this.closed&&x.shift().complete(),++this.count%S==0&&!this.closed){var k=new fr.a;x.push(k),O.next(k)}},WindowCountSubscriber.prototype._error=function(w){var S=this.windows;if(S)for(;S.length>0&&!this.closed;)S.shift().error(w);this.destination.error(w)},WindowCountSubscriber.prototype._complete=function(){var w=this.windows;if(w)for(;w.length>0&&!this.closed;)w.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(W.a);function windowTime_windowTime(w){var S=N.a,O=null,$=Number.POSITIVE_INFINITY;return Object(ie.a)(arguments[3])&&(S=arguments[3]),Object(ie.a)(arguments[2])?S=arguments[2]:Object(zr.a)(arguments[2])&&($=Number(arguments[2])),Object(ie.a)(arguments[1])?S=arguments[1]:Object(zr.a)(arguments[1])&&(O=Number(arguments[1])),function windowTimeOperatorFunction(x){return x.lift(new Sn(w,O,$,S))}}var Sn=function(){function WindowTimeOperator(w,S,O,$){this.windowTimeSpan=w,this.windowCreationInterval=S,this.maxWindowSize=O,this.scheduler=$}return WindowTimeOperator.prototype.call=function(w,S){return S.subscribe(new On(w,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),_n=function(w){function CountedSubject(){var S=null!==w&&w.apply(this,arguments)||this;return S._numberOfNextedValues=0,S}return $.__extends(CountedSubject,w),CountedSubject.prototype.next=function(S){this._numberOfNextedValues++,w.prototype.next.call(this,S)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}(fr.a),On=function(w){function WindowTimeSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;j.destination=S,j.windowTimeSpan=O,j.windowCreationInterval=$,j.maxWindowSize=x,j.scheduler=C,j.windows=[];var N=j.openWindow();if(null!==$&&$>=0){var k={subscriber:j,window:N,context:null},I={windowTimeSpan:O,windowCreationInterval:$,subscriber:j,scheduler:C};j.add(C.schedule(dispatchWindowClose,O,k)),j.add(C.schedule(dispatchWindowCreation,$,I))}else{var R={subscriber:j,window:N,windowTimeSpan:O};j.add(C.schedule(dispatchWindowTimeSpanOnly,O,R))}return j}return $.__extends(WindowTimeSubscriber,w),WindowTimeSubscriber.prototype._next=function(w){for(var S=this.windows,O=S.length,$=0;$=this.maxWindowSize&&this.closeWindow(x))}},WindowTimeSubscriber.prototype._error=function(w){for(var S=this.windows;S.length>0;)S.shift().error(w);this.destination.error(w)},WindowTimeSubscriber.prototype._complete=function(){for(var w=this.windows;w.length>0;){var S=w.shift();S.closed||S.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var w=new _n;return this.windows.push(w),this.destination.next(w),w},WindowTimeSubscriber.prototype.closeWindow=function(w){w.complete();var S=this.windows;S.splice(S.indexOf(w),1)},WindowTimeSubscriber}(W.a);function dispatchWindowTimeSpanOnly(w){var S=w.subscriber,O=w.windowTimeSpan,$=w.window;$&&S.closeWindow($),w.window=S.openWindow(),this.schedule(w,O)}function dispatchWindowCreation(w){var S=w.windowTimeSpan,O=w.subscriber,$=w.scheduler,x=w.windowCreationInterval,C=O.openWindow(),j={action:this,subscription:null},N={subscriber:O,window:C,context:j};j.subscription=$.schedule(dispatchWindowClose,S,N),this.add(j.subscription),this.schedule(w,x)}function dispatchWindowClose(w){var S=w.subscriber,O=w.window,$=w.context;$&&$.action&&$.subscription&&$.action.remove($.subscription),S.closeWindow(O)}function windowToggle(w,S){return function(O){return O.lift(new $n(w,S))}}var $n=function(){function WindowToggleOperator(w,S){this.openings=w,this.closingSelector=S}return WindowToggleOperator.prototype.call=function(w,S){return S.subscribe(new xn(w,this.openings,this.closingSelector))},WindowToggleOperator}(),xn=function(w){function WindowToggleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.openings=O,x.closingSelector=$,x.contexts=[],x.add(x.openSubscription=Object(de.a)(x,O,O)),x}return $.__extends(WindowToggleSubscriber,w),WindowToggleSubscriber.prototype._next=function(w){var S=this.contexts;if(S)for(var O=S.length,$=0;$0){var x=$.indexOf(O);-1!==x&&$.splice(x,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(w){if(0===this.toRespond.length){var S=[w].concat(this.values);this.project?this._tryProject(S):this.destination.next(S)}},WithLatestFromSubscriber.prototype._tryProject=function(w){var S;try{S=this.project.apply(this,w)}catch(w){return void this.destination.error(w)}this.destination.next(S)},WithLatestFromSubscriber}(le.a),Tn=O(61);function zip_zip(){for(var w=[],S=0;Sj)return 1;if(j>C)return-1;if(!isNaN(C)&&isNaN(j))return 1;if(isNaN(C)&&!isNaN(j))return-1}return w[1]&&S[1]?w[1]>S[1]?1:w[1]=2&&se.test(w)}var de=new RegExp("(?:"+createExtensionPattern()+")$","i");function _createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function _unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return _arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return _arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function parseIncompletePhoneNumber_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mergeArrays_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);Oj)return"TOO_SHORT";if(x[x.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(w,void 0,S)}function isPossibleNumber(w,S){switch(checkNumberLength(w,S)){case"IS_POSSIBLE":return!0;default:return!1}}function matchesEntirely(w,S){return w=w||"",new RegExp("^(?:"+S+")$").test(w)}function getNumberType_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function getNumberType_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return getNumberType_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return getNumberType_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function getNumberType_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=0)return!0;return!1}(S,w,O)})):[]}function applyInternationalSeparatorStyle(w){return w.replace(new RegExp("[".concat(C,"]+"),"g")," ").trim()}var ye=/(\$\d)/;function formatNationalNumberUsingFormat(w,S,O){var $=O.useInternationalFormat,x=O.withNationalPrefix,C=(O.carrierCode,O.metadata,w.replace(new RegExp(S.pattern()),$?S.internationalFormat():x&&S.nationalPrefixFormattingRule()?S.format().replace(ye,S.nationalPrefixFormattingRule()):S.format()));return $?applyInternationalSeparatorStyle(C):C}var ve=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function _slicedToArray(w,S){return function _arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function _iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||RFC3966_unsupportedIterableToArray(w,S)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RFC3966_unsupportedIterableToArray(w,S){if(w){if("string"==typeof w)return RFC3966_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);return"Object"===O&&w.constructor&&(O=w.constructor.name),"Map"===O||"Set"===O?Array.from(w):"Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?RFC3966_arrayLikeToArray(w,S):void 0}}function RFC3966_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((w=w.replace(/^tel:/,"tel=")).split(";"));!($=x()).done;){var C=_slicedToArray($.value.split("="),2),j=C[0],N=C[1];switch(j){case"tel":S=N;break;case"ext":O=N;break;case"phone-context":"+"===N[0]&&(S=N+S)}}if(!isViablePhoneNumber(S))return{};var k={number:S};return O&&(k.ext=O),k}function formatRFC3966(w){var S=w.number,O=w.ext;if(!S)return"";if("+"!==S[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(S).concat(O?";ext="+O:"")}function format_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function format_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return format_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return format_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function format_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O0){var C=x.leadingDigitsPatterns()[x.leadingDigitsPatterns().length-1];if(0!==S.search(C))continue}if(matchesEntirely(S,x.pattern()))return x}}function addExtension(w,S,O,$){return S?$(w,S,O):w}function PhoneNumber_ownKeys(w,S){var O=Object.keys(w);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(w);S&&($=$.filter((function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable}))),O.push.apply(O,$)}return O}function PhoneNumber_objectSpread(w){for(var S=1;S0&&"0"===j[1]))return w}}}function extractNationalNumberFromPossiblyIncompleteNumber(w,S){if(w&&S.numberingPlan.nationalPrefixForParsing()){var O=new RegExp("^(?:"+S.numberingPlan.nationalPrefixForParsing()+")"),$=O.exec(w);if($){var x,C,j,N=$.length-1,k=N>0&&$[N];if(S.nationalPrefixTransformRule()&&k)x=w.replace(O,S.nationalPrefixTransformRule()),N>1&&(C=$[1]);else{var I=$[0];x=w.slice(I.length),k&&(C=$[1])}if(k){var R=w.indexOf($[1]);w.slice(0,R)===S.numberingPlan.nationalPrefix()&&(j=S.numberingPlan.nationalPrefix())}else j=$[0];return{nationalNumber:x,nationalPrefix:j,carrierCode:C}}}return{nationalNumber:w}}function extractNationalNumber(w,S){var O=extractNationalNumberFromPossiblyIncompleteNumber(w,S),$=O.carrierCode,x=O.nationalNumber;if(x!==w){if(!function shouldHaveExtractedNationalPrefix(w,S,O){if(matchesEntirely(w,O.nationalNumberPattern())&&!matchesEntirely(S,O.nationalNumberPattern()))return!1;return!0}(w,x,S))return{nationalNumber:w};if(S.possibleLengths()&&!function isPossibleIncompleteNationalNumber(w,S){switch(checkNumberLength(w,S)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(x,S))return{nationalNumber:w}}return{nationalNumber:x,carrierCode:$}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w,S,O,$){var x=S?getCountryCallingCode(S,$):O;if(0===w.indexOf(x)){($=new I($)).selectNumberingPlan(S,O);var C=w.slice(x.length),j=extractNationalNumber(C,$).nationalNumber,N=extractNationalNumber(w,$).nationalNumber;if(!matchesEntirely(N,$.nationalNumberPattern())&&matchesEntirely(j,$.nationalNumberPattern())||"TOO_LONG"===checkNumberLength(N,$))return{countryCallingCode:x,number:C}}return{number:w}}function extractCountryCallingCode_extractCountryCallingCode(w,S,O,$){if(!w)return{};var x;if("+"!==w[0]){var C=stripIddPrefix(w,S,O,$);if(!C||C===w){if(S||O){var j=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w,S,O,$),N=j.countryCallingCode,k=j.number;if(N)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:N,number:k}}return{number:w}}x=!0,w="+"+C}if("0"===w[1])return{};$=new I($);for(var R=2;R-1<=3&&R<=w.length;){var W=w.slice(1,R);if($.hasCallingCode(W))return $.selectNumberingPlan(W),{countryCallingCodeSource:x?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:W,number:w.slice(R)};R++}return{}}function getCountryByNationalNumber_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function getCountryByNationalNumber_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return getCountryByNationalNumber_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return getCountryByNationalNumber_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function getCountryByNationalNumber_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length)return"";var $=w.indexOf(";",O);return $>=0?w.substring(O,$):w.substring(O)}(w);if(!function isPhoneContextValid(w){return null===w||0!==w.length&&(Ce.test(w)||Ie.test(w))}(x))throw new j("NOT_A_NUMBER");if(null===x)O=$(w)||"";else{O="","+"===x.charAt(0)&&(O+=x);var C,N=w.indexOf("tel:");C=N>=0?N+"tel:".length:0;var k=w.indexOf(";phone-context=");O+=w.substring(C,k)}var I=O.indexOf(";isub=");if(I>0&&(O=O.substring(0,I)),""!==O)return O}var Me=new RegExp("[++"+x+"]"),Fe=new RegExp("[^"+x+"#]+$");function parse(w,S,O){if(S=S||{},O=new I(O),S.defaultCountry&&!O.hasCountry(S.defaultCountry)){if(S.v2)throw new j("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(S.defaultCountry))}var $=function parseInput(w,S,O){var $=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(w,{extractFormattedPhoneNumber:function extractFormattedPhoneNumber(w){return function _extractFormattedPhoneNumber(w,S,O){if(!w)return;if(w.length>250){if(O)throw new j("TOO_LONG");return}if(!1===S)return w;var $=w.search(Me);if($<0)return;return w.slice($).replace(Fe,"")}(w,O,S)}});if(!$)return{};if(!isViablePhoneNumber($))return function isViablePhoneNumberStart(w){return ue.test(w)}($)?{error:"TOO_SHORT"}:{};var x=function extractExtension(w){var S=w.search(de);if(S<0)return{};for(var O=w.slice(0,S),$=w.match(de),x=1;x<$.length;){if($[x])return{number:O,ext:$[x]};x++}}($);if(x.ext)return x;return{number:$}}(w,S.v2,S.extract),x=$.number,C=$.ext,N=$.error;if(!x){if(S.v2){if("TOO_SHORT"===N)throw new j("TOO_SHORT");throw new j("NOT_A_NUMBER")}return{}}var k=function parsePhoneNumber(w,S,O,$){var x,C=extractCountryCallingCode_extractCountryCallingCode(parseIncompletePhoneNumber(w),S,O,$.metadata),j=C.countryCallingCodeSource,N=C.countryCallingCode,k=C.number;if(N)$.selectNumberingPlan(N);else{if(!k||!S&&!O)return{};$.selectNumberingPlan(S,O),S&&(x=S),N=O||getCountryCallingCode(S,$.metadata)}if(!k)return{countryCallingCodeSource:j,countryCallingCode:N};var I=extractNationalNumber(parseIncompletePhoneNumber(k),$),R=I.nationalNumber,W=I.carrierCode,G=getCountryByCallingCode(N,{nationalNumber:R,defaultCountry:S,metadata:$});G&&(x=G,"001"===G||$.country(x));return{country:x,countryCallingCode:N,countryCallingCodeSource:j,nationalNumber:R,carrierCode:W}}(x,S.defaultCountry,S.defaultCallingCode,O),R=k.country,W=k.nationalNumber,G=k.countryCallingCode,J=k.countryCallingCodeSource,re=k.carrierCode;if(!O.hasSelectedNumberingPlan()){if(S.v2)throw new j("INVALID_COUNTRY");return{}}if(!W||W.length<2){if(S.v2)throw new j("TOO_SHORT");return{}}if(W.length>17){if(S.v2)throw new j("TOO_LONG");return{}}if(S.v2){var ie=new Se(G,W,O.metadata);return R&&(ie.country=R),re&&(ie.carrierCode=re),C&&(ie.ext=C),ie.__countryCallingCodeSource=J,ie}var oe=!!(S.extended?O.hasSelectedNumberingPlan():R)&&matchesEntirely(W,O.nationalNumberPattern());return S.extended?{country:R,countryCallingCode:G,carrierCode:re,valid:oe,possible:!!oe||!(!0!==S.extended||!O.possibleLengths()||!isPossibleNumber(W,O)),phone:W,ext:C}:oe?function parse_result(w,S,O){var $={country:w,phone:S};O&&($.ext=O);return $}(R,W,C):{}}function parsePhoneNumberWithError_ownKeys(w,S){var O=Object.keys(w);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(w);S&&($=$.filter((function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable}))),O.push.apply(O,$)}return O}function parsePhoneNumberWithError_objectSpread(w){for(var S=1;Sw.length)&&(S=w.length);for(var O=0,$=new Array(S);O2&&void 0!==arguments[2]?arguments[2]:null,$=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;LRUCache_classCallCheck(this,Node),this.key=w,this.value=S,this.next=O,this.prev=$})),De=function(){function LRUCache(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;LRUCache_classCallCheck(this,LRUCache),this.size=0,this.limit=w,this.head=null,this.tail=null,this.cache={}}return LRUCache_createClass(LRUCache,[{key:"put",value:function put(w,S){if(this.ensureLimit(),this.head){var O=new Re(w,S,this.head);this.head.prev=O,this.head=O}else this.head=this.tail=new Re(w,S);this.cache[w]=this.head,this.size++}},{key:"get",value:function get(w){if(this.cache[w]){var S=this.cache[w].value;return this.remove(w),this.put(w,S),S}console.log("Item not available in cache for key ".concat(w))}},{key:"ensureLimit",value:function ensureLimit(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function remove(w){var S=this.cache[w];null!==S.prev?S.prev.next=S.next:this.head=S.next,null!==S.next?S.next.prev=S.prev:this.tail=S.prev,delete this.cache[w],this.size--}},{key:"clear",value:function clear(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),LRUCache}();function RegExpCache_defineProperties(w,S){for(var O=0;O=0?S.slice(0,O):S}var Ge="   ᠎ - \u2028\u2029   ",He="[".concat(Ge,"]"),Ke="[^".concat(Ge,"]"),Ze="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),Qe="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",et="[".concat(Qe,"]"),tt=new RegExp(et),rt="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),nt=new RegExp(rt),it="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),ot=new RegExp(it),at=new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function isLatinLetter(w){return!(!tt.test(w)&&!ot.test(w))&&at.test(w)}function isInvalidPunctuationSymbol(w){return"%"===w||nt.test(w)}function matchPhoneNumberStringAgainstPhoneNumber(w,S,O){var $=!0,x=es6_parsePhoneNumber_parsePhoneNumber(w,O);if(x||($=!1,x=es6_parsePhoneNumber_parsePhoneNumber(w,{defaultCallingCode:S.countryCallingCode},O)),!x)return"INVALID_NUMBER";if(S.ext){if(x.ext!==S.ext)return"NO_MATCH"}else if(x.ext)return"NO_MATCH";return $&&S.countryCallingCode!==x.countryCallingCode?"NO_MATCH":S.number===x.number?$?"EXACT_MATCH":"NSN_MATCH":0===S.nationalNumber.indexOf(x.nationalNumber)||0===x.nationalNumber.indexOf(S.nationalNumber)?"SHORT_NSN_MATCH":"NO_MATCH"}var ut={POSSIBLE:function POSSIBLE(w,S){S.candidate,S.metadata;return!0},VALID:function VALID(w,S){var O=S.candidate,$=(S.defaultCountry,S.metadata);return!(!w.isValid()||!containsOnlyValidXChars(w,O,$))},STRICT_GROUPING:function STRICT_GROUPING(w,S){var O=S.candidate,$=S.defaultCountry,x=S.metadata,C=S.regExpCache;return!(!w.isValid()||!containsOnlyValidXChars(w,O,x)||containsMoreThanOneSlashInNationalNumber(w,O)||!isNationalPrefixPresentIfRequired(w,{defaultCountry:$,metadata:x}))&&checkNumberGroupingIsValid(w,O,x,allNumberGroupsRemainGrouped,C)},EXACT_GROUPING:function EXACT_GROUPING(w,S){var O=S.candidate,$=S.defaultCountry,x=S.metadata,C=S.regExpCache;return!(!w.isValid()||!containsOnlyValidXChars(w,O,x)||containsMoreThanOneSlashInNationalNumber(w,O)||!isNationalPrefixPresentIfRequired(w,{defaultCountry:$,metadata:x}))&&checkNumberGroupingIsValid(w,O,x,allNumberGroupsAreExactlyPresent,C)}};function containsOnlyValidXChars(w,S,O){for(var $=0;$=0)}function checkNumberGroupingIsValid(w,S,O,$,x){throw new Error("This part of code hasn't been ported")}function allNumberGroupsAreExactlyPresent(w,S,O,$){throw new Error("This part of code hasn't been ported")}function allNumberGroupsRemainGrouped(w,S,O,$){throw new Error("This part of code hasn't been ported")}var ct=/[\\/] *x/;function parsePreCandidate(w){return trimAfterFirstMatch(ct,w)}var st=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,dt=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,lt=/^:[0-5]\d/;function isValidPreCandidate(w,S,O){if(st.test(w))return!1;if(dt.test(w)){var $=O.slice(S+w.length);if(lt.test($))return!1}return!0}var ft="[^".concat("(\\[([").concat(")\\])]","]"),pt="[".concat("(\\[([").concat("++","]"),ht=new RegExp("^"+pt),bt=limit(0,3),yt=new RegExp("^(?:[(\\[([])?(?:"+ft+"+[)\\])]])?"+ft+"+(?:[(\\[([]"+ft+"+[)\\])]])"+bt+ft+"*$"),vt=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function PhoneNumberMatcher_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function PhoneNumberMatcher_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return PhoneNumberMatcher_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return PhoneNumberMatcher_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PhoneNumberMatcher_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O0&&void 0!==arguments[0]?arguments[0]:"",S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},O=arguments.length>2?arguments[2]:void 0;if(PhoneNumberMatcher_classCallCheck(this,PhoneNumberMatcher),!(S={v2:S.v2,defaultCallingCode:S.defaultCallingCode,defaultCountry:S.defaultCountry&&isSupportedCountry(S.defaultCountry,O)?S.defaultCountry:void 0,leniency:S.leniency||(S.extended?"POSSIBLE":"VALID"),maxTries:S.maxTries||Pt}).leniency)throw new TypeError("`leniency` is required");if("POSSIBLE"!==S.leniency&&"VALID"!==S.leniency)throw new TypeError('Invalid `leniency`: "'.concat(S.leniency,'". Supported values: "POSSIBLE", "VALID".'));if(S.maxTries<0)throw new TypeError("`maxTries` must be `>= 0`");if(this.text=w,this.options=S,this.metadata=O,this.leniency=ut[S.leniency],!this.leniency)throw new TypeError('Unknown leniency: "'.concat(S.leniency,'"'));this.maxTries=S.maxTries,this.PATTERN=new RegExp(xt,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new Ue(32)}return function PhoneNumberMatcher_createClass(w,S,O){return S&&PhoneNumberMatcher_defineProperties(w.prototype,S),O&&PhoneNumberMatcher_defineProperties(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}(PhoneNumberMatcher,[{key:"find",value:function find(){for(var w;this.maxTries>0&&null!==(w=this.PATTERN.exec(this.text));){var S=w[0],O=w.index;if(isValidPreCandidate(S=parsePreCandidate(S),O,this.text)){var $=this.parseAndVerify(S,O,this.text)||this.extractInnerMatch(S,O,this.text);if($){if(this.options.v2)return{startsAt:$.startsAt,endsAt:$.endsAt,number:$.phoneNumber};var x=$.phoneNumber,C={startsAt:$.startsAt,endsAt:$.endsAt,phone:x.nationalNumber};return x.country?C.country=x.country:C.countryCallingCode=x.countryCallingCode,x.ext&&(C.ext=x.ext),C}}this.maxTries--}}},{key:"extractInnerMatch",value:function extractInnerMatch(w,S,O){for(var $,x=PhoneNumberMatcher_createForOfIteratorHelperLoose(gt);!($=x()).done;)for(var C=$.value,j=!0,N=void 0,k=new RegExp(C,"g");this.maxTries>0&&null!==(N=k.exec(w));){if(j){var I=trimAfterFirstMatch(Et,w.slice(0,N.index)),R=this.parseAndVerify(I,S,O);if(R)return R;this.maxTries--,j=!1}var W=trimAfterFirstMatch(Et,N[1]),G=w.indexOf(W,N.index),J=this.parseAndVerify(W,S+G,O);if(J)return J;this.maxTries--}}},{key:"parseAndVerify",value:function parseAndVerify(w,S,O){if(function isValidCandidate(w,S,O,$){if(yt.test(w)&&!vt.test(w)){if("POSSIBLE"!==$){if(S>0&&!ht.test(w)){var x=O[S-1];if(isInvalidPunctuationSymbol(x)||isLatinLetter(x))return!1}var C=S+w.length;if(C=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_util_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1;)1&S&&(O+=w),S>>=1,w+=w;return O+w}function cutAndStripNonPairedParens(w,S){return")"===w[S]&&S++,function stripNonPairedParens(w){var S=[],O=0;for(;O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1&&void 0!==arguments[1]?arguments[1]:{},O=S.allowOverflow;if(!w)throw new Error("String is required");var $=AsYouTypeFormatter_PatternMatcher_match(w.split(""),this.matchTree,!0);if($&&$.match&&delete $.matchedChars,!$||!$.overflow||O)return $}}]),PatternMatcher}();function AsYouTypeFormatter_PatternMatcher_match(w,S,O){if("string"==typeof S){var $=w.join("");return 0===S.indexOf($)?w.length===S.length?{match:!0,matchedChars:w}:{partialMatch:!0}:0===$.indexOf(S)?O&&w.length>S.length?{overflow:!0}:{match:!0,matchedChars:w.slice(0,S.length)}:void 0}if(Array.isArray(S)){for(var x=w.slice(),C=0;C=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=0)){var O=this.getTemplateForFormat(w,S);return O?(this.setNationalNumberTemplate(O,S),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function getSeparatorAfterNationalPrefix(w){return this.isNANP||w&&w.nationalPrefixFormattingRule()&&Rt.test(w.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function getInternationalPrefixBeforeCountryCallingCode(w,S){var O=w.IDDPrefix,$=w.missingPlus;return O?S&&!1===S.spacing?O:O+" ":$?"":"+"}},{key:"getTemplate",value:function getTemplate(w){if(this.template){for(var S=-1,O=0,$=w.international?this.getInternationalPrefixBeforeCountryCallingCode(w,{spacing:!1}):"";O<$.length+w.getDigitsWithoutInternationalPrefix().length;)S=this.template.indexOf(Tt,S+1),O++;return cutAndStripNonPairedParens(this.template,S+1)}}},{key:"setNationalNumberTemplate",value:function setNationalNumberTemplate(w,S){this.nationalNumberTemplate=w,this.populatedNationalNumberTemplate=w,this.populatedNationalNumberTemplatePosition=-1,S.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(S).replace(/[\d\+]/g,Tt)+repeat(Tt,S.callingCode.length)+" "+w:this.template=w}},{key:"getTemplateForFormat",value:function getTemplateForFormat(w,S){var O=S.nationalSignificantNumber,$=S.international,x=S.nationalPrefix,C=S.complexPrefixBeforeNationalSignificantNumber,j=w.pattern();j=j.replace(CREATE_CHARACTER_CLASS_PATTERN(),"\\d").replace(CREATE_STANDALONE_DIGIT_PATTERN(),"\\d");var N=Ft.match(j)[0];if(!(O.length>N.length)){var k=new RegExp("^"+j+"$"),I=O.replace(/\d/g,"9");k.test(I)&&(N=I);var R,W=this.getFormatFormat(w,$);if(this.shouldTryNationalPrefixFormattingRule(w,{international:$,nationalPrefix:x})){var G=W.replace(ye,w.nationalPrefixFormattingRule());if(parseDigits(w.nationalPrefixFormattingRule())===(x||"")+parseDigits("$1")&&(W=G,R=!0,x))for(var J=x.length;J>0;)W=W.replace(/\d/,Tt),J--}var re=N.replace(new RegExp(j),W).replace(new RegExp("9","g"),Tt);return R||(C?re=repeat(Tt,C.length)+" "+re:x&&(re=repeat(Tt,x.length)+this.getSeparatorAfterNationalPrefix(w)+re)),$&&(re=applyInternationalSeparatorStyle(re)),re}}},{key:"formatNextNationalNumberDigits",value:function formatNextNationalNumberDigits(w){var S=function populateTemplateWithDigits(w,S,O){for(var $,x=AsYouTypeFormatter_util_createForOfIteratorHelperLoose(O.split(""));!($=x()).done;){var C=$.value;if(w.slice(S+1).search(Nt)<0)return;S=w.search(Nt),w=w.replace(Nt,C)}return[w,S]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,w);if(S)return this.populatedNationalNumberTemplate=S[0],this.populatedNationalNumberTemplatePosition=S[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function shouldTryNationalPrefixFormattingRule(w,S){var O=S.international,$=S.nationalPrefix;if(w.nationalPrefixFormattingRule()){var x=w.usesNationalPrefix();if(x&&$||!x&&!O)return!0}}}]),AsYouTypeFormatter}();function AsYouTypeParser_slicedToArray(w,S){return function AsYouTypeParser_arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function AsYouTypeParser_iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||function AsYouTypeParser_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return AsYouTypeParser_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return AsYouTypeParser_arrayLikeToArray(w,S)}(w,S)||function AsYouTypeParser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AsYouTypeParser_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=3;if(S.appendDigits(w),$&&this.extractIddPrefix(S),this.isWaitingForCountryCallingCode(S)){if(!this.extractCountryCallingCode(S))return}else S.appendNationalSignificantNumberDigits(w);S.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(S.getNationalDigits(),(function(w){return S.update(w)}))}},{key:"isWaitingForCountryCallingCode",value:function isWaitingForCountryCallingCode(w){var S=w.international,O=w.callingCode;return S&&!O}},{key:"extractCountryCallingCode",value:function extractCountryCallingCode(w){var S=extractCountryCallingCode_extractCountryCallingCode("+"+w.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),O=S.countryCallingCode,$=S.number;if(O)return w.setCallingCode(O),w.update({nationalSignificantNumber:$}),!0}},{key:"reset",value:function reset(w){if(w){this.hasSelectedNumberingPlan=!0;var S=w._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=S&&Ut.test(S)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function extractNationalSignificantNumber(w,S){if(this.hasSelectedNumberingPlan){var O=extractNationalNumberFromPossiblyIncompleteNumber(w,this.metadata),$=O.nationalPrefix,x=O.nationalNumber,C=O.carrierCode;if(x!==w)return this.onExtractedNationalNumber($,C,x,w,S),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function extractAnotherNationalSignificantNumber(w,S,O){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(w,O);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var $=extractNationalNumberFromPossiblyIncompleteNumber(w,this.metadata),x=$.nationalPrefix,C=$.nationalNumber,j=$.carrierCode;if(C!==S)return this.onExtractedNationalNumber(x,j,C,w,O),!0}}},{key:"onExtractedNationalNumber",value:function onExtractedNationalNumber(w,S,O,$,x){var C,j,N=$.lastIndexOf(O);if(N>=0&&N===$.length-O.length){j=!0;var k=$.slice(0,N);k!==w&&(C=k)}x({nationalPrefix:w,carrierCode:S,nationalSignificantNumber:O,nationalSignificantNumberMatchesInput:j,complexPrefixBeforeNationalSignificantNumber:C}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function reExtractNationalSignificantNumber(w){return!!this.extractAnotherNationalSignificantNumber(w.getNationalDigits(),w.nationalSignificantNumber,(function(S){return w.update(S)}))||(this.extractIddPrefix(w)||this.fixMissingPlus(w)?(this.extractCallingCodeAndNationalSignificantNumber(w),!0):void 0)}},{key:"extractIddPrefix",value:function extractIddPrefix(w){var S=w.international,O=w.IDDPrefix,$=w.digits;w.nationalSignificantNumber;if(!S&&!O){var x=stripIddPrefix($,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==x&&x!==$?(w.update({IDDPrefix:$.slice(0,$.length-x.length)}),this.startInternationalNumber(w,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function fixMissingPlus(w){if(!w.international){var S=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),O=S.countryCallingCode;S.number;if(O)return w.update({missingPlus:!0}),this.startInternationalNumber(w,{country:w.country,callingCode:O}),!0}}},{key:"startInternationalNumber",value:function startInternationalNumber(w,S){var O=S.country,$=S.callingCode;w.startInternationalNumber(O,$),w.nationalSignificantNumber&&(w.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function extractCallingCodeAndNationalSignificantNumber(w){this.extractCountryCallingCode(w)&&this.extractNationalSignificantNumber(w.getNationalDigits(),(function(S){return w.update(S)}))}}]),AsYouTypeParser}();function AsYouType_slicedToArray(w,S){return function AsYouType_arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function AsYouType_iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||function AsYouType_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return AsYouType_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return AsYouType_arrayLikeToArray(w,S)}(w,S)||function AsYouType_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AsYouType_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1}},{key:"determineTheCountry",value:function determineTheCountry(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function getNumberValue(){var w=this.state,S=w.digits,O=w.callingCode,$=w.country,x=w.nationalSignificantNumber;if(S)return this.isInternational()?O?"+"+O+x:"+"+S:$||O?"+"+($?this.metadata.countryCallingCode():O)+x:void 0}},{key:"getNumber",value:function getNumber(){var w=this.state,S=w.nationalSignificantNumber,O=w.carrierCode,$=w.callingCode,x=this._getCountry();if(S&&(x||$)){if(x&&x===this.defaultCountry){var C=new I(this.metadata.metadata);C.selectNumberingPlan(x);var j=C.numberingPlan.callingCode(),N=this.metadata.getCountryCodesForCallingCode(j);if(N.length>1){var k=getCountryByNationalNumber(S,{countries:N,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});k&&(x=k)}}var R=new Se(x||$,S,this.metadata.metadata);return O&&(R.carrierCode=O),R}}},{key:"isPossible",value:function isPossible(){var w=this.getNumber();return!!w&&w.isPossible()}},{key:"isValid",value:function isValid(){var w=this.getNumber();return!!w&&w.isValid()}},{key:"getNationalNumber",value:function getNationalNumber(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function getChars(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function getTemplate(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),AsYouType}();function exports_AsYouType_AsYouType(w){return Gt.call(this,w,$)}function isSupportedCountry_isSupportedCountry(){return withMetadataArgument(isSupportedCountry,arguments)}function getCountries(w){return new I(w).getCountries()}function getCountries_getCountries(){return withMetadataArgument(getCountries,arguments)}function getCountryCallingCode_getCountryCallingCode(){return withMetadataArgument(getCountryCallingCode,arguments)}function getExtPrefix_getExtPrefix(){return withMetadataArgument(getExtPrefix,arguments)}function Metadata_Metadata(){return I.call(this,$)}function getExampleNumber(w,S,O){if(S[w])return new Se(w,S[w],O)}function getExampleNumber_getExampleNumber(){return withMetadataArgument(getExampleNumber,arguments)}function formatIncompletePhoneNumber(w,S,O){return O||(O=S,S=void 0),new Gt(S,O).input(w)}function formatIncompletePhoneNumber_formatIncompletePhoneNumber(){return withMetadataArgument(formatIncompletePhoneNumber,arguments)}exports_AsYouType_AsYouType.prototype=Object.create(Gt.prototype,{}),exports_AsYouType_AsYouType.prototype.constructor=exports_AsYouType_AsYouType,Metadata_Metadata.prototype=Object.create(I.prototype,{}),Metadata_Metadata.prototype.constructor=Metadata_Metadata},function(w,S,O){"use strict";O.r(S),O.d(S,"Observable",(function(){return $.a})),O.d(S,"ConnectableObservable",(function(){return x.a})),O.d(S,"GroupedObservable",(function(){return C.a})),O.d(S,"observable",(function(){return j.a})),O.d(S,"Subject",(function(){return N.a})),O.d(S,"BehaviorSubject",(function(){return k.a})),O.d(S,"ReplaySubject",(function(){return I.a})),O.d(S,"AsyncSubject",(function(){return R.a})),O.d(S,"asap",(function(){return W.a})),O.d(S,"asapScheduler",(function(){return W.b})),O.d(S,"async",(function(){return G.a})),O.d(S,"asyncScheduler",(function(){return G.b})),O.d(S,"queue",(function(){return J.a})),O.d(S,"queueScheduler",(function(){return J.b})),O.d(S,"animationFrame",(function(){return se})),O.d(S,"animationFrameScheduler",(function(){return ce})),O.d(S,"VirtualTimeScheduler",(function(){return de})),O.d(S,"VirtualAction",(function(){return le})),O.d(S,"Scheduler",(function(){return he.a})),O.d(S,"Subscription",(function(){return ye.a})),O.d(S,"Subscriber",(function(){return ve.a})),O.d(S,"Notification",(function(){return ge.a})),O.d(S,"NotificationKind",(function(){return ge.b})),O.d(S,"pipe",(function(){return Se.a})),O.d(S,"noop",(function(){return Pe.a})),O.d(S,"identity",(function(){return Ce.a})),O.d(S,"isObservable",(function(){return isObservable})),O.d(S,"ArgumentOutOfRangeError",(function(){return Ie.a})),O.d(S,"EmptyError",(function(){return Me.a})),O.d(S,"ObjectUnsubscribedError",(function(){return Fe.a})),O.d(S,"UnsubscriptionError",(function(){return Re.a})),O.d(S,"TimeoutError",(function(){return De.a})),O.d(S,"bindCallback",(function(){return bindCallback})),O.d(S,"bindNodeCallback",(function(){return bindNodeCallback})),O.d(S,"combineLatest",(function(){return Ze.b})),O.d(S,"concat",(function(){return Qe.a})),O.d(S,"defer",(function(){return et.a})),O.d(S,"empty",(function(){return tt.b})),O.d(S,"forkJoin",(function(){return forkJoin})),O.d(S,"from",(function(){return nt.a})),O.d(S,"fromEvent",(function(){return fromEvent})),O.d(S,"fromEventPattern",(function(){return fromEventPattern})),O.d(S,"generate",(function(){return generate})),O.d(S,"iif",(function(){return iif})),O.d(S,"interval",(function(){return interval})),O.d(S,"merge",(function(){return at.a})),O.d(S,"never",(function(){return never})),O.d(S,"of",(function(){return ct.a})),O.d(S,"onErrorResumeNext",(function(){return onErrorResumeNext})),O.d(S,"pairs",(function(){return pairs})),O.d(S,"partition",(function(){return partition})),O.d(S,"race",(function(){return ft.a})),O.d(S,"range",(function(){return range})),O.d(S,"throwError",(function(){return pt.a})),O.d(S,"timer",(function(){return ht.a})),O.d(S,"using",(function(){return using})),O.d(S,"zip",(function(){return bt.b})),O.d(S,"scheduled",(function(){return yt.a})),O.d(S,"EMPTY",(function(){return tt.a})),O.d(S,"NEVER",(function(){return ut})),O.d(S,"config",(function(){return vt.a}));var $=O(4),x=O(80),C=O(78),j=O(26),N=O(7),k=O(81),I=O(56),R=O(35),W=O(49),G=O(8),J=O(71),re=O(1),ie=O(36),oe=function(w){function AnimationFrameAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$}return re.__extends(AnimationFrameAction,w),AnimationFrameAction.prototype.requestAsyncId=function(S,O,$){return void 0===$&&($=0),null!==$&&$>0?w.prototype.requestAsyncId.call(this,S,O,$):(S.actions.push(this),S.scheduled||(S.scheduled=requestAnimationFrame((function(){return S.flush(null)}))))},AnimationFrameAction.prototype.recycleAsyncId=function(S,O,$){if(void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0)return w.prototype.recycleAsyncId.call(this,S,O,$);0===S.actions.length&&(cancelAnimationFrame(O),S.scheduled=void 0)},AnimationFrameAction}(ie.a),ue=O(34),ce=new(function(w){function AnimationFrameScheduler(){return null!==w&&w.apply(this,arguments)||this}return re.__extends(AnimationFrameScheduler,w),AnimationFrameScheduler.prototype.flush=function(w){this.active=!0,this.scheduled=void 0;var S,O=this.actions,$=-1,x=O.length;w=w||O.shift();do{if(S=w.execute(w.state,w.delay))break}while(++$S.index?1:-1:w.delay>S.delay?1:-1},VirtualAction}(ie.a),he=O(72),ye=O(6),ve=O(2),ge=O(23),Se=O(48),Pe=O(25),Ce=O(20);function isObservable(w){return!!w&&(w instanceof $.a||"function"==typeof w.lift&&"function"==typeof w.subscribe)}var Ie=O(28),Me=O(31),Fe=O(27),Re=O(51),De=O(83),Ue=O(10),Ge=O(63),He=O(9),Ke=O(11);function bindCallback(w,S,O){if(S){if(!Object(Ke.a)(S))return function(){for(var $=[],x=0;x1?$.next(Array.prototype.slice.call(arguments)):$.next(w)}),$,O)}))}function fromEventPattern(w,S,O){return O?fromEventPattern(w,S).pipe(Object(Ue.a)((function(w){return Object(He.a)(w)?O.apply(void 0,w):O(w)}))):new $.a((function(O){var $,handler=function(){for(var w=[],S=0;S=S){$.complete();break}if($.next(C++),$.closed)break}}))}function range_dispatch(w){var S=w.start,O=w.index,$=w.count,x=w.subscriber;O>=$?x.complete():(x.next(S),x.closed||(w.index=O+1,w.start=S+1,this.schedule(w)))}var pt=O(57),ht=O(87);function using(w,S){return new $.a((function(O){var $,x;try{$=w()}catch(w){return void O.error(w)}try{x=S($)}catch(w){return void O.error(w)}var C=(x?Object(nt.a)(x):tt.a).subscribe(O);return function(){C.unsubscribe(),$&&$.unsubscribe()}}))}var bt=O(61),yt=O(88),vt=O(19)}]); +!function(w){var S={};function __webpack_require__(O){if(S[O])return S[O].exports;var $=S[O]={i:O,l:!1,exports:{}};return w[O].call($.exports,$,$.exports,__webpack_require__),$.l=!0,$.exports}__webpack_require__.m=w,__webpack_require__.c=S,__webpack_require__.d=function(w,S,O){__webpack_require__.o(w,S)||Object.defineProperty(w,S,{enumerable:!0,get:O})},__webpack_require__.r=function(w){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},__webpack_require__.t=function(w,S){if(1&S&&(w=__webpack_require__(w)),8&S)return w;if(4&S&&"object"==typeof w&&w&&w.__esModule)return w;var O=Object.create(null);if(__webpack_require__.r(O),Object.defineProperty(O,"default",{enumerable:!0,value:w}),2&S&&"string"!=typeof w)for(var $ in w)__webpack_require__.d(O,$,function(S){return w[S]}.bind(null,$));return O},__webpack_require__.n=function(w){var S=w&&w.__esModule?function getDefault(){return w.default}:function getModuleExports(){return w};return __webpack_require__.d(S,"a",S),S},__webpack_require__.o=function(w,S){return Object.prototype.hasOwnProperty.call(w,S)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=141)}([function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("vendor")().React},function(w,S,O){"use strict";O.r(S),O.d(S,"__extends",(function(){return __extends})),O.d(S,"__assign",(function(){return __assign})),O.d(S,"__rest",(function(){return __rest})),O.d(S,"__decorate",(function(){return __decorate})),O.d(S,"__param",(function(){return __param})),O.d(S,"__metadata",(function(){return __metadata})),O.d(S,"__awaiter",(function(){return __awaiter})),O.d(S,"__generator",(function(){return __generator})),O.d(S,"__createBinding",(function(){return __createBinding})),O.d(S,"__exportStar",(function(){return __exportStar})),O.d(S,"__values",(function(){return __values})),O.d(S,"__read",(function(){return __read})),O.d(S,"__spread",(function(){return __spread})),O.d(S,"__spreadArrays",(function(){return __spreadArrays})),O.d(S,"__await",(function(){return __await})),O.d(S,"__asyncGenerator",(function(){return __asyncGenerator})),O.d(S,"__asyncDelegator",(function(){return __asyncDelegator})),O.d(S,"__asyncValues",(function(){return __asyncValues})),O.d(S,"__makeTemplateObject",(function(){return __makeTemplateObject})),O.d(S,"__importStar",(function(){return __importStar})),O.d(S,"__importDefault",(function(){return __importDefault})),O.d(S,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),O.d(S,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet}));var extendStatics=function(w,S){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var O in S)S.hasOwnProperty(O)&&(w[O]=S[O])})(w,S)};function __extends(w,S){function __(){this.constructor=w}extendStatics(w,S),w.prototype=null===S?Object.create(S):(__.prototype=S.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)};function __rest(w,S){var O={};for(var $ in w)Object.prototype.hasOwnProperty.call(w,$)&&S.indexOf($)<0&&(O[$]=w[$]);if(null!=w&&"function"==typeof Object.getOwnPropertySymbols){var x=0;for($=Object.getOwnPropertySymbols(w);x<$.length;x++)S.indexOf($[x])<0&&Object.prototype.propertyIsEnumerable.call(w,$[x])&&(O[$[x]]=w[$[x]])}return O}function __decorate(w,S,O,$){var x,C=arguments.length,j=C<3?S:null===$?$=Object.getOwnPropertyDescriptor(S,O):$;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(w,S,O,$);else for(var N=w.length-1;N>=0;N--)(x=w[N])&&(j=(C<3?x(j):C>3?x(S,O,j):x(S,O))||j);return C>3&&j&&Object.defineProperty(S,O,j),j}function __param(w,S){return function(O,$){S(O,$,w)}}function __metadata(w,S){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(w,S)}function __awaiter(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))}function __generator(w,S){var O,$,x,C,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(C){return function(N){return function step(C){if(O)throw new TypeError("Generator is already executing.");for(;j;)try{if(O=1,$&&(x=2&C[0]?$.return:C[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,C[1])).done)return x;switch($=0,x&&(C=[2&C[0],x.value]),C[0]){case 0:case 1:x=C;break;case 4:return j.label++,{value:C[1],done:!1};case 5:j.label++,$=C[1],C=[0];continue;case 7:C=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==C[0]&&2!==C[0])){j=0;continue}if(3===C[0]&&(!x||C[1]>x[0]&&C[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j}function __spread(){for(var w=[],S=0;S1||resume(w,S)}))})}function resume(w,S){try{!function step(w){w.value instanceof __await?Promise.resolve(w.value.v).then(fulfill,reject):settle(C[0][2],w)}(x[w](S))}catch(w){settle(C[0][3],w)}}function fulfill(w){resume("next",w)}function reject(w){resume("throw",w)}function settle(w,S){w(S),C.shift(),C.length&&resume(C[0][0],C[0][1])}}function __asyncDelegator(w){var S,O;return S={},verb("next"),verb("throw",(function(w){throw w})),verb("return"),S[Symbol.iterator]=function(){return this},S;function verb($,x){S[$]=w[$]?function(S){return(O=!O)?{value:__await(w[$](S)),done:"return"===$}:x?x(S):S}:x}}function __asyncValues(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,O=w[Symbol.asyncIterator];return O?O.call(w):(w=__values(w),S={},verb("next"),verb("throw"),verb("return"),S[Symbol.asyncIterator]=function(){return this},S);function verb(O){S[O]=w[O]&&function(S){return new Promise((function($,x){(function settle(w,S,O,$){Promise.resolve($).then((function(S){w({value:S,done:O})}),S)})($,x,(S=w[O](S)).done,S.value)}))}}}function __makeTemplateObject(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w}function __importStar(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)Object.hasOwnProperty.call(w,O)&&(S[O]=w[O]);return S.default=w,S}function __importDefault(w){return w&&w.__esModule?w:{default:w}}function __classPrivateFieldGet(w,S){if(!S.has(w))throw new TypeError("attempted to get private field on non-instance");return S.get(w)}function __classPrivateFieldSet(w,S,O){if(!S.has(w))throw new TypeError("attempted to set private field on non-instance");return S.set(w,O),O}},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(1),x=O(29),C=O(65),j=O(6),N=O(50),k=O(19),I=O(41),R=function(w){function Subscriber(S,O,$){var x=w.call(this)||this;switch(x.syncErrorValue=null,x.syncErrorThrown=!1,x.syncErrorThrowable=!1,x.isStopped=!1,arguments.length){case 0:x.destination=C.a;break;case 1:if(!S){x.destination=C.a;break}if("object"==typeof S){S instanceof Subscriber?(x.syncErrorThrowable=S.syncErrorThrowable,x.destination=S,S.add(x)):(x.syncErrorThrowable=!0,x.destination=new W(x,S));break}default:x.syncErrorThrowable=!0,x.destination=new W(x,S,O,$)}return x}return $.__extends(Subscriber,w),Subscriber.prototype[N.a]=function(){return this},Subscriber.create=function(w,S,O){var $=new Subscriber(w,S,O);return $.syncErrorThrowable=!1,$},Subscriber.prototype.next=function(w){this.isStopped||this._next(w)},Subscriber.prototype.error=function(w){this.isStopped||(this.isStopped=!0,this._error(w))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,w.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(w){this.destination.next(w)},Subscriber.prototype._error=function(w){this.destination.error(w),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var w=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=w,this},Subscriber}(j.a),W=function(w){function SafeSubscriber(S,O,$,j){var N,k=w.call(this)||this;k._parentSubscriber=S;var I=k;return Object(x.a)(O)?N=O:O&&(N=O.next,$=O.error,j=O.complete,O!==C.a&&(I=Object.create(O),Object(x.a)(I.unsubscribe)&&k.add(I.unsubscribe.bind(I)),I.unsubscribe=k.unsubscribe.bind(k))),k._context=I,k._next=N,k._error=$,k._complete=j,k}return $.__extends(SafeSubscriber,w),SafeSubscriber.prototype.next=function(w){if(!this.isStopped&&this._next){var S=this._parentSubscriber;k.a.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?this.__tryOrSetError(S,this._next,w)&&this.unsubscribe():this.__tryOrUnsub(this._next,w)}},SafeSubscriber.prototype.error=function(w){if(!this.isStopped){var S=this._parentSubscriber,O=k.a.useDeprecatedSynchronousErrorHandling;if(this._error)O&&S.syncErrorThrowable?(this.__tryOrSetError(S,this._error,w),this.unsubscribe()):(this.__tryOrUnsub(this._error,w),this.unsubscribe());else if(S.syncErrorThrowable)O?(S.syncErrorValue=w,S.syncErrorThrown=!0):Object(I.a)(w),this.unsubscribe();else{if(this.unsubscribe(),O)throw w;Object(I.a)(w)}}},SafeSubscriber.prototype.complete=function(){var w=this;if(!this.isStopped){var S=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return w._complete.call(w._context)};k.a.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?(this.__tryOrSetError(S,wrappedComplete),this.unsubscribe()):(this.__tryOrUnsub(wrappedComplete),this.unsubscribe())}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(w,S){try{w.call(this._context,S)}catch(w){if(this.unsubscribe(),k.a.useDeprecatedSynchronousErrorHandling)throw w;Object(I.a)(w)}},SafeSubscriber.prototype.__tryOrSetError=function(w,S,O){if(!k.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{S.call(this._context,O)}catch(S){return k.a.useDeprecatedSynchronousErrorHandling?(w.syncErrorValue=S,w.syncErrorThrown=!0,!0):(Object(I.a)(S),!0)}return!1},SafeSubscriber.prototype._unsubscribe=function(){var w=this._parentSubscriber;this._context=null,this._parentSubscriber=null,w.unsubscribe()},SafeSubscriber}(R)},function(w,S,O){"use strict";O.d(S,"a",(function(){return N})),O.d(S,"b",(function(){return k})),O.d(S,"c",(function(){return innerSubscribe}));var $=O(1),x=O(2),C=O(4),j=O(40),N=function(w){function SimpleInnerSubscriber(S){var O=w.call(this)||this;return O.parent=S,O}return $.__extends(SimpleInnerSubscriber,w),SimpleInnerSubscriber.prototype._next=function(w){this.parent.notifyNext(w)},SimpleInnerSubscriber.prototype._error=function(w){this.parent.notifyError(w),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(x.a),k=(x.a,function(w){function SimpleOuterSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(SimpleOuterSubscriber,w),SimpleOuterSubscriber.prototype.notifyNext=function(w){this.destination.next(w)},SimpleOuterSubscriber.prototype.notifyError=function(w){this.destination.error(w)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(x.a));x.a;function innerSubscribe(w,S){if(!S.closed){if(w instanceof C.a)return w.subscribe(S);var O;try{O=Object(j.a)(w)(S)}catch(w){S.error(w)}return O}}},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(63),x=O(2),C=O(50),j=O(65);var N=O(26),k=O(48),I=O(19),R=function(){function Observable(w){this._isScalar=!1,w&&(this._subscribe=w)}return Observable.prototype.lift=function(w){var S=new Observable;return S.source=this,S.operator=w,S},Observable.prototype.subscribe=function(w,S,O){var $=this.operator,N=function toSubscriber(w,S,O){if(w){if(w instanceof x.a)return w;if(w[C.a])return w[C.a]()}return w||S||O?new x.a(w,S,O):new x.a(j.a)}(w,S,O);if($?N.add($.call(N,this.source)):N.add(this.source||I.a.useDeprecatedSynchronousErrorHandling&&!N.syncErrorThrowable?this._subscribe(N):this._trySubscribe(N)),I.a.useDeprecatedSynchronousErrorHandling&&N.syncErrorThrowable&&(N.syncErrorThrowable=!1,N.syncErrorThrown))throw N.syncErrorValue;return N},Observable.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(S){I.a.useDeprecatedSynchronousErrorHandling&&(w.syncErrorThrown=!0,w.syncErrorValue=S),Object($.a)(w)?w.error(S):console.warn(S)}},Observable.prototype.forEach=function(w,S){var O=this;return new(S=getPromiseCtor(S))((function(S,$){var x;x=O.subscribe((function(S){try{w(S)}catch(w){$(w),x&&x.unsubscribe()}}),$,S)}))},Observable.prototype._subscribe=function(w){var S=this.source;return S&&S.subscribe(w)},Observable.prototype[N.a]=function(){return this},Observable.prototype.pipe=function(){for(var w=[],S=0;S=0;N--)(x=w[N])&&(j=(C<3?x(j):C>3?x(S,O,j):x(S,O))||j);return C>3&&j&&Object.defineProperty(S,O,j),j}function __param(w,S){return function(O,$){S(O,$,w)}}function __esDecorate(w,S,O,$,x,C){function accept(w){if(void 0!==w&&"function"!=typeof w)throw new TypeError("Function expected");return w}for(var j,N=$.kind,k="getter"===N?"get":"setter"===N?"set":"value",I=!S&&w?$.static?w:w.prototype:null,R=S||(I?Object.getOwnPropertyDescriptor(I,$.name):{}),W=!1,G=O.length-1;G>=0;G--){var J={};for(var re in $)J[re]="access"===re?{}:$[re];for(var re in $.access)J.access[re]=$.access[re];J.addInitializer=function(w){if(W)throw new TypeError("Cannot add initializers after decoration has completed");C.push(accept(w||null))};var ie=(0,O[G])("accessor"===N?{get:R.get,set:R.set}:R[k],J);if("accessor"===N){if(void 0===ie)continue;if(null===ie||"object"!=typeof ie)throw new TypeError("Object expected");(j=accept(ie.get))&&(R.get=j),(j=accept(ie.set))&&(R.set=j),(j=accept(ie.init))&&x.unshift(j)}else(j=accept(ie))&&("field"===N?x.unshift(j):R[k]=j)}I&&Object.defineProperty(I,$.name,R),W=!0}function __runInitializers(w,S,O){for(var $=arguments.length>2,x=0;x0&&x[x.length-1])||6!==N[0]&&2!==N[0])){C=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j}function __spread(){for(var w=[],S=0;S1||resume(w,S)}))},S&&($[w]=S($[w])))}function resume(w,S){try{!function step(w){w.value instanceof __await?Promise.resolve(w.value.v).then(fulfill,reject):settle(C[0][2],w)}(x[w](S))}catch(w){settle(C[0][3],w)}}function fulfill(w){resume("next",w)}function reject(w){resume("throw",w)}function settle(w,S){w(S),C.shift(),C.length&&resume(C[0][0],C[0][1])}}function __asyncDelegator(w){var S,O;return S={},verb("next"),verb("throw",(function(w){throw w})),verb("return"),S[Symbol.iterator]=function(){return this},S;function verb($,x){S[$]=w[$]?function(S){return(O=!O)?{value:__await(w[$](S)),done:!1}:x?x(S):S}:x}}function __asyncValues(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,O=w[Symbol.asyncIterator];return O?O.call(w):(w=__values(w),S={},verb("next"),verb("throw"),verb("return"),S[Symbol.asyncIterator]=function(){return this},S);function verb(O){S[O]=w[O]&&function(S){return new Promise((function($,x){(function settle(w,S,O,$){Promise.resolve($).then((function(S){w({value:S,done:O})}),S)})($,x,(S=w[O](S)).done,S.value)}))}}}function __makeTemplateObject(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w}var x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},ownKeys=function(w){return(ownKeys=Object.getOwnPropertyNames||function(w){var S=[];for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(S[S.length]=O);return S})(w)};function __importStar(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O=ownKeys(w),C=0;C1?S-1:0),$=1;$0?" Args: "+O.join(", "):""))}var de=function(){function e(w){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=w}var w=e.prototype;return w.indexOfGroup=function(w){for(var S=0,O=0;O=this.groupSizes.length){for(var O=this.groupSizes,$=O.length,x=$;w>=x;)(x<<=1)<0&&D(16,""+w);this.groupSizes=new Uint32Array(x),this.groupSizes.set(O),this.length=x;for(var C=$;C=this.length||0===this.groupSizes[w])return S;for(var O=this.groupSizes[w],$=this.indexOfGroup(w),x=$+O,C=$;C=ye&&(ye=S+1),le.set(w,S),he.set(S,w)},ve="style["+ie+'][data-styled-version="5.3.11"]',ge=new RegExp("^"+ie+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(w,S,O){for(var $,x=O.split(","),C=0,j=x.length;C=0;O--){var $=S[O];if($&&1===$.nodeType&&$.hasAttribute(ie))return $}}(O),C=void 0!==x?x.nextSibling:null;$.setAttribute(ie,"active"),$.setAttribute("data-styled-version","5.3.11");var j=Y();return j&&$.setAttribute("nonce",j),O.insertBefore($,C),$},Se=function(){function e(w){var S=this.element=q(w);S.appendChild(document.createTextNode("")),this.sheet=function(w){if(w.sheet)return w.sheet;for(var S=document.styleSheets,O=0,$=S.length;O<$;O++){var x=S[O];if(x.ownerNode===w)return x}D(17)}(S),this.length=0}var w=e.prototype;return w.insertRule=function(w,S){try{return this.sheet.insertRule(S,w),this.length++,!0}catch(w){return!1}},w.deleteRule=function(w){this.sheet.deleteRule(w),this.length--},w.getRule=function(w){var S=this.sheet.cssRules[w];return void 0!==S&&"string"==typeof S.cssText?S.cssText:""},e}(),Pe=function(){function e(w){var S=this.element=q(w);this.nodes=S.childNodes,this.length=0}var w=e.prototype;return w.insertRule=function(w,S){if(w<=this.length&&w>=0){var O=document.createTextNode(S),$=this.nodes[w];return this.element.insertBefore(O,$||null),this.length++,!0}return!1},w.deleteRule=function(w){this.element.removeChild(this.nodes[w]),this.length--},w.getRule=function(w){return w0&&(I+=w+",")})),$+=""+N+k+'{content:"'+I+'"}/*!sc*/\n'}}}return $}(this)},e}(),Re=/(a)(d)/gi,K=function(w){return String.fromCharCode(w+(w>25?39:97))};function Q(w){var S,O="";for(S=Math.abs(w);S>52;S=S/52|0)O=K(S%52)+O;return(K(S%52)+O).replace(Re,"$1-$2")}var ee=function(w,S){for(var O=S.length;O;)w=33*w^S.charCodeAt(--O);return w},te=function(w){return ee(5381,w)};function ne(w){for(var S=0;S>>0);if(!S.hasNameForId($,j)){var N=O(C,"."+j,void 0,$);S.insertRules($,j,N)}x.push(j),this.staticRulesId=j}else{for(var k=this.rules.length,I=ee(this.baseHash,O.hash),R="",W=0;W>>0);if(!S.hasNameForId($,ie)){var oe=O(R,"."+ie,void 0,$);S.insertRules($,ie,oe)}x.push(ie)}}return x.join(" ")},e}(),Ge=/^\s*\/\/.*$/gm,He=[":","[",".","#"];function ae(w){var S,O,$,x,C=void 0===w?re:w,j=C.options,N=void 0===j?re:j,I=C.plugins,R=void 0===I?J:I,W=new k.a(N),G=[],ie=function(w){function t(S){if(S)try{w(S+"}")}catch(w){}}return function(S,O,$,x,C,j,N,k,I,R){switch(S){case 1:if(0===I&&64===O.charCodeAt(0))return w(O+";"),"";break;case 2:if(0===k)return O+"/*|*/";break;case 3:switch(k){case 102:case 112:return w($[0]+O),"";default:return O+(0===R?"/*|*/":"")}case-2:O.split("/*|*/}").forEach(t)}}}((function(w){G.push(w)})),f=function(w,$,C){return 0===$&&-1!==He.indexOf(C[O.length])||C.match(x)?w:"."+S};function m(w,C,j,N){void 0===N&&(N="&");var k=w.replace(Ge,""),I=C&&j?j+" "+C+" { "+k+" }":k;return S=N,O=C,$=new RegExp("\\"+O+"\\b","g"),x=new RegExp("(\\"+O+"\\b){2,}"),W(j||!C?"":C,I)}return W.use([].concat(R,[function(w,S,x){2===w&&x.length&&x[0].lastIndexOf(O)>0&&(x[0]=x[0].replace($,f))},ie,function(w){if(-2===w){var S=G;return G=[],S}}])),m.hash=R.length?R.reduce((function(w,S){return S.name||D(15),ee(w,S.name)}),5381).toString():"",m}var Ke=C.a.createContext(),Ze=Ke.Consumer,Qe=C.a.createContext(),et=(Qe.Consumer,new Fe),tt=ae();function pe(){return Object(x.useContext)(Ke)||et}function fe(){return Object(x.useContext)(Qe)||tt}function me(w){var S=Object(x.useState)(w.stylisPlugins),O=S[0],$=S[1],j=pe(),k=Object(x.useMemo)((function(){var S=j;return w.sheet?S=w.sheet:w.target&&(S=S.reconstructWithOptions({target:w.target},!1)),w.disableCSSOMInjection&&(S=S.reconstructWithOptions({useCSSOMInjection:!1})),S}),[w.disableCSSOMInjection,w.sheet,w.target]),I=Object(x.useMemo)((function(){return ae({options:{prefix:!w.disableVendorPrefixes},plugins:O})}),[w.disableVendorPrefixes,O]);return Object(x.useEffect)((function(){N()(O,w.stylisPlugins)||$(w.stylisPlugins)}),[w.stylisPlugins]),C.a.createElement(Ke.Provider,{value:k},C.a.createElement(Qe.Provider,{value:I},w.children))}var rt=function(){function e(w,S){var O=this;this.inject=function(w,S){void 0===S&&(S=tt);var $=O.name+S.hash;w.hasNameForId(O.id,$)||w.insertRules(O.id,$,S(O.rules,$,"@keyframes"))},this.toString=function(){return D(12,String(O.name))},this.name=w,this.id="sc-keyframes-"+w,this.rules=S}return e.prototype.getName=function(w){return void 0===w&&(w=tt),this.name+w.hash},e}(),nt=/([A-Z])/,it=/([A-Z])/g,ot=/^ms-/,we=function(w){return"-"+w.toLowerCase()};function Ee(w){return nt.test(w)?w.replace(it,we).replace(ot,"-ms-"):w}var be=function(w){return null==w||!1===w||""===w};function _e(w,S,O,$){if(Array.isArray(w)){for(var x,C=[],j=0,N=w.length;j1?S-1:0),$=1;$?@[\\\]^`{|}~-]+/g,ut=/(^-|-$)/g;function je(w){return w.replace(at,"-").replace(ut,"")}var Te=function(w){return Q(te(w)>>>0)};function xe(w){return"string"==typeof w&&!0}var ke=function(w){return"function"==typeof w||"object"==typeof w&&null!==w&&!Array.isArray(w)},Ve=function(w){return"__proto__"!==w&&"constructor"!==w&&"prototype"!==w};function Be(w,S,O){var $=w[O];ke(S)&&ke($)?ze($,S):w[O]=S}function ze(w){for(var S=arguments.length,O=new Array(S>1?S-1:0),$=1;$=0||(x[O]=w[O]);return x}(S,["componentId"]),C=$&&$+"-"+(xe(w)?w:je(b(w)));return Ye(w,y({},x,{attrs:ce,componentId:C}),O)},Object.defineProperty(de,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=$?ze({},w.defaultProps,S):S}}),Object.defineProperty(de,"toString",{value:function(){return"."+de.styledComponentId}}),j&&G()(de,w,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),de}var qe=function(w){return function e(w,S,O){if(void 0===O&&(O=re),!Object($.isValidElementType)(S))return D(1,String(S));var s=function(){return w(S,O,Ae.apply(void 0,arguments))};return s.withConfig=function($){return e(w,S,y({},O,{},$))},s.attrs=function($){return e(w,S,y({},O,{attrs:Array.prototype.concat(O.attrs,$).filter(Boolean)}))},s}(Ye,w)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(w){qe[w]=qe(w)}));var lt=function(){function e(w,S){this.rules=w,this.componentId=S,this.isStatic=ne(w),Fe.registerId(this.componentId+1)}var w=e.prototype;return w.createStyles=function(w,S,O,$){var x=$(_e(this.rules,S,O,$).join(""),""),C=this.componentId+w;O.insertRules(C,C,x)},w.removeStyles=function(w,S){S.clearRules(this.componentId+w)},w.renderStyles=function(w,S,O,$){w>2&&Fe.registerId(this.componentId+w),this.removeStyles(w,O),this.createStyles(w,S,O,$)},e}();function $e(w){for(var S=arguments.length,O=new Array(S>1?S-1:0),$=1;$1?S-1:0),$=1;$"+S+""},this.getStyleTags=function(){return w.sealed?D(2):w._emitSheetCSS()},this.getStyleElement=function(){var S;if(w.sealed)return D(2);var O=((S={})[ie]="",S["data-styled-version"]="5.3.11",S.dangerouslySetInnerHTML={__html:w.instance.toString()},S),$=Y();return $&&(O.nonce=$),[C.a.createElement("style",y({},O,{key:"sc-0-0"}))]},this.seal=function(){w.sealed=!0},this.instance=new Fe({isServer:!0}),this.sealed=!1}var w=e.prototype;return w.collectStyles=function(w){return this.sealed?D(2):C.a.createElement(me,{sheet:this.instance},w)},w.interleaveWithNodeStream=function(w){return D(3)},e}(),Je=function(w){var S=C.a.forwardRef((function(S,O){var $=Object(x.useContext)(ct),j=w.defaultProps,N=Oe(S,$,j);return C.a.createElement(w,y({},S,{theme:N,ref:O}))}));return G()(S,w),S.displayName="WithTheme("+b(w)+")",S},Xe=function(){return Object(x.useContext)(ct)},pt={StyleSheet:Fe,masterSheet:et};S.default=qe}.call(this,O(44))},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("NeosProjectPackages")().ReactUiComponents},function(w,S,O){"use strict";O.d(S,"a",(function(){return subscribeToResult}));var $=O(1),x=function(w){function InnerSubscriber(S,O,$){var x=w.call(this)||this;return x.parent=S,x.outerValue=O,x.outerIndex=$,x.index=0,x}return $.__extends(InnerSubscriber,w),InnerSubscriber.prototype._next=function(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(w){this.parent.notifyError(w,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(O(2).a),C=O(40),j=O(4);function subscribeToResult(w,S,O,$,N){if(void 0===N&&(N=new x(w,O,$)),!N.closed)return S instanceof j.a?S.subscribe(N):Object(C.a)(S)(N)}},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=!1,x={Promise:void 0,set useDeprecatedSynchronousErrorHandling(w){w&&(new Error).stack;$=w},get useDeprecatedSynchronousErrorHandling(){return $}}},function(w,S,O){"use strict";function identity(w){return w}O.d(S,"a",(function(){return identity}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=O(1),x=function(w){function OuterSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(OuterSubscriber,w),OuterSubscriber.prototype.notifyNext=function(w,S,O,$,x){this.destination.next(S)},OuterSubscriber.prototype.notifyError=function(w,S){this.destination.error(w)},OuterSubscriber.prototype.notifyComplete=function(w){this.destination.complete()},OuterSubscriber}(O(2).a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return filter}));var $=O(1),x=O(2);function filter(w,S){return function filterOperatorFunction(O){return O.lift(new C(w,S))}}var C=function(){function FilterOperator(w,S){this.predicate=w,this.thisArg=S}return FilterOperator.prototype.call=function(w,S){return S.subscribe(new j(w,this.predicate,this.thisArg))},FilterOperator}(),j=function(w){function FilterSubscriber(S,O,$){var x=w.call(this,S)||this;return x.predicate=O,x.thisArg=$,x.count=0,x}return $.__extends(FilterSubscriber,w),FilterSubscriber.prototype._next=function(w){var S;try{S=this.predicate.call(this.thisArg,w,this.count++)}catch(w){return void this.destination.error(w)}S&&this.destination.next(w)},FilterSubscriber}(x.a)},function(w,S,O){"use strict";O.d(S,"b",(function(){return $})),O.d(S,"a",(function(){return N}));var $,x=O(13),C=O(45),j=O(57);$||($={});var N=function(){function Notification(w,S,O){this.kind=w,this.value=S,this.error=O,this.hasValue="N"===w}return Notification.prototype.observe=function(w){switch(this.kind){case"N":return w.next&&w.next(this.value);case"E":return w.error&&w.error(this.error);case"C":return w.complete&&w.complete()}},Notification.prototype.do=function(w,S,O){switch(this.kind){case"N":return w&&w(this.value);case"E":return S&&S(this.error);case"C":return O&&O()}},Notification.prototype.accept=function(w,S,O){return w&&"function"==typeof w.next?this.observe(w):this.do(w,S,O)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return Object(C.a)(this.value);case"E":return Object(j.a)(this.error);case"C":return Object(x.b)()}throw new Error("unexpected notification kind value")},Notification.createNext=function(w){return void 0!==w?new Notification("N",w):Notification.undefinedValueNotification},Notification.createError=function(w){return new Notification("E",void 0,w)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},function(w,S,O){"use strict";function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}O.d(S,"a",(function(){return $}));var $=getSymbolIterator()},function(w,S,O){"use strict";function noop(){}O.d(S,"a",(function(){return noop}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},function(w,S,O){"use strict";function isFunction(w){return"function"==typeof w}O.d(S,"a",(function(){return isFunction}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var $=O(184);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return $.makeLinkType}}),Object.defineProperty(S,"useLinkTypes",{enumerable:!0,get:function get(){return $.useLinkTypes}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return $.useLinkTypeForHref}}),Object.defineProperty(S,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return $.useSortedAndFilteredLinkTypes}});var x=O(125);Object.defineProperty(S,"createEditor",{enumerable:!0,get:function get(){return x.createEditor}}),Object.defineProperty(S,"EditorContext",{enumerable:!0,get:function get(){return x.EditorContext}}),Object.defineProperty(S,"useEditorState",{enumerable:!0,get:function get(){return x.useEditorState}}),Object.defineProperty(S,"useEditorTransactions",{enumerable:!0,get:function get(){return x.useEditorTransactions}})},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},function(w,S,O){"use strict";O.d(S,"b",(function(){return mergeMap})),O.d(S,"a",(function(){return I}));var $=O(1),x=O(10),C=O(14),j=O(3);function mergeMap(w,S,O){return void 0===O&&(O=Number.POSITIVE_INFINITY),"function"==typeof S?function($){return $.pipe(mergeMap((function(O,$){return Object(C.a)(w(O,$)).pipe(Object(x.a)((function(w,x){return S(O,w,$,x)})))}),O))}:("number"==typeof S&&(O=S),function(S){return S.lift(new N(w,O))})}var N=function(){function MergeMapOperator(w,S){void 0===S&&(S=Number.POSITIVE_INFINITY),this.project=w,this.concurrent=S}return MergeMapOperator.prototype.call=function(w,S){return S.subscribe(new k(w,this.project,this.concurrent))},MergeMapOperator}(),k=function(w){function MergeMapSubscriber(S,O,$){void 0===$&&($=Number.POSITIVE_INFINITY);var x=w.call(this,S)||this;return x.project=O,x.concurrent=$,x.hasCompleted=!1,x.buffer=[],x.active=0,x.index=0,x}return $.__extends(MergeMapSubscriber,w),MergeMapSubscriber.prototype._next=function(w){this.active0?this._next(w.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(j.b),I=mergeMap},function(w,S,O){"use strict";O.d(S,"a",(function(){return fromArray}));var $=O(4),x=O(90),C=O(64);function fromArray(w,S){return S?Object(C.a)(w,S):new $.a(Object(x.a)(w))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return C}));var $=O(1),x=O(72),C=function(w){function AsyncScheduler(S,O){void 0===O&&(O=x.a.now);var $=w.call(this,S,(function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==$?AsyncScheduler.delegate.now():O()}))||this;return $.actions=[],$.active=!1,$.scheduled=void 0,$}return $.__extends(AsyncScheduler,w),AsyncScheduler.prototype.schedule=function(S,O,$){return void 0===O&&(O=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this?AsyncScheduler.delegate.schedule(S,O,$):w.prototype.schedule.call(this,S,O,$)},AsyncScheduler.prototype.flush=function(w){var S=this.actions;if(this.active)S.push(w);else{var O;this.active=!0;do{if(O=w.execute(w.state,w.delay))break}while(w=S.shift());if(this.active=!1,O){for(;w=S.shift();)w.unsubscribe();throw O}}},AsyncScheduler}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return j}));var $=O(1),x=O(7),C=O(6),j=function(w){function AsyncSubject(){var S=null!==w&&w.apply(this,arguments)||this;return S.value=null,S.hasNext=!1,S.hasCompleted=!1,S}return $.__extends(AsyncSubject,w),AsyncSubject.prototype._subscribe=function(S){return this.hasError?(S.error(this.thrownError),C.a.EMPTY):this.hasCompleted&&this.hasNext?(S.next(this.value),S.complete(),C.a.EMPTY):w.prototype._subscribe.call(this,S)},AsyncSubject.prototype.next=function(w){this.hasCompleted||(this.value=w,this.hasNext=!0)},AsyncSubject.prototype.error=function(S){this.hasCompleted||w.prototype.error.call(this,S)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&w.prototype.next.call(this,this.value),w.prototype.complete.call(this)},AsyncSubject}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return x}));var $=O(1),x=function(w){function AsyncAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$.pending=!1,$}return $.__extends(AsyncAction,w),AsyncAction.prototype.schedule=function(w,S){if(void 0===S&&(S=0),this.closed)return this;this.state=w;var O=this.id,$=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId($,O,S)),this.pending=!0,this.delay=S,this.id=this.id||this.requestAsyncId($,this.id,S),this},AsyncAction.prototype.requestAsyncId=function(w,S,O){return void 0===O&&(O=0),setInterval(w.flush.bind(w,this),O)},AsyncAction.prototype.recycleAsyncId=function(w,S,O){if(void 0===O&&(O=0),null!==O&&this.delay===O&&!1===this.pending)return S;clearInterval(S)},AsyncAction.prototype.execute=function(w,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var O=this._execute(w,S);if(O)return O;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(w,S){var O=!1,$=void 0;try{this.work(w)}catch(w){O=!0,$=!!w&&w||new Error(w)}if(O)return this.unsubscribe(),$},AsyncAction.prototype._unsubscribe=function(){var w=this.id,S=this.scheduler,O=S.actions,$=O.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&O.splice($,1),null!=w&&(this.id=this.recycleAsyncId(S,w,null)),this.delay=null},AsyncAction}(function(w){function Action(S,O){return w.call(this)||this}return $.__extends(Action,w),Action.prototype.schedule=function(w,S){return void 0===S&&(S=0),this},Action}(O(6).a))},function(w,S,O){"use strict";O.d(S,"a",(function(){return isNumeric}));var $=O(9);function isNumeric(w){return!Object($.a)(w)&&w-parseFloat(w)+1>=0}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Layout=S.IconLabel=S.Deletable=S.Modal=S.Form=S.Tabs=S.ImageCard=S.IconCard=void 0;var C=O(238);Object.defineProperty(S,"IconCard",{enumerable:!0,get:function get(){return C.IconCard}});var j=O(240);Object.defineProperty(S,"ImageCard",{enumerable:!0,get:function get(){return j.ImageCard}});var N=O(241);Object.defineProperty(S,"Tabs",{enumerable:!0,get:function get(){return N.Tabs}});var k=O(242);Object.defineProperty(S,"Form",{enumerable:!0,get:function get(){return k.Form}});var I=O(243);Object.defineProperty(S,"Modal",{enumerable:!0,get:function get(){return I.Modal}});var R=O(245);Object.defineProperty(S,"Deletable",{enumerable:!0,get:function get(){return R.Deletable}});var W=O(246);Object.defineProperty(S,"IconLabel",{enumerable:!0,get:function get(){return W.IconLabel}}),S.Layout=__importStar(O(247))},function(w,S,O){"use strict";O.d(S,"a",(function(){return concat}));var $=O(45),x=O(84);function concat(){for(var w=[],S=0;S1)for(var O=1;O0?w.prototype.requestAsyncId.call(this,S,O,$):(S.actions.push(this),S.scheduled||(S.scheduled=Immediate_setImmediate(S.flush.bind(S,null))))},AsapAction.prototype.recycleAsyncId=function(S,O,$){if(void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0)return w.prototype.recycleAsyncId.call(this,S,O,$);0===S.actions.length&&(Immediate_clearImmediate(O),S.scheduled=void 0)},AsapAction}(O(36).a),k=new(function(w){function AsapScheduler(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(AsapScheduler,w),AsapScheduler.prototype.flush=function(w){this.active=!0,this.scheduled=void 0;var S,O=this.actions,$=-1,x=O.length;w=w||O.shift();do{if(S=w.execute(w.state,w.delay))break}while(++$w?exec():!0!==S&&(x=setTimeout($?clear:exec,void 0===$?w-W:w)))}return"boolean"!=typeof S&&($=O,O=S,S=void 0),wrapper.cancel=function cancel(){clearExistingTimeout(),C=!0},wrapper}var Fe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],esm_useIdle=function(w,S,O){void 0===w&&(w=6e4),void 0===S&&(S=!1),void 0===O&&(O=Fe);var x=Object($.useState)(S),C=x[0],j=x[1];return Object($.useEffect)((function(){for(var S,$=!0,x=C,set=function(w){$&&(x=w,j(w))},N=throttle(50,(function(){x&&set(!1),clearTimeout(S),S=setTimeout((function(){return set(!0)}),w)})),onVisibility=function(){document.hidden||N()},k=0;k=S[1]?1:-1}))}),[w]);return C.reduce((function(w,S){var $=S[0],x=S[1];return O>=x?$:w}),C[0][0])}},esm_useKeyPress=function(w){var S=Object($.useState)([!1,null]),O=S[0],x=S[1];return esm_useKey(w,(function(w){return x([!0,w])}),{event:"keydown"},[O]),esm_useKey(w,(function(w){return x([!1,w])}),{event:"keyup"},[O]),O},esm_useKeyPressEvent=function(w,S,O,$){void 0===$&&($=esm_useKeyPress);var x=$(w),C=x[0],j=x[1];esm_useUpdateEffect((function(){!C&&O?O(j):C&&S&&S(j)}),[C])},esm_useLatest=function(w){var S=Object($.useRef)(w);return S.current=w,S},esm_useLifecycles=function(w,S){Object($.useEffect)((function(){return w&&w(),function(){S&&S()}}),[])};var Re=function useList(w){void 0===w&&(w=[]);var S=Object($.useRef)(resolveHookState(w)),O=useUpdate(),x=Object($.useMemo)((function(){var $={set:function(w){S.current=resolveHookState(w,S.current),O()},push:function(){for(var w=[],S=0;S$.length?$[w]=S:$.splice(w,0,S),$}))},update:function(w,S){x.set((function(O){return O.map((function(O){return w(O,S)?S:O}))}))},updateFirst:function(w,O){var $=S.current.findIndex((function(S){return w(S,O)}));$>=0&&x.updateAt($,O)},upsert:function(w,O){var $=S.current.findIndex((function(S){return w(S,O)}));$>=0?x.updateAt($,O):x.push(O)},sort:function(w){x.set((function(S){return S.slice().sort(w)}))},filter:function(w,S){x.set((function(O){return O.slice().filter(w,S)}))},removeAt:function(w){x.set((function(S){var O=S.slice();return O.splice(w,1),O}))},clear:function(){x.set([])},reset:function(){x.set(resolveHookState(w).slice())}};return $.remove=$.removeAt,$}),[]);return[S.current,x]},esm_useLocalStorage=function(w,S,O){if(!j)return[S,noop,noop];if(!w)throw new Error("useLocalStorage key may not be falsy");var x=O?O.raw?function(w){return w}:O.deserializer:JSON.parse,C=Object($.useRef)((function(w){try{var $=O?O.raw?String:O.serializer:JSON.stringify,C=localStorage.getItem(w);return null!==C?x(C):(S&&localStorage.setItem(w,$(S)),S)}catch(w){return S}})),N=Object($.useState)((function(){return C.current(w)})),k=N[0],I=N[1];Object($.useLayoutEffect)((function(){return I(C.current(w))}),[w]);var R=Object($.useCallback)((function(S){try{var $="function"==typeof S?S(k):S;if(void 0===$)return;var C=void 0;C=O?O.raw?"string"==typeof $?$:JSON.stringify($):O.serializer?O.serializer($):JSON.stringify($):JSON.stringify($),localStorage.setItem(w,C),I(x(C))}catch(w){}}),[w,I]),W=Object($.useCallback)((function(){try{localStorage.removeItem(w),I(void 0)}catch(w){}}),[w,I]);return[k,R,W]},patchHistoryMethod=function(w){var S=window.history,O=S[w];S[w]=function(S){var $=O.apply(this,arguments),x=new Event(w.toLowerCase());return x.state=S,window.dispatchEvent(x),$}};j&&(patchHistoryMethod("pushState"),patchHistoryMethod("replaceState"));var buildState=function(w){var S=window.history,O=S.state,$=S.length,x=window.location;return{trigger:w,state:O,length:$,hash:x.hash,host:x.host,hostname:x.hostname,href:x.href,origin:x.origin,pathname:x.pathname,port:x.port,protocol:x.protocol,search:x.search}},De="function"==typeof Event,Ue=j&&De?function(){var w=Object($.useState)(buildState("load")),S=w[0],O=w[1];return Object($.useEffect)((function(){var onPopstate=function(){return O(buildState("popstate"))},onPushstate=function(){return O(buildState("pushstate"))},onReplacestate=function(){return O(buildState("replacestate"))};return on(window,"popstate",onPopstate),on(window,"pushstate",onPushstate),on(window,"replacestate",onReplacestate),function(){off(window,"popstate",onPopstate),off(window,"pushstate",onPushstate),off(window,"replacestate",onReplacestate)}}),[]),S}:function(){return{trigger:"load",length:1}};function getClosestBody(w){if(!w)return null;if("BODY"===w.tagName)return w;if("IFRAME"===w.tagName){var S=w.contentDocument;return S?S.body:null}return w.offsetParent?getClosestBody(w.offsetParent):null}function preventDefault(w){var S=w||window.event;return S.touches.length>1||(S.preventDefault&&S.preventDefault(),!1)}var Ge=j&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),He=new Map,Ke="object"==typeof document?document:void 0,Ze=!1,Qe=Ke?function useLockBody(w,S){void 0===w&&(w=!0);var O=Object($.useRef)(Ke.body);S=S||O;var unlock=function(w){var S=He.get(w);S&&(1===S.counter?(He.delete(w),Ge?(w.ontouchmove=null,Ze&&(off(document,"touchmove",preventDefault),Ze=!1)):w.style.overflow=S.initialOverflow):He.set(w,{counter:S.counter-1,initialOverflow:S.initialOverflow}))};Object($.useEffect)((function(){var O=getClosestBody(S.current);O&&(w?function(w){var S=He.get(w);S?He.set(w,{counter:S.counter+1,initialOverflow:S.initialOverflow}):(He.set(w,{counter:1,initialOverflow:w.style.overflow}),Ge?Ze||(on(document,"touchmove",preventDefault,{passive:!1}),Ze=!0):w.style.overflow="hidden")}(O):unlock(O))}),[w,S.current]),Object($.useEffect)((function(){var w=getClosestBody(S.current);if(w)return function(){unlock(w)}}),[])}:function useLockBodyMock(w,S){void 0===w&&(w=!0)},esm_useLogger=function(w){for(var S=[],O=1;O1?N=1:N<0&&(N=0),k&&(N=1-N),R({value:N}),(S.onScrub||noop)(N)}}))};return on(w.current,"mousedown",onMouseDown_1),on(w.current,"touchstart",onTouchStart_1),function(){off(w.current,"mousedown",onMouseDown_1),off(w.current,"touchstart",onTouchStart_1)}}}),[w,S.vertical]),I};!function(w){w[w.init=0]="init",w[w.play=1]="play",w[w.pause=2]="pause",w[w.end=3]="end"}(ct||(ct={}));var esm_useSpeech=function(w,S){var O=Object($.useRef)(!1),C=Object($.useState)((function(){var w=S.voice||{},O=w.lang,$=void 0===O?"default":O,x=w.name,C=void 0===x?"":x;return{isPlaying:!1,status:ct[ct.init],lang:S.lang||"default",voiceInfo:{lang:$,name:C},rate:S.rate||1,pitch:S.pitch||1,volume:S.volume||1}})),j=C[0],N=C[1],k=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!0,status:ct[ct.play]})}))}),[]),I=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!1,status:ct[ct.pause]})}))}),[]),R=Object($.useCallback)((function(){O.current&&N((function(w){return Object(x.__assign)(Object(x.__assign)({},w),{isPlaying:!1,status:ct[ct.end]})}))}),[]);return Object($.useEffect)((function(){O.current=!0;var $=new SpeechSynthesisUtterance(w);return S.lang&&($.lang=S.lang),S.voice&&($.voice=S.voice),$.rate=S.rate||1,$.pitch=S.pitch||1,$.volume=S.volume||1,$.onstart=k,$.onpause=I,$.onresume=k,$.onend=R,window.speechSynthesis.speak($),function(){O.current=!1}}),[]),j},esm_useStartTyping=function(w){he((function(){var keydown=function(S){var O,$,x,C,j;!function(){var w=document.activeElement,S=document.body;if(!w)return!1;if(w===S)return!1;switch(w.tagName){case"INPUT":case"TEXTAREA":return!0}return w.hasAttribute("contenteditable")}()&&($=(O=S).keyCode,x=O.metaKey,C=O.ctrlKey,j=O.altKey,!(x||C||j)&&($>=48&&$<=57||$>=65&&$<=90))&&w(S)};return on(document,"keydown",keydown),function(){off(document,"keydown",keydown)}}),[])};function useStateWithHistory(w,S,O){if(void 0===S&&(S=10),S<1)throw new Error("Capacity has to be greater than 1, got '"+S+"'");var x=useFirstMountState(),C=Object($.useState)(w),j=C[0],N=C[1],k=Object($.useRef)(null!=O?O:[]),I=Object($.useRef)(0);return x&&(k.current.length?(k.current[k.current.length-1]!==w&&k.current.push(w),k.current.length>S&&(k.current=k.current.slice(k.current.length-S))):k.current.push(w),I.current=k.current.length&&k.current.length-1),[j,Object($.useCallback)((function(w){N((function(O){return(w=resolveHookState(w,O))!==O&&(I.currentS&&(k.current=k.current.slice(k.current.length-S))),w}))}),[j,S]),Object($.useMemo)((function(){return{history:k.current,position:I.current,capacity:S,back:function(w){void 0===w&&(w=1),I.current&&N((function(){return I.current-=Math.min(w,I.current),k.current[I.current]}))},forward:function(w){void 0===w&&(w=1),I.current!==k.current.length-1&&N((function(){return I.current=Math.min(I.current+w,k.current.length-1),k.current[I.current]}))},go:function(w){w!==I.current&&N((function(){return I.current=w<0?Math.max(k.current.length+w,0):Math.min(k.current.length-1,w),k.current[I.current]}))}}}),[j])]}function useStateList(w){void 0===w&&(w=[]);var S=useMountedState(),O=useUpdate(),C=Object($.useRef)(0);esm_useUpdateEffect((function(){w.length<=C.current&&(C.current=w.length-1,O())}),[w.length]);var j=Object($.useMemo)((function(){return{next:function(){return j.setStateAt(C.current+1)},prev:function(){return j.setStateAt(C.current-1)},setStateAt:function($){S()&&w.length&&$!==C.current&&(C.current=$>=0?$%w.length:w.length+$%w.length,O())},setState:function($){if(S()){var x=w.length?w.indexOf($):-1;if(-1===x)throw new Error("State '"+$+"' is not a valid state (does not exist in state list)");C.current=x,O()}}}}),[w]);return Object(x.__assign)({state:w[C.current],currentIndex:C.current,isFirst:0===C.current,isLast:C.current===w.length-1},j)}var esm_useThrottle=function(w,S){void 0===S&&(S=200);var O=Object($.useState)(w),x=O[0],C=O[1],j=Object($.useRef)(),N=Object($.useRef)(null),k=Object($.useRef)(0);return Object($.useEffect)((function(){if(j.current)N.current=w,k.current=!0;else{C(w);var timeoutCallback_1=function(){k.current?(k.current=!1,C(N.current),j.current=setTimeout(timeoutCallback_1,S)):j.current=void 0};j.current=setTimeout(timeoutCallback_1,S)}}),[w]),esm_useUnmount((function(){j.current&&clearTimeout(j.current)})),x},esm_useThrottleFn=function(w,S,O){void 0===S&&(S=200);var x=Object($.useState)(null),C=x[0],j=x[1],N=Object($.useRef)(),k=Object($.useRef)();return Object($.useEffect)((function(){if(N.current)k.current=O;else{j(w.apply(void 0,O));var timeoutCallback_1=function(){k.current?(j(w.apply(void 0,k.current)),k.current=void 0,N.current=setTimeout(timeoutCallback_1,S)):N.current=void 0};N.current=setTimeout(timeoutCallback_1,S)}}),O),esm_useUnmount((function(){N.current&&clearTimeout(N.current)})),C};function useTimeout(w){return void 0===w&&(w=0),useTimeoutFn(useUpdate(),w)}var yt={restoreOnUnmount:!1};var vt="undefined"!=typeof document?function useTitle(w,S){void 0===S&&(S=yt);var O=Object($.useRef)(document.title);document.title!==w&&(document.title=w),Object($.useEffect)((function(){return S&&S.restoreOnUnmount?function(){document.title=O.current}:void 0}),[])}:function(w){},mt=O(137),esm_useTween=function(w,S,O){return void 0===w&&(w="inCirc"),void 0===S&&(S=200),void 0===O&&(O=0),(0,mt.easing[w])(esm_useRaf(S,O))},esm_useUnmountPromise=function(){var w=Object($.useRef)(!1);return esm_useEffectOnce((function(){return function(){w.current=!0}})),Object($.useMemo)((function(){return function(S,O){return new Promise((function($,x){S.then((function(S){w.current||$(S)}),(function(S){w.current?O?O(S):console.error("useUnmountPromise",S):x(S)}))}))}}),[])};function useUpsert(w,S){void 0===S&&(S=[]);var O=Re(S),$=O[0],C=O[1];return[$,Object(x.__assign)(Object(x.__assign)({},C),{upsert:function(S){C.upsert(w,S)}})]}var gt=N&&"vibrate"in navigator?function useVibrate(w,S,O){void 0===w&&(w=!0),void 0===S&&(S=[1e3,1e3]),void 0===O&&(O=!0),Object($.useEffect)((function(){var $;if(w&&(navigator.vibrate(S),O)){var x=S instanceof Array?S.reduce((function(w,S){return w+S})):S;$=setInterval((function(){navigator.vibrate(S)}),x)}return function(){w&&(navigator.vibrate(0),O&&clearInterval($))}}),[w])}:noop,wt=createHTMLMediaHook("video");function useStateValidator(w,S,O){void 0===O&&(O=[void 0]);var x=Object($.useRef)(S),C=Object($.useRef)(w);x.current=S,C.current=w;var j=Object($.useState)(O),N=j[0],k=j[1],I=Object($.useCallback)((function(){x.current.length>=2?x.current(C.current,k):k(x.current(C.current))}),[k]);return Object($.useEffect)((function(){I()}),[w]),[N,I]}var e=function(w){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==w&&"number"==typeof e.__cache)return e.__cache;var S=document.createElement("div"),O=S.style;O.display="block",O.position="absolute",O.width="100px",O.height="100px",O.left="-999px",O.top="-999px",O.overflow="scroll",document.body.insertBefore(S,null);var $=S.clientWidth;if(0!==$)return e.__cache=100-$,document.body.removeChild(S),e.__cache;document.body.removeChild(S)}};function useScrollbarWidth(){var w=Object($.useState)(e()),S=w[0],O=w[1];return Object($.useEffect)((function(){if(void 0===S){var w=requestAnimationFrame((function(){O(e())}));return function(){return cancelAnimationFrame(w)}}}),[]),S}function useMultiStateValidator(w,S,O){if(void 0===O&&(O=[void 0]),"object"!=typeof w)throw new Error("states expected to be an object or array, got "+typeof w);var x=Object($.useRef)(S),C=Object($.useRef)(w);x.current=S,C.current=w;var j=Object($.useState)(O),N=j[0],k=j[1],I=Object($.useCallback)((function(){x.current.length>=2?x.current(C.current,k):k(x.current(C.current))}),[k]);return Object($.useEffect)((function(){I()}),Object.values(w)),[N,I]}var esm_useWindowScroll=function(){var w=esm_useRafState((function(){return{x:j?window.pageXOffset:0,y:j?window.pageYOffset:0}})),S=w[0],O=w[1];return Object($.useEffect)((function(){var handler=function(){O((function(w){var S=window.pageXOffset,O=window.pageYOffset;return w.x!==S||w.y!==O?{x:S,y:O}:w}))};return handler(),on(window,"scroll",handler,{capture:!1,passive:!0}),function(){off(window,"scroll",handler)}}),[]),S},esm_useWindowSize=function(w){var S=void 0===w?{}:w,O=S.initialWidth,x=void 0===O?1/0:O,C=S.initialHeight,N=void 0===C?1/0:C,k=S.onChange,I=esm_useRafState({width:j?window.innerWidth:x,height:j?window.innerHeight:N}),R=I[0],W=I[1];return Object($.useEffect)((function(){if(j){var handler_1=function(){var w=window.innerWidth,S=window.innerHeight;W({width:w,height:S}),k&&k(w,S)};return on(window,"resize",handler_1),function(){off(window,"resize",handler_1)}}}),[]),R},St={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};var _t,Ot=j&&void 0!==window.ResizeObserver?function useMeasure(){var w=Object($.useState)(null),S=w[0],O=w[1],x=Object($.useState)(St),C=x[0],j=x[1],N=Object($.useMemo)((function(){return new window.ResizeObserver((function(w){if(w[0]){var S=w[0].contentRect,O=S.x,$=S.y,x=S.width,C=S.height,N=S.top,k=S.left,I=S.bottom,R=S.right;j({x:O,y:$,width:x,height:C,top:N,left:k,bottom:I,right:R})}}))}),[]);return he((function(){if(S)return N.observe(S),function(){N.disconnect()}}),[S]),[O,C]}:function(){return[noop,St]};!function(w){w.ZOOMING_IN="ZOOMING_IN",w.ZOOMING_OUT="ZOOMING_OUT"}(_t||(_t={}));var esm_usePinchZoom=function(w){var S=Object($.useMemo)((function(){return{evCache:[],prevDiff:-1}}),[w.current]),O=Object($.useState)(),x=O[0],C=O[1],pointermove_handler=function(w){for(var O=0;O0&&($>S.prevDiff&&C([_t.ZOOMING_IN,$]),$1)this.connection=null;else{var O=this.connection,$=w._connection;this.connection=null,!$||O&&$!==O||$.unsubscribe()}}else this.connection=null},RefCountSubscriber}(x.a)},function(w,S,O){"use strict";O.d(S,"a",(function(){return R}));var $=O(1),x=O(7),C=O(71),j=O(6),N=O(82),k=O(27),I=O(89),R=function(w){function ReplaySubject(S,O,$){void 0===S&&(S=Number.POSITIVE_INFINITY),void 0===O&&(O=Number.POSITIVE_INFINITY);var x=w.call(this)||this;return x.scheduler=$,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=O<1?1:O,O===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return $.__extends(ReplaySubject,w),ReplaySubject.prototype.nextInfiniteTimeWindow=function(S){if(!this.isStopped){var O=this._events;O.push(S),O.length>this._bufferSize&&O.shift()}w.prototype.next.call(this,S)},ReplaySubject.prototype.nextTimeWindow=function(S){this.isStopped||(this._events.push(new W(this._getNow(),S)),this._trimBufferThenGetEvents()),w.prototype.next.call(this,S)},ReplaySubject.prototype._subscribe=function(w){var S,O=this._infiniteTimeWindow,$=O?this._events:this._trimBufferThenGetEvents(),x=this.scheduler,C=$.length;if(this.closed)throw new k.a;if(this.isStopped||this.hasError?S=j.a.EMPTY:(this.observers.push(w),S=new I.a(this,w)),x&&w.add(w=new N.a(w,x)),O)for(var R=0;RS&&(C=Math.max(C,x-S)),C>0&&$.splice(0,C),$},ReplaySubject}(x.a),W=function(){return function ReplayEvent(w,S){this.time=w,this.value=S}}()},function(w,S,O){"use strict";O.d(S,"a",(function(){return throwError}));var $=O(4);function throwError(w,S){return S?new $.a((function(O){return S.schedule(dispatch,0,{error:w,subscriber:O})})):new $.a((function(S){return S.error(w)}))}function dispatch(w){var S=w.error;w.subscriber.error(S)}},function(w,S,O){"use strict";O.d(S,"b",(function(){return combineLatest})),O.d(S,"a",(function(){return R}));var $=O(1),x=O(11),C=O(9),j=O(21),N=O(18),k=O(33),I={};function combineLatest(){for(var w=[],S=0;Sthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),J=function(w){function ZipBufferIterator(S,O,$){var x=w.call(this,S)||this;return x.parent=O,x.observable=$,x.stillUnsubscribed=!0,x.buffer=[],x.isComplete=!1,x}return $.__extends(ZipBufferIterator,w),ZipBufferIterator.prototype[N.a]=function(){return this},ZipBufferIterator.prototype.next=function(){var w=this.buffer;return 0===w.length&&this.isComplete?{value:null,done:!0}:{value:w.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(w){this.buffer.push(w),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return Object(k.c)(this.observable,new k.a(this))},ZipBufferIterator}(k.b)},function(w,S,O){"use strict";function isObject(w){return null!==w&&"object"==typeof w}O.d(S,"a",(function(){return isObject}))},function(w,S,O){"use strict";O.d(S,"a",(function(){return canReportError}));var $=O(2);function canReportError(w){for(;w;){var S=w,O=S.closed,x=S.destination,C=S.isStopped;if(O||C)return!1;w=x&&x instanceof $.a?x:null}return!0}},function(w,S,O){"use strict";O.d(S,"a",(function(){return scheduleArray}));var $=O(4),x=O(6);function scheduleArray(w,S){return new $.a((function(O){var $=new x.a,C=0;return $.add(S.schedule((function(){C!==w.length?(O.next(w[C++]),O.closed||$.add(this.schedule())):O.complete()}))),$}))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return C}));var $=O(19),x=O(41),C={closed:!0,next:function(w){},error:function(w){if($.a.useDeprecatedSynchronousErrorHandling)throw w;Object(x.a)(w)},complete:function(){}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Deletable=S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.useLinkTypeForHref=S.makeLinkType=S.registerDialog=S.registerLinkTypes=void 0;var $=O(150);Object.defineProperty(S,"registerLinkTypes",{enumerable:!0,get:function get(){return $.registerLinkTypes}}),Object.defineProperty(S,"registerDialog",{enumerable:!0,get:function get(){return $.registerDialog}});var x=O(30);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return x.makeLinkType}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return x.useLinkTypeForHref}}),Object.defineProperty(S,"createEditor",{enumerable:!0,get:function get(){return x.createEditor}}),Object.defineProperty(S,"EditorContext",{enumerable:!0,get:function get(){return x.EditorContext}}),Object.defineProperty(S,"useEditorState",{enumerable:!0,get:function get(){return x.useEditorState}}),Object.defineProperty(S,"useEditorTransactions",{enumerable:!0,get:function get(){return x.useEditorTransactions}});var C=O(38);Object.defineProperty(S,"Deletable",{enumerable:!0,get:function get(){return C.Deletable}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.useNeos=S.NeosContext=void 0;var C=__importStar(O(0));S.NeosContext=C.createContext(null),S.useNeos=function useNeos(){var w=C.useContext(S.NeosContext);if(!w)throw new Error("[Sitegeist.Archaeopteryx]: Could not determine Neos Context.");return w}},function(w,S,O){"use strict";(function(w){var $=O(187),x=O(188),C=O(110);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(w,S){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|w}function byteLength(w,S){if(Buffer.isBuffer(w))return w.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(w)||w instanceof ArrayBuffer))return w.byteLength;"string"!=typeof w&&(w=""+w);var O=w.length;if(0===O)return 0;for(var $=!1;;)switch(S){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":case void 0:return utf8ToBytes(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*O;case"hex":return O>>>1;case"base64":return base64ToBytes(w).length;default:if($)return utf8ToBytes(w).length;S=(""+S).toLowerCase(),$=!0}}function slowToString(w,S,O){var $=!1;if((void 0===S||S<0)&&(S=0),S>this.length)return"";if((void 0===O||O>this.length)&&(O=this.length),O<=0)return"";if((O>>>=0)<=(S>>>=0))return"";for(w||(w="utf8");;)switch(w){case"hex":return hexSlice(this,S,O);case"utf8":case"utf-8":return utf8Slice(this,S,O);case"ascii":return asciiSlice(this,S,O);case"latin1":case"binary":return latin1Slice(this,S,O);case"base64":return base64Slice(this,S,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,S,O);default:if($)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),$=!0}}function swap(w,S,O){var $=w[S];w[S]=w[O],w[O]=$}function bidirectionalIndexOf(w,S,O,$,x){if(0===w.length)return-1;if("string"==typeof O?($=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,isNaN(O)&&(O=x?0:w.length-1),O<0&&(O=w.length+O),O>=w.length){if(x)return-1;O=w.length-1}else if(O<0){if(!x)return-1;O=0}if("string"==typeof S&&(S=Buffer.from(S,$)),Buffer.isBuffer(S))return 0===S.length?-1:arrayIndexOf(w,S,O,$,x);if("number"==typeof S)return S&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(w,S,O):Uint8Array.prototype.lastIndexOf.call(w,S,O):arrayIndexOf(w,[S],O,$,x);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(w,S,O,$,x){var C,j=1,N=w.length,k=S.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(w.length<2||S.length<2)return-1;j=2,N/=2,k/=2,O/=2}function read(w,S){return 1===j?w[S]:w.readUInt16BE(S*j)}if(x){var I=-1;for(C=O;CN&&(O=N-k),C=O;C>=0;C--){for(var R=!0,W=0;Wx&&($=x):$=x;var C=S.length;if(C%2!=0)throw new TypeError("Invalid hex string");$>C/2&&($=C/2);for(var j=0;j<$;++j){var N=parseInt(S.substr(2*j,2),16);if(isNaN(N))return j;w[O+j]=N}return j}function utf8Write(w,S,O,$){return blitBuffer(utf8ToBytes(S,w.length-O),w,O,$)}function asciiWrite(w,S,O,$){return blitBuffer(function asciiToBytes(w){for(var S=[],O=0;O>8,x=O%256,C.push(x),C.push($);return C}(S,w.length-O),w,O,$)}function base64Slice(w,S,O){return 0===S&&O===w.length?$.fromByteArray(w):$.fromByteArray(w.slice(S,O))}function utf8Slice(w,S,O){O=Math.min(w.length,O);for(var $=[],x=S;x239?4:I>223?3:I>191?2:1;if(x+W<=O)switch(W){case 1:I<128&&(R=I);break;case 2:128==(192&(C=w[x+1]))&&(k=(31&I)<<6|63&C)>127&&(R=k);break;case 3:C=w[x+1],j=w[x+2],128==(192&C)&&128==(192&j)&&(k=(15&I)<<12|(63&C)<<6|63&j)>2047&&(k<55296||k>57343)&&(R=k);break;case 4:C=w[x+1],j=w[x+2],N=w[x+3],128==(192&C)&&128==(192&j)&&128==(192&N)&&(k=(15&I)<<18|(63&C)<<12|(63&j)<<6|63&N)>65535&&k<1114112&&(R=k)}null===R?(R=65533,W=1):R>65535&&(R-=65536,$.push(R>>>10&1023|55296),R=56320|1023&R),$.push(R),x+=W}return function decodeCodePointsArray(w){var S=w.length;if(S<=4096)return String.fromCharCode.apply(String,w);var O="",$=0;for(;$0&&(w=this.toString("hex",0,O).match(/.{2}/g).join(" "),this.length>O&&(w+=" ... ")),""},Buffer.prototype.compare=function compare(w,S,O,$,x){if(!Buffer.isBuffer(w))throw new TypeError("Argument must be a Buffer");if(void 0===S&&(S=0),void 0===O&&(O=w?w.length:0),void 0===$&&($=0),void 0===x&&(x=this.length),S<0||O>w.length||$<0||x>this.length)throw new RangeError("out of range index");if($>=x&&S>=O)return 0;if($>=x)return-1;if(S>=O)return 1;if(this===w)return 0;for(var C=(x>>>=0)-($>>>=0),j=(O>>>=0)-(S>>>=0),N=Math.min(C,j),k=this.slice($,x),I=w.slice(S,O),R=0;Rx)&&(O=x),w.length>0&&(O<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var C=!1;;)switch($){case"hex":return hexWrite(this,w,S,O);case"utf8":case"utf-8":return utf8Write(this,w,S,O);case"ascii":return asciiWrite(this,w,S,O);case"latin1":case"binary":return latin1Write(this,w,S,O);case"base64":return base64Write(this,w,S,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,w,S,O);default:if(C)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),C=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function asciiSlice(w,S,O){var $="";O=Math.min(w.length,O);for(var x=S;x$)&&(O=$);for(var x="",C=S;CO)throw new RangeError("Trying to access beyond buffer length")}function checkInt(w,S,O,$,x,C){if(!Buffer.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>x||Sw.length)throw new RangeError("Index out of range")}function objectWriteUInt16(w,S,O,$){S<0&&(S=65535+S+1);for(var x=0,C=Math.min(w.length-O,2);x>>8*($?x:1-x)}function objectWriteUInt32(w,S,O,$){S<0&&(S=4294967295+S+1);for(var x=0,C=Math.min(w.length-O,4);x>>8*($?x:3-x)&255}function checkIEEE754(w,S,O,$,x,C){if(O+$>w.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function writeFloat(w,S,O,$,C){return C||checkIEEE754(w,0,O,4),x.write(w,S,O,$,23,4),O+4}function writeDouble(w,S,O,$,C){return C||checkIEEE754(w,0,O,8),x.write(w,S,O,$,52,8),O+8}Buffer.prototype.slice=function slice(w,S){var O,$=this.length;if((w=~~w)<0?(w+=$)<0&&(w=0):w>$&&(w=$),(S=void 0===S?$:~~S)<0?(S+=$)<0&&(S=0):S>$&&(S=$),S0&&(x*=256);)$+=this[w+--S]*x;return $},Buffer.prototype.readUInt8=function readUInt8(w,S){return S||checkOffset(w,1,this.length),this[w]},Buffer.prototype.readUInt16LE=function readUInt16LE(w,S){return S||checkOffset(w,2,this.length),this[w]|this[w+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(w,S){return S||checkOffset(w,2,this.length),this[w]<<8|this[w+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(w,S){return S||checkOffset(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(w,S){return S||checkOffset(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},Buffer.prototype.readIntLE=function readIntLE(w,S,O){w|=0,S|=0,O||checkOffset(w,S,this.length);for(var $=this[w],x=1,C=0;++C=(x*=128)&&($-=Math.pow(2,8*S)),$},Buffer.prototype.readIntBE=function readIntBE(w,S,O){w|=0,S|=0,O||checkOffset(w,S,this.length);for(var $=S,x=1,C=this[w+--$];$>0&&(x*=256);)C+=this[w+--$]*x;return C>=(x*=128)&&(C-=Math.pow(2,8*S)),C},Buffer.prototype.readInt8=function readInt8(w,S){return S||checkOffset(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},Buffer.prototype.readInt16LE=function readInt16LE(w,S){S||checkOffset(w,2,this.length);var O=this[w]|this[w+1]<<8;return 32768&O?4294901760|O:O},Buffer.prototype.readInt16BE=function readInt16BE(w,S){S||checkOffset(w,2,this.length);var O=this[w+1]|this[w]<<8;return 32768&O?4294901760|O:O},Buffer.prototype.readInt32LE=function readInt32LE(w,S){return S||checkOffset(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(w,S){return S||checkOffset(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},Buffer.prototype.readFloatLE=function readFloatLE(w,S){return S||checkOffset(w,4,this.length),x.read(this,w,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(w,S){return S||checkOffset(w,4,this.length),x.read(this,w,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(w,S){return S||checkOffset(w,8,this.length),x.read(this,w,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(w,S){return S||checkOffset(w,8,this.length),x.read(this,w,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(w,S,O,$){(w=+w,S|=0,O|=0,$)||checkInt(this,w,S,O,Math.pow(2,8*O)-1,0);var x=1,C=0;for(this[S]=255&w;++C=0&&(C*=256);)this[S+x]=w/C&255;return S+O},Buffer.prototype.writeUInt8=function writeUInt8(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(w=Math.floor(w)),this[S]=255&w,S+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8):objectWriteUInt16(this,w,S,!0),S+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>8,this[S+1]=255&w):objectWriteUInt16(this,w,S,!1),S+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=255&w):objectWriteUInt32(this,w,S,!0),S+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=255&w):objectWriteUInt32(this,w,S,!1),S+4},Buffer.prototype.writeIntLE=function writeIntLE(w,S,O,$){if(w=+w,S|=0,!$){var x=Math.pow(2,8*O-1);checkInt(this,w,S,O,x-1,-x)}var C=0,j=1,N=0;for(this[S]=255&w;++C>0)-N&255;return S+O},Buffer.prototype.writeIntBE=function writeIntBE(w,S,O,$){if(w=+w,S|=0,!$){var x=Math.pow(2,8*O-1);checkInt(this,w,S,O,x-1,-x)}var C=O-1,j=1,N=0;for(this[S+C]=255&w;--C>=0&&(j*=256);)w<0&&0===N&&0!==this[S+C+1]&&(N=1),this[S+C]=(w/j>>0)-N&255;return S+O},Buffer.prototype.writeInt8=function writeInt8(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(w=Math.floor(w)),w<0&&(w=255+w+1),this[S]=255&w,S+1},Buffer.prototype.writeInt16LE=function writeInt16LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8):objectWriteUInt16(this,w,S,!0),S+2},Buffer.prototype.writeInt16BE=function writeInt16BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>8,this[S+1]=255&w):objectWriteUInt16(this,w,S,!1),S+2},Buffer.prototype.writeInt32LE=function writeInt32LE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=255&w,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24):objectWriteUInt32(this,w,S,!0),S+4},Buffer.prototype.writeInt32BE=function writeInt32BE(w,S,O){return w=+w,S|=0,O||checkInt(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),Buffer.TYPED_ARRAY_SUPPORT?(this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=255&w):objectWriteUInt32(this,w,S,!1),S+4},Buffer.prototype.writeFloatLE=function writeFloatLE(w,S,O){return writeFloat(this,w,S,!0,O)},Buffer.prototype.writeFloatBE=function writeFloatBE(w,S,O){return writeFloat(this,w,S,!1,O)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(w,S,O){return writeDouble(this,w,S,!0,O)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(w,S,O){return writeDouble(this,w,S,!1,O)},Buffer.prototype.copy=function copy(w,S,O,$){if(O||(O=0),$||0===$||($=this.length),S>=w.length&&(S=w.length),S||(S=0),$>0&&$=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),w.length-S<$-O&&($=w.length-S+O);var x,C=$-O;if(this===w&&O=0;--x)w[x+S]=this[x+O];else if(C<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(x=0;x>>=0,O=void 0===O?this.length:O>>>0,w||(w=0),"number"==typeof w)for(C=S;C55295&&O<57344){if(!x){if(O>56319){(S-=3)>-1&&C.push(239,191,189);continue}if(j+1===$){(S-=3)>-1&&C.push(239,191,189);continue}x=O;continue}if(O<56320){(S-=3)>-1&&C.push(239,191,189),x=O;continue}O=65536+(x-55296<<10|O-56320)}else x&&(S-=3)>-1&&C.push(239,191,189);if(x=null,O<128){if((S-=1)<0)break;C.push(O)}else if(O<2048){if((S-=2)<0)break;C.push(O>>6|192,63&O|128)}else if(O<65536){if((S-=3)<0)break;C.push(O>>12|224,O>>6&63|128,63&O|128)}else{if(!(O<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;C.push(O>>18|240,O>>12&63|128,O>>6&63|128,63&O|128)}}return C}function base64ToBytes(w){return $.toByteArray(function base64clean(w){if((w=function stringtrim(w){return w.trim?w.trim():w.replace(/^\s+|\s+$/g,"")}(w).replace(j,"")).length<2)return"";for(;w.length%4!=0;)w+="=";return w}(w))}function blitBuffer(w,S,O,$){for(var x=0;x<$&&!(x+O>=S.length||x>=w.length);++x)S[x+O]=w[x];return x}}).call(this,O(46))},function(w,S,O){function objectToString(w){return Object.prototype.toString.call(w)}S.isArray=function isArray(w){return Array.isArray?Array.isArray(w):"[object Array]"===objectToString(w)},S.isBoolean=function isBoolean(w){return"boolean"==typeof w},S.isNull=function isNull(w){return null===w},S.isNullOrUndefined=function isNullOrUndefined(w){return null==w},S.isNumber=function isNumber(w){return"number"==typeof w},S.isString=function isString(w){return"string"==typeof w},S.isSymbol=function isSymbol(w){return"symbol"==typeof w},S.isUndefined=function isUndefined(w){return void 0===w},S.isRegExp=function isRegExp(w){return"[object RegExp]"===objectToString(w)},S.isObject=function isObject(w){return"object"==typeof w&&null!==w},S.isDate=function isDate(w){return"[object Date]"===objectToString(w)},S.isError=function isError(w){return"[object Error]"===objectToString(w)||w instanceof Error},S.isFunction=function isFunction(w){return"function"==typeof w},S.isPrimitive=function isPrimitive(w){return null===w||"boolean"==typeof w||"number"==typeof w||"string"==typeof w||"symbol"==typeof w||void 0===w},S.isBuffer=O(68).Buffer.isBuffer},function(w,S,O){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(w){for(var S=1;S=O.length)return $;var C=O[S];if(isNaN(C)){var j;if(null==w){var N,k=setInRecursor(void 0,S+1,O,$,x);return void 0===k?void 0:((N={})[C]=k,N)}if(Array.isArray(w))throw new Error("Cannot set a non-numeric property on an array");var I=setInRecursor(w[C],S+1,O,$,x);if(void 0===I){var R=Object.keys(w).length;if(void 0===w[C]&&0===R)return;return void 0!==w[C]&&R<=1?isNaN(O[S-1])||x?void 0:{}:(w[C],_objectWithoutPropertiesLoose(w,[C].map(_toPropertyKey)))}return _extends({},w,((j={})[C]=I,j))}var W=Number(C);if(null==w){var G=setInRecursor(void 0,S+1,O,$,x);if(void 0===G)return;var J=[];return J[W]=G,J}if(!Array.isArray(w))throw new Error("Cannot set a numeric property on an object");var re=setInRecursor(w[W],S+1,O,$,x),ie=[].concat(w);if(x&&void 0===re){if(ie.splice(W,1),0===ie.length)return}else ie[W]=re;return ie}(w,0,R(S),O,$)},J="FINAL_FORM/array-error";function publishFieldState(w,S){var O=w.errors,$=w.initialValues,x=w.lastSubmittedValues,C=w.submitErrors,j=w.submitFailed,N=w.submitSucceeded,k=w.submitting,I=w.values,R=S.active,G=S.blur,re=S.change,ie=S.data,oe=S.focus,ue=S.modified,ce=S.modifiedSinceLastSubmit,se=S.name,de=S.touched,le=S.validating,he=S.visited,ye=W(I,se),ve=W(O,se);ve&&ve[J]&&(ve=ve[J]);var ge=C&&W(C,se),Se=$&&W($,se),Pe=S.isEqual(Se,ye),Ce=!ve&&!ge;return{active:R,blur:G,change:re,data:ie,dirty:!Pe,dirtySinceLastSubmit:!(!x||S.isEqual(W(x,se),ye)),error:ve,focus:oe,initial:Se,invalid:!Ce,length:Array.isArray(ye)?ye.length:void 0,modified:ue,modifiedSinceLastSubmit:ce,name:se,pristine:Pe,submitError:ge,submitFailed:j,submitSucceeded:N,submitting:k,touched:de,valid:Ce,value:ye,visited:he,validating:le}}var re=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],ie=function shallowEqual(w,S){if(w===S)return!0;if("object"!=typeof w||!w||"object"!=typeof S||!S)return!1;var O=Object.keys(w),$=Object.keys(S);if(O.length!==$.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(S),C=0;C0,ve=++se,ge=Promise.all(le).then(function clearAsyncValidationPromise(w){return function(S){return delete ye[w],S}}(ve));he&&(ye[ve]=ge);var Se=function processErrors(w){var S=_extends({},j?$.errors:{},ue,w?ce:$.asyncErrors),k=function forEachError(w){C.forEach((function($){if(O[$]){var C=W(ue,$),k=W(S,$),I=Ce(x[$]).length,R=de[$];w($,I&&R||N&&C||(C||j?void 0:k))}}))};k((function(w,O){S=G(S,w,O)||{}})),k((function(w,O){if(O&&O[J]){var $=W(S,w),x=[].concat($);x[J]=O[J],S=G(S,w,x)}})),ie($.errors,S)||($.errors=S),w&&($.asyncErrors=ce),$.error=ue["FINAL_FORM/form-error"]};if(he&&(I.formState.validating++,S()),Se(!1),S(),he){var Pe=function afterPromise(){I.formState.validating--,S(),0===I.formState.validating&&I.lastFormState.validating&&Ge()};ge.then((function(){se>ve||Se(!0)})).then(Pe,Pe)}}else S()},Me=function notifyFieldListeners(w){if(!R){var S=I.fields,O=I.fieldSubscribers,$=I.formState,x=_extends({},S),C=function notifyField(w){var S=x[w],C=publishFieldState($,S),j=S.lastFieldState;S.lastFieldState=C;var N=O[w];N&¬ify(N,C,j,ue,void 0===j)};w?C(w):Object.keys(x).forEach(C)}},Fe=function markAllFieldsTouched(){Object.keys(I.fields).forEach((function(w){I.fields[w].touched=!0}))},Re=function calculateNextFormState(){var w=I.fields,S=I.formState,O=I.lastFormState,$=_extends({},w),x=Object.keys($),C=!1,j=x.reduce((function(w,O){return!$[O].isEqual(W(S.values,O),W(S.initialValues||{},O))&&(C=!0,w[O]=!0),w}),{}),N=x.reduce((function(w,O){var x=S.lastSubmittedValues||{};return $[O].isEqual(W(S.values,O),W(x,O))||(w[O]=!0),w}),{});S.pristine=!C,S.dirtySinceLastSubmit=!(!S.lastSubmittedValues||!Object.values(N).some((function(w){return w}))),S.modifiedSinceLastSubmit=!(!S.lastSubmittedValues||!Object.keys($).some((function(w){return $[w].modifiedSinceLastSubmit}))),S.valid=!(S.error||S.submitError||he(S.errors)||S.submitErrors&&he(S.submitErrors));var k=function convertToExternalFormState(w){var S=w.active,O=w.dirtySinceLastSubmit,$=w.modifiedSinceLastSubmit,x=w.error,C=w.errors,j=w.initialValues,N=w.pristine,k=w.submitting,I=w.submitFailed,R=w.submitSucceeded,W=w.submitError,G=w.submitErrors,J=w.valid,re=w.validating,ie=w.values;return{active:S,dirty:!N,dirtySinceLastSubmit:O,modifiedSinceLastSubmit:$,error:x,errors:C,hasSubmitErrors:!!(W||G&&he(G)),hasValidationErrors:!(!x&&!he(C)),invalid:!J,initialValues:j,pristine:N,submitting:k,submitFailed:I,submitSucceeded:R,submitError:W,submitErrors:G,valid:J,validating:re>0,values:ie}}(S),R=x.reduce((function(w,S){return w.modified[S]=$[S].modified,w.touched[S]=$[S].touched,w.visited[S]=$[S].visited,w}),{modified:{},touched:{},visited:{}}),G=R.modified,J=R.touched,re=R.visited;return k.dirtyFields=O&&ie(O.dirtyFields,j)?O.dirtyFields:j,k.dirtyFieldsSinceLastSubmit=O&&ie(O.dirtyFieldsSinceLastSubmit,N)?O.dirtyFieldsSinceLastSubmit:N,k.modified=O&&ie(O.modified,G)?O.modified:G,k.touched=O&&ie(O.touched,J)?O.touched:J,k.visited=O&&ie(O.visited,re)?O.visited:re,O&&ie(O,k)?O:k},De=!1,Ue=!1,Ge=function notifyFormListeners(){if(De)Ue=!0;else{if(De=!0,function callDebug(){S&&S(Re(),Object.keys(I.fields).reduce((function(w,S){return w[S]=I.fields[S],w}),{}))}(),!(R||re&&ce)){var w=I.lastFormState,O=Re();O!==w&&(I.lastFormState=O,notify(I.subscribers,O,w,filterFormState))}De=!1,Ue&&(Ue=!1,notifyFormListeners())}},He=function resetModifiedAfterSubmit(){return Object.keys(I.fields).forEach((function(w){return I.fields[w].modifiedSinceLastSubmit=!1}))};Ie(void 0,(function(){Ge()}));var Ke={batch:function batch(w){R++,w(),R--,Me(),Ge()},blur:function blur(w){var S=I.fields,O=I.formState,$=S[w];$&&(delete O.active,S[w]=_extends({},$,{active:!1,touched:!0}),k?Ie(w,(function(){Me(),Ge()})):(Me(),Ge()))},change:function change(w,S){var O=I.fields,$=I.formState;if(W($.values,w)!==S){ve(I,w,(function(){return S}));var x=O[w];x&&(O[w]=_extends({},x,{modified:!0,modifiedSinceLastSubmit:!!$.lastSubmittedValues})),k?(Me(),Ge()):Ie(w,(function(){Me(),Ge()}))}},get destroyOnUnregister(){return!!O},set destroyOnUnregister(w){O=w},focus:function focus(w){var S=I.fields[w];S&&!S.active&&(I.formState.active=w,S.active=!0,S.visited=!0,Me(),Ge())},mutators:Pe,getFieldState:function getFieldState(w){var S=I.fields[w];return S&&S.lastFieldState},getRegisteredFields:function getRegisteredFields(){return Object.keys(I.fields)},getState:function getState(){return Re()},initialize:function initialize(w){var S=I.fields,O=I.formState,x=_extends({},S),C="function"==typeof w?w(O.values):w;$||(O.values=C);var j=$?Object.keys(x).reduce((function(w,S){return x[S].isEqual(W(O.values,S),W(O.initialValues||{},S))||(w[S]=W(O.values,S)),w}),{}):{};O.initialValues=C,O.values=C,Object.keys(j).forEach((function(w){O.values=G(O.values,w,j[w])||{}})),Ie(void 0,(function(){Me(),Ge()}))},isValidationPaused:function isValidationPaused(){return re},pauseValidation:function pauseValidation(w){void 0===w&&(w=!0),re=!0,ce=w},registerField:function registerField(w,S,$,x){void 0===$&&($={}),I.fieldSubscribers[w]||(I.fieldSubscribers[w]={index:0,entries:{}});var C=I.fieldSubscribers[w].index++;I.fieldSubscribers[w].entries[C]={subscriber:de(S),subscription:$,notified:!1};var j=I.fields[w]||{active:!1,afterSubmit:x&&x.afterSubmit,beforeSubmit:x&&x.beforeSubmit,data:x&&x.data||{},isEqual:x&&x.isEqual||le,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:w,touched:!1,valid:!0,validateFields:x&&x.validateFields,validators:{},validating:!1,visited:!1};j.blur=j.blur||function(){return Ke.blur(w)},j.change=j.change||function(S){return Ke.change(w,S)},j.focus=j.focus||function(){return Ke.focus(w)},I.fields[w]=j;var N=!1,k=x&&x.silent,R=function notify(){k&&I.fields[w]?Me(w):(Ge(),Me())};if(x){N=!(!x.getValidator||!x.getValidator()),x.getValidator&&(I.fields[w].validators[C]=x.getValidator);var J=void 0===W(I.formState.values,w);void 0===x.initialValue||!J&&W(I.formState.values,w)!==W(I.formState.initialValues,w)||(I.formState.initialValues=G(I.formState.initialValues||{},w,x.initialValue),I.formState.values=G(I.formState.values,w,x.initialValue),Ie(void 0,R)),void 0!==x.defaultValue&&void 0===x.initialValue&&void 0===W(I.formState.initialValues,w)&&J&&(I.formState.values=G(I.formState.values,w,x.defaultValue))}return N?Ie(void 0,R):R(),function(){var S=!1;I.fields[w]&&(S=!(!I.fields[w].validators[C]||!I.fields[w].validators[C]()),delete I.fields[w].validators[C]);var $=!!I.fieldSubscribers[w];$&&delete I.fieldSubscribers[w].entries[C];var x=$&&!Object.keys(I.fieldSubscribers[w].entries).length;x&&(delete I.fieldSubscribers[w],delete I.fields[w],S&&(I.formState.errors=G(I.formState.errors,w,void 0)||{}),O&&(I.formState.values=G(I.formState.values,w,void 0,!0)||{})),k||(S?Ie(void 0,(function(){Ge(),Me()})):x&&Ge())}},reset:function reset(w){void 0===w&&(w=I.formState.initialValues),I.formState.submitting&&(I.formState.resetWhileSubmitting=!0),I.formState.submitFailed=!1,I.formState.submitSucceeded=!1,delete I.formState.submitError,delete I.formState.submitErrors,delete I.formState.lastSubmittedValues,Ke.initialize(w||{})},resetFieldState:function resetFieldState(w){I.fields[w]=_extends({},I.fields[w],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),Ie(void 0,(function(){Me(),Ge()}))},restart:function restart(w){void 0===w&&(w=I.formState.initialValues),Ke.batch((function(){for(var S in I.fields)Ke.resetFieldState(S),I.fields[S]=_extends({},I.fields[S],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});Ke.reset(w)}))},resumeValidation:function resumeValidation(){re=!1,ce=!1,oe&&Ie(void 0,(function(){Me(),Ge()})),oe=!1},setConfig:function setConfig(w,x){switch(w){case"debug":S=x;break;case"destroyOnUnregister":O=x;break;case"initialValues":Ke.initialize(x);break;case"keepDirtyOnReinitialize":$=x;break;case"mutators":C=x,x?(Object.keys(Pe).forEach((function(w){w in x||delete Pe[w]})),Object.keys(x).forEach((function(w){Pe[w]=Se(w)}))):Object.keys(Pe).forEach((function(w){delete Pe[w]}));break;case"onSubmit":j=x;break;case"validate":N=x,Ie(void 0,(function(){Me(),Ge()}));break;case"validateOnBlur":k=x;break;default:throw new Error("Unrecognised option "+w)}},submit:function submit(){var w=I.formState;if(!w.submitting){if(delete w.submitErrors,delete w.submitError,w.lastSubmittedValues=_extends({},w.values),function hasSyncErrors(){return!(!I.formState.error&&!he(I.formState.errors))}())return Fe(),He(),I.formState.submitFailed=!0,Ge(),void Me();var S=Object.keys(ye);if(S.length)Promise.all(S.map((function(w){return ye[Number(w)]}))).then(Ke.submit,console.error);else if(!function beforeSubmit(){return Object.keys(I.fields).some((function(w){return I.fields[w].beforeSubmit&&!1===I.fields[w].beforeSubmit()}))}()){var O,$=!1,x=function complete(S){w.submitting=!1;var x=w.resetWhileSubmitting;return x&&(w.resetWhileSubmitting=!1),S&&he(S)?(w.submitFailed=!0,w.submitSucceeded=!1,w.submitErrors=S,w.submitError=S["FINAL_FORM/form-error"],Fe()):(x||(w.submitFailed=!1,w.submitSucceeded=!0),function afterSubmit(){Object.keys(I.fields).forEach((function(w){return I.fields[w].afterSubmit&&I.fields[w].afterSubmit()}))}()),Ge(),Me(),$=!0,O&&O(S),S};w.submitting=!0,w.submitFailed=!1,w.submitSucceeded=!1,w.lastSubmittedValues=_extends({},w.values),He();var C=j(w.values,Ke,x);if(!$){if(C&&isPromise(C))return Ge(),Me(),C.then(x,(function(w){throw x(),w}));if(j.length>=3)return Ge(),Me(),new Promise((function(w){O=w}));x(C)}}}},subscribe:function subscribe(w,S){if(!w)throw new Error("No callback given.");if(!S)throw new Error("No subscription provided. What values do you want to listen to?");var O=de(w),$=I.subscribers,x=$.index++;$.entries[x]={subscriber:O,subscription:S,notified:!1};var C=Re();return notifySubscriber(O,S,C,C,filterFormState,!0),function(){delete $.entries[x]}}};return Ke}var ye=["render","children","component"];function renderComponent(w,S,O){var x=w.render,C=w.children,j=w.component,N=_objectWithoutPropertiesLoose(w,ye);if(j)return $.createElement(j,Object.assign(S,N,{children:C,render:x}));if(x)return x(void 0===C?Object.assign(S,N):Object.assign(S,N,{children:C}));if("function"!=typeof C)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+O);return C(Object.assign(S,N))}function useWhenValueChanges(w,S,O){void 0===O&&(O=function isEqual(w,S){return w===S});var $=x.a.useRef(w);x.a.useEffect((function(){O(w,$.current)||(S(),$.current=w)}))}var ve=function shallowEqual(w,S){if(w===S)return!0;if("object"!=typeof w||!w||"object"!=typeof S||!S)return!1;var O=Object.keys(w),$=Object.keys(S);if(O.length!==$.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(S),C=0;C component");return S}function useFormState(w){var S=void 0===w?{}:w,O=S.onChange,x=S.subscription,C=void 0===x?Re:x,j=useForm("useFormState"),N=$.useRef(!0),k=$.useRef(O);k.current=O;var I=$.useState((function(){var w={};return j.subscribe((function(S){w=S}),C)(),O&&O(w),w})),R=I[0],W=I[1];$.useEffect((function(){return j.subscribe((function(w){N.current?N.current=!1:(W(w),k.current&&k.current(w))}),C)}),[]);var G={};return Ie(G,R),G}var De=["onChange","subscription"];function FormSpy(w){var S=w.onChange,O=w.subscription,$=_objectWithoutPropertiesLoose(w,De),x=useForm("FormSpy"),C=useFormState({onChange:S,subscription:O});if(S)return null;var j={form:_extends({},x,{reset:function reset(w){ge(w)?x.reset():x.reset(w)}})};return renderComponent(_extends({},$,j),C,"FormSpy")}var Ue="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product;function useConstantCallback(w){var S=$.useRef(w);return $.useEffect((function(){S.current=w})),$.useCallback((function(){for(var w=arguments.length,O=new Array(w),$=0;$ component");return renderComponent(_extends({children:j,component:N,ref:S},he),ye,"Field("+ie+")")}));function withTypes(){return{Form:ReactFinalForm,FormSpy:FormSpy}}},function(w,S,O){"use strict";O.d(S,"b",(function(){return C})),O.d(S,"a",(function(){return j}));var $=O(1),x=function(w){function QueueAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$}return $.__extends(QueueAction,w),QueueAction.prototype.schedule=function(S,O){return void 0===O&&(O=0),O>0?w.prototype.schedule.call(this,S,O):(this.delay=O,this.state=S,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(S,O){return O>0||this.closed?w.prototype.execute.call(this,S,O):this._execute(S,O)},QueueAction.prototype.requestAsyncId=function(S,O,$){return void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0?w.prototype.requestAsyncId.call(this,S,O,$):S.flush(this)},QueueAction}(O(36).a),C=new(function(w){function QueueScheduler(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(QueueScheduler,w),QueueScheduler}(O(34).a))(x),j=C},function(w,S,O){"use strict";O.d(S,"a",(function(){return $}));var $=function(){function Scheduler(w,S){void 0===S&&(S=Scheduler.now),this.SchedulerAction=w,this.now=S}return Scheduler.prototype.schedule=function(w,S,O){return void 0===S&&(S=0),new this.SchedulerAction(this,w).schedule(O,S)},Scheduler.now=function(){return Date.now()},Scheduler}()},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.useSelector=void 0;var C=__importStar(O(0)),j=O(67);S.useSelector=function useSelector(w){var S=(0,j.useNeos)(),O=__read(C.useState(w(S.store.getState())),2),$=O[0],x=O[1];return C.useEffect((function(){return S.store.subscribe((function(){var O=S.store.getState(),$=w(O);x($)}))}),[]),$}},function(w,S,O){var $=O(186),x=O(76),C=O(233),j=O(234).isError,N=C.sprintf;function parseConstructorArguments(w){var S,O,x,C;if($.object(w,"args"),$.bool(w.strict,"args.strict"),$.array(w.argv,"args.argv"),0===(S=w.argv).length)O={},x=[];else if(j(S[0]))O={cause:S[0]},x=S.slice(1);else if("object"==typeof S[0]){for(C in O={},S[0])O[C]=S[0][C];x=S.slice(1)}else $.string(S[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),O={},x=S;return $.object(O),O.strict||w.strict||(x=x.map((function(w){return null===w?"null":void 0===w?"undefined":w}))),{options:O,shortmessage:0===x.length?"":N.apply(null,x)}}function VError(){var w,S,O,x,C,N,k;if(w=Array.prototype.slice.call(arguments,0),!(this instanceof VError))return S=Object.create(VError.prototype),VError.apply(S,arguments),S;if((O=parseConstructorArguments({argv:w,strict:!1})).options.name&&($.string(O.options.name,'error\'s "name" must be a string'),this.name=O.options.name),this.jse_shortmsg=O.shortmessage,N=O.shortmessage,(x=O.options.cause)&&($.ok(j(x),"cause is not an Error"),this.jse_cause=x,O.options.skipCauseMessage||(N+=": "+x.message)),this.jse_info={},O.options.info)for(k in O.options.info)this.jse_info[k]=O.options.info[k];return this.message=N,Error.call(this,N),Error.captureStackTrace&&(C=O.options.constructorOpt||this.constructor,Error.captureStackTrace(this,C)),this}function SError(){var w,S,O,$;return w=Array.prototype.slice.call(arguments,0),this instanceof SError?($=(O=parseConstructorArguments({argv:w,strict:!0})).options,VError.call(this,$,"%s",O.shortmessage),this):(S=Object.create(SError.prototype),SError.apply(S,arguments),S)}function MultiError(w){$.array(w,"list of errors"),$.ok(w.length>0,"must be at least one error"),this.ase_errors=w,VError.call(this,{cause:w[0]},"first of %d error%s",w.length,1==w.length?"":"s")}function WError(){var w,S,O,$;return w=Array.prototype.slice.call(arguments,0),this instanceof WError?(($=(O=parseConstructorArguments({argv:w,strict:!1})).options).skipCauseMessage=!0,VError.call(this,$,"%s",O.shortmessage),this):(S=Object.create(WError.prototype),WError.apply(S,w),S)}w.exports=VError,VError.VError=VError,VError.SError=SError,VError.WError=WError,VError.MultiError=MultiError,x.inherits(VError,Error),VError.prototype.name="VError",VError.prototype.toString=function ve_toString(){var w=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(w+=": "+this.message),w},VError.prototype.cause=function ve_cause(){var w=VError.cause(this);return null===w?void 0:w},VError.cause=function(w){return $.ok(j(w),"err must be an Error"),j(w.jse_cause)?w.jse_cause:null},VError.info=function(w){var S,O,x;if($.ok(j(w),"err must be an Error"),S=null!==(O=VError.cause(w))?VError.info(O):{},"object"==typeof w.jse_info&&null!==w.jse_info)for(x in w.jse_info)S[x]=w.jse_info[x];return S},VError.findCauseByName=function(w,S){var O;for($.ok(j(w),"err must be an Error"),$.string(S,"name"),$.ok(S.length>0,"name cannot be empty"),O=w;null!==O;O=VError.cause(O))if($.ok(j(O)),O.name==S)return O;return null},VError.hasCauseWithName=function(w,S){return null!==VError.findCauseByName(w,S)},VError.fullStack=function(w){$.ok(j(w),"err must be an Error");var S=VError.cause(w);return S?w.stack+"\ncaused by: "+VError.fullStack(S):w.stack},VError.errorFromList=function(w){return $.arrayOfObject(w,"errors"),0===w.length?null:(w.forEach((function(w){$.ok(j(w))})),1==w.length?w[0]:new MultiError(w))},VError.errorForEach=function(w,S){$.ok(j(w),"err must be an Error"),$.func(S,"func"),w instanceof MultiError?w.errors().forEach((function iterError(w){S(w)})):S(w)},x.inherits(SError,VError),x.inherits(MultiError,VError),MultiError.prototype.name="MultiError",MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)},x.inherits(WError,VError),WError.prototype.name="WError",WError.prototype.toString=function we_toString(){var w=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(w+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(w+="; caused by "+this.jse_cause.toString()),w},WError.prototype.cause=function we_cause(w){return j(w)&&(this.jse_cause=w),this.jse_cause}},function(w,S,O){"use strict";var $=O(214);w.exports=Function.prototype.bind||$},function(w,S,O){(function(w){var $=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(w){for(var S=Object.keys(w),O={},$=0;$=C)return w;switch(w){case"%s":return String($[O++]);case"%d":return Number($[O++]);case"%j":try{return JSON.stringify($[O++])}catch(w){return"[Circular]"}default:return w}})),N=$[O];O=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),isBoolean(O)?$.showHidden=O:O&&S._extend($,O),isUndefined($.showHidden)&&($.showHidden=!1),isUndefined($.depth)&&($.depth=2),isUndefined($.colors)&&($.colors=!1),isUndefined($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=stylizeWithColor),formatValue($,w,$.depth)}function stylizeWithColor(w,S){var O=inspect.styles[S];return O?"["+inspect.colors[O][0]+"m"+w+"["+inspect.colors[O][1]+"m":w}function stylizeNoColor(w,S){return w}function formatValue(w,O,$){if(w.customInspect&&O&&isFunction(O.inspect)&&O.inspect!==S.inspect&&(!O.constructor||O.constructor.prototype!==O)){var x=O.inspect($,w);return isString(x)||(x=formatValue(w,x,$)),x}var C=function formatPrimitive(w,S){if(isUndefined(S))return w.stylize("undefined","undefined");if(isString(S)){var O="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(O,"string")}if(isNumber(S))return w.stylize(""+S,"number");if(isBoolean(S))return w.stylize(""+S,"boolean");if(isNull(S))return w.stylize("null","null")}(w,O);if(C)return C;var j=Object.keys(O),N=function arrayToHash(w){var S={};return w.forEach((function(w,O){S[w]=!0})),S}(j);if(w.showHidden&&(j=Object.getOwnPropertyNames(O)),isError(O)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return formatError(O);if(0===j.length){if(isFunction(O)){var k=O.name?": "+O.name:"";return w.stylize("[Function"+k+"]","special")}if(isRegExp(O))return w.stylize(RegExp.prototype.toString.call(O),"regexp");if(isDate(O))return w.stylize(Date.prototype.toString.call(O),"date");if(isError(O))return formatError(O)}var I,R="",W=!1,G=["{","}"];(isArray(O)&&(W=!0,G=["[","]"]),isFunction(O))&&(R=" [Function"+(O.name?": "+O.name:"")+"]");return isRegExp(O)&&(R=" "+RegExp.prototype.toString.call(O)),isDate(O)&&(R=" "+Date.prototype.toUTCString.call(O)),isError(O)&&(R=" "+formatError(O)),0!==j.length||W&&0!=O.length?$<0?isRegExp(O)?w.stylize(RegExp.prototype.toString.call(O),"regexp"):w.stylize("[Object]","special"):(w.seen.push(O),I=W?function formatArray(w,S,O,$,x){for(var C=[],j=0,N=S.length;j=0&&0,w+S.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return O[0]+(""===S?"":S+"\n ")+" "+w.join(",\n ")+" "+O[1];return O[0]+S+" "+w.join(", ")+" "+O[1]}(I,R,G)):G[0]+R+G[1]}function formatError(w){return"["+Error.prototype.toString.call(w)+"]"}function formatProperty(w,S,O,$,x,C){var j,N,k;if((k=Object.getOwnPropertyDescriptor(S,x)||{value:S[x]}).get?N=k.set?w.stylize("[Getter/Setter]","special"):w.stylize("[Getter]","special"):k.set&&(N=w.stylize("[Setter]","special")),hasOwnProperty($,x)||(j="["+x+"]"),N||(w.seen.indexOf(k.value)<0?(N=isNull(O)?formatValue(w,k.value,null):formatValue(w,k.value,O-1)).indexOf("\n")>-1&&(N=C?N.split("\n").map((function(w){return" "+w})).join("\n").substr(2):"\n"+N.split("\n").map((function(w){return" "+w})).join("\n")):N=w.stylize("[Circular]","special")),isUndefined(j)){if(C&&x.match(/^\d+$/))return N;(j=JSON.stringify(""+x)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.substr(1,j.length-2),j=w.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=w.stylize(j,"string"))}return j+": "+N}function isArray(w){return Array.isArray(w)}function isBoolean(w){return"boolean"==typeof w}function isNull(w){return null===w}function isNumber(w){return"number"==typeof w}function isString(w){return"string"==typeof w}function isUndefined(w){return void 0===w}function isRegExp(w){return isObject(w)&&"[object RegExp]"===objectToString(w)}function isObject(w){return"object"==typeof w&&null!==w}function isDate(w){return isObject(w)&&"[object Date]"===objectToString(w)}function isError(w){return isObject(w)&&("[object Error]"===objectToString(w)||w instanceof Error)}function isFunction(w){return"function"==typeof w}function objectToString(w){return Object.prototype.toString.call(w)}function pad(w){return w<10?"0"+w.toString(10):w.toString(10)}S.debuglog=function(O){if(isUndefined(C)&&(C=w.env.NODE_DEBUG||""),O=O.toUpperCase(),!j[O])if(new RegExp("\\b"+O+"\\b","i").test(C)){var $=w.pid;j[O]=function(){var w=S.format.apply(S,arguments);console.error("%s %d: %s",O,$,w)}}else j[O]=function(){};return j[O]},S.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=isArray,S.isBoolean=isBoolean,S.isNull=isNull,S.isNullOrUndefined=function isNullOrUndefined(w){return null==w},S.isNumber=isNumber,S.isString=isString,S.isSymbol=function isSymbol(w){return"symbol"==typeof w},S.isUndefined=isUndefined,S.isRegExp=isRegExp,S.isObject=isObject,S.isDate=isDate,S.isError=isError,S.isFunction=isFunction,S.isPrimitive=function isPrimitive(w){return null===w||"boolean"==typeof w||"number"==typeof w||"string"==typeof w||"symbol"==typeof w||void 0===w},S.isBuffer=O(218);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var w=new Date,S=[pad(w.getHours()),pad(w.getMinutes()),pad(w.getSeconds())].join(":");return[w.getDate(),N[w.getMonth()],S].join(" ")}function hasOwnProperty(w,S){return Object.prototype.hasOwnProperty.call(w,S)}S.log=function(){console.log("%s - %s",timestamp(),S.format.apply(S,arguments))},S.inherits=O(219),S._extend=function(w,S){if(!S||!isObject(S))return w;for(var O=Object.keys(S),$=O.length;$--;)w[O[$]]=S[O[$]];return w};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(w,S){if(!w){var O=new Error("Promise was rejected with a falsy value");O.reason=w,w=O}return S(w)}S.promisify=function promisify(w){if("function"!=typeof w)throw new TypeError('The "original" argument must be of type Function');if(k&&w[k]){var S;if("function"!=typeof(S=w[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(S,k,{value:S,enumerable:!1,writable:!1,configurable:!0}),S}function S(){for(var S,O,$=new Promise((function(w,$){S=w,O=$})),x=[],C=0;C1&&"number"==typeof w[w.length-1]&&(O=w.pop())):"number"==typeof k&&(O=w.pop()),null===N&&1===w.length&&w[0]instanceof $.a?w[0]:Object(C.a)(O)(Object(j.a)(w,N))}},function(w,S,O){"use strict";O.d(S,"a",(function(){return race}));var $=O(1),x=O(9),C=O(33),j=O(21),N=O(18);function race(){for(var w=[],S=0;S0&&j.length>x&&!j.warned){j.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=w,N.type=S,N.count=j.length,function ProcessEmitWarning(w){console&&console.warn&&console.warn(w)}(N)}return w}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(w,S,O){var $={fired:!1,wrapFn:void 0,target:w,type:S,listener:O},x=onceWrapper.bind($);return x.listener=O,$.wrapFn=x,x}function _listeners(w,S,O){var $=w._events;if(void 0===$)return[];var x=$[S];return void 0===x?[]:"function"==typeof x?O?[x.listener||x]:[x]:O?function unwrapListeners(w){for(var S=new Array(w.length),O=0;O0&&(j=S[0]),j instanceof Error)throw j;var N=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw N.context=j,N}var k=x[w];if(void 0===k)return!1;if("function"==typeof k)C(k,this,S);else{var I=k.length,R=arrayClone(k,I);for(O=0;O=0;C--)if(O[C]===S||O[C].listener===S){j=O[C].listener,x=C;break}if(x<0)return this;0===x?O.shift():function spliceOne(w,S){for(;S+1=0;$--)this.removeListener(w,S[$]);return this},EventEmitter.prototype.listeners=function listeners(w){return _listeners(this,w,!0)},EventEmitter.prototype.rawListeners=function rawListeners(w){return _listeners(this,w,!1)},EventEmitter.listenerCount=function(w,S){return"function"==typeof w.listenerCount?w.listenerCount(S):listenerCount.call(w,S)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?$(this._events):[]}},function(w,S,O){(S=w.exports=O(120)).Stream=S,S.Readable=S,S.Writable=O(100),S.Duplex=O(47),S.Transform=O(124),S.PassThrough=O(228)},function(w,S,O){var $=O(68),x=$.Buffer;function copyProps(w,S){for(var O in w)S[O]=w[O]}function SafeBuffer(w,S,O){return x(w,S,O)}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?w.exports=$:(copyProps($,S),S.Buffer=SafeBuffer),copyProps(x,SafeBuffer),SafeBuffer.from=function(w,S,O){if("number"==typeof w)throw new TypeError("Argument must not be a number");return x(w,S,O)},SafeBuffer.alloc=function(w,S,O){if("number"!=typeof w)throw new TypeError("Argument must be a number");var $=x(w);return void 0!==S?"string"==typeof O?$.fill(S,O):$.fill(S):$.fill(0),$},SafeBuffer.allocUnsafe=function(w){if("number"!=typeof w)throw new TypeError("Argument must be a number");return x(w)},SafeBuffer.allocUnsafeSlow=function(w){if("number"!=typeof w)throw new TypeError("Argument must be a number");return $.SlowBuffer(w)}},function(w,S,O){"use strict";(function(S,$,x){var C=O(77);function CorkedRequest(w){var S=this;this.next=null,this.entry=null,this.finish=function(){!function onCorkedFinish(w,S,O){var $=w.entry;w.entry=null;for(;$;){var x=$.callback;S.pendingcb--,x(O),$=$.next}S.corkedRequestsFree.next=w}(S,w)}}w.exports=Writable;var j,N=!S.browser&&["v0.10","v0.9."].indexOf(S.version.slice(0,5))>-1?$:C.nextTick;Writable.WritableState=WritableState;var k=Object.create(O(69));k.inherits=O(53);var I={deprecate:O(226)},R=O(121),W=O(99).Buffer,G=(void 0!==x?x:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var J,re=O(122);function nop(){}function WritableState(w,S){j=j||O(47),w=w||{};var $=S instanceof j;this.objectMode=!!w.objectMode,$&&(this.objectMode=this.objectMode||!!w.writableObjectMode);var x=w.highWaterMark,k=w.writableHighWaterMark,I=this.objectMode?16:16384;this.highWaterMark=x||0===x?x:$&&(k||0===k)?k:I,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=!1===w.decodeStrings;this.decodeStrings=!R,this.defaultEncoding=w.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){!function onwrite(w,S){var O=w._writableState,$=O.sync,x=O.writecb;if(function onwriteStateUpdate(w){w.writing=!1,w.writecb=null,w.length-=w.writelen,w.writelen=0}(O),S)!function onwriteError(w,S,O,$,x){--S.pendingcb,O?(C.nextTick(x,$),C.nextTick(finishMaybe,w,S),w._writableState.errorEmitted=!0,w.emit("error",$)):(x($),w._writableState.errorEmitted=!0,w.emit("error",$),finishMaybe(w,S))}(w,O,$,S,x);else{var j=needFinish(O);j||O.corked||O.bufferProcessing||!O.bufferedRequest||clearBuffer(w,O),$?N(afterWrite,w,O,j,x):afterWrite(w,O,j,x)}}(S,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(w){if(j=j||O(47),!(J.call(Writable,this)||this instanceof j))return new Writable(w);this._writableState=new WritableState(w,this),this.writable=!0,w&&("function"==typeof w.write&&(this._write=w.write),"function"==typeof w.writev&&(this._writev=w.writev),"function"==typeof w.destroy&&(this._destroy=w.destroy),"function"==typeof w.final&&(this._final=w.final)),R.call(this)}function doWrite(w,S,O,$,x,C,j){S.writelen=$,S.writecb=j,S.writing=!0,S.sync=!0,O?w._writev(x,S.onwrite):w._write(x,C,S.onwrite),S.sync=!1}function afterWrite(w,S,O,$){O||function onwriteDrain(w,S){0===S.length&&S.needDrain&&(S.needDrain=!1,w.emit("drain"))}(w,S),S.pendingcb--,$(),finishMaybe(w,S)}function clearBuffer(w,S){S.bufferProcessing=!0;var O=S.bufferedRequest;if(w._writev&&O&&O.next){var $=S.bufferedRequestCount,x=new Array($),C=S.corkedRequestsFree;C.entry=O;for(var j=0,N=!0;O;)x[j]=O,O.isBuf||(N=!1),O=O.next,j+=1;x.allBuffers=N,doWrite(w,S,!0,S.length,x,"",C.finish),S.pendingcb++,S.lastBufferedRequest=null,C.next?(S.corkedRequestsFree=C.next,C.next=null):S.corkedRequestsFree=new CorkedRequest(S),S.bufferedRequestCount=0}else{for(;O;){var k=O.chunk,I=O.encoding,R=O.callback;if(doWrite(w,S,!1,S.objectMode?1:k.length,k,I,R),O=O.next,S.bufferedRequestCount--,S.writing)break}null===O&&(S.lastBufferedRequest=null)}S.bufferedRequest=O,S.bufferProcessing=!1}function needFinish(w){return w.ending&&0===w.length&&null===w.bufferedRequest&&!w.finished&&!w.writing}function callFinal(w,S){w._final((function(O){S.pendingcb--,O&&w.emit("error",O),S.prefinished=!0,w.emit("prefinish"),finishMaybe(w,S)}))}function finishMaybe(w,S){var O=needFinish(S);return O&&(!function prefinish(w,S){S.prefinished||S.finalCalled||("function"==typeof w._final?(S.pendingcb++,S.finalCalled=!0,C.nextTick(callFinal,w,S)):(S.prefinished=!0,w.emit("prefinish")))}(w,S),0===S.pendingcb&&(S.finished=!0,w.emit("finish"))),O}k.inherits(Writable,R),WritableState.prototype.getBuffer=function getBuffer(){for(var w=this.bufferedRequest,S=[];w;)S.push(w),w=w.next;return S},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:I.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(w){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(w){return!!J.call(this,w)||this===Writable&&(w&&w._writableState instanceof WritableState)}})):J=function(w){return w instanceof this},Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Writable.prototype.write=function(w,S,O){var $=this._writableState,x=!1,j=!$.objectMode&&function _isUint8Array(w){return W.isBuffer(w)||w instanceof G}(w);return j&&!W.isBuffer(w)&&(w=function _uint8ArrayToBuffer(w){return W.from(w)}(w)),"function"==typeof S&&(O=S,S=null),j?S="buffer":S||(S=$.defaultEncoding),"function"!=typeof O&&(O=nop),$.ended?function writeAfterEnd(w,S){var O=new Error("write after end");w.emit("error",O),C.nextTick(S,O)}(this,O):(j||function validChunk(w,S,O,$){var x=!0,j=!1;return null===O?j=new TypeError("May not write null values to stream"):"string"==typeof O||void 0===O||S.objectMode||(j=new TypeError("Invalid non-string/buffer chunk")),j&&(w.emit("error",j),C.nextTick($,j),x=!1),x}(this,$,w,O))&&($.pendingcb++,x=function writeOrBuffer(w,S,O,$,x,C){if(!O){var j=function decodeChunk(w,S,O){w.objectMode||!1===w.decodeStrings||"string"!=typeof S||(S=W.from(S,O));return S}(S,$,x);$!==j&&(O=!0,x="buffer",$=j)}var N=S.objectMode?1:$.length;S.length+=N;var k=S.length-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(w,S,O){O(new Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(w,S,O){var $=this._writableState;"function"==typeof w?(O=w,w=null,S=null):"function"==typeof S&&(O=S,S=null),null!=w&&this.write(w,S),$.corked&&($.corked=1,this.uncork()),$.ending||function endWritable(w,S,O){S.ending=!0,finishMaybe(w,S),O&&(S.finished?C.nextTick(O):w.once("finish",O));S.ended=!0,w.writable=!1}(this,$,O)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(w){this._writableState&&(this._writableState.destroyed=w)}}),Writable.prototype.destroy=re.destroy,Writable.prototype._undestroy=re.undestroy,Writable.prototype._destroy=function(w,S){this.end(),S(w)}}).call(this,O(44),O(224).setImmediate,O(46))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getTree=S.getNodeTypeFilterOptions=S.getChildrenForTreeNode=void 0;var $=O(261);Object.defineProperty(S,"getChildrenForTreeNode",{enumerable:!0,get:function get(){return $.getChildrenForTreeNode}});var x=O(262);Object.defineProperty(S,"getNodeTypeFilterOptions",{enumerable:!0,get:function get(){return x.getNodeTypeFilterOptions}});var C=O(263);Object.defineProperty(S,"getTree",{enumerable:!0,get:function get(){return C.getTree}})},function(w,S,O){"use strict";w.exports=O(180)},function(w,S,O){"use strict";var $=O(181),x={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},j={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},N={};function getStatics(w){return $.isMemo(w)?j:N[w.$$typeof]||x}N[$.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},N[$.Memo]=j;var k=Object.defineProperty,I=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,J=Object.prototype;w.exports=function hoistNonReactStatics(w,S,O){if("string"!=typeof S){if(J){var $=G(S);$&&$!==J&&hoistNonReactStatics(w,$,O)}var x=I(S);R&&(x=x.concat(R(S)));for(var j=getStatics(w),N=getStatics(S),re=0;re15,isFn=function(w){return"function"==typeof w};S.default=function(w,S){for(var O=[],j=2;j=0;I--)if(W[I]!==G[I])return!1;for(I=W.length-1;I>=0;I--)if(k=W[I],!_deepEqual(w[k],S[k],O,$))return!1;return!0}(w,S,O,$))}return O?w===S:w==S}function isArguments(w){return"[object Arguments]"==Object.prototype.toString.call(w)}function expectedException(w,S){if(!w||!S)return!1;if("[object RegExp]"==Object.prototype.toString.call(S))return S.test(w);try{if(w instanceof S)return!0}catch(w){}return!Error.isPrototypeOf(S)&&!0===S.call({},w)}function _throws(w,S,O,$){var C;if("function"!=typeof S)throw new TypeError('"block" argument must be a function');"string"==typeof O&&($=O,O=null),C=function _tryBlock(w){var S;try{w()}catch(w){S=w}return S}(S),$=(O&&O.name?" ("+O.name+").":".")+($?" "+$:"."),w&&!C&&fail(C,O,"Missing expected exception"+$);var j="string"==typeof $,N=!w&&C&&!O;if((!w&&x.isError(C)&&j&&expectedException(C,O)||N)&&fail(C,O,"Got unwanted exception"+$),w&&C&&O&&!expectedException(C,O)||!w&&C)throw C}k.AssertionError=function AssertionError(w){this.name="AssertionError",this.actual=w.actual,this.expected=w.expected,this.operator=w.operator,w.message?(this.message=w.message,this.generatedMessage=!1):(this.message=function getMessage(w){return truncate(inspect(w.actual),128)+" "+w.operator+" "+truncate(inspect(w.expected),128)}(this),this.generatedMessage=!0);var S=w.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,S);else{var O=new Error;if(O.stack){var $=O.stack,x=getName(S),C=$.indexOf("\n"+x);if(C>=0){var j=$.indexOf("\n",C+1);$=$.substring(j+1)}this.stack=$}}},x.inherits(k.AssertionError,Error),k.fail=fail,k.ok=ok,k.equal=function equal(w,S,O){w!=S&&fail(w,S,O,"==",k.equal)},k.notEqual=function notEqual(w,S,O){w==S&&fail(w,S,O,"!=",k.notEqual)},k.deepEqual=function deepEqual(w,S,O){_deepEqual(w,S,!1)||fail(w,S,O,"deepEqual",k.deepEqual)},k.deepStrictEqual=function deepStrictEqual(w,S,O){_deepEqual(w,S,!0)||fail(w,S,O,"deepStrictEqual",k.deepStrictEqual)},k.notDeepEqual=function notDeepEqual(w,S,O){_deepEqual(w,S,!1)&&fail(w,S,O,"notDeepEqual",k.notDeepEqual)},k.notDeepStrictEqual=function notDeepStrictEqual(w,S,O){_deepEqual(w,S,!0)&&fail(w,S,O,"notDeepStrictEqual",notDeepStrictEqual)},k.strictEqual=function strictEqual(w,S,O){w!==S&&fail(w,S,O,"===",k.strictEqual)},k.notStrictEqual=function notStrictEqual(w,S,O){w===S&&fail(w,S,O,"!==",k.notStrictEqual)},k.throws=function(w,S,O){_throws(!0,w,S,O)},k.doesNotThrow=function(w,S,O){_throws(!1,w,S,O)},k.ifError=function(w){if(w)throw w},k.strict=$((function strict(w,S){w||fail(w,!0,S,"==",strict)}),k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStrictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict;var R=Object.keys||function(w){var S=[];for(var O in w)C.call(w,O)&&S.push(O);return S}}).call(this,O(46))},function(w,S,O){"use strict";var $=Object.prototype.toString;w.exports=function isArguments(w){var S=$.call(w),O="[object Arguments]"===S;return O||(O="[object Array]"!==S&&null!==w&&"object"==typeof w&&"number"==typeof w.length&&w.length>=0&&"[object Function]"===$.call(w.callee)),O}},function(w,S,O){"use strict";w.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var w={},S=Symbol("test"),O=Object(S);if("string"==typeof S)return!1;if("[object Symbol]"!==Object.prototype.toString.call(S))return!1;if("[object Symbol]"!==Object.prototype.toString.call(O))return!1;for(var $ in w[S]=42,w)return!1;if("function"==typeof Object.keys&&0!==Object.keys(w).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(w).length)return!1;var x=Object.getOwnPropertySymbols(w);if(1!==x.length||x[0]!==S)return!1;if(!Object.prototype.propertyIsEnumerable.call(w,S))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var C=Object.getOwnPropertyDescriptor(w,S);if(42!==C.value||!0!==C.enumerable)return!1}return!0}},function(w,S,O){"use strict";w.exports=TypeError},function(w,S,O){"use strict";var $=O(209);if($)try{$([],"length")}catch(w){$=null}w.exports=$},function(w,S,O){"use strict";w.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(w,S,O){"use strict";var $=O(95);w.exports=$.getPrototypeOf||null},function(w,S,O){"use strict";var $=O(75),x=O(114),C=O(96),j=O(215);w.exports=function callBindBasic(w){if(w.length<1||"function"!=typeof w[0])throw new x("a function is required");return j($,C,w)}},function(w,S,O){"use strict";w.exports=Function.prototype.apply},function(w,S,O){"use strict";(function(S,$){var x=O(77);w.exports=Readable;var C,j=O(110);Readable.ReadableState=ReadableState;O(97).EventEmitter;var EElistenerCount=function(w,S){return w.listeners(S).length},N=O(121),k=O(99).Buffer,I=(void 0!==S?S:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var R=Object.create(O(69));R.inherits=O(53);var W=O(221),G=void 0;G=W&&W.debuglog?W.debuglog("stream"):function(){};var J,re=O(222),ie=O(122);R.inherits(Readable,N);var oe=["error","close","destroy","pause","resume"];function ReadableState(w,S){w=w||{};var $=S instanceof(C=C||O(47));this.objectMode=!!w.objectMode,$&&(this.objectMode=this.objectMode||!!w.readableObjectMode);var x=w.highWaterMark,j=w.readableHighWaterMark,N=this.objectMode?16:16384;this.highWaterMark=x||0===x?x:$&&(j||0===j)?j:N,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(J||(J=O(123).StringDecoder),this.decoder=new J(w.encoding),this.encoding=w.encoding)}function Readable(w){if(C=C||O(47),!(this instanceof Readable))return new Readable(w);this._readableState=new ReadableState(w,this),this.readable=!0,w&&("function"==typeof w.read&&(this._read=w.read),"function"==typeof w.destroy&&(this._destroy=w.destroy)),N.call(this)}function readableAddChunk(w,S,O,$,x){var C,j=w._readableState;null===S?(j.reading=!1,function onEofChunk(w,S){if(S.ended)return;if(S.decoder){var O=S.decoder.end();O&&O.length&&(S.buffer.push(O),S.length+=S.objectMode?1:O.length)}S.ended=!0,emitReadable(w)}(w,j)):(x||(C=function chunkInvalid(w,S){var O;(function _isUint8Array(w){return k.isBuffer(w)||w instanceof I})(S)||"string"==typeof S||void 0===S||w.objectMode||(O=new TypeError("Invalid non-string/buffer chunk"));return O}(j,S)),C?w.emit("error",C):j.objectMode||S&&S.length>0?("string"==typeof S||j.objectMode||Object.getPrototypeOf(S)===k.prototype||(S=function _uint8ArrayToBuffer(w){return k.from(w)}(S)),$?j.endEmitted?w.emit("error",new Error("stream.unshift() after end event")):addChunk(w,j,S,!0):j.ended?w.emit("error",new Error("stream.push() after EOF")):(j.reading=!1,j.decoder&&!O?(S=j.decoder.write(S),j.objectMode||0!==S.length?addChunk(w,j,S,!1):maybeReadMore(w,j)):addChunk(w,j,S,!1))):$||(j.reading=!1));return function needMoreData(w){return!w.ended&&(w.needReadable||w.lengthS.highWaterMark&&(S.highWaterMark=function computeNewHighWaterMark(w){return w>=8388608?w=8388608:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}(w)),w<=S.length?w:S.ended?S.length:(S.needReadable=!0,0))}function emitReadable(w){var S=w._readableState;S.needReadable=!1,S.emittedReadable||(G("emitReadable",S.flowing),S.emittedReadable=!0,S.sync?x.nextTick(emitReadable_,w):emitReadable_(w))}function emitReadable_(w){G("emit readable"),w.emit("readable"),flow(w)}function maybeReadMore(w,S){S.readingMore||(S.readingMore=!0,x.nextTick(maybeReadMore_,w,S))}function maybeReadMore_(w,S){for(var O=S.length;!S.reading&&!S.flowing&&!S.ended&&S.length=S.length?(O=S.decoder?S.buffer.join(""):1===S.buffer.length?S.buffer.head.data:S.buffer.concat(S.length),S.buffer.clear()):O=function fromListPartial(w,S,O){var $;wC.length?C.length:w;if(j===C.length?x+=C:x+=C.slice(0,w),0===(w-=j)){j===C.length?(++$,O.next?S.head=O.next:S.head=S.tail=null):(S.head=O,O.data=C.slice(j));break}++$}return S.length-=$,x}(w,S):function copyFromBuffer(w,S){var O=k.allocUnsafe(w),$=S.head,x=1;$.data.copy(O),w-=$.data.length;for(;$=$.next;){var C=$.data,j=w>C.length?C.length:w;if(C.copy(O,O.length-w,0,j),0===(w-=j)){j===C.length?(++x,$.next?S.head=$.next:S.head=S.tail=null):(S.head=$,$.data=C.slice(j));break}++x}return S.length-=x,O}(w,S);return $}(w,S.buffer,S.decoder),O);var O}function endReadable(w){var S=w._readableState;if(S.length>0)throw new Error('"endReadable()" called on non-empty stream');S.endEmitted||(S.ended=!0,x.nextTick(endReadableNT,S,w))}function endReadableNT(w,S){w.endEmitted||0!==w.length||(w.endEmitted=!0,S.readable=!1,S.emit("end"))}function indexOf(w,S){for(var O=0,$=w.length;O<$;O++)if(w[O]===S)return O;return-1}Readable.prototype.read=function(w){G("read",w),w=parseInt(w,10);var S=this._readableState,O=w;if(0!==w&&(S.emittedReadable=!1),0===w&&S.needReadable&&(S.length>=S.highWaterMark||S.ended))return G("read: emitReadable",S.length,S.ended),0===S.length&&S.ended?endReadable(this):emitReadable(this),null;if(0===(w=howMuchToRead(w,S))&&S.ended)return 0===S.length&&endReadable(this),null;var $,x=S.needReadable;return G("need readable",x),(0===S.length||S.length-w0?fromList(w,S):null)?(S.needReadable=!0,w=0):S.length-=w,0===S.length&&(S.ended||(S.needReadable=!0),O!==w&&S.ended&&endReadable(this)),null!==$&&this.emit("data",$),$},Readable.prototype._read=function(w){this.emit("error",new Error("_read() is not implemented"))},Readable.prototype.pipe=function(w,S){var O=this,C=this._readableState;switch(C.pipesCount){case 0:C.pipes=w;break;case 1:C.pipes=[C.pipes,w];break;default:C.pipes.push(w)}C.pipesCount+=1,G("pipe count=%d opts=%j",C.pipesCount,S);var N=(!S||!1!==S.end)&&w!==$.stdout&&w!==$.stderr?onend:unpipe;function onunpipe(S,$){G("onunpipe"),S===O&&$&&!1===$.hasUnpiped&&($.hasUnpiped=!0,function cleanup(){G("cleanup"),w.removeListener("close",onclose),w.removeListener("finish",onfinish),w.removeListener("drain",k),w.removeListener("error",onerror),w.removeListener("unpipe",onunpipe),O.removeListener("end",onend),O.removeListener("end",unpipe),O.removeListener("data",ondata),I=!0,!C.awaitDrain||w._writableState&&!w._writableState.needDrain||k()}())}function onend(){G("onend"),w.end()}C.endEmitted?x.nextTick(N):O.once("end",N),w.on("unpipe",onunpipe);var k=function pipeOnDrain(w){return function(){var S=w._readableState;G("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,0===S.awaitDrain&&EElistenerCount(w,"data")&&(S.flowing=!0,flow(w))}}(O);w.on("drain",k);var I=!1;var R=!1;function ondata(S){G("ondata"),R=!1,!1!==w.write(S)||R||((1===C.pipesCount&&C.pipes===w||C.pipesCount>1&&-1!==indexOf(C.pipes,w))&&!I&&(G("false write response, pause",C.awaitDrain),C.awaitDrain++,R=!0),O.pause())}function onerror(S){G("onerror",S),unpipe(),w.removeListener("error",onerror),0===EElistenerCount(w,"error")&&w.emit("error",S)}function onclose(){w.removeListener("finish",onfinish),unpipe()}function onfinish(){G("onfinish"),w.removeListener("close",onclose),unpipe()}function unpipe(){G("unpipe"),O.unpipe(w)}return O.on("data",ondata),function prependListener(w,S,O){if("function"==typeof w.prependListener)return w.prependListener(S,O);w._events&&w._events[S]?j(w._events[S])?w._events[S].unshift(O):w._events[S]=[O,w._events[S]]:w.on(S,O)}(w,"error",onerror),w.once("close",onclose),w.once("finish",onfinish),w.emit("pipe",O),C.flowing||(G("pipe resume"),O.resume()),w},Readable.prototype.unpipe=function(w){var S=this._readableState,O={hasUnpiped:!1};if(0===S.pipesCount)return this;if(1===S.pipesCount)return w&&w!==S.pipes||(w||(w=S.pipes),S.pipes=null,S.pipesCount=0,S.flowing=!1,w&&w.emit("unpipe",this,O)),this;if(!w){var $=S.pipes,x=S.pipesCount;S.pipes=null,S.pipesCount=0,S.flowing=!1;for(var C=0;C>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function utf8FillLast(w){var S=this.lastTotal-this.lastNeed,O=function utf8CheckExtraBytes(w,S,O){if(128!=(192&S[0]))return w.lastNeed=0,"�";if(w.lastNeed>1&&S.length>1){if(128!=(192&S[1]))return w.lastNeed=1,"�";if(w.lastNeed>2&&S.length>2&&128!=(192&S[2]))return w.lastNeed=2,"�"}}(this,w);return void 0!==O?O:this.lastNeed<=w.length?(w.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,S,0,w.length),void(this.lastNeed-=w.length))}function utf16Text(w,S){if((w.length-S)%2==0){var O=w.toString("utf16le",S);if(O){var $=O.charCodeAt(O.length-1);if($>=55296&&$<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",S,w.length-1)}function utf16End(w){var S=w&&w.length?this.write(w):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,O)}return S}function base64Text(w,S){var O=(w.length-S)%3;return 0===O?w.toString("base64",S):(this.lastNeed=3-O,this.lastTotal=3,1===O?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",S,w.length-O))}function base64End(w){var S=w&&w.length?this.write(w):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function simpleWrite(w){return w.toString(this.encoding)}function simpleEnd(w){return w&&w.length?this.write(w):""}S.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(w){if(0===w.length)return"";var S,O;if(this.lastNeed){if(void 0===(S=this.fillLast(w)))return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O=0)return x>0&&(w.lastNeed=x-1),x;if(--$=0)return x>0&&(w.lastNeed=x-2),x;if(--$=0)return x>0&&(2===x?x=0:w.lastNeed=x-3),x;return 0}(this,w,S);if(!this.lastNeed)return w.toString("utf8",S);this.lastTotal=O;var $=w.length-(O-this.lastNeed);return w.copy(this.lastChar,0,$),w.toString("utf8",S,$)},StringDecoder.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},function(w,S,O){"use strict";w.exports=Transform;var $=O(47),x=Object.create(O(69));function afterTransform(w,S){var O=this._transformState;O.transforming=!1;var $=O.writecb;if(!$)return this.emit("error",new Error("write callback called multiple times"));O.writechunk=null,O.writecb=null,null!=S&&this.push(S),$(w);var x=this._readableState;x.reading=!1,(x.needReadable||x.length>>0).toString(36)}(O.stringify(w))},selector:function(w,S){return w+(":"===S[0]?"":" ")+S},putRaw:function(w){O.raw+=w}},w);return O.client&&(O.sh||document.head.appendChild(O.sh=document.createElement("style")),O.putRaw=function(w){var S=O.sh.sheet;try{S.insertRule(w,S.cssRules.length)}catch(w){}}),O.put=function(w,S,$){var x,C,j="",N=[];for(x in S)(C=S[x])instanceof Object&&!(C instanceof Array)?N.push(x):j+=O.decl(x,C,w,$);j&&(j=w+"{"+j+"}",O.putRaw($?$+"{"+j+"}":j));for(var k=0;k-1,I=O.split(",");if(k)for(var R=0;R$&&($=(S=S.trim()).charCodeAt(0)),$){case 38:return S.replace(N,"$1"+w.trim());case 58:return w.trim()+S.replace(N,"$1"+w.trim());default:if(0<1*O&&0I.charCodeAt(8))break;case 115:N=N.replace(I,"-webkit-"+I)+";"+N;break;case 207:case 102:N=N.replace(I,"-webkit-"+(102x.charCodeAt(0)&&(x=x.trim()),x=[x],0N)&&(De=(He=He.replace(" ",":")).length),0=0)){if(Ce.push(w),ye[w]){var N=Ie(ye[w],!0);try{for(var k=$.__values(N),I=k.next();!I.done;I=k.next()){var R=I.value;addToResults(ye[w][R],S)}}catch(w){O={error:w}}finally{try{I&&!I.done&&(x=k.return)&&x.call(k)}finally{if(O)throw O.error}}}if(S.push(w),ve[w]){var W=Ie(ve[w],!1);try{for(var G=$.__values(W),J=G.next();!J.done;J=G.next()){R=J.value;addToResults(ve[w][R],S)}}catch(w){C={error:w}}finally{try{J&&!J.done&&(j=G.return)&&j.call(G)}finally{if(C)throw C.error}}}}}))};try{for(var Fe=$.__values(Ie(le,!1)),Re=Fe.next();!Re.done;Re=Fe.next()){var De=Re.value;Me(le[De],ge)}}catch(w){x={error:w}}finally{try{Re&&!Re.done&&(C=Fe.return)&&C.call(Fe)}finally{if(x)throw x.error}}try{for(var Ue=$.__values(Ie(de,!0)),Ge=Ue.next();!Ge.done;Ge=Ue.next()){De=Ge.value;Me(de[De],Se)}}catch(w){j={error:w}}finally{try{Ge&&!Ge.done&&(N=Ue.return)&&N.call(Ue)}finally{if(j)throw j.error}}try{for(var He=$.__values(Ie(he,!0)),Ke=He.next();!Ke.done;Ke=He.next()){De=Ke.value;Me(he[De],Pe)}}catch(w){k={error:w}}finally{try{Ke&&!Ke.done&&(I=He.return)&&I.call(He)}finally{if(k)throw k.error}}try{for(var Ze=$.__values(Object.keys(ye)),Qe=Ze.next();!Qe.done;Qe=Ze.next()){var et=Qe.value;if(!(Ce.indexOf(et)>=0))try{for(var tt=(G=void 0,$.__values(Ie(ye[et],!1))),rt=tt.next();!rt.done;rt=tt.next()){De=rt.value;Me(ye[et][De],ge)}}catch(w){G={error:w}}finally{try{rt&&!rt.done&&(J=tt.return)&&J.call(tt)}finally{if(G)throw G.error}}}}catch(w){R={error:w}}finally{try{Qe&&!Qe.done&&(W=Ze.return)&&W.call(Ze)}finally{if(R)throw R.error}}try{for(var nt=$.__values(Object.keys(ve)),it=nt.next();!it.done;it=nt.next()){et=it.value;if(!(Ce.indexOf(et)>=0))try{for(var ot=(oe=void 0,$.__values(Ie(ve[et],!1))),at=ot.next();!at.done;at=ot.next()){De=at.value;Me(ve[et][De],Se)}}catch(w){oe={error:w}}finally{try{at&&!at.done&&(ue=ot.return)&&ue.call(ot)}finally{if(oe)throw oe.error}}}}catch(w){re={error:w}}finally{try{it&&!it.done&&(ie=nt.return)&&ie.call(nt)}finally{if(re)throw re.error}}return $.__spread(ge,Se,Pe).map((function(w){return se[w]})).map((function(S){return w[S]}))}},function(w,S,O){"use strict";S.__esModule=!0;var $=O(1),x=function(w){function SynchronousMetaRegistry(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(SynchronousMetaRegistry,w),SynchronousMetaRegistry.prototype.set=function(S,O){if("d8a5aa78-978e-11e6-ae22-56b6b6499611"!==O.SERIAL_VERSION_UID)throw new Error("You can only add registries to a meta registry");return w.prototype.set.call(this,S,O)},SynchronousMetaRegistry}($.__importDefault(O(106)).default);S.default=x},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.registerDialog=S.registerLinkTypes=void 0;var $=O(151);Object.defineProperty(S,"registerLinkTypes",{enumerable:!0,get:function get(){return $.registerLinkTypes}});var x=O(279);Object.defineProperty(S,"registerDialog",{enumerable:!0,get:function get(){return x.registerDialog}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.registerLinkTypes=void 0;var $=O(105),x=O(152),C=O(248),j=O(270),N=O(273),k=O(275),I=O(277);S.registerLinkTypes=function registerLinkTypes(w){var S=new $.SynchronousRegistry("\n # Sitegeist.Archaeopteryx LinkType Registry\n ");S.set(C.Node.id,C.Node),S.set(j.Asset.id,j.Asset),S.set(x.Web.id,x.Web),S.set(N.MailTo.id,N.MailTo),S.set(k.PhoneNumber.id,k.PhoneNumber),S.set(I.CustomLink.id,I.CustomLink),w.set("@sitegeist/archaeopteryx/link-types",S)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Web=void 0;var $=O(153);Object.defineProperty(S,"Web",{enumerable:!0,get:function get(){return $.Web}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Web=void 0;var C=__importStar(O(0)),j=O(0),N=O(70),k=O(17),I=O(12),R=O(43),W=O(30),G=O(38);function removeHttp(w){return w.replace(/^https?:\/\//,"")}S.Web=(0,W.makeLinkType)("Sitegeist.Archaeopteryx:Web",(function(w){var S=w.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){var S=w.href.startsWith("http://"),O=w.href.startsWith("https://");return S||O},useResolvedModel:function useResolvedModel(w){var O=w.href.match(/^(https?):\/\/(.*)$/);if(O){var $=__read(O,3),x=$[1],C=$[2];return R.Process.success({protocol:x,urlWithoutProtocol:C})}return R.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"".concat(w.protocol,"://").concat(removeHttp(w.urlWithoutProtocol))}},TabHeader:function TabHeader(){var w=(0,I.useI18n)();return C.createElement(G.IconLabel,{icon:"globe"},w("Sitegeist.Archaeopteryx:LinkTypes.Web:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(G.IconCard,{icon:"external-link",title:"".concat(S.protocol,"://").concat(removeHttp(S.urlWithoutProtocol))})},Editor:function Editor(w){var S,O=w.model,$=__read((0,j.useState)(""),2),x=$[0],W=$[1],G=(0,I.useI18n)(),J=(0,N.useForm)();return C.createElement("div",null,C.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:Web.urlWithoutProtocol"},G("Sitegeist.Archaeopteryx:LinkTypes.Web:label.link"),":"),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},C.createElement(R.Field,{name:"protocol",format:function format(w){return void 0===w&&""===w||W(w),void 0===w&&J.change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",x),w},initialValue:null!==(S=null==O?void 0:O.protocol)&&void 0!==S?S:"https",validate:function validate(w){if(!w)return G("Sitegeist.Archaeopteryx:LinkTypes.Web:protocol.validation.required")}},(function(w){var S=w.input;return C.createElement(k.SelectBox,{onValueChange:S.onChange,allowEmpty:!1,value:S.value,options:[{value:"https",label:"HTTPS",icon:"lock"},{value:"http",label:"HTTP",icon:"unlock"}]})})),C.createElement(R.Field,{name:"urlWithoutProtocol",initialValue:null==O?void 0:O.urlWithoutProtocol,format:function format(w){var S=null==w?void 0:w.match(/^(https?):\/\/(.*)$/);return S?__read(S,3)[2]:w},parse:function parse(w){var S=null==w?void 0:w.match(/^(https?):\/\/(.*)$/);if(S){var O=__read(S,3),$=O[1],x=O[2];return J.change("linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol",$),x}return w},validate:function validate(w){if(!w)return G("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.validation.required")}},(function(w){var S=w.input;return C.createElement(k.TextInput,__assign({id:S.name,type:"text",placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.Web:urlWithoutProtocol.placeholder")},S))}))))}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fetchWithErrorHandling=void 0;var $=O(155);Object.defineProperty(S,"fetchWithErrorHandling",{enumerable:!0,get:function get(){return $.fetchWithErrorHandling}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fetchWithErrorHandling=void 0;var $=O(107);S.fetchWithErrorHandling=$.fetchWithErrorHandling},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useAssetSummary=S.useI18n=S.useSelector=S.useRoutes=S.useConfiguration=S.useGlobalRegistry=S.useNeos=S.NeosContext=S.usePersonalWorkspaceName=S.useDimensionValues=S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var $=O(157);Object.defineProperty(S,"ContextPath",{enumerable:!0,get:function get(){return $.ContextPath}}),Object.defineProperty(S,"useSiteNodeContextPath",{enumerable:!0,get:function get(){return $.useSiteNodeContextPath}}),Object.defineProperty(S,"useDocumentNodeContextPath",{enumerable:!0,get:function get(){return $.useDocumentNodeContextPath}}),Object.defineProperty(S,"useDimensionValues",{enumerable:!0,get:function get(){return $.useDimensionValues}}),Object.defineProperty(S,"usePersonalWorkspaceName",{enumerable:!0,get:function get(){return $.usePersonalWorkspaceName}});var x=O(161);Object.defineProperty(S,"NeosContext",{enumerable:!0,get:function get(){return x.NeosContext}}),Object.defineProperty(S,"useNeos",{enumerable:!0,get:function get(){return x.useNeos}}),Object.defineProperty(S,"useGlobalRegistry",{enumerable:!0,get:function get(){return x.useGlobalRegistry}}),Object.defineProperty(S,"useConfiguration",{enumerable:!0,get:function get(){return x.useConfiguration}}),Object.defineProperty(S,"useRoutes",{enumerable:!0,get:function get(){return x.useRoutes}}),Object.defineProperty(S,"useSelector",{enumerable:!0,get:function get(){return x.useSelector}}),Object.defineProperty(S,"useI18n",{enumerable:!0,get:function get(){return x.useI18n}});var C=O(165);Object.defineProperty(S,"useAssetSummary",{enumerable:!0,get:function get(){return C.useAssetSummary}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.usePersonalWorkspaceName=S.useDimensionValues=S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var $=O(158);Object.defineProperty(S,"ContextPath",{enumerable:!0,get:function get(){return $.ContextPath}}),Object.defineProperty(S,"useSiteNodeContextPath",{enumerable:!0,get:function get(){return $.useSiteNodeContextPath}}),Object.defineProperty(S,"useDocumentNodeContextPath",{enumerable:!0,get:function get(){return $.useDocumentNodeContextPath}});var x=O(159);Object.defineProperty(S,"useDimensionValues",{enumerable:!0,get:function get(){return x.useDimensionValues}});var C=O(160);Object.defineProperty(S,"usePersonalWorkspaceName",{enumerable:!0,get:function get(){return C.usePersonalWorkspaceName}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__values=function(w){var S="function"==typeof Symbol&&Symbol.iterator,O=S&&w[S],$=0;if(O)return O.call(w);if(w&&"number"==typeof w.length)return{next:function next(){return w&&$>=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(S,"__esModule",{value:!0}),S.useDocumentNodeContextPath=S.useSiteNodeContextPath=S.ContextPath=void 0;var C=__importStar(O(0)),j=O(73),N=function(){function ContextPath(w,S){this.path=w,this.context=S}return ContextPath.fromString=function(w){var S=__read((null!=w?w:"").split("@"),2),O=S[0],$=S[1];return O&&w?new ContextPath(O,$):null},ContextPath.prototype.adopt=function(w){var S=__read((null!=w?w:"").split("@"),1)[0];return S?new ContextPath(S,this.context):null},ContextPath.prototype.getIntermediateContextPaths=function(w){var S,O;if(w.path.startsWith(this.path)){var $=w.path.split("/"),x=[];try{for(var C=__values($.entries()),j=C.next();!j.done;j=C.next()){var N=__read(j.value,1)[0],k=$.slice(0,-N).join("/");if(k&&x.push(new ContextPath(k,this.context)),k===this.path)break}}catch(w){S={error:w}}finally{try{j&&!j.done&&(O=C.return)&&O.call(C)}finally{if(S)throw S.error}}return x}return[]},ContextPath.prototype.equals=function(w){return this.path===w.path&&this.context===w.context},ContextPath.prototype.toString=function(){return"".concat(this.path,"@").concat(this.context)},Object.defineProperty(ContextPath.prototype,"depth",{get:function get(){var w,S;return null!==(S=null===(w=this.path.match(/\//g))||void 0===w?void 0:w.length)&&void 0!==S?S:0},enumerable:!1,configurable:!0}),ContextPath}();S.ContextPath=N,S.useSiteNodeContextPath=function useSiteNodeContextPath(){var w=(0,j.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.nodes)||void 0===O?void 0:O.siteNode}));return C.useMemo((function(){return w?N.fromString(w):null}),[w])},S.useDocumentNodeContextPath=function useDocumentNodeContextPath(){var w=(0,j.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.nodes)||void 0===O?void 0:O.documentNode}));return C.useMemo((function(){return w?N.fromString(w):null}),[w])}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useDimensionValues=void 0;var $=O(73);S.useDimensionValues=function useDimensionValues(){var w=(0,$.useSelector)((function(w){var S,O;return null===(O=null===(S=w.cr)||void 0===S?void 0:S.contentDimensions)||void 0===O?void 0:O.active}));return null!=w?w:null}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.usePersonalWorkspaceName=void 0;var $=O(73);S.usePersonalWorkspaceName=function usePersonalWorkspaceName(){var w=(0,$.useSelector)((function(w){var S,O,$;return null===($=null===(O=null===(S=w.cr)||void 0===S?void 0:S.workspaces)||void 0===O?void 0:O.personalWorkspace)||void 0===$?void 0:$.name}));return null!=w?w:null}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useI18n=S.useSelector=S.useNeos=S.NeosContext=S.useRoutes=S.useConfiguration=S.useGlobalRegistry=void 0;var $=O(108);Object.defineProperty(S,"useGlobalRegistry",{enumerable:!0,get:function get(){return $.useGlobalRegistry}});var x=O(162);Object.defineProperty(S,"useConfiguration",{enumerable:!0,get:function get(){return x.useConfiguration}});var C=O(163);Object.defineProperty(S,"useRoutes",{enumerable:!0,get:function get(){return C.useRoutes}});var j=O(67);Object.defineProperty(S,"NeosContext",{enumerable:!0,get:function get(){return j.NeosContext}}),Object.defineProperty(S,"useNeos",{enumerable:!0,get:function get(){return j.useNeos}});var N=O(73);Object.defineProperty(S,"useSelector",{enumerable:!0,get:function get(){return N.useSelector}});var k=O(164);Object.defineProperty(S,"useI18n",{enumerable:!0,get:function get(){return k.useI18n}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useConfiguration=void 0;var $=O(67);S.useConfiguration=function useConfiguration(w){var S=(0,$.useNeos)();return w?w(S.configuration):S.configuration}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useRoutes=void 0;var $=O(67);S.useRoutes=function useRoutes(w){var S=(0,$.useNeos)();if(S.routes)return w?w(S.routes):S.routes}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.useI18n=void 0;var C=__importStar(O(0)),j=O(108);S.useI18n=function useI18n(){var w=(0,j.useGlobalRegistry)().get("i18n");return C.useMemo((function(){return function(S,O,$,x,C,j){return void 0===$&&($={}),void 0===x&&(x="Neos.Neos"),void 0===C&&(C="Main"),void 0===j&&(j=0),w.translate(S,O,$,x,C,j)}}),[w])}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useAssetSummary=void 0;var $=O(166);Object.defineProperty(S,"useAssetSummary",{enumerable:!0,get:function get(){return $.useAssetSummary}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=0;){if($[S]===w){O.deleteRule(S);break}S--}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.divWrapper=void 0;var $=O(5),x=$.__importStar(O(0)),C=$.__importDefault(O(170)),j=x.createElement,noWrap=function(w,S,O,x){var C;return j(w,S?$.__assign(((C={})[S]=x,C),O):$.__assign($.__assign({},x),O))};S.divWrapper=function(w,S,O,$){return j("div",null,noWrap(w,S,O,$))};S.default=function(w,S,O){void 0===O&&(O=noWrap);var enhancer=function($,x,N){void 0===x&&(x=S),void 0===N&&(N=null);var k="string"==typeof $;if(k)return function(w){return enhancer(w,$||S,x)};var Enhanced=function(S){return j(w,N,(function(w){return O($,x,S,w)}))};return k?C.default(Enhanced):Enhanced};return enhancer}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5).__importDefault(O(171));S.default=function(w){return!w.prototype?$.default(w):w}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5),x=$.__importStar(O(0));S.default=function(w){return function(S){function class_1(){return null!==S&&S.apply(this,arguments)||this}return $.__extends(class_1,S),class_1.prototype.render=function(){return w(this.props,this.context)},class_1}(x.Component)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0});var $=O(5).__importDefault(O(109)),defaultMapPropsToArgs=function(w){return[w]};S.default=function(w,S){return void 0===S&&(S=defaultMapPropsToArgs),function(O){return $.default(O,w.apply(void 0,S(O)))}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.endpoints=void 0;var $=O(174);Object.defineProperty(S,"endpoints",{enumerable:!0,get:function get(){return $.endpoints}})},function(w,S,O){"use strict";var __importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.endpoints=void 0;var $=__importDefault(O(107));S.endpoints=function endpoints(){return $.default.get().endpoints}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Process=void 0,S.Process=__importStar(O(176))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.fromAsyncState=S.success=S.error=S.busy=void 0;var $={busy:!0,error:null,result:null};S.busy=function busy(){return $},S.error=function error(w){return{busy:!1,error:w,result:null}},S.success=function success(w){return{busy:!1,error:null,result:w}},S.fromAsyncState=function fromAsyncState(w){var S,O;return{busy:w.loading,error:null!==(S=w.error)&&void 0!==S?S:null,result:null!==(O=w.value)&&void 0!==O?O:null}}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.EditorEnvelope=S.FieldGroup=S.Field=void 0;var $=O(178);Object.defineProperty(S,"Field",{enumerable:!0,get:function get(){return $.Field}}),Object.defineProperty(S,"FieldGroup",{enumerable:!0,get:function get(){return $.FieldGroup}});var x=O(179);Object.defineProperty(S,"EditorEnvelope",{enumerable:!0,get:function get(){return x.EditorEnvelope}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.FieldGroup=S.Field=void 0;var C=__importStar(O(0)),j=O(70),N=C.createContext(null);S.Field=function Field(w){var S=C.useContext(N),O=null!==S?"".concat(S,".").concat(w.name):w.name;return C.createElement(j.Field,__assign({},w,{name:O}))};S.FieldGroup=function FieldGroup(w){return C.createElement(N.Provider,{value:w.prefix},w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.EditorEnvelope=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(183),I=N.default.div(C||(C=__makeTemplateObject(["\n ul, li {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n"],["\n ul, li {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n"])));S.EditorEnvelope=function EditorEnvelope(w){return j.createElement(I,null,j.createElement(k.EditorEnvelope,{identifier:"Sitegeist-Archaeopteryx-".concat(w.input.name),label:w.label,editor:w.editor,options:w.editorOptions,validationErrors:w.meta.dirty&&w.meta.error?[w.meta.error]:[],value:w.input.value,commit:w.input.onChange}))}},function(w,S,O){"use strict";var $=60103,x=60106,C=60107,j=60108,N=60114,k=60109,I=60110,R=60112,W=60113,G=60120,J=60115,re=60116,ie=60121,oe=60122,ue=60117,ce=60129,se=60131;if("function"==typeof Symbol&&Symbol.for){var de=Symbol.for;$=de("react.element"),x=de("react.portal"),C=de("react.fragment"),j=de("react.strict_mode"),N=de("react.profiler"),k=de("react.provider"),I=de("react.context"),R=de("react.forward_ref"),W=de("react.suspense"),G=de("react.suspense_list"),J=de("react.memo"),re=de("react.lazy"),ie=de("react.block"),oe=de("react.server.block"),ue=de("react.fundamental"),ce=de("react.debug_trace_mode"),se=de("react.legacy_hidden")}function y(w){if("object"==typeof w&&null!==w){var S=w.$$typeof;switch(S){case $:switch(w=w.type){case C:case N:case j:case W:case G:return w;default:switch(w=w&&w.$$typeof){case I:case R:case re:case J:case k:return w;default:return S}}case x:return S}}}var le=k,he=$,ye=R,ve=C,ge=re,Se=J,Pe=x,Ce=N,Ie=j,Me=W;S.ContextConsumer=I,S.ContextProvider=le,S.Element=he,S.ForwardRef=ye,S.Fragment=ve,S.Lazy=ge,S.Memo=Se,S.Portal=Pe,S.Profiler=Ce,S.StrictMode=Ie,S.Suspense=Me,S.isAsyncMode=function(){return!1},S.isConcurrentMode=function(){return!1},S.isContextConsumer=function(w){return y(w)===I},S.isContextProvider=function(w){return y(w)===k},S.isElement=function(w){return"object"==typeof w&&null!==w&&w.$$typeof===$},S.isForwardRef=function(w){return y(w)===R},S.isFragment=function(w){return y(w)===C},S.isLazy=function(w){return y(w)===re},S.isMemo=function(w){return y(w)===J},S.isPortal=function(w){return y(w)===x},S.isProfiler=function(w){return y(w)===N},S.isStrictMode=function(w){return y(w)===j},S.isSuspense=function(w){return y(w)===W},S.isValidElementType=function(w){return"string"==typeof w||"function"==typeof w||w===C||w===N||w===ce||w===j||w===W||w===G||w===se||"object"==typeof w&&null!==w&&(w.$$typeof===re||w.$$typeof===J||w.$$typeof===k||w.$$typeof===I||w.$$typeof===R||w.$$typeof===ue||w.$$typeof===ie||w[0]===oe)},S.typeOf=y},function(w,S,O){"use strict";w.exports=O(182)},function(w,S,O){"use strict";var $="function"==typeof Symbol&&Symbol.for,x=$?Symbol.for("react.element"):60103,C=$?Symbol.for("react.portal"):60106,j=$?Symbol.for("react.fragment"):60107,N=$?Symbol.for("react.strict_mode"):60108,k=$?Symbol.for("react.profiler"):60114,I=$?Symbol.for("react.provider"):60109,R=$?Symbol.for("react.context"):60110,W=$?Symbol.for("react.async_mode"):60111,G=$?Symbol.for("react.concurrent_mode"):60111,J=$?Symbol.for("react.forward_ref"):60112,re=$?Symbol.for("react.suspense"):60113,ie=$?Symbol.for("react.suspense_list"):60120,oe=$?Symbol.for("react.memo"):60115,ue=$?Symbol.for("react.lazy"):60116,ce=$?Symbol.for("react.block"):60121,se=$?Symbol.for("react.fundamental"):60117,de=$?Symbol.for("react.responder"):60118,le=$?Symbol.for("react.scope"):60119;function z(w){if("object"==typeof w&&null!==w){var S=w.$$typeof;switch(S){case x:switch(w=w.type){case W:case G:case j:case k:case N:case re:return w;default:switch(w=w&&w.$$typeof){case R:case J:case ue:case oe:case I:return w;default:return S}}case C:return S}}}function A(w){return z(w)===G}S.AsyncMode=W,S.ConcurrentMode=G,S.ContextConsumer=R,S.ContextProvider=I,S.Element=x,S.ForwardRef=J,S.Fragment=j,S.Lazy=ue,S.Memo=oe,S.Portal=C,S.Profiler=k,S.StrictMode=N,S.Suspense=re,S.isAsyncMode=function(w){return A(w)||z(w)===W},S.isConcurrentMode=A,S.isContextConsumer=function(w){return z(w)===R},S.isContextProvider=function(w){return z(w)===I},S.isElement=function(w){return"object"==typeof w&&null!==w&&w.$$typeof===x},S.isForwardRef=function(w){return z(w)===J},S.isFragment=function(w){return z(w)===j},S.isLazy=function(w){return z(w)===ue},S.isMemo=function(w){return z(w)===oe},S.isPortal=function(w){return z(w)===C},S.isProfiler=function(w){return z(w)===k},S.isStrictMode=function(w){return z(w)===N},S.isSuspense=function(w){return z(w)===re},S.isValidElementType=function(w){return"string"==typeof w||"function"==typeof w||w===j||w===G||w===k||w===N||w===re||w===ie||"object"==typeof w&&null!==w&&(w.$$typeof===ue||w.$$typeof===oe||w.$$typeof===I||w.$$typeof===R||w.$$typeof===J||w.$$typeof===se||w.$$typeof===de||w.$$typeof===le||w.$$typeof===ce)},S.typeOf=z},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("NeosProjectPackages")().NeosUiEditors},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var $=O(185);Object.defineProperty(S,"makeLinkType",{enumerable:!0,get:function get(){return $.makeLinkType}}),Object.defineProperty(S,"useLinkTypes",{enumerable:!0,get:function get(){return $.useLinkTypes}}),Object.defineProperty(S,"useLinkTypeForHref",{enumerable:!0,get:function get(){return $.useLinkTypeForHref}}),Object.defineProperty(S,"useSortedAndFilteredLinkTypes",{enumerable:!0,get:function get(){return $.useSortedAndFilteredLinkTypes}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__spreadArray=function(w,S,O){if(O||2===arguments.length)for(var $,x=0,C=S.length;x=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.useSortedAndFilteredLinkTypes=S.useLinkTypeForHref=S.useLinkTypes=S.makeLinkType=void 0;var C=__importStar(O(0)),j=O(74),N=__importDefault(O(235)),k=O(12),I=O(125);function useLinkTypes(){var w,S;return null!==(S=null===(w=(0,k.useGlobalRegistry)().get("@sitegeist/archaeopteryx/link-types"))||void 0===w?void 0:w.getAllAsList())&&void 0!==S?S:[]}S.makeLinkType=function makeLinkType(w,S){var O,$,x=S({createError:function createError(S,O){return O?new j.VError(O,"[".concat(w,"]: ").concat(S)):new j.VError("[".concat(w,"]: ").concat(S))}});return __assign(__assign({id:w,supportedLinkOptions:[]},x),{LoadingPreview:null!==(O=x.LoadingPreview)&&void 0!==O?O:function(){return C.createElement("div",{},"Loading...")},LoadingEditor:null!==($=x.LoadingEditor)&&void 0!==$?$:function(){return C.createElement("div",{},"Loading...")}})},S.useLinkTypes=useLinkTypes,S.useLinkTypeForHref=function useLinkTypeForHref(w){var S=useLinkTypes();return C.useMemo((function(){var O,$;if(null===w)return null;try{for(var x=__values(__spreadArray([],__read(S),!1).reverse()),C=x.next();!C.done;C=x.next()){var j=C.value;if(j.isSuitableFor({href:w}))return j}}catch(w){O={error:w}}finally{try{C&&!C.done&&($=x.return)&&$.call(x)}finally{if(O)throw O.error}}return null}),[S,w])},S.useSortedAndFilteredLinkTypes=function useSortedAndFilteredLinkTypes(){var w=useLinkTypes(),S=(0,I.useEditorState)().editorOptions,O=w.map((function(w){var O;return{linkType:w,options:null===(O=S.linkTypes)||void 0===O?void 0:O[w.id]}}));return(0,N.default)(O,(function(w){var S=w.options;return null==S?void 0:S.position})).filter((function(w){var S=w.options;return!S||!("enabled"in S)||S.enabled})).map((function(w){return w.linkType}))}},function(w,S,O){(function(S,$){var x=O(111),C=O(220).Stream,j=O(76),N=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(w){return w.charAt(0).toUpperCase()+w.slice(1)}function _toss(w,S,O,$,C){throw new x.AssertionError({message:j.format("%s (%s) is required",w,S),actual:void 0===C?typeof $:C($),expected:S,operator:O||"===",stackStartFunction:_toss.caller})}function _getClass(w){return Object.prototype.toString.call(w).slice(8,-1)}function noop(){}var k={bool:{check:function(w){return"boolean"==typeof w}},func:{check:function(w){return"function"==typeof w}},string:{check:function(w){return"string"==typeof w}},object:{check:function(w){return"object"==typeof w&&null!==w}},number:{check:function(w){return"number"==typeof w&&!isNaN(w)}},finite:{check:function(w){return"number"==typeof w&&!isNaN(w)&&isFinite(w)}},buffer:{check:function(w){return S.isBuffer(w)},operator:"Buffer.isBuffer"},array:{check:function(w){return Array.isArray(w)},operator:"Array.isArray"},stream:{check:function(w){return w instanceof C},operator:"instanceof",actual:_getClass},date:{check:function(w){return w instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(w){return w instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(w){return"string"==typeof w&&N.test(w)},operator:"isUUID"}};w.exports=function _setExports(w){var S,O=Object.keys(k);return S=$.env.NODE_NDEBUG?noop:function(w,S){w||_toss(S,"true",w)},O.forEach((function(O){if(w)S[O]=noop;else{var $=k[O];S[O]=function(w,S){$.check(w)||_toss(S,O,$.operator,w,$.actual)}}})),O.forEach((function(O){var $="optional"+_capitalize(O);if(w)S[$]=noop;else{var x=k[O];S[$]=function(w,S){null!=w&&(x.check(w)||_toss(S,O,x.operator,w,x.actual))}}})),O.forEach((function(O){var $="arrayOf"+_capitalize(O);if(w)S[$]=noop;else{var x=k[O],C="["+O+"]";S[$]=function(w,S){var O;for(Array.isArray(w)||_toss(S,C,x.operator,w,x.actual),O=0;O0?j-4:j;for(O=0;O>16&255,k[I++]=S>>8&255,k[I++]=255&S;2===N&&(S=x[w.charCodeAt(O)]<<2|x[w.charCodeAt(O+1)]>>4,k[I++]=255&S);1===N&&(S=x[w.charCodeAt(O)]<<10|x[w.charCodeAt(O+1)]<<4|x[w.charCodeAt(O+2)]>>2,k[I++]=S>>8&255,k[I++]=255&S);return k},S.fromByteArray=function fromByteArray(w){for(var S,O=w.length,x=O%3,C=[],j=0,N=O-x;jN?N:j+16383));1===x?(S=w[O-1],C.push($[S>>2]+$[S<<4&63]+"==")):2===x&&(S=(w[O-2]<<8)+w[O-1],C.push($[S>>10]+$[S>>4&63]+$[S<<2&63]+"="));return C.join("")};for(var $=[],x=[],C="undefined"!=typeof Uint8Array?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0,k=j.length;N0)throw new Error("Invalid string. Length must be a multiple of 4");var O=w.indexOf("=");return-1===O&&(O=S),[O,O===S?0:4-O%4]}function encodeChunk(w,S,O){for(var x,C,j=[],N=S;N>18&63]+$[C>>12&63]+$[C>>6&63]+$[63&C]);return j.join("")}x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63},function(w,S){S.read=function(w,S,O,$,x){var C,j,N=8*x-$-1,k=(1<>1,R=-7,W=O?x-1:0,G=O?-1:1,J=w[S+W];for(W+=G,C=J&(1<<-R)-1,J>>=-R,R+=N;R>0;C=256*C+w[S+W],W+=G,R-=8);for(j=C&(1<<-R)-1,C>>=-R,R+=$;R>0;j=256*j+w[S+W],W+=G,R-=8);if(0===C)C=1-I;else{if(C===k)return j?NaN:1/0*(J?-1:1);j+=Math.pow(2,$),C-=I}return(J?-1:1)*j*Math.pow(2,C-$)},S.write=function(w,S,O,$,x,C){var j,N,k,I=8*C-x-1,R=(1<>1,G=23===x?Math.pow(2,-24)-Math.pow(2,-77):0,J=$?0:C-1,re=$?1:-1,ie=S<0||0===S&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(N=isNaN(S)?1:0,j=R):(j=Math.floor(Math.log(S)/Math.LN2),S*(k=Math.pow(2,-j))<1&&(j--,k*=2),(S+=j+W>=1?G/k:G*Math.pow(2,1-W))*k>=2&&(j++,k/=2),j+W>=R?(N=0,j=R):j+W>=1?(N=(S*k-1)*Math.pow(2,x),j+=W):(N=S*Math.pow(2,W-1)*Math.pow(2,x),j=0));x>=8;w[O+J]=255&N,J+=re,N/=256,x-=8);for(j=j<0;w[O+J]=255&j,J+=re,j/=256,I-=8);w[O+J-re]|=128*ie}},function(w,S,O){"use strict";var $=O(190);w.exports=function getPolyfill(){return Object.assign?function(){if(!Object.assign)return!1;for(var w="abcdefghijklmnopqrst",S=w.split(""),O={},$=0;$0&&!x.call(w,0))for(var re=0;re0)for(var ie=0;ie-1?x([O]):O}},function(w,S,O){"use strict";var $=O(95),x=O(195),C=O(196),j=O(197),N=O(198),k=O(199),I=O(114),R=O(200),W=O(201),G=O(202),J=O(203),re=O(204),ie=O(205),oe=O(206),ue=O(207),ce=Function,getEvalledConstructor=function(w){try{return ce('"use strict"; return ('+w+").constructor;")()}catch(w){}},se=O(115),de=O(210),throwTypeError=function(){throw new I},le=se?function(){try{return throwTypeError}catch(w){try{return se(arguments,"callee").get}catch(w){return throwTypeError}}}():throwTypeError,he=O(211)(),ye=O(212),ve=O(117),ge=O(116),Se=O(119),Pe=O(96),Ce={},Ie="undefined"!=typeof Uint8Array&&ye?ye(Uint8Array):void 0,Me={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":he&&ye?ye([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":Ce,"%AsyncGenerator%":Ce,"%AsyncGeneratorFunction%":Ce,"%AsyncIteratorPrototype%":Ce,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":x,"%eval%":eval,"%EvalError%":C,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":ce,"%GeneratorFunction%":Ce,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":he&&ye?ye(ye([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&he&&ye?ye((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":$,"%Object.getOwnPropertyDescriptor%":se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":j,"%ReferenceError%":N,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&he&&ye?ye((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":he&&ye?ye(""[Symbol.iterator]()):void 0,"%Symbol%":he?Symbol:void 0,"%SyntaxError%":k,"%ThrowTypeError%":le,"%TypedArray%":Ie,"%TypeError%":I,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":R,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":Pe,"%Function.prototype.apply%":Se,"%Object.defineProperty%":de,"%Object.getPrototypeOf%":ve,"%Math.abs%":W,"%Math.floor%":G,"%Math.max%":J,"%Math.min%":re,"%Math.pow%":ie,"%Math.round%":oe,"%Math.sign%":ue,"%Reflect.getPrototypeOf%":ge};if(ye)try{null.error}catch(w){var Fe=ye(ye(w));Me["%Error.prototype%"]=Fe}var Re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=O(75),Ue=O(217),Ge=De.call(Pe,Array.prototype.concat),He=De.call(Se,Array.prototype.splice),Ke=De.call(Pe,String.prototype.replace),Ze=De.call(Pe,String.prototype.slice),Qe=De.call(Pe,RegExp.prototype.exec),et=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tt=/\\(\\)?/g,rt=function stringToPath(w){var S=Ze(w,0,1),O=Ze(w,-1);if("%"===S&&"%"!==O)throw new k("invalid intrinsic syntax, expected closing `%`");if("%"===O&&"%"!==S)throw new k("invalid intrinsic syntax, expected opening `%`");var $=[];return Ke(w,et,(function(w,S,O,x){$[$.length]=O?Ke(x,tt,"$1"):S||w})),$},nt=function getBaseIntrinsic(w,S){var O,$=w;if(Ue(Re,$)&&($="%"+(O=Re[$])[0]+"%"),Ue(Me,$)){var x=Me[$];if(x===Ce&&(x=function doEval(w){var S;if("%AsyncFunction%"===w)S=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===w)S=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===w)S=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===w){var O=doEval("%AsyncGeneratorFunction%");O&&(S=O.prototype)}else if("%AsyncIteratorPrototype%"===w){var $=doEval("%AsyncGenerator%");$&&ye&&(S=ye($.prototype))}return Me[w]=S,S}($)),void 0===x&&!S)throw new I("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:O,name:$,value:x}}throw new k("intrinsic "+w+" does not exist!")};w.exports=function GetIntrinsic(w,S){if("string"!=typeof w||0===w.length)throw new I("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof S)throw new I('"allowMissing" argument must be a boolean');if(null===Qe(/^%?[^%]*%?$/,w))throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var O=rt(w),$=O.length>0?O[0]:"",x=nt("%"+$+"%",S),C=x.name,j=x.value,N=!1,R=x.alias;R&&($=R[0],He(O,Ge([0,1],R)));for(var W=1,G=!0;W=O.length){var oe=se(j,J);j=(G=!!oe)&&"get"in oe&&!("originalValue"in oe.get)?oe.get:j[J]}else G=Ue(j,J),j=j[J];G&&!N&&(Me[C]=j)}}return j}},function(w,S,O){"use strict";w.exports=Error},function(w,S,O){"use strict";w.exports=EvalError},function(w,S,O){"use strict";w.exports=RangeError},function(w,S,O){"use strict";w.exports=ReferenceError},function(w,S,O){"use strict";w.exports=SyntaxError},function(w,S,O){"use strict";w.exports=URIError},function(w,S,O){"use strict";w.exports=Math.abs},function(w,S,O){"use strict";w.exports=Math.floor},function(w,S,O){"use strict";w.exports=Math.max},function(w,S,O){"use strict";w.exports=Math.min},function(w,S,O){"use strict";w.exports=Math.pow},function(w,S,O){"use strict";w.exports=Math.round},function(w,S,O){"use strict";var $=O(208);w.exports=function sign(w){return $(w)||0===w?w:w<0?-1:1}},function(w,S,O){"use strict";w.exports=Number.isNaN||function isNaN(w){return w!=w}},function(w,S,O){"use strict";w.exports=Object.getOwnPropertyDescriptor},function(w,S,O){"use strict";var $=Object.defineProperty||!1;if($)try{$({},"a",{value:1})}catch(w){$=!1}w.exports=$},function(w,S,O){"use strict";var $="undefined"!=typeof Symbol&&Symbol,x=O(113);w.exports=function hasNativeSymbols(){return"function"==typeof $&&("function"==typeof Symbol&&("symbol"==typeof $("foo")&&("symbol"==typeof Symbol("bar")&&x())))}},function(w,S,O){"use strict";var $=O(116),x=O(117),C=O(213);w.exports=$?function getProto(w){return $(w)}:x?function getProto(w){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new TypeError("getProto: not an object");return x(w)}:C?function getProto(w){return C(w)}:null},function(w,S,O){"use strict";var $,x=O(118),C=O(115);try{$=[].__proto__===Array.prototype}catch(w){if(!w||"object"!=typeof w||!("code"in w)||"ERR_PROTO_ACCESS"!==w.code)throw w}var j=!!$&&C&&C(Object.prototype,"__proto__"),N=Object,k=N.getPrototypeOf;w.exports=j&&"function"==typeof j.get?x([j.get]):"function"==typeof k&&function getDunder(w){return k(null==w?w:N(w))}},function(w,S,O){"use strict";var $="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,C=Math.max,j=function concatty(w,S){for(var O=[],$=0;$0?this.tail.next=S:this.head=S,this.tail=S,++this.length},BufferList.prototype.unshift=function unshift(w){var S={data:w,next:this.head};0===this.length&&(this.tail=S),this.head=S,++this.length},BufferList.prototype.shift=function shift(){if(0!==this.length){var w=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,w}},BufferList.prototype.clear=function clear(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function join(w){if(0===this.length)return"";for(var S=this.head,O=""+S.data;S=S.next;)O+=w+S.data;return O},BufferList.prototype.concat=function concat(w){if(0===this.length)return $.alloc(0);for(var S,O,x,C=$.allocUnsafe(w>>>0),j=this.head,N=0;j;)S=j.data,O=C,x=N,S.copy(O,x),N+=j.data.length,j=j.next;return C},BufferList}(),x&&x.inspect&&x.inspect.custom&&(w.exports.prototype[x.inspect.custom]=function(){var w=x.inspect({length:this.length});return this.constructor.name+" "+w})},function(w,S){},function(w,S,O){(function(w){var $=void 0!==w&&w||"undefined"!=typeof self&&self||window,x=Function.prototype.apply;function Timeout(w,S){this._id=w,this._clearFn=S}S.setTimeout=function(){return new Timeout(x.call(setTimeout,$,arguments),clearTimeout)},S.setInterval=function(){return new Timeout(x.call(setInterval,$,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(w){w&&w.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call($,this._id)},S.enroll=function(w,S){clearTimeout(w._idleTimeoutId),w._idleTimeout=S},S.unenroll=function(w){clearTimeout(w._idleTimeoutId),w._idleTimeout=-1},S._unrefActive=S.active=function(w){clearTimeout(w._idleTimeoutId);var S=w._idleTimeout;S>=0&&(w._idleTimeoutId=setTimeout((function onTimeout(){w._onTimeout&&w._onTimeout()}),S))},O(225),S.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==w&&w.setImmediate||this&&this.setImmediate,S.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==w&&w.clearImmediate||this&&this.clearImmediate}).call(this,O(46))},function(w,S,O){(function(w,S){!function(w,O){"use strict";if(!w.setImmediate){var $,x=1,C={},j=!1,N=w.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(w);k=k&&k.setTimeout?k:w,"[object process]"==={}.toString.call(w.process)?function installNextTickImplementation(){$=function(w){S.nextTick((function(){runIfPresent(w)}))}}():!function canUsePostMessage(){if(w.postMessage&&!w.importScripts){var S=!0,O=w.onmessage;return w.onmessage=function(){S=!1},w.postMessage("","*"),w.onmessage=O,S}}()?w.MessageChannel?function installMessageChannelImplementation(){var w=new MessageChannel;w.port1.onmessage=function(w){runIfPresent(w.data)},$=function(S){w.port2.postMessage(S)}}():N&&"onreadystatechange"in N.createElement("script")?function installReadyStateChangeImplementation(){var w=N.documentElement;$=function(S){var O=N.createElement("script");O.onreadystatechange=function(){runIfPresent(S),O.onreadystatechange=null,w.removeChild(O),O=null},w.appendChild(O)}}():function installSetTimeoutImplementation(){$=function(w){setTimeout(runIfPresent,0,w)}}():function installPostMessageImplementation(){var S="setImmediate$"+Math.random()+"$",onGlobalMessage=function(O){O.source===w&&"string"==typeof O.data&&0===O.data.indexOf(S)&&runIfPresent(+O.data.slice(S.length))};w.addEventListener?w.addEventListener("message",onGlobalMessage,!1):w.attachEvent("onmessage",onGlobalMessage),$=function(O){w.postMessage(S+O,"*")}}(),k.setImmediate=function setImmediate(w){"function"!=typeof w&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),O=0;O0)throw jsError(w,G,J,"uses non-zero precision (not supported)");switch(S.match(/-/)&&(N=!0),S.match(/0/)&&(k="0"),S.match(/\+/)&&(I=!0),j){case"s":if(null==R)throw jsError(w,G,J,"attempted to print undefined or null as a string (argument "+se+" to sprintf)");ce+=doPad(k,O,N,R.toString());break;case"d":R=Math.floor(R);case"f":ce+=(I=I&&R>0?"+":"")+doPad(k,O,N,R.toString());break;case"x":ce+=doPad(k,O,N,R.toString(16));break;case"j":0===O&&(O=10),ce+=x.inspect(R,!1,O);break;case"r":ce+=dumpException(R);break;default:throw jsError(w,G,J,"is not supported")}}else ce+="%";return ce+=ue}function jsError(w,S,O,x){return $.equal(typeof w,"string"),$.equal(typeof O,"string"),$.equal(typeof S,"number"),$.equal(typeof x,"string"),new Error('format string "'+w+'": conversion specifier "'+O+'" at character '+S+" "+x)}function jsFprintf(w){var S=Array.prototype.slice.call(arguments,1);return w.write(jsSprintf.apply(this,S))}function doPad(w,S,O,$){for(var x=$;x.length1&&void 0!==arguments[1]?arguments[1]:"position",O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",$="string"==typeof S?function(w){return w[S]}:S,x={},C={},j={},N={},k={},I={};w.forEach((function(w,S){var R=w[O]?w[O]:String(S);x[R]=S;var W=$(w),G=String(W||S),J=!1;if(G.startsWith("start")){var re=G.match(/start\s+(\d+)/),ie=re&&re[1]?Number(re[1]):0;j[ie]||(j[ie]=[]),j[ie].push(R)}else if(G.startsWith("end")){var oe=G.match(/end\s+(\d+)/),ue=oe&&oe[1]?Number(oe[1]):0;N[ue]||(N[ue]=[]),N[ue].push(R)}else if(G.startsWith("before")){var ce=G.match(/before\s+(\S+)(\s+(\d+))?/);if(ce){var se=ce[1],de=ce[3]?Number(ce[3]):0;k[se]||(k[se]={}),k[se][de]||(k[se][de]=[]),k[se][de].push(R)}else J=!0}else if(G.startsWith("after")){var le=G.match(/after\s+(\S+)(\s+(\d+))?/);if(le){var he=le[1],ye=le[3]?Number(le[3]):0;I[he]||(I[he]={}),I[he][ye]||(I[he][ye]=[]),I[he][ye].push(R)}else J=!0}else J=!0;if(J){var ve=parseFloat(G);!isNaN(ve)&&isFinite(ve)||(ve=S),C[ve]||(C[ve]=[]),C[ve].push(R)}}));var R=[],W=[],G=[],J=[],re=function sortedWeights(w,S){var O=Object.keys(w).map((function(w){return Number(w)})).sort((function(w,S){return w-S}));return S?O:O.reverse()},ie=function addToResults(w,S){w.forEach((function(w){if(!(J.indexOf(w)>=0)){if(J.push(w),k[w]){var O=re(k[w],!0),$=!0,x=!1,C=void 0;try{for(var j,N=O[Symbol.iterator]();!($=(j=N.next()).done);$=!0){var R=j.value;addToResults(k[w][R],S)}}catch(w){x=!0,C=w}finally{try{!$&&N.return&&N.return()}finally{if(x)throw C}}}if(S.push(w),I[w]){var W=re(I[w],!1),G=!0,ie=!1,oe=void 0;try{for(var ue,ce=W[Symbol.iterator]();!(G=(ue=ce.next()).done);G=!0){var se=ue.value;addToResults(I[w][se],S)}}catch(w){ie=!0,oe=w}finally{try{!G&&ce.return&&ce.return()}finally{if(ie)throw oe}}}}}))},oe=!0,ue=!1,ce=void 0;try{for(var se,de=re(j,!1)[Symbol.iterator]();!(oe=(se=de.next()).done);oe=!0){var le=se.value;ie(j[le],R)}}catch(w){ue=!0,ce=w}finally{try{!oe&&de.return&&de.return()}finally{if(ue)throw ce}}var he=!0,ye=!1,ve=void 0;try{for(var ge,Se=re(C,!0)[Symbol.iterator]();!(he=(ge=Se.next()).done);he=!0){var Pe=ge.value;ie(C[Pe],W)}}catch(w){ye=!0,ve=w}finally{try{!he&&Se.return&&Se.return()}finally{if(ye)throw ve}}var Ce=!0,Ie=!1,Me=void 0;try{for(var Fe,Re=re(N,!0)[Symbol.iterator]();!(Ce=(Fe=Re.next()).done);Ce=!0){var De=Fe.value;ie(N[De],G)}}catch(w){Ie=!0,Me=w}finally{try{!Ce&&Re.return&&Re.return()}finally{if(Ie)throw Me}}var Ue=!0,Ge=!1,He=void 0;try{for(var Ke,Ze=Object.keys(k)[Symbol.iterator]();!(Ue=(Ke=Ze.next()).done);Ue=!0){var Qe=Ke.value;if(!(J.indexOf(Qe)>=0)){var et=!0,tt=!1,rt=void 0;try{for(var nt,it=re(k[Qe],!1)[Symbol.iterator]();!(et=(nt=it.next()).done);et=!0){var ot=nt.value;ie(k[Qe][ot],R)}}catch(w){tt=!0,rt=w}finally{try{!et&&it.return&&it.return()}finally{if(tt)throw rt}}}}}catch(w){Ge=!0,He=w}finally{try{!Ue&&Ze.return&&Ze.return()}finally{if(Ge)throw He}}var at=!0,ut=!1,ct=void 0;try{for(var st,dt=Object.keys(I)[Symbol.iterator]();!(at=(st=dt.next()).done);at=!0){var lt=st.value;if(!(J.indexOf(lt)>=0)){var ft=!0,pt=!1,ht=void 0;try{for(var bt,yt=re(I[lt],!1)[Symbol.iterator]();!(ft=(bt=yt.next()).done);ft=!0){var vt=bt.value;ie(I[lt][vt],W)}}catch(w){pt=!0,ht=w}finally{try{!ft&&yt.return&&yt.return()}finally{if(pt)throw ht}}}}}catch(w){ut=!0,ct=w}finally{try{!at&&dt.return&&dt.return()}finally{if(ut)throw ct}}var mt=[].concat(R,W,G);return mt.map((function(w){return x[w]})).map((function(S){return w[S]}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.useEditorTransactions=S.useEditorState=S.EditorContext=S.createEditor=S.editorReducer=void 0;var C=__importStar(O(0)),j=O(126),N=O(289),k=O(287),I=__importStar(O(237)),R={enabledLinkOptions:[],editorOptions:{},isOpen:!1,initialValue:null};function editorReducer(w,S){switch(void 0===w&&(w=R),S.type){case(0,j.getType)(I.EditorWasOpened):return __assign(__assign({},S.payload),{isOpen:!0});case(0,j.getType)(I.EditorWasDismissed):case(0,j.getType)(I.ValueWasUnset):case(0,j.getType)(I.ValueWasApplied):return R;default:return w}}function createEditor(){var w=new N.Subject,S=function dispatch(S){return w.next(S)},O=new N.BehaviorSubject(R);w.pipe((0,k.scan)(editorReducer,R),(0,k.shareReplay)(1)).subscribe(O);return{state$:O,tx:{dismiss:function dismiss(){return S(I.EditorWasDismissed())},unset:function unset(){return S(I.ValueWasUnset())},apply:function apply(w){return S(I.ValueWasApplied(w))},editLink:function editLink(O,$,x){return void 0===$&&($=[]),void 0===x&&(x={}),new Promise((function(C){S(I.EditorWasOpened(O,$,x)),w.subscribe((function(w){switch(w.type){case(0,j.getType)(I.EditorWasDismissed):return C({change:!1});case(0,j.getType)(I.ValueWasUnset):return C({change:!0,value:null});case(0,j.getType)(I.ValueWasApplied):return C({change:!0,value:w.payload});default:return}}))}))}},initialState:R}}S.editorReducer=editorReducer,S.createEditor=createEditor,S.EditorContext=C.createContext(createEditor()),S.useEditorState=function useEditorState(){var w=C.useContext(S.EditorContext).state$,O=__read(C.useState(w.getValue()),2),$=O[0],x=O[1];return C.useEffect((function(){var S=w.subscribe(x);return function(){return S.unsubscribe()}}),[w]),$},S.useEditorTransactions=function useEditorTransactions(){return C.useContext(S.EditorContext).tx}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ValueWasApplied=S.ValueWasUnset=S.EditorWasDismissed=S.EditorWasOpened=void 0;var $=O(126);S.EditorWasOpened=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasOpened",(function(w,S,O){return void 0===O&&(O={}),{initialValue:w,enabledLinkOptions:S,editorOptions:O}}))(),S.EditorWasDismissed=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/EditorWasDismissed")(),S.ValueWasUnset=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasUnset")(),S.ValueWasApplied=(0,$.createAction)("http://sitegeist.de/Sitegeist.Archaeopteryx/ValueWasApplied",(function(w){return w}))()},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.IconCard=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(17),R=O(127),W=O(239),G=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 20px 1fr;\n grid-template-rows: repeat(2, 1fr);\n background-color: #141414;\n padding: 8px 16px;\n min-height: 50px;\n"]))),J=k.default.span(j||(j=__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-column: 1 / span 1;\n grid-row: 1 / span ",";\n"])),(function(w){return w.span}));S.IconCard=function IconCard(w){return N.createElement(G,null,N.createElement(J,{span:w.subTitle?1:2},N.createElement(I.Icon,{icon:w.icon})),N.createElement(R.CardTitle,{span:w.subTitle?1:2},w.title),N.createElement(W.CardSubTitle,null,w.subTitle))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.CardSubTitle=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(128),I=N.default.span(C||(C=__makeTemplateObject(["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"],["\n display: flex;\n align-items: center;\n line-height: 1;\n font-size: 12px;\n color: #999;\n grid-column: 1 / span 2;\n grid-row: 2 / span 1;\n min-width: 0;\n"])));S.CardSubTitle=function CardSubTitle(w){return j.createElement(I,null,j.createElement(k.Ellipsis,null,w.children))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.ImageCard=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(127),R=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"],["\n display: grid;\n grid-gap: 8px;\n grid-template-columns: 75px 1fr;\n background-color: #141414;\n padding: 0 16px 0 0;\n"]))),W=k.default.img(j||(j=__makeTemplateObject(["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"],["\n display: block;\n grid-column: 1 / span 1;\n width: 100%;\n height: 56px;\n object-fit: contain;\n background-color: #fff;\n background-size: 10px 10px;\n background-position: 0 0, 25px 25px;\n background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc), linear-gradient(45deg, #cccccc 25%, transparent 25%, transparent 75%, #cccccc 75%, #cccccc);\n"])));S.ImageCard=function ImageCard(w){return N.createElement(R,null,N.createElement(W,{src:w.src}),N.createElement(I.CardTitle,{span:1},w.label))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Tabs=void 0;var C,j,N,k,I,R,W,G=__importStar(O(0)),J=__importStar(O(16)),re=J.default.ul(C||(C=__makeTemplateObject(["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"],["\n display: flex;\n margin: 0 0 -1px 0;\n padding: 0;\n list-style-type: none;\n\n > * + * {\n margin-left: -1px;\n }\n"]))),ie=J.default.button(R||(R=__makeTemplateObject(["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"],["\n height: 40px;\n ","\n ","\n border-right: 1px solid #3f3f3f;\n border-left: 1px solid #3f3f3f;\n color: #FFF;\n background-color: #222;\n line-height: 40px;\n padding: 0 16px;\n cursor: pointer;\n"])),(function(w){return w.isActive?(0,J.css)(j||(j=__makeTemplateObject(["border-top: 2px solid #00adee;"],["border-top: 2px solid #00adee;"]))):(0,J.css)(N||(N=__makeTemplateObject(["border-top: 1px solid #3f3f3f;"],["border-top: 1px solid #3f3f3f;"])))}),(function(w){return w.isActive?(0,J.css)(k||(k=__makeTemplateObject(["border-bottom: 1px solid #222;"],["border-bottom: 1px solid #222;"]))):(0,J.css)(I||(I=__makeTemplateObject(["border-bottom: 1px solid #3f3f3f;"],["border-bottom: 1px solid #3f3f3f;"])))})),oe=J.default.div(W||(W=__makeTemplateObject(["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"],["\n padding: 16px;\n background-color: #222;\n border: 1px solid #3f3f3f;\n"])));S.Tabs=function Tabs(w){if(w.from.length<1)throw new Error("[Sitegeist.Archaeopteryx]: Tabs must have at least one item!");var S=G.createElement("header",null,G.createElement("nav",null,G.createElement(re,null,w.from.map((function(S){return G.createElement("li",{key:w.getKey(S)},G.createElement(ie,{type:"button",isActive:w.getKey(S)===w.activeItemKey,onClick:function onClick(){w.onSwitchTab&&w.onSwitchTab(w.getKey(S))}},w.renderHeader(S)))}))))),O=w.lazy?G.createElement("div",null,w.from.filter((function(S){return w.getKey(S)===w.activeItemKey})).map((function(S){return G.createElement(oe,{key:w.getKey(S)},w.renderPanel(S))}))):G.createElement("div",null,w.from.map((function(S){return G.createElement(oe,{key:w.getKey(S),hidden:w.getKey(S)!==w.activeItemKey},w.renderPanel(S))})));return G.createElement("div",null,S,O)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Form=void 0;var C,j,N,k=__importStar(O(0)),I=__importDefault(O(16)),R=I.default.form(C||(C=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),W=I.default.div(j||(j=__makeTemplateObject(["\n padding: 0 16px;\n"],["\n padding: 0 16px;\n"]))),G=I.default.div(N||(N=__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n"],["\n display: flex;\n justify-content: flex-end;\n"])));S.Form=function Form(w){return k.createElement(R,{onSubmit:w.onSubmit},k.createElement(W,null,w.renderBody()),k.createElement(G,null,w.renderActions()))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Modal=void 0;var C,j=__importStar(O(0)),N=__importStar(O(244)),k=__importDefault(O(16)),I=O(17),R=(0,k.default)(I.Dialog)(C||(C=__makeTemplateObject(['\n z-index: 100;\n\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'],['\n z-index: 100;\n\n [class*="_dialog__contentsPosition "],\n [class$="_dialog__contentsPosition"] {\n top: 50%;\n transform: translateY(-50%)translateX(-50%)scale(1);\n }\n [class*="_dialog__contents "],\n [class$="_dialog__contents"] {\n width: auto;\n max-width: calc(100vw - 40px * 2);\n }\n [class*="_dialog__body "],\n [class$="_dialog__body"] {\n max-height: 80vh;\n }\n'])));S.Modal=function Modal(w){return N.createPortal(j.createElement(R,{isOpen:!0,title:w.renderTitle(),onRequestClose:function onRequestClose(){},preventClosing:!0},w.renderBody()),document.body)}},function(w,S,O){"use strict";var $=function _interopRequireDefault(w){return w&&w.__esModule?w:{default:w}}(O(52));w.exports=(0,$.default)("vendor")().ReactDOM},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Deletable=void 0;var C,j,N=__importStar(O(0)),k=__importDefault(O(16)),I=O(17),R=k.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"],["\n display: grid;\n grid-template-columns: 1fr 40px;\n justify-content: stretch;\n border: 1px solid #3f3f3f;\n max-width: 420px;\n"]))),W=(0,k.default)(I.IconButton)(j||(j=__makeTemplateObject(["\n height: 100%;\n"],["\n height: 100%;\n"])));S.Deletable=function Deletable(w){return N.createElement(R,null,N.createElement("div",null,w.children),N.createElement(W,{icon:"trash",hoverStyle:"error",onClick:w.onDelete}))}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.IconLabel=void 0;var C,j=__importStar(O(0)),N=__importDefault(O(16)),k=O(17),I=N.default.div(C||(C=__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n white-space: nowrap;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n white-space: nowrap;\n"])));S.IconLabel=function IconLabel(w){return j.createElement(I,null,j.createElement(k.Icon,{icon:w.icon}),w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Columns=S.Stack=S.Container=void 0;var $,x,C,j=__importDefault(O(16));S.Container=j.default.div($||($=__makeTemplateObject(["\n padding: 16px;\n"],["\n padding: 16px;\n"]))),S.Stack=j.default.div(x||(x=__makeTemplateObject(["\n > * + * {\n margin-top: 16px;\n }\n"],["\n > * + * {\n margin-top: 16px;\n }\n"]))),S.Columns=j.default.div(C||(C=__makeTemplateObject(["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"],["\n display: grid;\n gap: 16px;\n grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 8px)), calc(33.3333% - 8px)));\n min-width: 600px;\n"])))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Node=void 0;var $=O(249);Object.defineProperty(S,"Node",{enumerable:!0,get:function get(){return $.Node}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1] ");return $.default.createElement(k.IconCard,{icon:null!==(j=null===(O=re.value)||void 0===O?void 0:O.icon)&&void 0!==j?j:"ban",title:null!==(I=null===(N=re.value)||void 0===N?void 0:N.label)&&void 0!==I?I:"[".concat(W("Sitegeist.Archaeopteryx:LinkTypes.Node:labelOfNonExistingNode"),"]"),subTitle:null!=ie?ie:"node://".concat(w.nodeId)})};S.Node=(0,N.makeLinkType)("Sitegeist.Archaeopteryx:Node",(function(w){var S=w.createError;return{supportedLinkOptions:["anchor","title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){return w.href.startsWith("node://")},useResolvedModel:function useResolvedModel(w){var O=/node:\/\/(.*)/.exec(w.href);if(!O)throw S('Cannot handle href "'.concat(w.href,'".'));var $=O[1];return I.Process.success({nodeId:$})},convertModelToLink:function convertModelToLink(w){var S=w.nodeId;return{href:"node://".concat(S)}},TabHeader:function TabHeader(){var w=(0,C.useI18n)();return $.default.createElement(k.IconLabel,{icon:"file"},w("Sitegeist.Archaeopteryx:LinkTypes.Node:title"))},Preview:function Preview(w){return $.default.createElement(W,{nodeId:w.model.nodeId})},Editor:function Editor(w){var O,x,N,k=w.model,R=w.options,W=(0,C.useI18n)(),G=(0,C.usePersonalWorkspaceName)(),J=(0,C.useDimensionValues)(),re=(0,C.useSiteNodeContextPath)(),ie=null!==(O=(0,C.useConfiguration)((function(w){var S;return null===(S=w.nodeTree)||void 0===S?void 0:S.loadingDepth})))&&void 0!==O?O:4,oe=null!==(x=(0,C.useSelector)((function(w){var S,O;return null===(O=null===(S=w.ui)||void 0===S?void 0:S.pageTree)||void 0===O?void 0:O.query})))&&void 0!==x?x:"",ue=null!==(N=(0,C.useSelector)((function(w){var S,O;return null===(O=null===(S=w.ui)||void 0===S?void 0:S.pageTree)||void 0===O?void 0:O.filterNodeType})))&&void 0!==N?N:"",ce=$.default.useMemo((function(){var w;return null!==(w=R.startingPoint)&&void 0!==w?w:null==re?void 0:re.path}),[R.startingPoint,re]);if(ce){if(G){if(J)return $.default.createElement(I.Field,{name:"nodeId",initialValue:null==k?void 0:k.nodeId,validate:function validate(w){if(!w)return W("Sitegeist.Archaeopteryx:LinkTypes.Node:node.validation.required")}},(function(w){var S,O,x,C=w.input;return $.default.createElement(j.Tree,{initialSearchTerm:oe,workspaceName:G,dimensionValues:J,startingPoint:ce,loadingDepth:null!==(S=R.loadingDepth)&&void 0!==S?S:ie,baseNodeTypeFilter:null!==(O=R.baseNodeType)&&void 0!==O?O:"Neos.Neos:Document",initialNarrowNodeTypeFilter:ue,linkableNodeTypes:R.allowedNodeTypes,selectedTreeNodeId:null!==(x=C.value)&&void 0!==x?x:void 0,options:{enableSearch:!0,enableNodeTypeFilter:!0},onSelect:function onSelect(w){C.onChange(w)}})}));throw S("Could not load node tree, because dimensionValues could not be determined.")}throw S("Could not load node tree, because workspaceName could not be determined.")}throw S("Could not load node tree, because startingPoint could not be determined.")}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var $=O(251);Object.defineProperty(S,"Tree",{enumerable:!0,get:function get(){return $.Tree}})},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var $=O(252);Object.defineProperty(S,"Tree",{enumerable:!0,get:function get(){return $.Tree}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Tree=void 0;var C=__importStar(O(0)),j=O(54),N=O(74),k=O(17),I=O(79),R=O(260),W=O(264),G=O(267),J=O(101);S.Tree=function Tree(w){var S,O,$,x,re,ie,oe=__read(C.useState(null!==(S=w.initialSearchTerm)&&void 0!==S?S:""),2),ue=oe[0],ce=oe[1],se=__read(C.useState(null!==(O=w.initialNarrowNodeTypeFilter)&&void 0!==O?O:""),2),de=se[0],le=se[1],he=(0,j.useAsync)((function(){return __awaiter(void 0,void 0,void 0,(function(){var S;return __generator(this,(function(O){switch(O.label){case 0:return[4,(0,J.getTree)({workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,startingPoint:w.startingPoint,loadingDepth:w.loadingDepth,baseNodeTypeFilter:w.baseNodeTypeFilter,linkableNodeTypes:w.linkableNodeTypes,selectedNodeId:w.selectedTreeNodeId,narrowNodeTypeFilter:de,searchTerm:ue})];case 1:if("success"in(S=O.sent()))return[2,S.success];if("error"in S)throw new N.VError(S.error.message);throw new N.VError("Something went wrong while fetching the tree.")}}))}))}),[w.workspaceName,w.dimensionValues,w.startingPoint,w.loadingDepth,w.baseNodeTypeFilter,w.linkableNodeTypes,de,ue]),ye=C.useCallback((function(S){w.onSelect(S)}),[]),ve=C.useCallback((function(w){ce(w)}),[]),ge=C.useCallback((function(w){le(w)}),[]);if(he.error)throw new N.VError((0,I.decodeError)(he.error),"NodeTree could not be loaded.");ie=he.loading||!he.value?C.createElement("div",null,"Loading..."):C.createElement(k.Tree,null,C.createElement(R.TreeNode,{workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,baseNodeTypeFilter:w.baseNodeTypeFilter,treeNode:he.value.root,selectedTreeNodeId:w.selectedTreeNodeId,level:1,onClick:ye}));var Se=null;(null===($=w.options)||void 0===$?void 0:$.enableSearch)&&(Se=C.createElement(W.Search,{initialValue:null!==(x=w.initialSearchTerm)&&void 0!==x?x:"",onChange:ve}));var Pe=null;return(null===(re=w.options)||void 0===re?void 0:re.enableNodeTypeFilter)&&(Pe=C.createElement(G.SelectNodeTypeFilter,{baseNodeTypeFilter:w.baseNodeTypeFilter,value:de,onChange:ge})),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",backgroundColor:"#141414",border:"1px solid #3f3f3f"}},Se?C.createElement("div",{style:{gridColumn:Pe?"1 / span 1":"1 / span 2"}},Se):null,Pe?C.createElement("div",{style:{gridColumn:Se?"2 / span 1":"1 / span 2"}},Pe):null,ie?C.createElement("div",{style:{marginTop:"-5px",borderTop:"1px solid #3f3f3f",gridColumn:"1 / span 2",height:"50vh",maxHeight:"300px",overflowY:"auto"}},ie):null)}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.decodeError=S.ErrorBoundary=void 0;var $=O(254);Object.defineProperty(S,"ErrorBoundary",{enumerable:!0,get:function get(){return $.ErrorBoundary}});var x=O(259);Object.defineProperty(S,"decodeError",{enumerable:!0,get:function get(){return x.decodeError}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorBoundary=void 0;var C=__importStar(O(0)),j=O(255),N=O(74),k=O(256),I=function ErrorFallback(w){var S=Boolean(document.querySelector('[data-env^="Development"]'));return C.createElement(k.Alert,{title:"".concat(w.error.name)},C.createElement("div",null,w.error.message),w.error instanceof N.VError?C.createElement(R,{error:w.error,level:0}):null,S?C.createElement(k.Trace,{title:"Stacktrace"},w.error.stack):null)},R=function RecursiveCauseChain(w){return w.error?C.createElement(k.Trace,{title:"Cause: ".concat(w.error.name)},w.error.message,w.error instanceof N.VError&&w.level<10?C.createElement(RecursiveCauseChain,{error:w.error.cause(),level:w.level+1}):null):null};function logError(w,S){console.warn("[Sitegeist.Archaeopteryx::".concat(w.name,"]: An error occurred.")),console.error("[Sitegeist.Archaeopteryx::".concat(w.name,"]: "),w),console.error("[Sitegeist.Archaeopteryx::".concat(w.name,"]: Component Stack:"),S.componentStack)}S.ErrorBoundary=function ErrorBoundary(w){return C.createElement(j.ErrorBoundary,{fallbackRender:I,onError:logError},w.children)}},function(w,S,O){!function(w,S){"use strict";function _interopNamespace(w){if(w&&w.__esModule)return w;var S=Object.create(null);return w&&Object.keys(w).forEach((function(O){if("default"!==O){var $=Object.getOwnPropertyDescriptor(w,O);Object.defineProperty(S,O,$.get?$:{enumerable:!0,get:function(){return w[O]}})}})),S.default=w,Object.freeze(S)}var O=_interopNamespace(S);function _setPrototypeOf(w,S){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(w,S){return w.__proto__=S,w})(w,S)}var $={error:null},x=function(w){function ErrorBoundary(){for(var S,O=arguments.length,x=new Array(O),C=0;C * + * {\n margin-top: 8px;\n }\n"],["\n padding: 8px;\n background-color: #ff6a3c;\n color: #fff;\n\n > * + * {\n margin-top: 8px;\n }\n"]))),W=k.default.header(j||(j=__makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n"],["\n display: flex;\n gap: 8px;\n align-items: center;\n"])));S.Alert=function Alert(w){return N.createElement(R,{role:"alert"},N.createElement(W,null,N.createElement(I.Icon,{icon:"exclamation-triangle"}),w.title),w.children)}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.Trace=void 0;var C,j,N,k=__importStar(O(0)),I=__importDefault(O(16)),R=I.default.details(C||(C=__makeTemplateObject(["\n"],["\n"]))),W=I.default.summary(j||(j=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"]))),G=I.default.pre(N||(N=__makeTemplateObject(["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"],["\n height: 60vh;\n max-height: 600px;\n padding: 8px;\n margin: 0;\n overflow: scroll;\n background-color: #111;\n box-shadow: inset 5px 5px 5px #000;\n"])));S.Trace=function Trace(w){return k.createElement(R,null,k.createElement(W,null,w.title),k.createElement(G,null,w.children))}},function(w,S,O){"use strict";function decodeErrorMessage(w){var S;if(w.includes("")){var O=(new DOMParser).parseFromString(w,"text/html");return"[".concat(O.title,"] ").concat(null===(S=O.querySelector("h1"))||void 0===S?void 0:S.innerText)}return w}Object.defineProperty(S,"__esModule",{value:!0}),S.decodeError=void 0,S.decodeError=function decodeError(w){return w instanceof Error?(w.message=decodeErrorMessage(w.message),w):new Error(decodeErrorMessage(w))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeNode=void 0;var $=__importDefault(O(0)),x=O(17),C=O(101);S.TreeNode=function TreeNode(w){var O=w.selectedTreeNodeId===w.treeNode.nodeAggregateIdentifier,j=w.treeNode.children.length>0||w.treeNode.hasUnloadedChildren,N=__read($.default.useState(w.treeNode.hasUnloadedChildren),2),k=N[0],I=N[1],R=__read($.default.useState(!1),2),W=R[0],G=R[1],J=__read($.default.useState(w.treeNode.children),2),re=J[0],ie=J[1],oe=__read($.default.useState(!1),2),ue=oe[0],ce=oe[1],se=$.default.useMemo((function(){if(w.treeNode.hasScheduledDisabledState){var S=w.treeNode.isDisabled?"error":"primaryBlue";return $.default.createElement("span",{className:"fa-layers fa-fw"},$.default.createElement(x.Icon,{icon:w.treeNode.icon}),$.default.createElement(x.Icon,{icon:"circle",color:S,transform:"shrink-5 down-6 right-4"}),$.default.createElement(x.Icon,{icon:"clock",transform:"shrink-9 down-6 right-4"}))}return w.treeNode.isDisabled?$.default.createElement("span",{className:"fa-layers fa-fw"},$.default.createElement(x.Icon,{icon:w.treeNode.icon}),$.default.createElement(x.Icon,{icon:"circle",color:"error",transform:"shrink-3 down-6 right-4"}),$.default.createElement(x.Icon,{icon:"times",transform:"shrink-7 down-6 right-4"})):null}),[w.treeNode.hasScheduledDisabledState,w.treeNode.isDisabled,w.treeNode.icon]),de=$.default.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var S;return __generator(this,(function(O){switch(O.label){case 0:if(!k||!w.treeNode.hasUnloadedChildren||0!==re.length)return[3,5];G(!0),O.label=1;case 1:return O.trys.push([1,3,,4]),[4,(0,C.getChildrenForTreeNode)({workspaceName:w.workspaceName,dimensionValues:w.dimensionValues,treeNodeId:w.treeNode.nodeAggregateIdentifier,nodeTypeFilter:w.baseNodeTypeFilter})];case 2:return"success"in(S=O.sent())&&ie(S.success.children),"error"in S&&ce(!0),[3,4];case 3:return O.sent(),ce(!0),[3,4];case 4:return G(!1),I(!1),[3,6];case 5:I((function(w){return!w})),O.label=6;case 6:return[2]}}))}))}),[w.workspaceName,w.dimensionValues,w.treeNode.nodeAggregateIdentifier,w.baseNodeTypeFilter,re.length]),le=$.default.useCallback((function(){w.treeNode.isMatchedByFilter&&w.treeNode.isLinkable&&w.onClick(w.treeNode.nodeAggregateIdentifier)}),[w.treeNode.isMatchedByFilter,w.treeNode.nodeAggregateIdentifier]);return $.default.createElement(x.Tree.Node,null,$.default.createElement(x.Tree.Node.Header,{labelIdentifier:"labelIdentifier",id:w.treeNode.nodeAggregateIdentifier,hasChildren:j,isLastChild:!0,isCollapsed:k,isActive:O,isFocused:O,isLoading:W,isDirty:!1,isHidden:w.treeNode.isDisabled,isHiddenInIndex:w.treeNode.isHiddenInMenu||!w.treeNode.isMatchedByFilter||!w.treeNode.isLinkable,isDragging:!1,hasError:ue,label:w.treeNode.label,icon:w.treeNode.isLinkable?w.treeNode.icon:"fas fa-unlink",customIconComponent:se,iconLabel:w.treeNode.nodeTypeLabel,level:w.level,onToggle:de,onClick:le,dragForbidden:!0,title:w.treeNode.label}),k?null:re.map((function(O){return $.default.createElement(S.TreeNode,__assign({},w,{treeNode:O,level:w.level+1}))})))}},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getChildrenForTreeNode=void 0;var $=O(12);S.getChildrenForTreeNode=function getChildrenForTreeNode(w){return __awaiter(this,void 0,void 0,(function(){var S,O,x,C,j,N,k,I,R,W,G,J,re,ie,oe;return __generator(this,(function(ue){switch(ue.label){case 0:(S=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(O=__values(Object.entries(w.dimensionValues)),x=O.next();!x.done;x=O.next()){C=__read(x.value,2),j=C[0],N=C[1];try{for(ie=void 0,k=__values(N),I=k.next();!I.done;I=k.next())R=I.value,S.set("dimensionValues[".concat(j,"][]"),R)}catch(w){ie={error:w}}finally{try{I&&!I.done&&(oe=k.return)&&oe.call(k)}finally{if(ie)throw ie.error}}}}catch(w){J={error:w}}finally{try{x&&!x.done&&(re=O.return)&&re.call(O)}finally{if(J)throw J.error}}S.set("treeNodeId",w.treeNodeId),S.set("nodeTypeFilter",w.nodeTypeFilter),ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-children-for-tree-node?"+S.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return W=ue.sent(),[2,$.fetchWithErrorHandling.parseJson(W)];case 3:throw G=ue.sent(),$.fetchWithErrorHandling.generalErrorHandler(G),G;case 4:return[2]}}))}))}},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getTree=void 0;var $=O(12);S.getTree=function getTree(w){var S;return __awaiter(this,void 0,void 0,(function(){var O,x,C,j,N,k,I,R,W,G,J,re,ie,oe,ue,ce,se,de,le,he;return __generator(this,(function(ye){switch(ye.label){case 0:(O=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(x=__values(Object.entries(w.dimensionValues)),C=x.next();!C.done;C=x.next()){j=__read(C.value,2),N=j[0],k=j[1];try{for(se=void 0,I=__values(k),R=I.next();!R.done;R=I.next())W=R.value,O.set("dimensionValues[".concat(N,"][]"),W)}catch(w){se={error:w}}finally{try{R&&!R.done&&(de=I.return)&&de.call(I)}finally{if(se)throw se.error}}}}catch(w){ue={error:w}}finally{try{C&&!C.done&&(ce=x.return)&&ce.call(x)}finally{if(ue)throw ue.error}}O.set("startingPoint",w.startingPoint),O.set("loadingDepth",String(w.loadingDepth)),O.set("baseNodeTypeFilter",w.baseNodeTypeFilter);try{for(G=__values(null!==(S=w.linkableNodeTypes)&&void 0!==S?S:[]),J=G.next();!J.done;J=G.next())re=J.value,O.append("linkableNodeTypes[]",re)}catch(w){le={error:w}}finally{try{J&&!J.done&&(he=G.return)&&he.call(G)}finally{if(le)throw le.error}}O.set("narrowNodeTypeFilter",w.narrowNodeTypeFilter),O.set("searchTerm",w.searchTerm),w.selectedNodeId&&O.set("selectedNodeId",w.selectedNodeId),ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-tree?"+O.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return ie=ye.sent(),[2,$.fetchWithErrorHandling.parseJson(ie)];case 3:throw oe=ye.sent(),$.fetchWithErrorHandling.generalErrorHandler(oe),oe;case 4:return[2]}}))}))}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Search=void 0;var C=__importStar(O(0)),j=O(54),N=O(265);S.Search=function Search(w){var S=__read(C.useState(w.initialValue),2),O=S[0],$=S[1],x=C.useCallback((function(){$("")}),[$]);return(0,j.useDebounce)((function(){w.onChange(O)}),300,[O]),C.createElement(N.SearchInput,{value:O,onChange:$,onClear:x})}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.SearchInput=void 0;var $=O(266);Object.defineProperty(S,"SearchInput",{enumerable:!0,get:function get(){return $.SearchInput}})},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.SearchInput=void 0;var C,j,N,k,I=__importStar(O(0)),R=__importDefault(O(16)),W=O(17),G=O(12),J=(0,R.default)(W.Icon)(C||(C=__makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"],["\n position: absolute;\n top: 50%;\n left: 21px;\n transform: translate(-50%, -50%);\n"]))),re=(0,R.default)(W.IconButton)(j||(j=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n color: #000;\n"]))),ie=(0,R.default)(W.TextInput)(N||(N=__makeTemplateObject(["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"],["\n padding-left: 42px;\n\n &:focus {\n background: #3f3f3f;\n color: #fff;\n }\n"]))),oe=R.default.div(k||(k=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));S.SearchInput=function SearchInput(w){var S=(0,G.useI18n)(),O=I.useRef(w.value);return I.useEffect((function(){O.current===w.value||w.value||w.onClear(),O.current=w.value}),[w.value]),I.createElement(oe,null,I.createElement(J,{icon:"search"}),I.createElement(ie,{type:"search",value:w.value,placeholder:S("Neos.Neos:Main:search"),onChange:w.onChange}),w.value&&I.createElement(re,{icon:"times",onClick:w.onClear}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectNodeTypeFilter=void 0;var C=__importStar(O(0)),j=O(54),N=O(74),k=O(17),I=O(12),R=O(101);S.SelectNodeTypeFilter=function SelectNodeTypeFilter(w){var S=(0,I.useI18n)(),O=__read(C.useState(""),2),$=O[0],x=O[1],W=(0,j.useAsync)((function(){return __awaiter(void 0,void 0,void 0,(function(){var O;return __generator(this,(function($){switch($.label){case 0:return[4,(0,R.getNodeTypeFilterOptions)({baseNodeTypeFilter:w.baseNodeTypeFilter})];case 1:if("success"in(O=$.sent()))return[2,O.success.options.map((function(w){return __assign(__assign({},w),{label:S(w.label)})}))];if("error"in O)throw new N.VError(O.error.message);throw new N.VError("Unable to fetch node type filter options")}}))}))}),[w.baseNodeTypeFilter]),G=C.useMemo((function(){var w;return function searchNodeTypeFilterOptions(w,S){return S.filter((function(S){return-1!==S.label.toLowerCase().indexOf(w.toLowerCase())}))}($,null!==(w=W.value)&&void 0!==w?w:[])}),[$,W.value]);return C.createElement(k.SelectBox,{disabled:W.loading||W.error,placeholder:S("Neos.Neos:Main:filter"),placeholderIcon:"filter",onValueChange:w.onChange,allowEmpty:!0,value:w.value,options:G,displaySearchBox:!0,searchTerm:$,onSearchTermChange:x,threshold:0,noMatchesFoundLabel:S("Neos.Neos:Main:noMatchesFound"),searchBoxLeftToTypeLabel:S("Neos.Neos:Main:searchBoxLeftToType")})}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getNodeSummary=void 0;var $=O(269);Object.defineProperty(S,"getNodeSummary",{enumerable:!0,get:function get(){return $.getNodeSummary}})},function(w,S,O){"use strict";var __awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]=w.length&&(w=void 0),{value:w&&w[$++],done:!w}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.getNodeSummary=void 0;var $=O(12);S.getNodeSummary=function getNodeSummary(w){return __awaiter(this,void 0,void 0,(function(){var S,O,x,C,j,N,k,I,R,W,G,J,re,ie,oe;return __generator(this,(function(ue){switch(ue.label){case 0:(S=new URLSearchParams).set("workspaceName",w.workspaceName);try{for(O=__values(Object.entries(w.dimensionValues)),x=O.next();!x.done;x=O.next()){C=__read(x.value,2),j=C[0],N=C[1];try{for(ie=void 0,k=__values(N),I=k.next();!I.done;I=k.next())R=I.value,S.set("dimensionValues[".concat(j,"][]"),R)}catch(w){ie={error:w}}finally{try{I&&!I.done&&(oe=k.return)&&oe.call(k)}finally{if(ie)throw ie.error}}}}catch(w){J={error:w}}finally{try{x&&!x.done&&(re=O.return)&&re.call(O)}finally{if(J)throw J.error}}S.set("nodeId",w.nodeId),ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,$.fetchWithErrorHandling.withCsrfToken((function(w){return{url:"/sitegeist/archaeopteryx/get-node-summary?"+S.toString(),method:"GET",credentials:"include",headers:{"X-Flow-Csrftoken":w,"Content-Type":"application/json"}}}))];case 2:return W=ue.sent(),[2,$.fetchWithErrorHandling.parseJson(W)];case 3:throw G=ue.sent(),$.fetchWithErrorHandling.generalErrorHandler(G),G;case 4:return[2]}}))}))}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Asset=void 0;var $=O(271);Object.defineProperty(S,"Asset",{enumerable:!0,get:function get(){return $.Asset}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Asset=void 0;var C=__importStar(O(0)),j=O(12),N=O(43),k=O(30),I=O(38),R=O(272);S.Asset=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:Asset",(function(w){var S=w.createError;return{supportedLinkOptions:["title","targetBlank","relNofollow"],isSuitableFor:function isSuitableFor(w){return w.href.startsWith("asset://")},useResolvedModel:function useResolvedModel(w){var O=/asset:\/\/(.*)/.exec(w.href);return O?N.Process.success({identifier:O[1]}):N.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"asset://".concat(w.identifier)}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(I.IconLabel,{icon:"camera"},w("Sitegeist.Archaeopteryx:LinkTypes.Asset:title"))},Preview:function Preview(w){var S,O,$=w.model,x=(0,j.useAssetSummary)($.identifier);return x.value?C.createElement(I.ImageCard,{label:null===(S=x.value)||void 0===S?void 0:S.label,src:null===(O=x.value)||void 0===O?void 0:O.preview}):null},Editor:function Editor(w){var S=w.model,O=(0,j.useI18n)();return C.createElement(N.Field,{name:"identifier",initialValue:null==S?void 0:S.identifier,validate:function validate(w){if(!w)return O("Sitegeist.Archaeopteryx:LinkTypes.Asset:identifier.validation.required")}},(function(w){var S=w.input;return C.createElement(R.MediaBrowser,{assetIdentifier:S.value,onSelectAsset:S.onChange})}))}}}))},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__importDefault=function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(S,"__esModule",{value:!0}),S.MediaBrowser=void 0;var C,j=__importStar(O(0)),N=O(0),k=O(12),I=__importDefault(O(16)).default.div(C||(C=__makeTemplateObject(["\n\twidth: calc(-80px - 64px + 100vw);\n\tmax-width: 1260px;\n\n\t& > div {\n\t\tpadding: 0;\n\t}\n\n\t& > iframe {\n\t\twidth: calc(100vw - 160px);\n\t\tmax-width: 100%;\n\t\theight: calc(100vh - 580px);\n\t\tposition: relative;\n\t}\n"],["\n\twidth: calc(-80px - 64px + 100vw);\n\tmax-width: 1260px;\n\n\t& > div {\n\t\tpadding: 0;\n\t}\n\n\t& > iframe {\n\t\twidth: calc(100vw - 160px);\n\t\tmax-width: 100%;\n\t\theight: calc(100vh - 580px);\n\t\tposition: relative;\n\t}\n"])));S.MediaBrowser=function MediaBrowser(w){var S,O,$=(0,k.useGlobalRegistry)(),x=(0,N.useRef)(null),C=(0,N.useRef)(null),R=null===(S=null==$?void 0:$.get("inspector"))||void 0===S?void 0:S.get("secondaryEditors"),W=(null==R?void 0:R.get("Neos.Neos/Inspector/Secondary/Editors/MediaSelectionScreen")).component,G=null===(O=x.current)||void 0===O?void 0:O.querySelector("& > iframe");return(0,N.useEffect)((function(){var w=function handleIframeLoad(w){var S,O,$=w.target.contentDocument;$&&($.body.style.overflowX="hidden",$.body.style.padding="0",null===(S=$.querySelector("form > .neos-footer"))||void 0===S||S.remove(),null===(O=$.querySelectorAll("input, select, textarea"))||void 0===O||O.forEach((function(w){w.readOnly=!0})))};return null==G||G.addEventListener("load",w),function(){null==G||G.removeEventListener("load",w)}}),[G]),j.createElement(I,{ref:x},j.createElement(W,{ref:C,assetIdentifier:w.assetIdentifier,onComplete:w.onSelectAsset,constraints:{mediaTypes:[]}}))}},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.MailTo=void 0;var $=O(274);Object.defineProperty(S,"MailTo",{enumerable:!0,get:function get(){return $.MailTo}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.MailTo=void 0;var C=__importStar(O(0)),j=O(12),N=O(43),k=O(30),I=O(38),R=/^[^\s@]+@[^\s@]+$/;S.MailTo=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:MailTo",(function(w){var S=w.createError;return{isSuitableFor:function isSuitableFor(w){return w.href.startsWith("mailto:")},useResolvedModel:function useResolvedModel(w){var O,$,x,C;if(!w.href.startsWith("mailto:"))return N.Process.error(S('Cannot handle href "'.concat(w.href,'".')));var j=new URL(w.href);return N.Process.success({recipient:j.pathname,subject:null!==(O=j.searchParams.get("subject"))&&void 0!==O?O:void 0,cc:null!==($=j.searchParams.get("cc"))&&void 0!==$?$:void 0,bcc:null!==(x=j.searchParams.get("bcc"))&&void 0!==x?x:void 0,body:null!==(C=j.searchParams.get("body"))&&void 0!==C?C:void 0})},convertModelToLink:function convertModelToLink(w){var S="mailto:".concat(w.recipient,"?");return w.subject&&(S+="subject=".concat(w.subject)),w.cc&&!w.subject?S+="cc=".concat(w.cc):w.cc&&(S+="&cc=".concat(w.cc)),!w.bcc||w.subject||w.cc?w.bcc&&(S+="&bcc=".concat(w.bcc)):S+="bcc=".concat(w.bcc),!w.body||w.subject||w.cc||w.bcc?w.body&&(S+="&body=".concat(w.body)):S+="body=".concat(w.body),{href:S}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(I.IconLabel,{icon:"envelope"},w("Sitegeist.Archaeopteryx:LinkTypes.MailTo:title"))},Preview:function Preview(w){var S,O,$=w.model;return C.createElement(I.IconCard,{icon:"envelope",title:$.recipient,subTitle:$.subject||$.body?"".concat(null!==(S=$.subject)&&void 0!==S?S:""," ").concat(null!==(O=$.body)&&void 0!==O?O:"").trim():void 0})},Editor:function Editor(w){var S,O,$,x,k=w.model,W=w.options,G=(0,j.useI18n)();return C.createElement(I.Layout.Columns,null,C.createElement(N.Field,{name:"recipient",initialValue:null==k?void 0:k.recipient,validate:function validate(w){return w?R.test(w)?void 0:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.email"):G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.validation.required")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:recipient.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:S,meta:O}))})),!1!==(null===(S=W.enabledFields)||void 0===S?void 0:S.subject)?C.createElement(N.Field,{name:"subject",initialValue:null==k?void 0:k.subject},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:subject.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",input:S,meta:O}))})):null,!1!==(null===(O=W.enabledFields)||void 0===O?void 0:O.cc)?C.createElement(N.Field,{name:"cc",initialValue:null==k?void 0:k.cc,validate:function validate(w){if(null!=w&&!w.split(",").every((function(w){return R.test(w.trim())})))return G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.validation.emaillist")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:cc.placeholder")},input:S,meta:O}))})):null,!1!==(null===($=W.enabledFields)||void 0===$?void 0:$.bcc)?C.createElement(N.Field,{name:"bcc",initialValue:null==k?void 0:k.bcc,validate:function validate(w){if(null!=w&&!w.split(",").every((function(w){return R.test(w.trim())})))return G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.validation.emaillist")}},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.label"),editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:bcc.placeholder")},input:S,meta:O}))})):null,!1!==(null===(x=W.enabledFields)||void 0===x?void 0:x.body)?C.createElement(N.Field,{name:"body",initialValue:null==k?void 0:k.body},(function(w){var S=w.input,O=w.meta;return C.createElement("div",{style:{gridColumn:"1 / -1"}},C.createElement(N.EditorEnvelope,{label:G("Sitegeist.Archaeopteryx:LinkTypes.MailTo:body.label"),editor:"Neos.Neos/Inspector/Editors/TextAreaEditor",input:S,meta:O}))})):null)}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PhoneNumber=void 0;var $=O(276);Object.defineProperty(S,"PhoneNumber",{enumerable:!0,get:function get(){return $.PhoneNumber}})},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.PhoneNumber=void 0;var C=__importStar(O(0)),j=O(0),N=O(70),k=O(17),I=O(12),R=O(288),W=O(30),G=O(43),J=O(38);S.PhoneNumber=(0,W.makeLinkType)("Sitegeist.Archaeopteryx:PhoneNumber",(function(w){var S=w.createError;return{isSuitableFor:function isSuitableFor(w){return w.href.startsWith("tel:")},useResolvedModel:function useResolvedModel(w){var O=(0,R.parsePhoneNumber)(w.href.replace("tel:",""));return O?G.Process.success({phoneNumber:O.number.replace("+".concat(O.countryCallingCode),""),countryCallingCode:"+".concat(O.countryCallingCode.toString())}):G.Process.error(S('Cannot handle href "'.concat(w.href,'".')))},convertModelToLink:function convertModelToLink(w){return{href:"tel:".concat(w.countryCallingCode).concat(w.phoneNumber)}},TabHeader:function TabHeader(){var w=(0,I.useI18n)();return C.createElement(J.IconLabel,{icon:"phone-alt"},w("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(J.IconCard,{icon:"phone-alt",title:(new R.AsYouType).input("".concat(S.countryCallingCode).concat(S.phoneNumber))})},Editor:function Editor(w){var S,O=w.model,$=w.options,x=(null==O?void 0:O.countryCallingCode)||((null==$?void 0:$.defaultCountry)?"+".concat((0,R.getCountryCallingCode)(null==$?void 0:$.defaultCountry).toString()):"+".concat((0,R.getCountryCallingCode)((0,R.getCountries)()[0]).toString())),W=__read((0,j.useState)(x),2),J=W[0],re=W[1],ie=(0,I.useI18n)(),oe={};null===(S=$.favoredCountries)||void 0===S||S.map((function(w){oe["+".concat((0,R.getCountryCallingCode)(w))]?oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(oe["+".concat((0,R.getCountryCallingCode)(w))].label.split(/\s\+/)[0],", ").concat(w," +").concat((0,R.getCountryCallingCode)(w))}:oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(w," +").concat((0,R.getCountryCallingCode)(w))}})),(0,R.getCountries)().map((function(w){var S;(null===(S=$.favoredCountries)||void 0===S?void 0:S.includes(w))||(oe["+".concat((0,R.getCountryCallingCode)(w))]?oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(oe["+".concat((0,R.getCountryCallingCode)(w))].label.split(/\s\+/)[0],", ").concat(w," +").concat((0,R.getCountryCallingCode)(w))}:oe["+".concat((0,R.getCountryCallingCode)(w))]={value:"+".concat((0,R.getCountryCallingCode)(w)),label:"".concat(w," +").concat((0,R.getCountryCallingCode)(w))})}));var ue=/^[1-9][0-9]*$/;return C.createElement("div",null,C.createElement("label",{htmlFor:"linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.phoneNumber"},ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.label")),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"160px 1fr",minWidth:"600px"}},C.createElement(G.Field,{name:"countryCallingCode",format:function format(w){return void 0===w&&""===w||re(w),""!==w&&void 0!==w||(0,N.useForm)().change("linkTypeProps.Sitegeist_Archaeopteryx:PhoneNumber.countryCallingCode",J),w},initialValue:J||x,validate:function validate(w){if(!w)return ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:countryCallingCode.validation.required")}},(function(w){var S=w.input;return C.createElement("div",{style:{margin:"0.25rem 0 0 0"}},C.createElement(k.SelectBox,{allowEmpty:!1,options:Object.values(oe),onValueChange:function onValueChange(w){re(w),S.onChange(w)},value:S.value}))})),C.createElement(G.Field,{name:"phoneNumber",initialValue:null==O?void 0:O.phoneNumber,validate:function validate(w){return w?ue.test(w)?void 0:ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.numbersOnly"):ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.validation.required")}},(function(w){var S=w.input,O=w.meta;return C.createElement(G.EditorEnvelope,{label:"",editor:"Neos.Neos/Inspector/Editors/TextFieldEditor",editorOptions:{placeholder:ie("Sitegeist.Archaeopteryx:LinkTypes.PhoneNumber:phoneNumber.placeholder")},input:S,meta:O})}))))}}}))},function(w,S,O){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CustomLink=void 0;var $=O(278);Object.defineProperty(S,"CustomLink",{enumerable:!0,get:function get(){return $.CustomLink}})},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.CustomLink=void 0;var C=__importStar(O(0)),j=O(12),N=O(17),k=O(30),I=O(43),R=O(38);S.CustomLink=(0,k.makeLinkType)("Sitegeist.Archaeopteryx:CustomLink",(function(w){w.createError;return{isSuitableFor:function isSuitableFor(w){return!(w.href.startsWith("asset://")||w.href.startsWith("mailto:")||w.href.startsWith("node://")||w.href.startsWith("tel:")||w.href.startsWith("http://")||w.href.startsWith("https://"))},useResolvedModel:function useResolvedModel(w){return I.Process.success({customLink:w.href})},convertModelToLink:function convertModelToLink(w){return{href:"".concat(w.customLink)}},TabHeader:function TabHeader(){var w=(0,j.useI18n)();return C.createElement(R.IconLabel,{icon:""},w("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:title"))},Preview:function Preview(w){var S=w.model;return C.createElement(R.IconCard,{icon:"",title:'...')})},Editor:function Editor(w){var S=w.model,O=(0,j.useI18n)();return C.createElement("div",null,C.createElement("label",null,O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.label")),C.createElement("div",{style:{display:"grid",gridTemplateColumns:"400px 1fr",minWidth:"600px"}},C.createElement(I.Field,{name:"customLink",initialValue:null==S?void 0:S.customLink,validate:function validate(w){if(!w)return O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:validation.required")}},(function(w){var S=w.input;return C.createElement(N.TextInput,__assign({id:S.name,type:"text",placeHolder:O("Sitegeist.Archaeopteryx:LinkTypes.CustomLink:customLink.placeholder")},S))}))))}}}))},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.registerDialog=void 0;var C=__importStar(O(0)),j=O(12),N=O(30),k=O(280);S.registerDialog=function registerDialog(w,S){var O=w.globalRegistry.get("containers");null==O||O.set("Modals/Sitegeist.Archaeopteryx",(function(O){return C.createElement(j.NeosContext.Provider,{value:w},C.createElement(N.EditorContext.Provider,{value:S},C.createElement(k.Dialog,O)))}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__read=function(w,S){var O="function"==typeof Symbol&&w[Symbol.iterator];if(!O)return w;var $,x,C=O.call(w),j=[];try{for(;(void 0===S||S-- >0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.Dialog=void 0;var C=__importStar(O(0)),j=O(70),N=O(54),k=O(17),I=O(12),R=O(79),W=O(43),G=O(30),J=O(38),re=O(281),ie=O(282);S.Dialog=function Dialog(){var w=(0,I.useI18n)(),S=(0,G.useLinkTypes)(),O=(0,I.useSelector)((function(w){var S;return!(null===(S=w.system)||void 0===S?void 0:S.authenticationTimeout)})),$=(0,G.useEditorTransactions)(),x=$.dismiss,W=$.apply,re=$.unset,ie=(0,G.useEditorState)(),ce=ie.isOpen,se=ie.initialValue,de=__read(C.useState(!1),2),le=de[0],he=de[1],ye=C.useCallback((function(w){var O,$=S.find((function(S){return S.id===w.linkTypeId}));if($){var x=null===(O=w.linkTypeProps)||void 0===O?void 0:O[$.id.split(".").join("_")];if(x){var C=__assign(__assign({},$.convertModelToLink(x)),{options:w.options?Object.keys(w.options).filter((function(w){return $.supportedLinkOptions.includes(w)})).reduce((function(S,O){return S[O]=w.options[O],S}),{}):{}});W(C),he(!1)}}else le&&(re(),he(!1))}),[S,le]);return(0,N.useKey)("Escape",x),ce&&O?C.createElement(J.Modal,{renderTitle:function renderTitle(){return C.createElement("div",null,w("Sitegeist.Archaeopteryx:Main:dialog.title"))},renderBody:function renderBody(){return C.createElement(j.Form,{onSubmit:ye},(function(S){var O=S.handleSubmit,$=S.valid,j=S.dirty;S.values;return C.createElement(R.ErrorBoundary,null,C.createElement(J.Form,{renderBody:function renderBody(){return null===se||le?C.createElement(oe,{valid:$,onDelete:function onDelete(){return he(!0)}}):C.createElement(ue,{value:se,onDelete:function onDelete(){return he(!0)}})},renderActions:function renderActions(){return C.createElement(C.Fragment,null,C.createElement(k.Button,{onClick:x},w("Sitegeist.Archaeopteryx:Main:dialog.action.cancel")),$&&j||!le?C.createElement(k.Button,{style:"success",type:"submit",disabled:!$||!j},w("Sitegeist.Archaeopteryx:Main:dialog.action.apply")):C.createElement(k.Button,{style:"success",type:"button",onClick:re},w("Sitegeist.Archaeopteryx:Main:dialog.action.apply")))},onSubmit:O}))}))}}):(le&&he(!1),null)};var oe=function DialogWithEmptyValue(w){var S,O=(0,j.useForm)(),$=(0,G.useEditorState)(),x=$.enabledLinkOptions,N=$.editorOptions,k=(0,G.useSortedAndFilteredLinkTypes)();return C.createElement(W.Field,{name:"linkTypeId",initialValue:null===(S=k[0])||void 0===S?void 0:S.id},(function(S){var $=S.input;return C.createElement(J.Tabs,{lazy:!0,from:k,activeItemKey:$.value,getKey:function getKey(w){return w.id},renderHeader:function renderHeader(w){var S,O,$=w.id,x=w.TabHeader;return C.createElement(x,{options:null!==(O=null===(S=N.linkTypes)||void 0===S?void 0:S[$])&&void 0!==O?O:{}})},renderPanel:function renderPanel(S){var $,j,k,I,W=S.Preview,G=null===($=O.getState().values.linkTypeProps)||void 0===$?void 0:$[S.id.split(".").join("_")];return C.createElement(J.Layout.Stack,null,w.valid&&G?C.createElement(J.Deletable,{onDelete:function onDelete(){w.onDelete(),O.change("linkTypeProps",null)}},C.createElement(R.ErrorBoundary,null,C.createElement(W,{model:null===(j=O.getState().values.linkTypeProps)||void 0===j?void 0:j[S.id.split(".").join("_")],options:null!==(I=null===(k=N.linkTypes)||void 0===k?void 0:k[S.id])&&void 0!==I?I:{},link:{href:""}}))):null,C.createElement("div",{style:{overflow:"auto"}},C.createElement(re.LinkEditor,{key:S.id,link:null,linkType:S}),x.length&&S.supportedLinkOptions.length?C.createElement(ie.Settings,{enabledLinkOptions:x.filter((function(w){return S.supportedLinkOptions.includes(w)}))}):null))},onSwitchTab:$.onChange})}))},ue=function DialogWithValue(w){var S,O,$,x=(0,j.useForm)(),N=(0,G.useEditorState)(),k=N.enabledLinkOptions,I=N.editorOptions,oe=(0,G.useLinkTypeForHref)(w.value.href),ue=oe.useResolvedModel(w.value).result,ce=oe.Preview,se=x.getState(),de=null!==(O=se.valid?null===(S=se.values.linkTypeProps)||void 0===S?void 0:S[oe.id.split(".").join("_")]:ue)&&void 0!==O?O:ue,le=(0,G.useSortedAndFilteredLinkTypes)();return C.createElement(W.Field,{name:"linkTypeId",initialValue:null===($=le[0])||void 0===$?void 0:$.id},(function(S){var O=S.input;return C.createElement(J.Tabs,{lazy:!0,from:le,activeItemKey:O.value||oe.id,getKey:function getKey(w){return w.id},renderHeader:function renderHeader(w){var S,O,$=w.id,x=w.TabHeader;return C.createElement(x,{options:null!==(O=null===(S=I.linkTypes)||void 0===S?void 0:S[$])&&void 0!==O?O:{}})},renderPanel:function renderPanel(S){var O,$,j,N=null===(O=x.getState().values.linkTypeProps)||void 0===O?void 0:O[S.id.split(".").join("_")],W=S.Preview,G=N;return(!N||"Sitegeist.Archaeopteryx:Web"===S.id&&!(null==N?void 0:N.urlWithoutProtocol)||"Sitegeist.Archaeopteryx:PhoneNumber"===S.id&&!(null==N?void 0:N.phoneNumber)||"Sitegeist.Archaeopteryx:CustomLink"===S.id&&!(null==N?void 0:N.CustomLink))&&(W=ce,G=de),C.createElement(J.Layout.Stack,null,G?C.createElement(J.Deletable,{onDelete:function onDelete(){w.onDelete(),x.change("linkTypeProps",null)}},C.createElement(R.ErrorBoundary,null,C.createElement(W,{model:G,options:null!==(j=null===($=I.linkTypes)||void 0===$?void 0:$[S.id])&&void 0!==j?j:{},link:w.value}))):null,C.createElement(re.LinkEditor,{key:S.id,link:S.isSuitableFor(w.value)?w.value:null,linkType:S}),k.length&&S.supportedLinkOptions.length?C.createElement(ie.Settings,{initialValue:w.value.options,enabledLinkOptions:k.filter((function(w){return S.supportedLinkOptions.includes(w)}))}):null)},onSwitchTab:O.onChange})}))}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.LinkEditor=void 0;var C=__importStar(O(0)),j=O(79),N=O(43),k=O(30);S.LinkEditor=function LinkEditor(w){return C.createElement(j.ErrorBoundary,null,null===w.link?C.createElement(I,{linkType:w.linkType}):C.createElement(R,{link:w.link,linkType:w.linkType}))};var I=function LinkEditorWithoutValue(w){var S,O,$=(0,k.useEditorState)().editorOptions,x=w.linkType.Editor,j="linkTypeProps.".concat(w.linkType.id.split(".").join("_"));return C.createElement(N.FieldGroup,{prefix:j},C.createElement(x,{model:null,options:null!==(O=null===(S=$.linkTypes)||void 0===S?void 0:S[w.linkType.id])&&void 0!==O?O:{},link:null}))},R=function LinkEditorWithValue(w){var S,O,$,x,j,I=(0,k.useEditorState)().editorOptions,R=w.linkType.useResolvedModel(w.link),W=R.busy,G=R.error,J=function useLastNonNull(w){var S=C.useRef(w);return null!==w&&(S.current=w),S.current}(R.result),re=w.linkType,ie=re.Editor,oe=re.LoadingEditor;if(G)throw G;return W&&!J?C.createElement(oe,{link:null!==(S=w.link)&&void 0!==S?S:void 0,options:null!==($=null===(O=I.linkTypes)||void 0===O?void 0:O[w.linkType.id])&&void 0!==$?$:{}}):C.createElement(N.FieldGroup,{prefix:"linkTypeProps.".concat(w.linkType.id.split(".").join("_"))},C.createElement(ie,{model:J,options:null!==(j=null===(x=I.linkTypes)||void 0===x?void 0:x[w.linkType.id])&&void 0!==j?j:{},link:w.link}))}},function(w,S,O){"use strict";var __assign=function(){return(__assign=Object.assign||function(w){for(var S,O=1,$=arguments.length;O<$;O++)for(var x in S=arguments[O])Object.prototype.hasOwnProperty.call(S,x)&&(w[x]=S[x]);return w}).apply(this,arguments)},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.Settings=void 0;var C=__importStar(O(0)),j=O(70),N=O(17),k=O(38),I=O(12);S.Settings=function Settings(w){var S,O,$,x,R=(0,I.useI18n)();return C.createElement(k.Layout.Stack,null,w.enabledLinkOptions.includes("anchor")||w.enabledLinkOptions.includes("title")?C.createElement(k.Layout.Columns,null,w.enabledLinkOptions.includes("anchor")?C.createElement(j.Field,{name:"options.anchor",initialValue:null===(S=w.initialValue)||void 0===S?void 0:S.anchor},(function(w){var S=w.input;return C.createElement("label",null,R("Sitegeist.Archaeopteryx:Main:options.label.anchor"),":",C.createElement(N.TextInput,__assign({type:"text"},S)))})):null,w.enabledLinkOptions.includes("title")?C.createElement(j.Field,{name:"options.title",initialValue:null===(O=w.initialValue)||void 0===O?void 0:O.title},(function(w){var S=w.input;return C.createElement("label",null,R("Sitegeist.Archaeopteryx:Main:options.label.title"),":",C.createElement(N.TextInput,__assign({type:"text"},S)))})):null):null,w.enabledLinkOptions.includes("targetBlank")||w.enabledLinkOptions.includes("relNofollow")?C.createElement(k.Layout.Columns,null,w.enabledLinkOptions.includes("targetBlank")?C.createElement(j.Field,{type:"checkbox",name:"options.targetBlank",initialValue:Boolean(null===($=w.initialValue)||void 0===$?void 0:$.targetBlank)},(function(w){var S=w.input;return C.createElement("label",null,C.createElement(N.CheckBox,{onChange:S.onChange,isChecked:S.checked}),R("Sitegeist.Archaeopteryx:Main:options.label.targetBlank"))})):null,w.enabledLinkOptions.includes("relNofollow")?C.createElement(j.Field,{type:"checkbox",name:"options.relNoFollow",initialValue:Boolean(null===(x=w.initialValue)||void 0===x?void 0:x.relNoFollow)},(function(w){var S=w.input;return C.createElement("label",null,C.createElement(N.CheckBox,{onChange:S.onChange,isChecked:S.checked}),R("Sitegeist.Archaeopteryx:Main:options.label.relNofollow"))})):null):null)}},function(w,S,O){"use strict";var $=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S};Object.defineProperty(S,"__esModule",{value:!0}),S.registerInspectorEditor=void 0;var C=__importStar(O(0)),j=O(12),N=O(66),k=O(284);S.registerInspectorEditor=function registerInspectorEditor(w,S){var O=w.globalRegistry.get("inspector");if(!O)return console.warn("[Sitegeist.Archaeopteryx]: Could not find inspector registry."),void console.warn("[Sitegeist.Archaeopteryx]: Skipping registration of InspectorEditor...");var $=O.get("editors");if(!$)return console.warn("[Sitegeist.Archaeopteryx]: Could not find inspector editors registry."),void console.warn("[Sitegeist.Archaeopteryx]: Skipping registration of InspectorEditor...");$.set("Sitegeist.Archaeopteryx/Inspector/Editors/LinkEditor",{component:function component(O){return C.createElement(j.NeosContext.Provider,{value:w},C.createElement(N.EditorContext.Provider,{value:S},C.createElement(k.InspectorEditor,O)))}})}},function(w,S,O){"use strict";var __makeTemplateObject=function(w,S){return Object.defineProperty?Object.defineProperty(w,"raw",{value:S}):w.raw=S,w},$=Object.create?function(w,S,O,$){void 0===$&&($=O);var x=Object.getOwnPropertyDescriptor(S,O);x&&!("get"in x?!S.__esModule:x.writable||x.configurable)||(x={enumerable:!0,get:function get(){return S[O]}}),Object.defineProperty(w,$,x)}:function(w,S,O,$){void 0===$&&($=O),w[$]=S[O]},x=Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S},__importStar=function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var O in w)"default"!==O&&Object.prototype.hasOwnProperty.call(w,O)&&$(S,w,O);return x(S,w),S},__awaiter=function(w,S,O,$){return new(O||(O=Promise))((function(x,C){function fulfilled(w){try{step($.next(w))}catch(w){C(w)}}function rejected(w){try{step($.throw(w))}catch(w){C(w)}}function step(w){w.done?x(w.value):function adopt(w){return w instanceof O?w:new O((function(S){S(w)}))}(w.value).then(fulfilled,rejected)}step(($=$.apply(w,S||[])).next())}))},__generator=function(w,S){var O,$,x,C,j={label:0,sent:function sent(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return C={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function verb(N){return function(k){return function step(N){if(O)throw new TypeError("Generator is already executing.");for(;C&&(C=0,N[0]&&(j=0)),j;)try{if(O=1,$&&(x=2&N[0]?$.return:N[0]?$.throw||((x=$.return)&&x.call($),0):$.next)&&!(x=x.call($,N[1])).done)return x;switch($=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,$=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(!(x=j.trys,(x=x.length>0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0&&x[x.length-1])||6!==N[0]&&2!==N[0])){j=0;continue}if(3===N[0]&&(!x||N[1]>x[0]&&N[1]0)&&!($=C.next()).done;)j.push($.value)}catch(w){x={error:w}}finally{try{$&&!$.done&&(O=C.return)&&O.call(C)}finally{if(x)throw x.error}}return j};Object.defineProperty(S,"__esModule",{value:!0}),S.LinkButton=void 0;var C=__importStar(O(0)),j=O(17),N=O(66),k=O(12);S.LinkButton=function LinkButton(w){var S,O,$,x,I,R,W,G,J=(0,k.useI18n)(),re=(0,N.useEditorTransactions)(),ie=__assign(__assign({},null===(O=null===(S=w.inlineEditorOptions)||void 0===S?void 0:S.linking)||void 0===O?void 0:O["Sitegeist.Archaeopteryx"]),{linkTypes:__assign({},null===(I=null===(x=null===($=w.inlineEditorOptions)||void 0===$?void 0:$.linking)||void 0===x?void 0:x["Sitegeist.Archaeopteryx"])||void 0===I?void 0:I.linkTypes)});(null===(W=null===(R=w.inlineEditorOptions)||void 0===R?void 0:R.linking)||void 0===W?void 0:W.startingPoint)&&(ie.linkTypes["Sitegeist.Archaeopteryx:Node"]=__assign(__assign({},ie.linkTypes["Sitegeist.Archaeopteryx:Node"]),{startingPoint:null!==(G=ie.linkTypes["Sitegeist.Archaeopteryx:Node"].startingPoint)&&void 0!==G?G:w.inlineEditorOptions.linking.startingPoint}));var oe=C.useCallback((function(){return __awaiter(void 0,void 0,void 0,(function(){var S,O,$,x,C,j,N,k,I,R;return __generator(this,(function(W){switch(W.label){case 0:return S=function(){if(w.formattingUnderCursor.link){var S=__read(w.formattingUnderCursor.link.split("#"),2);return{href:S[0],options:{anchor:S[1],title:w.formattingUnderCursor.linkTitle,targetBlank:w.formattingUnderCursor.linkTargetBlank,relNofollow:w.formattingUnderCursor.linkRelNofollow}}}return null}(),O=function(){var S,O,$,x,C,j,N,k,I=[];return(null===(O=null===(S=w.inlineEditorOptions)||void 0===S?void 0:S.linking)||void 0===O?void 0:O.anchor)&&I.push("anchor"),(null===(x=null===($=w.inlineEditorOptions)||void 0===$?void 0:$.linking)||void 0===x?void 0:x.title)&&I.push("title"),(null===(j=null===(C=w.inlineEditorOptions)||void 0===C?void 0:C.linking)||void 0===j?void 0:j.relNofollow)&&I.push("relNofollow"),(null===(k=null===(N=w.inlineEditorOptions)||void 0===N?void 0:N.linking)||void 0===k?void 0:k.targetBlank)&&I.push("targetBlank"),I}(),[4,re.editLink(S,O,ie)];case 1:return($=W.sent()).change?null===$.value?(w.executeCommand("linkTitle",!1,!1),w.executeCommand("linkRelNofollow",!1,!1),w.executeCommand("linkTargetBlank",!1,!1),w.executeCommand("unlink",void 0,!0)):(w.executeCommand("linkTitle",(null===(x=$.value.options)||void 0===x?void 0:x.title)||!1,!1),w.executeCommand("linkTargetBlank",null!==(j=null===(C=$.value.options)||void 0===C?void 0:C.targetBlank)&&void 0!==j&&j,!1),w.executeCommand("linkRelNofollow",null!==(k=null===(N=$.value.options)||void 0===N?void 0:N.relNofollow)&&void 0!==k&&k,!1),(null===(I=$.value.options)||void 0===I?void 0:I.anchor)?w.executeCommand("link","".concat($.value.href,"#").concat(null===(R=$.value.options)||void 0===R?void 0:R.anchor),!0):w.executeCommand("link",$.value.href,!0)):(w.executeCommand("undo",void 0,!0),w.executeCommand("redo",void 0,!0)),[2]}}))}))}),[w.executeCommand,w.formattingUnderCursor.link,re,ie]);return C.createElement(j.IconButton,{title:J("Sitegeist.Archaeopteryx:Main:linkButton.title"),isActive:Boolean(w.formattingUnderCursor.link),icon:Boolean(w.formattingUnderCursor.link)?"unlink":"link",onClick:oe})}},function(w,S,O){"use strict";O.r(S),O.d(S,"audit",(function(){return audit})),O.d(S,"auditTime",(function(){return auditTime})),O.d(S,"buffer",(function(){return buffer_buffer})),O.d(S,"bufferCount",(function(){return bufferCount})),O.d(S,"bufferTime",(function(){return bufferTime})),O.d(S,"bufferToggle",(function(){return bufferToggle})),O.d(S,"bufferWhen",(function(){return bufferWhen})),O.d(S,"catchError",(function(){return catchError})),O.d(S,"combineAll",(function(){return combineAll})),O.d(S,"combineLatest",(function(){return combineLatest_combineLatest})),O.d(S,"concat",(function(){return concat_concat})),O.d(S,"concatAll",(function(){return Re.a})),O.d(S,"concatMap",(function(){return concatMap})),O.d(S,"concatMapTo",(function(){return concatMapTo})),O.d(S,"count",(function(){return count_count})),O.d(S,"debounce",(function(){return debounce})),O.d(S,"debounceTime",(function(){return debounceTime})),O.d(S,"defaultIfEmpty",(function(){return defaultIfEmpty})),O.d(S,"delay",(function(){return delay_delay})),O.d(S,"delayWhen",(function(){return delayWhen})),O.d(S,"dematerialize",(function(){return dematerialize})),O.d(S,"distinct",(function(){return distinct})),O.d(S,"distinctUntilChanged",(function(){return distinctUntilChanged})),O.d(S,"distinctUntilKeyChanged",(function(){return distinctUntilKeyChanged})),O.d(S,"elementAt",(function(){return elementAt})),O.d(S,"endWith",(function(){return endWith})),O.d(S,"every",(function(){return every})),O.d(S,"exhaust",(function(){return exhaust})),O.d(S,"exhaustMap",(function(){return exhaustMap})),O.d(S,"expand",(function(){return expand})),O.d(S,"filter",(function(){return mt.a})),O.d(S,"finalize",(function(){return finalize})),O.d(S,"find",(function(){return find})),O.d(S,"findIndex",(function(){return findIndex})),O.d(S,"first",(function(){return first})),O.d(S,"groupBy",(function(){return Bt.b})),O.d(S,"ignoreElements",(function(){return ignoreElements})),O.d(S,"isEmpty",(function(){return isEmpty})),O.d(S,"last",(function(){return last})),O.d(S,"map",(function(){return Tt.a})),O.d(S,"mapTo",(function(){return mapTo})),O.d(S,"materialize",(function(){return materialize})),O.d(S,"max",(function(){return max_max})),O.d(S,"merge",(function(){return merge_merge})),O.d(S,"mergeAll",(function(){return tr.a})),O.d(S,"mergeMap",(function(){return De.b})),O.d(S,"flatMap",(function(){return De.a})),O.d(S,"mergeMapTo",(function(){return mergeMapTo})),O.d(S,"mergeScan",(function(){return mergeScan})),O.d(S,"min",(function(){return min_min})),O.d(S,"multicast",(function(){return multicast})),O.d(S,"observeOn",(function(){return ar.b})),O.d(S,"onErrorResumeNext",(function(){return onErrorResumeNext})),O.d(S,"pairwise",(function(){return pairwise})),O.d(S,"partition",(function(){return partition})),O.d(S,"pluck",(function(){return pluck})),O.d(S,"publish",(function(){return publish})),O.d(S,"publishBehavior",(function(){return publishBehavior})),O.d(S,"publishLast",(function(){return publishLast})),O.d(S,"publishReplay",(function(){return publishReplay})),O.d(S,"race",(function(){return race_race})),O.d(S,"reduce",(function(){return reduce})),O.d(S,"repeat",(function(){return repeat})),O.d(S,"repeatWhen",(function(){return repeatWhen})),O.d(S,"retry",(function(){return retry})),O.d(S,"retryWhen",(function(){return retryWhen})),O.d(S,"refCount",(function(){return xr.a})),O.d(S,"sample",(function(){return sample})),O.d(S,"sampleTime",(function(){return sampleTime})),O.d(S,"scan",(function(){return scan})),O.d(S,"sequenceEqual",(function(){return sequenceEqual})),O.d(S,"share",(function(){return share})),O.d(S,"shareReplay",(function(){return shareReplay})),O.d(S,"single",(function(){return single})),O.d(S,"skip",(function(){return skip})),O.d(S,"skipLast",(function(){return skipLast})),O.d(S,"skipUntil",(function(){return skipUntil})),O.d(S,"skipWhile",(function(){return skipWhile})),O.d(S,"startWith",(function(){return startWith})),O.d(S,"subscribeOn",(function(){return subscribeOn})),O.d(S,"switchAll",(function(){return switchAll})),O.d(S,"switchMap",(function(){return switchMap})),O.d(S,"switchMapTo",(function(){return switchMapTo})),O.d(S,"take",(function(){return take})),O.d(S,"takeLast",(function(){return takeLast})),O.d(S,"takeUntil",(function(){return takeUntil})),O.d(S,"takeWhile",(function(){return takeWhile})),O.d(S,"tap",(function(){return tap})),O.d(S,"throttle",(function(){return throttle})),O.d(S,"throttleTime",(function(){return throttleTime})),O.d(S,"throwIfEmpty",(function(){return throwIfEmpty})),O.d(S,"timeInterval",(function(){return timeInterval})),O.d(S,"timeout",(function(){return timeout})),O.d(S,"timeoutWith",(function(){return timeoutWith})),O.d(S,"timestamp",(function(){return timestamp})),O.d(S,"toArray",(function(){return toArray})),O.d(S,"window",(function(){return window_window})),O.d(S,"windowCount",(function(){return windowCount})),O.d(S,"windowTime",(function(){return windowTime_windowTime})),O.d(S,"windowToggle",(function(){return windowToggle})),O.d(S,"windowWhen",(function(){return windowWhen})),O.d(S,"withLatestFrom",(function(){return withLatestFrom})),O.d(S,"zip",(function(){return zip_zip})),O.d(S,"zipAll",(function(){return zipAll}));var $=O(1),x=O(3);function audit(w){return function auditOperatorFunction(S){return S.lift(new C(w))}}var C=function(){function AuditOperator(w){this.durationSelector=w}return AuditOperator.prototype.call=function(w,S){return S.subscribe(new j(w,this.durationSelector))},AuditOperator}(),j=function(w){function AuditSubscriber(S,O){var $=w.call(this,S)||this;return $.durationSelector=O,$.hasValue=!1,$}return $.__extends(AuditSubscriber,w),AuditSubscriber.prototype._next=function(w){if(this.value=w,this.hasValue=!0,!this.throttled){var S=void 0;try{S=(0,this.durationSelector)(w)}catch(w){return this.destination.error(w)}var O=Object(x.c)(S,new x.a(this));!O||O.closed?this.clearThrottle():this.add(this.throttled=O)}},AuditSubscriber.prototype.clearThrottle=function(){var w=this.value,S=this.hasValue,O=this.throttled;O&&(this.remove(O),this.throttled=void 0,O.unsubscribe()),S&&(this.value=void 0,this.hasValue=!1,this.destination.next(w))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(x.b),N=O(8),k=O(87);function auditTime(w,S){return void 0===S&&(S=N.a),audit((function(){return Object(k.a)(w,S)}))}function buffer_buffer(w){return function bufferOperatorFunction(S){return S.lift(new I(w))}}var I=function(){function BufferOperator(w){this.closingNotifier=w}return BufferOperator.prototype.call=function(w,S){return S.subscribe(new R(w,this.closingNotifier))},BufferOperator}(),R=function(w){function BufferSubscriber(S,O){var $=w.call(this,S)||this;return $.buffer=[],$.add(Object(x.c)(O,new x.a($))),$}return $.__extends(BufferSubscriber,w),BufferSubscriber.prototype._next=function(w){this.buffer.push(w)},BufferSubscriber.prototype.notifyNext=function(){var w=this.buffer;this.buffer=[],this.destination.next(w)},BufferSubscriber}(x.b),W=O(2);function bufferCount(w,S){return void 0===S&&(S=null),function bufferCountOperatorFunction(O){return O.lift(new G(w,S))}}var G=function(){function BufferCountOperator(w,S){this.bufferSize=w,this.startBufferEvery=S,this.subscriberClass=S&&w!==S?re:J}return BufferCountOperator.prototype.call=function(w,S){return S.subscribe(new this.subscriberClass(w,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),J=function(w){function BufferCountSubscriber(S,O){var $=w.call(this,S)||this;return $.bufferSize=O,$.buffer=[],$}return $.__extends(BufferCountSubscriber,w),BufferCountSubscriber.prototype._next=function(w){var S=this.buffer;S.push(w),S.length==this.bufferSize&&(this.destination.next(S),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var S=this.buffer;S.length>0&&this.destination.next(S),w.prototype._complete.call(this)},BufferCountSubscriber}(W.a),re=function(w){function BufferSkipCountSubscriber(S,O,$){var x=w.call(this,S)||this;return x.bufferSize=O,x.startBufferEvery=$,x.buffers=[],x.count=0,x}return $.__extends(BufferSkipCountSubscriber,w),BufferSkipCountSubscriber.prototype._next=function(w){var S=this.bufferSize,O=this.startBufferEvery,$=this.buffers,x=this.count;this.count++,x%O==0&&$.push([]);for(var C=$.length;C--;){var j=$[C];j.push(w),j.length===S&&($.splice(C,1),this.destination.next(j))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var S=this.buffers,O=this.destination;S.length>0;){var $=S.shift();$.length>0&&O.next($)}w.prototype._complete.call(this)},BufferSkipCountSubscriber}(W.a),ie=O(11);function bufferTime(w){var S=arguments.length,O=N.a;Object(ie.a)(arguments[arguments.length-1])&&(O=arguments[arguments.length-1],S--);var $=null;S>=2&&($=arguments[1]);var x=Number.POSITIVE_INFINITY;return S>=3&&(x=arguments[2]),function bufferTimeOperatorFunction(S){return S.lift(new oe(w,$,x,O))}}var oe=function(){function BufferTimeOperator(w,S,O,$){this.bufferTimeSpan=w,this.bufferCreationInterval=S,this.maxBufferSize=O,this.scheduler=$}return BufferTimeOperator.prototype.call=function(w,S){return S.subscribe(new ce(w,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),ue=function(){return function Context(){this.buffer=[]}}(),ce=function(w){function BufferTimeSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;j.bufferTimeSpan=O,j.bufferCreationInterval=$,j.maxBufferSize=x,j.scheduler=C,j.contexts=[];var N=j.openContext();if(j.timespanOnly=null==$||$<0,j.timespanOnly){var k={subscriber:j,context:N,bufferTimeSpan:O};j.add(N.closeAction=C.schedule(dispatchBufferTimeSpanOnly,O,k))}else{var I={subscriber:j,context:N},R={bufferTimeSpan:O,bufferCreationInterval:$,subscriber:j,scheduler:C};j.add(N.closeAction=C.schedule(dispatchBufferClose,O,I)),j.add(C.schedule(dispatchBufferCreation,$,R))}return j}return $.__extends(BufferTimeSubscriber,w),BufferTimeSubscriber.prototype._next=function(w){for(var S,O=this.contexts,$=O.length,x=0;x<$;x++){var C=O[x],j=C.buffer;j.push(w),j.length==this.maxBufferSize&&(S=C)}S&&this.onBufferFull(S)},BufferTimeSubscriber.prototype._error=function(S){this.contexts.length=0,w.prototype._error.call(this,S)},BufferTimeSubscriber.prototype._complete=function(){for(var S=this.contexts,O=this.destination;S.length>0;){var $=S.shift();O.next($.buffer)}w.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(w){this.closeContext(w);var S=w.closeAction;if(S.unsubscribe(),this.remove(S),!this.closed&&this.timespanOnly){w=this.openContext();var O=this.bufferTimeSpan,$={subscriber:this,context:w,bufferTimeSpan:O};this.add(w.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,O,$))}},BufferTimeSubscriber.prototype.openContext=function(){var w=new ue;return this.contexts.push(w),w},BufferTimeSubscriber.prototype.closeContext=function(w){this.destination.next(w.buffer);var S=this.contexts;(S?S.indexOf(w):-1)>=0&&S.splice(S.indexOf(w),1)},BufferTimeSubscriber}(W.a);function dispatchBufferTimeSpanOnly(w){var S=w.subscriber,O=w.context;O&&S.closeContext(O),S.closed||(w.context=S.openContext(),w.context.closeAction=this.schedule(w,w.bufferTimeSpan))}function dispatchBufferCreation(w){var S=w.bufferCreationInterval,O=w.bufferTimeSpan,$=w.subscriber,x=w.scheduler,C=$.openContext();$.closed||($.add(C.closeAction=x.schedule(dispatchBufferClose,O,{subscriber:$,context:C})),this.schedule(w,S))}function dispatchBufferClose(w){var S=w.subscriber,O=w.context;S.closeContext(O)}var se=O(6),de=O(18),le=O(21);function bufferToggle(w,S){return function bufferToggleOperatorFunction(O){return O.lift(new he(w,S))}}var he=function(){function BufferToggleOperator(w,S){this.openings=w,this.closingSelector=S}return BufferToggleOperator.prototype.call=function(w,S){return S.subscribe(new ye(w,this.openings,this.closingSelector))},BufferToggleOperator}(),ye=function(w){function BufferToggleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.closingSelector=$,x.contexts=[],x.add(Object(de.a)(x,O)),x}return $.__extends(BufferToggleSubscriber,w),BufferToggleSubscriber.prototype._next=function(w){for(var S=this.contexts,O=S.length,$=0;$0;){var $=O.shift();$.subscription.unsubscribe(),$.buffer=null,$.subscription=null}this.contexts=null,w.prototype._error.call(this,S)},BufferToggleSubscriber.prototype._complete=function(){for(var S=this.contexts;S.length>0;){var O=S.shift();this.destination.next(O.buffer),O.subscription.unsubscribe(),O.buffer=null,O.subscription=null}this.contexts=null,w.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(w,S){w?this.closeBuffer(w):this.openBuffer(S)},BufferToggleSubscriber.prototype.notifyComplete=function(w){this.closeBuffer(w.context)},BufferToggleSubscriber.prototype.openBuffer=function(w){try{var S=this.closingSelector.call(this,w);S&&this.trySubscribe(S)}catch(w){this._error(w)}},BufferToggleSubscriber.prototype.closeBuffer=function(w){var S=this.contexts;if(S&&w){var O=w.buffer,$=w.subscription;this.destination.next(O),S.splice(S.indexOf(w),1),this.remove($),$.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(w){var S=this.contexts,O=new se.a,$={buffer:[],subscription:O};S.push($);var x=Object(de.a)(this,w,$);!x||x.closed?this.closeBuffer($):(x.context=$,this.add(x),O.add(x))},BufferToggleSubscriber}(le.a);function bufferWhen(w){return function(S){return S.lift(new ve(w))}}var ve=function(){function BufferWhenOperator(w){this.closingSelector=w}return BufferWhenOperator.prototype.call=function(w,S){return S.subscribe(new ge(w,this.closingSelector))},BufferWhenOperator}(),ge=function(w){function BufferWhenSubscriber(S,O){var $=w.call(this,S)||this;return $.closingSelector=O,$.subscribing=!1,$.openBuffer(),$}return $.__extends(BufferWhenSubscriber,w),BufferWhenSubscriber.prototype._next=function(w){this.buffer.push(w)},BufferWhenSubscriber.prototype._complete=function(){var S=this.buffer;S&&this.destination.next(S),w.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var w=this.closingSubscription;w&&(this.remove(w),w.unsubscribe());var S,O=this.buffer;this.buffer&&this.destination.next(O),this.buffer=[];try{S=(0,this.closingSelector)()}catch(w){return this.error(w)}w=new se.a,this.closingSubscription=w,this.add(w),this.subscribing=!0,w.add(Object(x.c)(S,new x.a(this))),this.subscribing=!1},BufferWhenSubscriber}(x.b);function catchError(w){return function catchErrorOperatorFunction(S){var O=new Se(w),$=S.lift(O);return O.caught=$}}var Se=function(){function CatchOperator(w){this.selector=w}return CatchOperator.prototype.call=function(w,S){return S.subscribe(new Pe(w,this.selector,this.caught))},CatchOperator}(),Pe=function(w){function CatchSubscriber(S,O,$){var x=w.call(this,S)||this;return x.selector=O,x.caught=$,x}return $.__extends(CatchSubscriber,w),CatchSubscriber.prototype.error=function(S){if(!this.isStopped){var O=void 0;try{O=this.selector(S,this.caught)}catch(S){return void w.prototype.error.call(this,S)}this._unsubscribeAndRecycle();var $=new x.a(this);this.add($);var C=Object(x.c)(O,$);C!==$&&this.add(C)}},CatchSubscriber}(x.b),Ce=O(58);function combineAll(w){return function(S){return S.lift(new Ce.a(w))}}var Ie=O(9),Me=O(14);function combineLatest_combineLatest(){for(var w=[],S=0;S0&&O[0].time-$.now()<=0;)O.shift().notification.observe(x);if(O.length>0){var C=Math.max(0,O[0].time-$.now());this.schedule(w,C)}else this.unsubscribe(),S.active=!1},DelaySubscriber.prototype._schedule=function(w){this.active=!0,this.destination.add(w.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:w}))},DelaySubscriber.prototype.scheduleNotification=function(w){if(!0!==this.errored){var S=this.scheduler,O=new ot(S.now()+this.delay,w);this.queue.push(O),!1===this.active&&this._schedule(S)}},DelaySubscriber.prototype._next=function(w){this.scheduleNotification(rt.a.createNext(w))},DelaySubscriber.prototype._error=function(w){this.errored=!0,this.queue=[],this.destination.error(w),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(rt.a.createComplete()),this.unsubscribe()},DelaySubscriber}(W.a),ot=function(){return function DelayMessage(w,S){this.time=w,this.notification=S}}(),at=O(4);function delayWhen(w,S){return S?function(O){return new st(O,S).lift(new ut(w))}:function(S){return S.lift(new ut(w))}}var ut=function(){function DelayWhenOperator(w){this.delayDurationSelector=w}return DelayWhenOperator.prototype.call=function(w,S){return S.subscribe(new ct(w,this.delayDurationSelector))},DelayWhenOperator}(),ct=function(w){function DelayWhenSubscriber(S,O){var $=w.call(this,S)||this;return $.delayDurationSelector=O,$.completed=!1,$.delayNotifierSubscriptions=[],$.index=0,$}return $.__extends(DelayWhenSubscriber,w),DelayWhenSubscriber.prototype.notifyNext=function(w,S,O,$,x){this.destination.next(w),this.removeSubscription(x),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(w,S){this._error(w)},DelayWhenSubscriber.prototype.notifyComplete=function(w){var S=this.removeSubscription(w);S&&this.destination.next(S),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(w){var S=this.index++;try{var O=this.delayDurationSelector(w,S);O&&this.tryDelay(O,w)}catch(w){this.destination.error(w)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(w){w.unsubscribe();var S=this.delayNotifierSubscriptions.indexOf(w);return-1!==S&&this.delayNotifierSubscriptions.splice(S,1),w.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(w,S){var O=Object(de.a)(this,w,S);O&&!O.closed&&(this.destination.add(O),this.delayNotifierSubscriptions.push(O))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(le.a),st=function(w){function SubscriptionDelayObservable(S,O){var $=w.call(this)||this;return $.source=S,$.subscriptionDelay=O,$}return $.__extends(SubscriptionDelayObservable,w),SubscriptionDelayObservable.prototype._subscribe=function(w){this.subscriptionDelay.subscribe(new dt(w,this.source))},SubscriptionDelayObservable}(at.a),dt=function(w){function SubscriptionDelaySubscriber(S,O){var $=w.call(this)||this;return $.parent=S,$.source=O,$.sourceSubscribed=!1,$}return $.__extends(SubscriptionDelaySubscriber,w),SubscriptionDelaySubscriber.prototype._next=function(w){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(w){this.unsubscribe(),this.parent.error(w)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(W.a);function dematerialize(){return function dematerializeOperatorFunction(w){return w.lift(new lt)}}var lt=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(w,S){return S.subscribe(new ft(w))},DeMaterializeOperator}(),ft=function(w){function DeMaterializeSubscriber(S){return w.call(this,S)||this}return $.__extends(DeMaterializeSubscriber,w),DeMaterializeSubscriber.prototype._next=function(w){w.observe(this.destination)},DeMaterializeSubscriber}(W.a);function distinct(w,S){return function(O){return O.lift(new pt(w,S))}}var pt=function(){function DistinctOperator(w,S){this.keySelector=w,this.flushes=S}return DistinctOperator.prototype.call=function(w,S){return S.subscribe(new ht(w,this.keySelector,this.flushes))},DistinctOperator}(),ht=function(w){function DistinctSubscriber(S,O,$){var C=w.call(this,S)||this;return C.keySelector=O,C.values=new Set,$&&C.add(Object(x.c)($,new x.a(C))),C}return $.__extends(DistinctSubscriber,w),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(w){this._error(w)},DistinctSubscriber.prototype._next=function(w){this.keySelector?this._useKeySelector(w):this._finalizeNext(w,w)},DistinctSubscriber.prototype._useKeySelector=function(w){var S,O=this.destination;try{S=this.keySelector(w)}catch(w){return void O.error(w)}this._finalizeNext(S,w)},DistinctSubscriber.prototype._finalizeNext=function(w,S){var O=this.values;O.has(w)||(O.add(w),this.destination.next(S))},DistinctSubscriber}(x.b);function distinctUntilChanged(w,S){return function(O){return O.lift(new bt(w,S))}}var bt=function(){function DistinctUntilChangedOperator(w,S){this.compare=w,this.keySelector=S}return DistinctUntilChangedOperator.prototype.call=function(w,S){return S.subscribe(new yt(w,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),yt=function(w){function DistinctUntilChangedSubscriber(S,O,$){var x=w.call(this,S)||this;return x.keySelector=$,x.hasKey=!1,"function"==typeof O&&(x.compare=O),x}return $.__extends(DistinctUntilChangedSubscriber,w),DistinctUntilChangedSubscriber.prototype.compare=function(w,S){return w===S},DistinctUntilChangedSubscriber.prototype._next=function(w){var S;try{var O=this.keySelector;S=O?O(w):w}catch(w){return this.destination.error(w)}var $=!1;if(this.hasKey)try{$=(0,this.compare)(this.key,S)}catch(w){return this.destination.error(w)}else this.hasKey=!0;$||(this.key=S,this.destination.next(w))},DistinctUntilChangedSubscriber}(W.a);function distinctUntilKeyChanged(w,S){return distinctUntilChanged((function(O,$){return S?S(O[w],$[w]):O[w]===$[w]}))}var vt=O(28),mt=O(22),gt=O(31);function throwIfEmpty(w){return void 0===w&&(w=defaultErrorFactory),function(S){return S.lift(new wt(w))}}var wt=function(){function ThrowIfEmptyOperator(w){this.errorFactory=w}return ThrowIfEmptyOperator.prototype.call=function(w,S){return S.subscribe(new St(w,this.errorFactory))},ThrowIfEmptyOperator}(),St=function(w){function ThrowIfEmptySubscriber(S,O){var $=w.call(this,S)||this;return $.errorFactory=O,$.hasValue=!1,$}return $.__extends(ThrowIfEmptySubscriber,w),ThrowIfEmptySubscriber.prototype._next=function(w){this.hasValue=!0,this.destination.next(w)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var w=void 0;try{w=this.errorFactory()}catch(S){w=S}this.destination.error(w)},ThrowIfEmptySubscriber}(W.a);function defaultErrorFactory(){return new gt.a}var _t=O(13);function take(w){return function(S){return 0===w?Object(_t.b)():S.lift(new Ot(w))}}var Ot=function(){function TakeOperator(w){if(this.total=w,this.total<0)throw new vt.a}return TakeOperator.prototype.call=function(w,S){return S.subscribe(new $t(w,this.total))},TakeOperator}(),$t=function(w){function TakeSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.count=0,$}return $.__extends(TakeSubscriber,w),TakeSubscriber.prototype._next=function(w){var S=this.total,O=++this.count;O<=S&&(this.destination.next(w),O===S&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(W.a);function elementAt(w,S){if(w<0)throw new vt.a;var O=arguments.length>=2;return function($){return $.pipe(Object(mt.a)((function(S,O){return O===w})),take(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new vt.a})))}}var xt=O(45);function endWith(){for(var w=[],S=0;S0&&this._next(w.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(x.b);function finalize(w){return function(S){return S.lift(new Mt(w))}}var Mt=function(){function FinallyOperator(w){this.callback=w}return FinallyOperator.prototype.call=function(w,S){return S.subscribe(new Ft(w,this.callback))},FinallyOperator}(),Ft=function(w){function FinallySubscriber(S,O){var $=w.call(this,S)||this;return $.add(new se.a(O)),$}return $.__extends(FinallySubscriber,w),FinallySubscriber}(W.a);function find(w,S){if("function"!=typeof w)throw new TypeError("predicate is not a function");return function(O){return O.lift(new Rt(w,O,!1,S))}}var Rt=function(){function FindValueOperator(w,S,O,$){this.predicate=w,this.source=S,this.yieldIndex=O,this.thisArg=$}return FindValueOperator.prototype.call=function(w,S){return S.subscribe(new Lt(w,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),Lt=function(w){function FindValueSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;return j.predicate=O,j.source=$,j.yieldIndex=x,j.thisArg=C,j.index=0,j}return $.__extends(FindValueSubscriber,w),FindValueSubscriber.prototype.notifyComplete=function(w){var S=this.destination;S.next(w),S.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(w){var S=this.predicate,O=this.thisArg,$=this.index++;try{S.call(O||this,w,$,this.source)&&this.notifyComplete(this.yieldIndex?$:w)}catch(w){this.destination.error(w)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(W.a);function findIndex(w,S){return function(O){return O.lift(new Rt(w,O,!0,S))}}var Dt=O(20);function first(w,S){var O=arguments.length>=2;return function($){return $.pipe(w?Object(mt.a)((function(S,O){return w(S,O,$)})):Dt.a,take(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new gt.a})))}}var Bt=O(78);function ignoreElements(){return function ignoreElementsOperatorFunction(w){return w.lift(new Wt)}}var Wt=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(w,S){return S.subscribe(new Vt(w))},IgnoreElementsOperator}(),Vt=function(w){function IgnoreElementsSubscriber(){return null!==w&&w.apply(this,arguments)||this}return $.__extends(IgnoreElementsSubscriber,w),IgnoreElementsSubscriber.prototype._next=function(w){},IgnoreElementsSubscriber}(W.a);function isEmpty(){return function(w){return w.lift(new Ut)}}var Ut=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(w,S){return S.subscribe(new zt(w))},IsEmptyOperator}(),zt=function(w){function IsEmptySubscriber(S){return w.call(this,S)||this}return $.__extends(IsEmptySubscriber,w),IsEmptySubscriber.prototype.notifyComplete=function(w){var S=this.destination;S.next(w),S.complete()},IsEmptySubscriber.prototype._next=function(w){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(W.a);function takeLast(w){return function takeLastOperatorFunction(S){return 0===w?Object(_t.b)():S.lift(new Gt(w))}}var Gt=function(){function TakeLastOperator(w){if(this.total=w,this.total<0)throw new vt.a}return TakeLastOperator.prototype.call=function(w,S){return S.subscribe(new Yt(w,this.total))},TakeLastOperator}(),Yt=function(w){function TakeLastSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.ring=new Array,$.count=0,$}return $.__extends(TakeLastSubscriber,w),TakeLastSubscriber.prototype._next=function(w){var S=this.ring,O=this.total,$=this.count++;S.length0)for(var O=this.count>=this.total?this.total:this.count,$=this.ring,x=0;x=2;return function($){return $.pipe(w?Object(mt.a)((function(S,O){return w(S,O,$)})):Dt.a,takeLast(1),O?defaultIfEmpty(S):throwIfEmpty((function(){return new gt.a})))}}function mapTo(w){return function(S){return S.lift(new qt(w))}}var qt=function(){function MapToOperator(w){this.value=w}return MapToOperator.prototype.call=function(w,S){return S.subscribe(new Ht(w,this.value))},MapToOperator}(),Ht=function(w){function MapToSubscriber(S,O){var $=w.call(this,S)||this;return $.value=O,$}return $.__extends(MapToSubscriber,w),MapToSubscriber.prototype._next=function(w){this.destination.next(this.value)},MapToSubscriber}(W.a);function materialize(){return function materializeOperatorFunction(w){return w.lift(new Kt)}}var Kt=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(w,S){return S.subscribe(new Xt(w))},MaterializeOperator}(),Xt=function(w){function MaterializeSubscriber(S){return w.call(this,S)||this}return $.__extends(MaterializeSubscriber,w),MaterializeSubscriber.prototype._next=function(w){this.destination.next(rt.a.createNext(w))},MaterializeSubscriber.prototype._error=function(w){var S=this.destination;S.next(rt.a.createError(w)),S.complete()},MaterializeSubscriber.prototype._complete=function(){var w=this.destination;w.next(rt.a.createComplete()),w.complete()},MaterializeSubscriber}(W.a);function scan(w,S){var O=!1;return arguments.length>=2&&(O=!0),function scanOperatorFunction($){return $.lift(new Zt(w,S,O))}}var Zt=function(){function ScanOperator(w,S,O){void 0===O&&(O=!1),this.accumulator=w,this.seed=S,this.hasSeed=O}return ScanOperator.prototype.call=function(w,S){return S.subscribe(new Jt(w,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),Jt=function(w){function ScanSubscriber(S,O,$,x){var C=w.call(this,S)||this;return C.accumulator=O,C._seed=$,C.hasSeed=x,C.index=0,C}return $.__extends(ScanSubscriber,w),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(w){this.hasSeed=!0,this._seed=w},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(w){if(this.hasSeed)return this._tryNext(w);this.seed=w,this.destination.next(w)},ScanSubscriber.prototype._tryNext=function(w){var S,O=this.index++;try{S=this.accumulator(this.seed,w,O)}catch(w){this.destination.error(w)}this.seed=S,this.destination.next(S)},ScanSubscriber}(W.a),Qt=O(48);function reduce(w,S){return arguments.length>=2?function reduceOperatorFunctionWithSeed(O){return Object(Qt.a)(scan(w,S),takeLast(1),defaultIfEmpty(S))(O)}:function reduceOperatorFunction(S){return Object(Qt.a)(scan((function(S,O,$){return w(S,O,$+1)})),takeLast(1))(S)}}function max_max(w){return reduce("function"==typeof w?function(S,O){return w(S,O)>0?S:O}:function(w,S){return w>S?w:S})}var er=O(85);function merge_merge(){for(var w=[],S=0;S0?this._next(w.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(x.b);function min_min(w){return reduce("function"==typeof w?function(S,O){return w(S,O)<0?S:O}:function(w,S){return w-1&&(this.count=O-1),S.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(W.a);function repeatWhen(w){return function(S){return S.lift(new gr(w))}}var gr=function(){function RepeatWhenOperator(w){this.notifier=w}return RepeatWhenOperator.prototype.call=function(w,S){return S.subscribe(new wr(w,this.notifier,S))},RepeatWhenOperator}(),wr=function(w){function RepeatWhenSubscriber(S,O,$){var x=w.call(this,S)||this;return x.notifier=O,x.source=$,x.sourceIsBeingSubscribedTo=!0,x}return $.__extends(RepeatWhenSubscriber,w),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return w.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return w.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var w=this.notifications,S=this.retriesSubscription;w&&(w.unsubscribe(),this.notifications=void 0),S&&(S.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var S=this._unsubscribe;return this._unsubscribe=null,w.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=S,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){var S;this.notifications=new fr.a;try{S=(0,this.notifier)(this.notifications)}catch(S){return w.prototype.complete.call(this)}this.retries=S,this.retriesSubscription=Object(x.c)(S,new x.a(this))},RepeatWhenSubscriber}(x.b);function retry(w){return void 0===w&&(w=-1),function(S){return S.lift(new Sr(w,S))}}var Sr=function(){function RetryOperator(w,S){this.count=w,this.source=S}return RetryOperator.prototype.call=function(w,S){return S.subscribe(new _r(w,this.count,this.source))},RetryOperator}(),_r=function(w){function RetrySubscriber(S,O,$){var x=w.call(this,S)||this;return x.count=O,x.source=$,x}return $.__extends(RetrySubscriber,w),RetrySubscriber.prototype.error=function(S){if(!this.isStopped){var O=this.source,$=this.count;if(0===$)return w.prototype.error.call(this,S);$>-1&&(this.count=$-1),O.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(W.a);function retryWhen(w){return function(S){return S.lift(new Or(w,S))}}var Or=function(){function RetryWhenOperator(w,S){this.notifier=w,this.source=S}return RetryWhenOperator.prototype.call=function(w,S){return S.subscribe(new $r(w,this.notifier,this.source))},RetryWhenOperator}(),$r=function(w){function RetryWhenSubscriber(S,O,$){var x=w.call(this,S)||this;return x.notifier=O,x.source=$,x}return $.__extends(RetryWhenSubscriber,w),RetryWhenSubscriber.prototype.error=function(S){if(!this.isStopped){var O=this.errors,$=this.retries,C=this.retriesSubscription;if($)this.errors=void 0,this.retriesSubscription=void 0;else{O=new fr.a;try{$=(0,this.notifier)(O)}catch(S){return w.prototype.error.call(this,S)}C=Object(x.c)($,new x.a(this))}this._unsubscribeAndRecycle(),this.errors=O,this.retries=$,this.retriesSubscription=C,O.next(S)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var w=this.errors,S=this.retriesSubscription;w&&(w.unsubscribe(),this.errors=void 0),S&&(S.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var w=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=w,this.source.subscribe(this)},RetryWhenSubscriber}(x.b),xr=O(55);function sample(w){return function(S){return S.lift(new Er(w))}}var Er=function(){function SampleOperator(w){this.notifier=w}return SampleOperator.prototype.call=function(w,S){var O=new Pr(w),$=S.subscribe(O);return $.add(Object(x.c)(this.notifier,new x.a(O))),$},SampleOperator}(),Pr=function(w){function SampleSubscriber(){var S=null!==w&&w.apply(this,arguments)||this;return S.hasValue=!1,S}return $.__extends(SampleSubscriber,w),SampleSubscriber.prototype._next=function(w){this.value=w,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(x.b);function sampleTime(w,S){return void 0===S&&(S=N.a),function(O){return O.lift(new Cr(w,S))}}var Cr=function(){function SampleTimeOperator(w,S){this.period=w,this.scheduler=S}return SampleTimeOperator.prototype.call=function(w,S){return S.subscribe(new jr(w,this.period,this.scheduler))},SampleTimeOperator}(),jr=function(w){function SampleTimeSubscriber(S,O,$){var x=w.call(this,S)||this;return x.period=O,x.scheduler=$,x.hasValue=!1,x.add($.schedule(dispatchNotification,O,{subscriber:x,period:O})),x}return $.__extends(SampleTimeSubscriber,w),SampleTimeSubscriber.prototype._next=function(w){this.lastValue=w,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(W.a);function dispatchNotification(w){var S=w.subscriber,O=w.period;S.notifyNext(),this.schedule(w,O)}function sequenceEqual(w,S){return function(O){return O.lift(new Tr(w,S))}}var Tr=function(){function SequenceEqualOperator(w,S){this.compareTo=w,this.comparator=S}return SequenceEqualOperator.prototype.call=function(w,S){return S.subscribe(new Nr(w,this.compareTo,this.comparator))},SequenceEqualOperator}(),Nr=function(w){function SequenceEqualSubscriber(S,O,$){var x=w.call(this,S)||this;return x.compareTo=O,x.comparator=$,x._a=[],x._b=[],x._oneComplete=!1,x.destination.add(O.subscribe(new kr(S,x))),x}return $.__extends(SequenceEqualSubscriber,w),SequenceEqualSubscriber.prototype._next=function(w){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(w),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var w=this._a,S=this._b,O=this.comparator;w.length>0&&S.length>0;){var $=w.shift(),x=S.shift(),C=!1;try{C=O?O($,x):$===x}catch(w){this.destination.error(w)}C||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(w){var S=this.destination;S.next(w),S.complete()},SequenceEqualSubscriber.prototype.nextB=function(w){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(w),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(W.a),kr=function(w){function SequenceEqualCompareToSubscriber(S,O){var $=w.call(this,S)||this;return $.parent=O,$}return $.__extends(SequenceEqualCompareToSubscriber,w),SequenceEqualCompareToSubscriber.prototype._next=function(w){this.parent.nextB(w)},SequenceEqualCompareToSubscriber.prototype._error=function(w){this.parent.error(w),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(W.a);function shareSubjectFactory(){return new fr.a}function share(){return function(w){return Object(xr.a)()(multicast(shareSubjectFactory)(w))}}function shareReplay(w,S,O){var $;return $=w&&"object"==typeof w?w:{bufferSize:w,windowTime:S,refCount:!1,scheduler:O},function(w){return w.lift(function shareReplayOperator(w){var S,O,$=w.bufferSize,x=void 0===$?Number.POSITIVE_INFINITY:$,C=w.windowTime,j=void 0===C?Number.POSITIVE_INFINITY:C,N=w.refCount,k=w.scheduler,I=0,R=!1,W=!1;return function shareReplayOperation(w){var $;I++,!S||R?(R=!1,S=new br.a(x,j,k),$=S.subscribe(this),O=w.subscribe({next:function(w){S.next(w)},error:function(w){R=!0,S.error(w)},complete:function(){W=!0,O=void 0,S.complete()}}),W&&(O=void 0)):$=S.subscribe(this),this.add((function(){I--,$.unsubscribe(),$=void 0,O&&!W&&N&&0===I&&(O.unsubscribe(),O=void 0,S=void 0)}))}}($))}}function single(w){return function(S){return S.lift(new Ar(w,S))}}var Ar=function(){function SingleOperator(w,S){this.predicate=w,this.source=S}return SingleOperator.prototype.call=function(w,S){return S.subscribe(new Ir(w,this.predicate,this.source))},SingleOperator}(),Ir=function(w){function SingleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.predicate=O,x.source=$,x.seenValue=!1,x.index=0,x}return $.__extends(SingleSubscriber,w),SingleSubscriber.prototype.applySingleValue=function(w){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=w)},SingleSubscriber.prototype._next=function(w){var S=this.index++;this.predicate?this.tryNext(w,S):this.applySingleValue(w)},SingleSubscriber.prototype.tryNext=function(w,S){try{this.predicate(w,S,this.source)&&this.applySingleValue(w)}catch(w){this.destination.error(w)}},SingleSubscriber.prototype._complete=function(){var w=this.destination;this.index>0?(w.next(this.seenValue?this.singleValue:void 0),w.complete()):w.error(new gt.a)},SingleSubscriber}(W.a);function skip(w){return function(S){return S.lift(new Mr(w))}}var Mr=function(){function SkipOperator(w){this.total=w}return SkipOperator.prototype.call=function(w,S){return S.subscribe(new Fr(w,this.total))},SkipOperator}(),Fr=function(w){function SkipSubscriber(S,O){var $=w.call(this,S)||this;return $.total=O,$.count=0,$}return $.__extends(SkipSubscriber,w),SkipSubscriber.prototype._next=function(w){++this.count>this.total&&this.destination.next(w)},SkipSubscriber}(W.a);function skipLast(w){return function(S){return S.lift(new Rr(w))}}var Rr=function(){function SkipLastOperator(w){if(this._skipCount=w,this._skipCount<0)throw new vt.a}return SkipLastOperator.prototype.call=function(w,S){return 0===this._skipCount?S.subscribe(new W.a(w)):S.subscribe(new Lr(w,this._skipCount))},SkipLastOperator}(),Lr=function(w){function SkipLastSubscriber(S,O){var $=w.call(this,S)||this;return $._skipCount=O,$._count=0,$._ring=new Array(O),$}return $.__extends(SkipLastSubscriber,w),SkipLastSubscriber.prototype._next=function(w){var S=this._skipCount,O=this._count++;if(O0?this.startWindowEvery:this.windowSize,O=this.destination,$=this.windowSize,x=this.windows,C=x.length,j=0;j=0&&N%S==0&&!this.closed&&x.shift().complete(),++this.count%S==0&&!this.closed){var k=new fr.a;x.push(k),O.next(k)}},WindowCountSubscriber.prototype._error=function(w){var S=this.windows;if(S)for(;S.length>0&&!this.closed;)S.shift().error(w);this.destination.error(w)},WindowCountSubscriber.prototype._complete=function(){var w=this.windows;if(w)for(;w.length>0&&!this.closed;)w.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(W.a);function windowTime_windowTime(w){var S=N.a,O=null,$=Number.POSITIVE_INFINITY;return Object(ie.a)(arguments[3])&&(S=arguments[3]),Object(ie.a)(arguments[2])?S=arguments[2]:Object(zr.a)(arguments[2])&&($=Number(arguments[2])),Object(ie.a)(arguments[1])?S=arguments[1]:Object(zr.a)(arguments[1])&&(O=Number(arguments[1])),function windowTimeOperatorFunction(x){return x.lift(new Sn(w,O,$,S))}}var Sn=function(){function WindowTimeOperator(w,S,O,$){this.windowTimeSpan=w,this.windowCreationInterval=S,this.maxWindowSize=O,this.scheduler=$}return WindowTimeOperator.prototype.call=function(w,S){return S.subscribe(new On(w,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),_n=function(w){function CountedSubject(){var S=null!==w&&w.apply(this,arguments)||this;return S._numberOfNextedValues=0,S}return $.__extends(CountedSubject,w),CountedSubject.prototype.next=function(S){this._numberOfNextedValues++,w.prototype.next.call(this,S)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}(fr.a),On=function(w){function WindowTimeSubscriber(S,O,$,x,C){var j=w.call(this,S)||this;j.destination=S,j.windowTimeSpan=O,j.windowCreationInterval=$,j.maxWindowSize=x,j.scheduler=C,j.windows=[];var N=j.openWindow();if(null!==$&&$>=0){var k={subscriber:j,window:N,context:null},I={windowTimeSpan:O,windowCreationInterval:$,subscriber:j,scheduler:C};j.add(C.schedule(dispatchWindowClose,O,k)),j.add(C.schedule(dispatchWindowCreation,$,I))}else{var R={subscriber:j,window:N,windowTimeSpan:O};j.add(C.schedule(dispatchWindowTimeSpanOnly,O,R))}return j}return $.__extends(WindowTimeSubscriber,w),WindowTimeSubscriber.prototype._next=function(w){for(var S=this.windows,O=S.length,$=0;$=this.maxWindowSize&&this.closeWindow(x))}},WindowTimeSubscriber.prototype._error=function(w){for(var S=this.windows;S.length>0;)S.shift().error(w);this.destination.error(w)},WindowTimeSubscriber.prototype._complete=function(){for(var w=this.windows;w.length>0;){var S=w.shift();S.closed||S.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var w=new _n;return this.windows.push(w),this.destination.next(w),w},WindowTimeSubscriber.prototype.closeWindow=function(w){w.complete();var S=this.windows;S.splice(S.indexOf(w),1)},WindowTimeSubscriber}(W.a);function dispatchWindowTimeSpanOnly(w){var S=w.subscriber,O=w.windowTimeSpan,$=w.window;$&&S.closeWindow($),w.window=S.openWindow(),this.schedule(w,O)}function dispatchWindowCreation(w){var S=w.windowTimeSpan,O=w.subscriber,$=w.scheduler,x=w.windowCreationInterval,C=O.openWindow(),j={action:this,subscription:null},N={subscriber:O,window:C,context:j};j.subscription=$.schedule(dispatchWindowClose,S,N),this.add(j.subscription),this.schedule(w,x)}function dispatchWindowClose(w){var S=w.subscriber,O=w.window,$=w.context;$&&$.action&&$.subscription&&$.action.remove($.subscription),S.closeWindow(O)}function windowToggle(w,S){return function(O){return O.lift(new $n(w,S))}}var $n=function(){function WindowToggleOperator(w,S){this.openings=w,this.closingSelector=S}return WindowToggleOperator.prototype.call=function(w,S){return S.subscribe(new xn(w,this.openings,this.closingSelector))},WindowToggleOperator}(),xn=function(w){function WindowToggleSubscriber(S,O,$){var x=w.call(this,S)||this;return x.openings=O,x.closingSelector=$,x.contexts=[],x.add(x.openSubscription=Object(de.a)(x,O,O)),x}return $.__extends(WindowToggleSubscriber,w),WindowToggleSubscriber.prototype._next=function(w){var S=this.contexts;if(S)for(var O=S.length,$=0;$0){var x=$.indexOf(O);-1!==x&&$.splice(x,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(w){if(0===this.toRespond.length){var S=[w].concat(this.values);this.project?this._tryProject(S):this.destination.next(S)}},WithLatestFromSubscriber.prototype._tryProject=function(w){var S;try{S=this.project.apply(this,w)}catch(w){return void this.destination.error(w)}this.destination.next(S)},WithLatestFromSubscriber}(le.a),Tn=O(61);function zip_zip(){for(var w=[],S=0;Sj)return 1;if(j>C)return-1;if(!isNaN(C)&&isNaN(j))return 1;if(isNaN(C)&&!isNaN(j))return-1}return w[1]&&S[1]?w[1]>S[1]?1:w[1]=2&&se.test(w)}var de=new RegExp("(?:"+createExtensionPattern()+")$","i");function _createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function _unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return _arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return _arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function parseIncompletePhoneNumber_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mergeArrays_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);Oj)return"TOO_SHORT";if(x[x.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}(w,void 0,S)}function isPossibleNumber(w,S){switch(checkNumberLength(w,S)){case"IS_POSSIBLE":return!0;default:return!1}}function matchesEntirely(w,S){return w=w||"",new RegExp("^(?:"+S+")$").test(w)}function getNumberType_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function getNumberType_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return getNumberType_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return getNumberType_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function getNumberType_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=0)return!0;return!1}(S,w,O)})):[]}function applyInternationalSeparatorStyle(w){return w.replace(new RegExp("[".concat(C,"]+"),"g")," ").trim()}var ye=/(\$\d)/;function formatNationalNumberUsingFormat(w,S,O){var $=O.useInternationalFormat,x=O.withNationalPrefix,C=(O.carrierCode,O.metadata,w.replace(new RegExp(S.pattern()),$?S.internationalFormat():x&&S.nationalPrefixFormattingRule()?S.format().replace(ye,S.nationalPrefixFormattingRule()):S.format()));return $?applyInternationalSeparatorStyle(C):C}var ve=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function _slicedToArray(w,S){return function _arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function _iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||RFC3966_unsupportedIterableToArray(w,S)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RFC3966_unsupportedIterableToArray(w,S){if(w){if("string"==typeof w)return RFC3966_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);return"Object"===O&&w.constructor&&(O=w.constructor.name),"Map"===O||"Set"===O?Array.from(w):"Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?RFC3966_arrayLikeToArray(w,S):void 0}}function RFC3966_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((w=w.replace(/^tel:/,"tel=")).split(";"));!($=x()).done;){var C=_slicedToArray($.value.split("="),2),j=C[0],N=C[1];switch(j){case"tel":S=N;break;case"ext":O=N;break;case"phone-context":"+"===N[0]&&(S=N+S)}}if(!isViablePhoneNumber(S))return{};var k={number:S};return O&&(k.ext=O),k}function formatRFC3966(w){var S=w.number,O=w.ext;if(!S)return"";if("+"!==S[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(S).concat(O?";ext="+O:"")}function format_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function format_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return format_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return format_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function format_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O0){var C=x.leadingDigitsPatterns()[x.leadingDigitsPatterns().length-1];if(0!==S.search(C))continue}if(matchesEntirely(S,x.pattern()))return x}}function addExtension(w,S,O,$){return S?$(w,S,O):w}function PhoneNumber_ownKeys(w,S){var O=Object.keys(w);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(w);S&&($=$.filter((function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable}))),O.push.apply(O,$)}return O}function PhoneNumber_objectSpread(w){for(var S=1;S0&&"0"===j[1]))return w}}}function extractNationalNumberFromPossiblyIncompleteNumber(w,S){if(w&&S.numberingPlan.nationalPrefixForParsing()){var O=new RegExp("^(?:"+S.numberingPlan.nationalPrefixForParsing()+")"),$=O.exec(w);if($){var x,C,j,N=$.length-1,k=N>0&&$[N];if(S.nationalPrefixTransformRule()&&k)x=w.replace(O,S.nationalPrefixTransformRule()),N>1&&(C=$[1]);else{var I=$[0];x=w.slice(I.length),k&&(C=$[1])}if(k){var R=w.indexOf($[1]);w.slice(0,R)===S.numberingPlan.nationalPrefix()&&(j=S.numberingPlan.nationalPrefix())}else j=$[0];return{nationalNumber:x,nationalPrefix:j,carrierCode:C}}}return{nationalNumber:w}}function extractNationalNumber(w,S){var O=extractNationalNumberFromPossiblyIncompleteNumber(w,S),$=O.carrierCode,x=O.nationalNumber;if(x!==w){if(!function shouldHaveExtractedNationalPrefix(w,S,O){if(matchesEntirely(w,O.nationalNumberPattern())&&!matchesEntirely(S,O.nationalNumberPattern()))return!1;return!0}(w,x,S))return{nationalNumber:w};if(S.possibleLengths()&&!function isPossibleIncompleteNationalNumber(w,S){switch(checkNumberLength(w,S)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(x,S))return{nationalNumber:w}}return{nationalNumber:x,carrierCode:$}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w,S,O,$){var x=S?getCountryCallingCode(S,$):O;if(0===w.indexOf(x)){($=new I($)).selectNumberingPlan(S,O);var C=w.slice(x.length),j=extractNationalNumber(C,$).nationalNumber,N=extractNationalNumber(w,$).nationalNumber;if(!matchesEntirely(N,$.nationalNumberPattern())&&matchesEntirely(j,$.nationalNumberPattern())||"TOO_LONG"===checkNumberLength(N,$))return{countryCallingCode:x,number:C}}return{number:w}}function extractCountryCallingCode_extractCountryCallingCode(w,S,O,$){if(!w)return{};var x;if("+"!==w[0]){var C=stripIddPrefix(w,S,O,$);if(!C||C===w){if(S||O){var j=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w,S,O,$),N=j.countryCallingCode,k=j.number;if(N)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:N,number:k}}return{number:w}}x=!0,w="+"+C}if("0"===w[1])return{};$=new I($);for(var R=2;R-1<=3&&R<=w.length;){var W=w.slice(1,R);if($.hasCallingCode(W))return $.selectNumberingPlan(W),{countryCallingCodeSource:x?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:W,number:w.slice(R)};R++}return{}}function getCountryByNationalNumber_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function getCountryByNationalNumber_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return getCountryByNationalNumber_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return getCountryByNationalNumber_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function getCountryByNationalNumber_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=w.length)return"";var $=w.indexOf(";",O);return $>=0?w.substring(O,$):w.substring(O)}(w);if(!function isPhoneContextValid(w){return null===w||0!==w.length&&(Ce.test(w)||Ie.test(w))}(x))throw new j("NOT_A_NUMBER");if(null===x)O=$(w)||"";else{O="","+"===x.charAt(0)&&(O+=x);var C,N=w.indexOf("tel:");C=N>=0?N+"tel:".length:0;var k=w.indexOf(";phone-context=");O+=w.substring(C,k)}var I=O.indexOf(";isub=");if(I>0&&(O=O.substring(0,I)),""!==O)return O}var Me=new RegExp("[++"+x+"]"),Fe=new RegExp("[^"+x+"#]+$");function parse(w,S,O){if(S=S||{},O=new I(O),S.defaultCountry&&!O.hasCountry(S.defaultCountry)){if(S.v2)throw new j("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(S.defaultCountry))}var $=function parseInput(w,S,O){var $=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(w,{extractFormattedPhoneNumber:function extractFormattedPhoneNumber(w){return function _extractFormattedPhoneNumber(w,S,O){if(!w)return;if(w.length>250){if(O)throw new j("TOO_LONG");return}if(!1===S)return w;var $=w.search(Me);if($<0)return;return w.slice($).replace(Fe,"")}(w,O,S)}});if(!$)return{};if(!isViablePhoneNumber($))return function isViablePhoneNumberStart(w){return ue.test(w)}($)?{error:"TOO_SHORT"}:{};var x=function extractExtension(w){var S=w.search(de);if(S<0)return{};for(var O=w.slice(0,S),$=w.match(de),x=1;x<$.length;){if($[x])return{number:O,ext:$[x]};x++}}($);if(x.ext)return x;return{number:$}}(w,S.v2,S.extract),x=$.number,C=$.ext,N=$.error;if(!x){if(S.v2){if("TOO_SHORT"===N)throw new j("TOO_SHORT");throw new j("NOT_A_NUMBER")}return{}}var k=function parsePhoneNumber(w,S,O,$){var x,C=extractCountryCallingCode_extractCountryCallingCode(parseIncompletePhoneNumber(w),S,O,$.metadata),j=C.countryCallingCodeSource,N=C.countryCallingCode,k=C.number;if(N)$.selectNumberingPlan(N);else{if(!k||!S&&!O)return{};$.selectNumberingPlan(S,O),S&&(x=S),N=O||getCountryCallingCode(S,$.metadata)}if(!k)return{countryCallingCodeSource:j,countryCallingCode:N};var I=extractNationalNumber(parseIncompletePhoneNumber(k),$),R=I.nationalNumber,W=I.carrierCode,G=getCountryByCallingCode(N,{nationalNumber:R,defaultCountry:S,metadata:$});G&&(x=G,"001"===G||$.country(x));return{country:x,countryCallingCode:N,countryCallingCodeSource:j,nationalNumber:R,carrierCode:W}}(x,S.defaultCountry,S.defaultCallingCode,O),R=k.country,W=k.nationalNumber,G=k.countryCallingCode,J=k.countryCallingCodeSource,re=k.carrierCode;if(!O.hasSelectedNumberingPlan()){if(S.v2)throw new j("INVALID_COUNTRY");return{}}if(!W||W.length<2){if(S.v2)throw new j("TOO_SHORT");return{}}if(W.length>17){if(S.v2)throw new j("TOO_LONG");return{}}if(S.v2){var ie=new Se(G,W,O.metadata);return R&&(ie.country=R),re&&(ie.carrierCode=re),C&&(ie.ext=C),ie.__countryCallingCodeSource=J,ie}var oe=!!(S.extended?O.hasSelectedNumberingPlan():R)&&matchesEntirely(W,O.nationalNumberPattern());return S.extended?{country:R,countryCallingCode:G,carrierCode:re,valid:oe,possible:!!oe||!(!0!==S.extended||!O.possibleLengths()||!isPossibleNumber(W,O)),phone:W,ext:C}:oe?function parse_result(w,S,O){var $={country:w,phone:S};O&&($.ext=O);return $}(R,W,C):{}}function parsePhoneNumberWithError_ownKeys(w,S){var O=Object.keys(w);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(w);S&&($=$.filter((function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable}))),O.push.apply(O,$)}return O}function parsePhoneNumberWithError_objectSpread(w){for(var S=1;Sw.length)&&(S=w.length);for(var O=0,$=new Array(S);O2&&void 0!==arguments[2]?arguments[2]:null,$=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;LRUCache_classCallCheck(this,Node),this.key=w,this.value=S,this.next=O,this.prev=$})),De=function(){function LRUCache(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;LRUCache_classCallCheck(this,LRUCache),this.size=0,this.limit=w,this.head=null,this.tail=null,this.cache={}}return LRUCache_createClass(LRUCache,[{key:"put",value:function put(w,S){if(this.ensureLimit(),this.head){var O=new Re(w,S,this.head);this.head.prev=O,this.head=O}else this.head=this.tail=new Re(w,S);this.cache[w]=this.head,this.size++}},{key:"get",value:function get(w){if(this.cache[w]){var S=this.cache[w].value;return this.remove(w),this.put(w,S),S}console.log("Item not available in cache for key ".concat(w))}},{key:"ensureLimit",value:function ensureLimit(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function remove(w){var S=this.cache[w];null!==S.prev?S.prev.next=S.next:this.head=S.next,null!==S.next?S.next.prev=S.prev:this.tail=S.prev,delete this.cache[w],this.size--}},{key:"clear",value:function clear(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),LRUCache}();function RegExpCache_defineProperties(w,S){for(var O=0;O=0?S.slice(0,O):S}var Ge="   ᠎ - \u2028\u2029   ",He="[".concat(Ge,"]"),Ke="[^".concat(Ge,"]"),Ze="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),Qe="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",et="[".concat(Qe,"]"),tt=new RegExp(et),rt="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),nt=new RegExp(rt),it="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),ot=new RegExp(it),at=new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function isLatinLetter(w){return!(!tt.test(w)&&!ot.test(w))&&at.test(w)}function isInvalidPunctuationSymbol(w){return"%"===w||nt.test(w)}function matchPhoneNumberStringAgainstPhoneNumber(w,S,O){var $=!0,x=es6_parsePhoneNumber_parsePhoneNumber(w,O);if(x||($=!1,x=es6_parsePhoneNumber_parsePhoneNumber(w,{defaultCallingCode:S.countryCallingCode},O)),!x)return"INVALID_NUMBER";if(S.ext){if(x.ext!==S.ext)return"NO_MATCH"}else if(x.ext)return"NO_MATCH";return $&&S.countryCallingCode!==x.countryCallingCode?"NO_MATCH":S.number===x.number?$?"EXACT_MATCH":"NSN_MATCH":0===S.nationalNumber.indexOf(x.nationalNumber)||0===x.nationalNumber.indexOf(S.nationalNumber)?"SHORT_NSN_MATCH":"NO_MATCH"}var ut={POSSIBLE:function POSSIBLE(w,S){S.candidate,S.metadata;return!0},VALID:function VALID(w,S){var O=S.candidate,$=(S.defaultCountry,S.metadata);return!(!w.isValid()||!containsOnlyValidXChars(w,O,$))},STRICT_GROUPING:function STRICT_GROUPING(w,S){var O=S.candidate,$=S.defaultCountry,x=S.metadata,C=S.regExpCache;return!(!w.isValid()||!containsOnlyValidXChars(w,O,x)||containsMoreThanOneSlashInNationalNumber(w,O)||!isNationalPrefixPresentIfRequired(w,{defaultCountry:$,metadata:x}))&&checkNumberGroupingIsValid(w,O,x,allNumberGroupsRemainGrouped,C)},EXACT_GROUPING:function EXACT_GROUPING(w,S){var O=S.candidate,$=S.defaultCountry,x=S.metadata,C=S.regExpCache;return!(!w.isValid()||!containsOnlyValidXChars(w,O,x)||containsMoreThanOneSlashInNationalNumber(w,O)||!isNationalPrefixPresentIfRequired(w,{defaultCountry:$,metadata:x}))&&checkNumberGroupingIsValid(w,O,x,allNumberGroupsAreExactlyPresent,C)}};function containsOnlyValidXChars(w,S,O){for(var $=0;$=0)}function checkNumberGroupingIsValid(w,S,O,$,x){throw new Error("This part of code hasn't been ported")}function allNumberGroupsAreExactlyPresent(w,S,O,$){throw new Error("This part of code hasn't been ported")}function allNumberGroupsRemainGrouped(w,S,O,$){throw new Error("This part of code hasn't been ported")}var ct=/[\\/] *x/;function parsePreCandidate(w){return trimAfterFirstMatch(ct,w)}var st=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,dt=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,lt=/^:[0-5]\d/;function isValidPreCandidate(w,S,O){if(st.test(w))return!1;if(dt.test(w)){var $=O.slice(S+w.length);if(lt.test($))return!1}return!0}var ft="[^".concat("(\\[([").concat(")\\])]","]"),pt="[".concat("(\\[([").concat("++","]"),ht=new RegExp("^"+pt),bt=limit(0,3),yt=new RegExp("^(?:[(\\[([])?(?:"+ft+"+[)\\])]])?"+ft+"+(?:[(\\[([]"+ft+"+[)\\])]])"+bt+ft+"*$"),vt=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function PhoneNumberMatcher_createForOfIteratorHelperLoose(w,S){var O="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(O)return(O=O.call(w)).next.bind(O);if(Array.isArray(w)||(O=function PhoneNumberMatcher_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return PhoneNumberMatcher_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return PhoneNumberMatcher_arrayLikeToArray(w,S)}(w))||S&&w&&"number"==typeof w.length){O&&(w=O);var $=0;return function(){return $>=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PhoneNumberMatcher_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O0&&void 0!==arguments[0]?arguments[0]:"",S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},O=arguments.length>2?arguments[2]:void 0;if(PhoneNumberMatcher_classCallCheck(this,PhoneNumberMatcher),!(S={v2:S.v2,defaultCallingCode:S.defaultCallingCode,defaultCountry:S.defaultCountry&&isSupportedCountry(S.defaultCountry,O)?S.defaultCountry:void 0,leniency:S.leniency||(S.extended?"POSSIBLE":"VALID"),maxTries:S.maxTries||Pt}).leniency)throw new TypeError("`leniency` is required");if("POSSIBLE"!==S.leniency&&"VALID"!==S.leniency)throw new TypeError('Invalid `leniency`: "'.concat(S.leniency,'". Supported values: "POSSIBLE", "VALID".'));if(S.maxTries<0)throw new TypeError("`maxTries` must be `>= 0`");if(this.text=w,this.options=S,this.metadata=O,this.leniency=ut[S.leniency],!this.leniency)throw new TypeError('Unknown leniency: "'.concat(S.leniency,'"'));this.maxTries=S.maxTries,this.PATTERN=new RegExp(xt,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new Ue(32)}return function PhoneNumberMatcher_createClass(w,S,O){return S&&PhoneNumberMatcher_defineProperties(w.prototype,S),O&&PhoneNumberMatcher_defineProperties(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}(PhoneNumberMatcher,[{key:"find",value:function find(){for(var w;this.maxTries>0&&null!==(w=this.PATTERN.exec(this.text));){var S=w[0],O=w.index;if(isValidPreCandidate(S=parsePreCandidate(S),O,this.text)){var $=this.parseAndVerify(S,O,this.text)||this.extractInnerMatch(S,O,this.text);if($){if(this.options.v2)return{startsAt:$.startsAt,endsAt:$.endsAt,number:$.phoneNumber};var x=$.phoneNumber,C={startsAt:$.startsAt,endsAt:$.endsAt,phone:x.nationalNumber};return x.country?C.country=x.country:C.countryCallingCode=x.countryCallingCode,x.ext&&(C.ext=x.ext),C}}this.maxTries--}}},{key:"extractInnerMatch",value:function extractInnerMatch(w,S,O){for(var $,x=PhoneNumberMatcher_createForOfIteratorHelperLoose(gt);!($=x()).done;)for(var C=$.value,j=!0,N=void 0,k=new RegExp(C,"g");this.maxTries>0&&null!==(N=k.exec(w));){if(j){var I=trimAfterFirstMatch(Et,w.slice(0,N.index)),R=this.parseAndVerify(I,S,O);if(R)return R;this.maxTries--,j=!1}var W=trimAfterFirstMatch(Et,N[1]),G=w.indexOf(W,N.index),J=this.parseAndVerify(W,S+G,O);if(J)return J;this.maxTries--}}},{key:"parseAndVerify",value:function parseAndVerify(w,S,O){if(function isValidCandidate(w,S,O,$){if(yt.test(w)&&!vt.test(w)){if("POSSIBLE"!==$){if(S>0&&!ht.test(w)){var x=O[S-1];if(isInvalidPunctuationSymbol(x)||isLatinLetter(x))return!1}var C=S+w.length;if(C=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_util_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1;)1&S&&(O+=w),S>>=1,w+=w;return O+w}function cutAndStripNonPairedParens(w,S){return")"===w[S]&&S++,function stripNonPairedParens(w){var S=[],O=0;for(;O=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1&&void 0!==arguments[1]?arguments[1]:{},O=S.allowOverflow;if(!w)throw new Error("String is required");var $=AsYouTypeFormatter_PatternMatcher_match(w.split(""),this.matchTree,!0);if($&&$.match&&delete $.matchedChars,!$||!$.overflow||O)return $}}]),PatternMatcher}();function AsYouTypeFormatter_PatternMatcher_match(w,S,O){if("string"==typeof S){var $=w.join("");return 0===S.indexOf($)?w.length===S.length?{match:!0,matchedChars:w}:{partialMatch:!0}:0===$.indexOf(S)?O&&w.length>S.length?{overflow:!0}:{match:!0,matchedChars:w.slice(0,S.length)}:void 0}if(Array.isArray(S)){for(var x=w.slice(),C=0;C=w.length?{done:!0}:{done:!1,value:w[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AsYouTypeFormatter_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=0)){var O=this.getTemplateForFormat(w,S);return O?(this.setNationalNumberTemplate(O,S),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function getSeparatorAfterNationalPrefix(w){return this.isNANP||w&&w.nationalPrefixFormattingRule()&&Rt.test(w.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function getInternationalPrefixBeforeCountryCallingCode(w,S){var O=w.IDDPrefix,$=w.missingPlus;return O?S&&!1===S.spacing?O:O+" ":$?"":"+"}},{key:"getTemplate",value:function getTemplate(w){if(this.template){for(var S=-1,O=0,$=w.international?this.getInternationalPrefixBeforeCountryCallingCode(w,{spacing:!1}):"";O<$.length+w.getDigitsWithoutInternationalPrefix().length;)S=this.template.indexOf(Tt,S+1),O++;return cutAndStripNonPairedParens(this.template,S+1)}}},{key:"setNationalNumberTemplate",value:function setNationalNumberTemplate(w,S){this.nationalNumberTemplate=w,this.populatedNationalNumberTemplate=w,this.populatedNationalNumberTemplatePosition=-1,S.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(S).replace(/[\d\+]/g,Tt)+repeat(Tt,S.callingCode.length)+" "+w:this.template=w}},{key:"getTemplateForFormat",value:function getTemplateForFormat(w,S){var O=S.nationalSignificantNumber,$=S.international,x=S.nationalPrefix,C=S.complexPrefixBeforeNationalSignificantNumber,j=w.pattern();j=j.replace(CREATE_CHARACTER_CLASS_PATTERN(),"\\d").replace(CREATE_STANDALONE_DIGIT_PATTERN(),"\\d");var N=Ft.match(j)[0];if(!(O.length>N.length)){var k=new RegExp("^"+j+"$"),I=O.replace(/\d/g,"9");k.test(I)&&(N=I);var R,W=this.getFormatFormat(w,$);if(this.shouldTryNationalPrefixFormattingRule(w,{international:$,nationalPrefix:x})){var G=W.replace(ye,w.nationalPrefixFormattingRule());if(parseDigits(w.nationalPrefixFormattingRule())===(x||"")+parseDigits("$1")&&(W=G,R=!0,x))for(var J=x.length;J>0;)W=W.replace(/\d/,Tt),J--}var re=N.replace(new RegExp(j),W).replace(new RegExp("9","g"),Tt);return R||(C?re=repeat(Tt,C.length)+" "+re:x&&(re=repeat(Tt,x.length)+this.getSeparatorAfterNationalPrefix(w)+re)),$&&(re=applyInternationalSeparatorStyle(re)),re}}},{key:"formatNextNationalNumberDigits",value:function formatNextNationalNumberDigits(w){var S=function populateTemplateWithDigits(w,S,O){for(var $,x=AsYouTypeFormatter_util_createForOfIteratorHelperLoose(O.split(""));!($=x()).done;){var C=$.value;if(w.slice(S+1).search(Nt)<0)return;S=w.search(Nt),w=w.replace(Nt,C)}return[w,S]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,w);if(S)return this.populatedNationalNumberTemplate=S[0],this.populatedNationalNumberTemplatePosition=S[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function shouldTryNationalPrefixFormattingRule(w,S){var O=S.international,$=S.nationalPrefix;if(w.nationalPrefixFormattingRule()){var x=w.usesNationalPrefix();if(x&&$||!x&&!O)return!0}}}]),AsYouTypeFormatter}();function AsYouTypeParser_slicedToArray(w,S){return function AsYouTypeParser_arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function AsYouTypeParser_iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||function AsYouTypeParser_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return AsYouTypeParser_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return AsYouTypeParser_arrayLikeToArray(w,S)}(w,S)||function AsYouTypeParser_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AsYouTypeParser_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O=3;if(S.appendDigits(w),$&&this.extractIddPrefix(S),this.isWaitingForCountryCallingCode(S)){if(!this.extractCountryCallingCode(S))return}else S.appendNationalSignificantNumberDigits(w);S.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(S.getNationalDigits(),(function(w){return S.update(w)}))}},{key:"isWaitingForCountryCallingCode",value:function isWaitingForCountryCallingCode(w){var S=w.international,O=w.callingCode;return S&&!O}},{key:"extractCountryCallingCode",value:function extractCountryCallingCode(w){var S=extractCountryCallingCode_extractCountryCallingCode("+"+w.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),O=S.countryCallingCode,$=S.number;if(O)return w.setCallingCode(O),w.update({nationalSignificantNumber:$}),!0}},{key:"reset",value:function reset(w){if(w){this.hasSelectedNumberingPlan=!0;var S=w._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=S&&Ut.test(S)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function extractNationalSignificantNumber(w,S){if(this.hasSelectedNumberingPlan){var O=extractNationalNumberFromPossiblyIncompleteNumber(w,this.metadata),$=O.nationalPrefix,x=O.nationalNumber,C=O.carrierCode;if(x!==w)return this.onExtractedNationalNumber($,C,x,w,S),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function extractAnotherNationalSignificantNumber(w,S,O){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(w,O);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var $=extractNationalNumberFromPossiblyIncompleteNumber(w,this.metadata),x=$.nationalPrefix,C=$.nationalNumber,j=$.carrierCode;if(C!==S)return this.onExtractedNationalNumber(x,j,C,w,O),!0}}},{key:"onExtractedNationalNumber",value:function onExtractedNationalNumber(w,S,O,$,x){var C,j,N=$.lastIndexOf(O);if(N>=0&&N===$.length-O.length){j=!0;var k=$.slice(0,N);k!==w&&(C=k)}x({nationalPrefix:w,carrierCode:S,nationalSignificantNumber:O,nationalSignificantNumberMatchesInput:j,complexPrefixBeforeNationalSignificantNumber:C}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function reExtractNationalSignificantNumber(w){return!!this.extractAnotherNationalSignificantNumber(w.getNationalDigits(),w.nationalSignificantNumber,(function(S){return w.update(S)}))||(this.extractIddPrefix(w)||this.fixMissingPlus(w)?(this.extractCallingCodeAndNationalSignificantNumber(w),!0):void 0)}},{key:"extractIddPrefix",value:function extractIddPrefix(w){var S=w.international,O=w.IDDPrefix,$=w.digits;w.nationalSignificantNumber;if(!S&&!O){var x=stripIddPrefix($,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==x&&x!==$?(w.update({IDDPrefix:$.slice(0,$.length-x.length)}),this.startInternationalNumber(w,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function fixMissingPlus(w){if(!w.international){var S=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(w.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),O=S.countryCallingCode;S.number;if(O)return w.update({missingPlus:!0}),this.startInternationalNumber(w,{country:w.country,callingCode:O}),!0}}},{key:"startInternationalNumber",value:function startInternationalNumber(w,S){var O=S.country,$=S.callingCode;w.startInternationalNumber(O,$),w.nationalSignificantNumber&&(w.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function extractCallingCodeAndNationalSignificantNumber(w){this.extractCountryCallingCode(w)&&this.extractNationalSignificantNumber(w.getNationalDigits(),(function(S){return w.update(S)}))}}]),AsYouTypeParser}();function AsYouType_slicedToArray(w,S){return function AsYouType_arrayWithHoles(w){if(Array.isArray(w))return w}(w)||function AsYouType_iterableToArrayLimit(w,S){var O=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null==O)return;var $,x,C=[],j=!0,N=!1;try{for(O=O.call(w);!(j=($=O.next()).done)&&(C.push($.value),!S||C.length!==S);j=!0);}catch(w){N=!0,x=w}finally{try{j||null==O.return||O.return()}finally{if(N)throw x}}return C}(w,S)||function AsYouType_unsupportedIterableToArray(w,S){if(!w)return;if("string"==typeof w)return AsYouType_arrayLikeToArray(w,S);var O=Object.prototype.toString.call(w).slice(8,-1);"Object"===O&&w.constructor&&(O=w.constructor.name);if("Map"===O||"Set"===O)return Array.from(w);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return AsYouType_arrayLikeToArray(w,S)}(w,S)||function AsYouType_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AsYouType_arrayLikeToArray(w,S){(null==S||S>w.length)&&(S=w.length);for(var O=0,$=new Array(S);O1}},{key:"determineTheCountry",value:function determineTheCountry(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function getNumberValue(){var w=this.state,S=w.digits,O=w.callingCode,$=w.country,x=w.nationalSignificantNumber;if(S)return this.isInternational()?O?"+"+O+x:"+"+S:$||O?"+"+($?this.metadata.countryCallingCode():O)+x:void 0}},{key:"getNumber",value:function getNumber(){var w=this.state,S=w.nationalSignificantNumber,O=w.carrierCode,$=w.callingCode,x=this._getCountry();if(S&&(x||$)){if(x&&x===this.defaultCountry){var C=new I(this.metadata.metadata);C.selectNumberingPlan(x);var j=C.numberingPlan.callingCode(),N=this.metadata.getCountryCodesForCallingCode(j);if(N.length>1){var k=getCountryByNationalNumber(S,{countries:N,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});k&&(x=k)}}var R=new Se(x||$,S,this.metadata.metadata);return O&&(R.carrierCode=O),R}}},{key:"isPossible",value:function isPossible(){var w=this.getNumber();return!!w&&w.isPossible()}},{key:"isValid",value:function isValid(){var w=this.getNumber();return!!w&&w.isValid()}},{key:"getNationalNumber",value:function getNationalNumber(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function getChars(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function getTemplate(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),AsYouType}();function exports_AsYouType_AsYouType(w){return Gt.call(this,w,$)}function isSupportedCountry_isSupportedCountry(){return withMetadataArgument(isSupportedCountry,arguments)}function getCountries(w){return new I(w).getCountries()}function getCountries_getCountries(){return withMetadataArgument(getCountries,arguments)}function getCountryCallingCode_getCountryCallingCode(){return withMetadataArgument(getCountryCallingCode,arguments)}function getExtPrefix_getExtPrefix(){return withMetadataArgument(getExtPrefix,arguments)}function Metadata_Metadata(){return I.call(this,$)}function getExampleNumber(w,S,O){if(S[w])return new Se(w,S[w],O)}function getExampleNumber_getExampleNumber(){return withMetadataArgument(getExampleNumber,arguments)}function formatIncompletePhoneNumber(w,S,O){return O||(O=S,S=void 0),new Gt(S,O).input(w)}function formatIncompletePhoneNumber_formatIncompletePhoneNumber(){return withMetadataArgument(formatIncompletePhoneNumber,arguments)}exports_AsYouType_AsYouType.prototype=Object.create(Gt.prototype,{}),exports_AsYouType_AsYouType.prototype.constructor=exports_AsYouType_AsYouType,Metadata_Metadata.prototype=Object.create(I.prototype,{}),Metadata_Metadata.prototype.constructor=Metadata_Metadata},function(w,S,O){"use strict";O.r(S),O.d(S,"Observable",(function(){return $.a})),O.d(S,"ConnectableObservable",(function(){return x.a})),O.d(S,"GroupedObservable",(function(){return C.a})),O.d(S,"observable",(function(){return j.a})),O.d(S,"Subject",(function(){return N.a})),O.d(S,"BehaviorSubject",(function(){return k.a})),O.d(S,"ReplaySubject",(function(){return I.a})),O.d(S,"AsyncSubject",(function(){return R.a})),O.d(S,"asap",(function(){return W.a})),O.d(S,"asapScheduler",(function(){return W.b})),O.d(S,"async",(function(){return G.a})),O.d(S,"asyncScheduler",(function(){return G.b})),O.d(S,"queue",(function(){return J.a})),O.d(S,"queueScheduler",(function(){return J.b})),O.d(S,"animationFrame",(function(){return se})),O.d(S,"animationFrameScheduler",(function(){return ce})),O.d(S,"VirtualTimeScheduler",(function(){return de})),O.d(S,"VirtualAction",(function(){return le})),O.d(S,"Scheduler",(function(){return he.a})),O.d(S,"Subscription",(function(){return ye.a})),O.d(S,"Subscriber",(function(){return ve.a})),O.d(S,"Notification",(function(){return ge.a})),O.d(S,"NotificationKind",(function(){return ge.b})),O.d(S,"pipe",(function(){return Se.a})),O.d(S,"noop",(function(){return Pe.a})),O.d(S,"identity",(function(){return Ce.a})),O.d(S,"isObservable",(function(){return isObservable})),O.d(S,"ArgumentOutOfRangeError",(function(){return Ie.a})),O.d(S,"EmptyError",(function(){return Me.a})),O.d(S,"ObjectUnsubscribedError",(function(){return Fe.a})),O.d(S,"UnsubscriptionError",(function(){return Re.a})),O.d(S,"TimeoutError",(function(){return De.a})),O.d(S,"bindCallback",(function(){return bindCallback})),O.d(S,"bindNodeCallback",(function(){return bindNodeCallback})),O.d(S,"combineLatest",(function(){return Ze.b})),O.d(S,"concat",(function(){return Qe.a})),O.d(S,"defer",(function(){return et.a})),O.d(S,"empty",(function(){return tt.b})),O.d(S,"forkJoin",(function(){return forkJoin})),O.d(S,"from",(function(){return nt.a})),O.d(S,"fromEvent",(function(){return fromEvent})),O.d(S,"fromEventPattern",(function(){return fromEventPattern})),O.d(S,"generate",(function(){return generate})),O.d(S,"iif",(function(){return iif})),O.d(S,"interval",(function(){return interval})),O.d(S,"merge",(function(){return at.a})),O.d(S,"never",(function(){return never})),O.d(S,"of",(function(){return ct.a})),O.d(S,"onErrorResumeNext",(function(){return onErrorResumeNext})),O.d(S,"pairs",(function(){return pairs})),O.d(S,"partition",(function(){return partition})),O.d(S,"race",(function(){return ft.a})),O.d(S,"range",(function(){return range})),O.d(S,"throwError",(function(){return pt.a})),O.d(S,"timer",(function(){return ht.a})),O.d(S,"using",(function(){return using})),O.d(S,"zip",(function(){return bt.b})),O.d(S,"scheduled",(function(){return yt.a})),O.d(S,"EMPTY",(function(){return tt.a})),O.d(S,"NEVER",(function(){return ut})),O.d(S,"config",(function(){return vt.a}));var $=O(4),x=O(80),C=O(78),j=O(26),N=O(7),k=O(81),I=O(56),R=O(35),W=O(49),G=O(8),J=O(71),re=O(1),ie=O(36),oe=function(w){function AnimationFrameAction(S,O){var $=w.call(this,S,O)||this;return $.scheduler=S,$.work=O,$}return re.__extends(AnimationFrameAction,w),AnimationFrameAction.prototype.requestAsyncId=function(S,O,$){return void 0===$&&($=0),null!==$&&$>0?w.prototype.requestAsyncId.call(this,S,O,$):(S.actions.push(this),S.scheduled||(S.scheduled=requestAnimationFrame((function(){return S.flush(null)}))))},AnimationFrameAction.prototype.recycleAsyncId=function(S,O,$){if(void 0===$&&($=0),null!==$&&$>0||null===$&&this.delay>0)return w.prototype.recycleAsyncId.call(this,S,O,$);0===S.actions.length&&(cancelAnimationFrame(O),S.scheduled=void 0)},AnimationFrameAction}(ie.a),ue=O(34),ce=new(function(w){function AnimationFrameScheduler(){return null!==w&&w.apply(this,arguments)||this}return re.__extends(AnimationFrameScheduler,w),AnimationFrameScheduler.prototype.flush=function(w){this.active=!0,this.scheduled=void 0;var S,O=this.actions,$=-1,x=O.length;w=w||O.shift();do{if(S=w.execute(w.state,w.delay))break}while(++$S.index?1:-1:w.delay>S.delay?1:-1},VirtualAction}(ie.a),he=O(72),ye=O(6),ve=O(2),ge=O(23),Se=O(48),Pe=O(25),Ce=O(20);function isObservable(w){return!!w&&(w instanceof $.a||"function"==typeof w.lift&&"function"==typeof w.subscribe)}var Ie=O(28),Me=O(31),Fe=O(27),Re=O(51),De=O(83),Ue=O(10),Ge=O(63),He=O(9),Ke=O(11);function bindCallback(w,S,O){if(S){if(!Object(Ke.a)(S))return function(){for(var $=[],x=0;x1?$.next(Array.prototype.slice.call(arguments)):$.next(w)}),$,O)}))}function fromEventPattern(w,S,O){return O?fromEventPattern(w,S).pipe(Object(Ue.a)((function(w){return Object(He.a)(w)?O.apply(void 0,w):O(w)}))):new $.a((function(O){var $,handler=function(){for(var w=[],S=0;S=S){$.complete();break}if($.next(C++),$.closed)break}}))}function range_dispatch(w){var S=w.start,O=w.index,$=w.count,x=w.subscriber;O>=$?x.complete():(x.next(S),x.closed||(w.index=O+1,w.start=S+1,this.schedule(w)))}var pt=O(57),ht=O(87);function using(w,S){return new $.a((function(O){var $,x;try{$=w()}catch(w){return void O.error(w)}try{x=S($)}catch(w){return void O.error(w)}var C=(x?Object(nt.a)(x):tt.a).subscribe(O);return function(){C.unsubscribe(),$&&$.unsubscribe()}}))}var bt=O(61),yt=O(88),vt=O(19)}]); //# sourceMappingURL=Plugin.js.map \ No newline at end of file