UNPKG

@nbxx/nb-input

Version:
23 lines (21 loc) 329 kB
/** * @nbxx/nb-input - Angular - nbinput * @version v2.0.13 * @author undefined * @link undefined * @license MIT */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/forms"),require("@angular/common"),require("rxjs/operators"),require("@angular/common/http"),require("ng2-date-picker"),require("moment"),require("mousetrap"),require("@nbxx/nb-angular-froala"),require("file-saver"),require("xlsx")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/forms","@angular/common","rxjs/operators","@angular/common/http","ng2-date-picker","moment","mousetrap","@nbxx/nb-angular-froala","file-saver","xlsx"],t):"object"==typeof exports?exports.nbinput=t(require("@angular/core"),require("@angular/forms"),require("@angular/common"),require("rxjs/operators"),require("@angular/common/http"),require("ng2-date-picker"),require("moment"),require("mousetrap"),require("@nbxx/nb-angular-froala"),require("file-saver"),require("xlsx")):e.nbinput=t(e.ng.core,e.ng.forms,e.ng.common,e.Rx,e.ng.commonHttp,e["ng2-date-picker"],e.moment,e.mousetrap,e.nb["nb-angular-froala"],e["file-saver"],e.xlsx)}(window,function(e,t,n,i,r,o,a,s,c,l,u){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=72)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}},function(e,t,n){"use strict";var i=n(4),r=n(24),o=n(28);var a=n(16),s=n(32),c=n(10);n.d(t,"a",function(){return l});var l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[r.a])return e[r.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(a?a.call(s,this.source):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=u(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}},i,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:Object(s.b)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=u(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function u(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},function(e,t,n){"use strict";var i,r=n(5),o=n(33),a=n(22),s={e:{}};function c(){try{return i.apply(this,arguments)}catch(e){return s.e=e,s}}function l(e){return i=e,c}var u=n(26);n.d(t,"a",function(){return p});var p=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,c=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=i?i.length:0;n;)n.remove(this),n=++h<f&&i[h]||null;if(Object(a.a)(c))l(c).call(this)===s&&(t=!0,e=e||(s.e instanceof u.a?d(s.e.errors):[s.e]));if(Object(r.a)(p))for(h=-1,f=p.length;++h<f;){var g=p[h];if(Object(o.a)(g))if(l(g.unsubscribe).call(g)===s){t=!0,e=e||[];var m=s.e;m instanceof u.a?e=e.concat(d(m.errors)):e.push(m)}}if(t)throw new u.a(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function d(e){return e.reduce(function(e,t){return e.concat(t instanceof u.a?t.errors:t)},[])}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(1),r=n(22),o=n(28),a=n(3),s=n(24),c=n(10),l=n(23),u=function(e){function t(t,n,i){var r=e.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=o.a;break;case 1:if(!t){r.destination=o.a;break}if("object"==typeof t){if(d(t)){var a=t[s.a]();r.syncErrorThrowable=a.syncErrorThrowable,r.destination=a,a.add(r)}else r.syncErrorThrowable=!0,r.destination=new p(r,t);break}default:r.syncErrorThrowable=!0,r.destination=new p(r,t,n,i)}return r}return i.a(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(a.a),p=function(e){function t(t,n,i,a){var s,c=e.call(this)||this;c._parentSubscriber=t;var l=c;return Object(r.a)(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.a&&(l=Object.create(n),Object(r.a)(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=s,c._error=i,c._complete=a,c}return i.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw e;Object(l.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(l.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u);function d(e){return e instanceof u||"syncErrorThrowable"in e&&e[s.a]}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,n){e.exports=t},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(){this.uploadAPI="",this.downloadAPI="",this.renameAPI="",this.token="",this.format="",this.valueMode=""}}();t.NbinputConfig=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.ConvertToAttachment=function(){var e=new s;return e.url=this.url,e.id=this.id,e.progress=this.progress,e.success=this.success,e.completed=this.completed,e.size=this.size,e.name=this.name,e.type=this.type,e},t}(File);t.NbFile=a;var s=function(){return function(e){this.name=e&&e.name||"",this.size=e&&e.size||0,this.type=e&&e.type||"",this.completed=!1,this.success=!1}}();t.SystemAttachment=s;var c=function(){return function(){}}();t.NbInputItem=c;var l=function(){return function(){}}();t.NbItemOption=l,function(e){e.Index="index",e.Label="label",e.Array="array",e.Calc="calc",e.Assist="assist",e.Rating="rating",e.Link="link",e.Button="button",e.Text="text",e.Box="box",e.Area="area",e.Currency="currency",e.CurrencyFen="currencyfen",e.Number="number",e.Html="html",e.Progress="progress",e.Percentage="percent",e.PercentageFen="percentfen",e.Signature="signature",e.File="file",e.Image="image",e.Upload="upload",e.Images="images",e.Time="time",e.Datetime="datetime",e.Date="date",e.Month="month",e.Option="option",e.Massive="massive",e.Multiple="multiple",e.Radio="radio",e.Checkbox="checkbox",e.Switch="switch"}(t.NbFieldType||(t.NbFieldType={})),function(e){e.Star="star",e.Bell="bell",e.Square="square",e.Circle="circle",e.Comment="comment",e.Envelope="envelope",e.Flag="flag",e.Folder="folder",e.Heart="heart",e.Hourglass="hourglass",e.Map="map"}(t.NbRatingShape||(t.NbRatingShape={}))},function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return p});var i=n(1),r=n(2),o=n(4),a=n(3),s=n(19),c=n(34),l=n(24),u=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.a(t,e),t}(o.a),p=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.a(t,e),t.prototype[l.a]=function(){return new u(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new c.a(this,e))},t.prototype.asObservable=function(){var e=new r.a;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.a),d=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.a(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.a.EMPTY},t}(p)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(2),r=n(3),o=n(35);function a(e,t){return t?new i.a(function(n){var i=new r.a,o=0;return i.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()})),i}):new i.a(Object(o.a)(e))}},function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return r});var r=i()},function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,t,n){"use strict";var i=n(2),r=n(39),o=n(38),a=n(16);var s=n(14);var c=n(13),l=n(3),u=n(40);var p=n(41);var d=n(37);var h=n(36);function f(e,t){if(!t)return e instanceof i.a?e:new i.a(Object(h.a)(e));if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return t?new i.a(function(n){var i=new l.a;return i.add(t.schedule(function(){var r=e[a.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i}):new i.a(Object(d.a)(e))}(e,t);if(Object(r.a)(e))return function(e,t){return t?new i.a(function(n){var i=new l.a;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i}):new i.a(Object(u.a)(e))}(e,t);if(Object(o.a)(e))return Object(c.a)(e,t);if(function(e){return e&&"function"==typeof e[s.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return t?new i.a(function(n){var i,r=new l.a;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[s.a](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}}))})),r}):new i.a(Object(p.a)(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}n.d(t,"a",function(){return f})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(1),r=n(4);function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.a(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(r.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(1),r=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return i.a(t,e),t}(Error)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.a(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(4).a)},function(e,t,n){"use strict";var i=n(1),r=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.a(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(4).a),o=n(36);function a(e,t,n,i){var a=new r(e,n,i);return Object(o.a)(t)(a)}n.d(t,"a",function(){return a})},function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e})}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber"},function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(1),r=function(e){function t(n){var i=e.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"")||this;return i.errors=n,i.name="UnsubscriptionError",Object.setPrototypeOf(i,t.prototype),i}return i.a(t,e),t}(Error)},function(e,t,n){"use strict";function i(){}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(10),r=n(23),o={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete:function(){}}},function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(75),a=n(0),s=n(7),c=n(15),l=function(){function e(e){this.http=e}return e.prototype.upload=function(e,t){var n=new FormData;n.append("file",e);var i=new o.HttpRequest("POST",t,n,{reportProgress:!0});return this.http.request(i).pipe(c.filter(function(e){return e instanceof o.HttpResponse||e.type===o.HttpEventType.UploadProgress}),c.map(function(e){var t=new s.SystemAttachment;return e.type===o.HttpEventType.UploadProgress?(t.completed=!1,t.success=!1,t.progress=Math.round(100*e.loaded/e.total),t.url="",t.name="",t.size=0,t.type="",t.id=0,t.status="上传中... ..."):e instanceof o.HttpResponse&&(t.completed=!0,t.success=!0,t.progress=100,t.url=e.body.data.url,t.type=e.body.data.type,t.name=e.body.data.name,t.size=e.body.data.size,t.id=e.body.data.id,t.status="上传成功"),t}))},e.prototype.blobToFile=function(e,t){var n=e;return n.lastModifiedDate=new Date,n.name=t,n},e=i([a.Injectable(),r("design:paramtypes",[o.HttpClient])],e)}();t.NbinputUploadService=l},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(2),r=n(8),o=n(43),a=n(13);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,s=null,c=e[e.length-1];return Object(r.a)(c)?(s=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof c&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof i.a?e[0]:Object(o.a)(n)(Object(a.a)(e,s))}},function(e,t,n){"use strict";n.r(t);var i=n(2),r=n(1),o=n(9),a=n(4),s=n(3);var c=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new l(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r},e}(),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return r.a(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(a.a),u=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return r.a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed?(this._connection=null,e=s.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return(e=this).lift(new c(e));var e},t}(i.a),p=u.prototype,d=(p._subscribe,p._isComplete,p.getSubject,p.connect,p.refCount,function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return r.a(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b));a.a;a.a;var h=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return r.a(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(a.a),f=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return r.a(t,e),t.prototype._subscribe=function(e){var t=new s.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new g(n)),t.add(i.subscribe(e)),t},t}(i.a),g=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.a(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.a),m=n(16),b=n(19),y=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.a),v=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return r.a(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.a(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(s.a)),w=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return r.a(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(v),x=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),I=function(e){function t(n,i){void 0===i&&(i=x.now);var r=e.call(this,n,function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return r.a(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(x),k=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t}(I))(w),C=new i.a(function(e){return e.complete()});function M(e){return e?function(e){return new i.a(function(t){return e.schedule(function(){return t.complete()})})}(e):C}var E=n(8),j=n(13);function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,o=e[e.length-1];switch(Object(E.a)(o)?e.pop():o=void 0,e.length){case 0:return M(o);case 1:return o?Object(j.a)(e,o):(n=e[0],(r=new i.a(function(e){e.next(n),e.complete()}))._isScalar=!0,r.value=n,r);default:return Object(j.a)(e,o)}}function A(e,t){return t?new i.a(function(n){return t.schedule(L,0,{error:e,subscriber:n})}):new i.a(function(t){return t.error(e)})}function L(e){var t=e.error;e.subscriber.error(t)}var O=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return S(this.value);case"E":return A(this.error);case"C":return M()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();var T=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return r.a(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new N(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(O.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(O.createError(e))},t.prototype._complete=function(){this.scheduleMessage(O.createComplete())},t}(a.a),N=function(){return function(e,t){this.notification=e,this.destination=t}}(),_=n(34),D=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return r.a(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new P(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?t=s.a.EMPTY:(this.observers.push(e),t=new _.a(this,e)),r&&e.add(e=new T(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||k).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(o.a),P=function(){return function(e,t){this.time=e,this.value=t}}(),z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.a(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(o.a),R=1,G={};var B=function(e){var t=R++;return G[t]=e,Promise.resolve().then(function(){return function(e){var t=G[e];t&&t()}(t)}),t},F=function(e){delete G[e]},U=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return r.a(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=B(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(F(n),t.scheduled=void 0)},t}(v),Y=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(I))(U),Z=new I(v),V=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return r.a(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(v),H=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(I))(V),Q=function(e){function t(t,n){void 0===t&&(t=W),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return r.a(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n.shift())&&(this.frame=t.delay)<=i&&!(e=t.execute(t.state,t.delay)););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(I),W=function(e){function t(t,n,i){void 0===i&&(i=t.index+=1);var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.index=i,r.active=!0,r.index=t.index=i,r}return r.a(t,e),t.prototype.schedule=function(n,i){if(void 0===i&&(i=0),!this.id)return e.prototype.schedule.call(this,n,i);this.active=!1;var r=new t(this.scheduler,this.work);return this.add(r),r.schedule(n,i)},t.prototype.requestAsyncId=function(e,n,i){void 0===i&&(i=0),this.delay=e.frame+i;var r=e.actions;return r.push(this),r.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(v),J=n(32),K=n(27),X=n(25);function q(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var $=function(e){function t(){var n=e.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,t.prototype),n}return r.a(t,e),t}(Error),ee=function(e){function t(){var n=e.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,t.prototype),n}return r.a(t,e),t}(Error),te=n(26),ne=function(e){function t(){var n=e.call(this,"Timeout has occurred")||this;return n.name="TimeoutError",Object.setPrototypeOf(n,t.prototype),n}return r.a(t,e),t}(Error),ie=n(18),re=n(5);function oe(e,t,n){if(t){if(!Object(E.a)(t))return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return oe(e,n).apply(void 0,i).pipe(Object(ie.a)(function(e){return Object(re.a)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o,a=this,s={context:a,subject:o,callbackFunc:e,scheduler:n};return new i.a(function(i){if(n){var r={args:t,subscriber:i,params:s};return n.schedule(ae,0,r)}if(!o){o=new z;try{e.apply(a,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o.next(e.length<=1?e[0]:e),o.complete()}]))}catch(e){o.error(e)}}return o.subscribe(i)})}}function ae(e){var t=this,n=e.args,i=e.subscriber,r=e.params,o=r.callbackFunc,a=r.context,s=r.scheduler,c=r.subject;if(!c){c=r.subject=new z;try{o.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length<=1?e[0]:e;t.add(s.schedule(se,0,{value:i,subject:c}))}]))}catch(e){c.error(e)}}this.add(c.subscribe(i))}function se(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function ce(e,t,n){if(t){if(!Object(E.a)(t))return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return ce(e,n).apply(void 0,i).pipe(Object(ie.a)(function(e){return Object(re.a)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new i.a(function(i){var r=o.context,a=o.subject;if(n)return n.schedule(le,0,{params:o,subscriber:i,context:r});if(!a){a=o.subject=new z;try{e.apply(r,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();n?a.error(n):(a.next(e.length<=1?e[0]:e),a.complete())}]))}catch(e){a.error(e)}}return a.subscribe(i)})}}function le(e){var t=this,n=e.params,i=e.subscriber,r=e.context,o=n.callbackFunc,a=n.args,s=n.scheduler,c=n.subject;if(!c){c=n.subject=new z;try{o.apply(r,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.shift();if(i)t.add(s.schedule(pe,0,{err:i,subject:c}));else{var r=e.length<=1?e[0]:e;t.add(s.schedule(ue,0,{value:r,subject:c}))}}]))}catch(e){this.add(s.schedule(pe,0,{err:e,subject:c}))}}this.add(c.subscribe(i))}function ue(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function pe(e){var t=e.err;e.subject.error(t)}var de=n(20),he=n(21),fe={};function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,i=null;return Object(E.a)(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(re.a)(e[0])&&(e=e[0]),Object(j.a)(e,i).lift(new me(n))}var me=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new be(e,this.resultSelector))},e}(),be=function(e){function t(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return r.a(t,e),t.prototype._next=function(e){this.values.push(fe),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(Object(he.a)(this,i,i,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.values,a=o[n],s=this.toRespond?a===fe?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(de.a),ye=n(17),ve=n(43);function we(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length||2===e.length&&Object(E.a)(e[1])?Object(ye.a)(e[0]):Object(ve.a)(1)(S.apply(void 0,e))}function xe(e){return new i.a(function(t){var n;try{n=e()}catch(e){return void t.error(e)}return(n?Object(ye.a)(n):M()).subscribe(t)})}function Ie(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(re.a)(t[0])&&(t=t[0]),0===t.length?C:e?Ie(t).pipe(Object(ie.a)(function(t){return e.apply(void 0,t)})):new i.a(function(e){return new ke(e,t)})}var ke=function(e){function t(t,n){var i=e.call(this,t)||this;i.sources=n,i.completed=0,i.haveValues=0;var r=n.length;i.values=new Array(r);for(var o=0;o<r;o++){var a=n[o],s=Object(he.a)(i,a,null,o);s&&i.add(s)}return i}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values[n]=t,r._hasValue||(r._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,i=this.values,r=i.length;e._hasValue?(this.completed++,this.completed===r&&(n===r&&t.next(i),t.complete())):t.complete()},t}(de.a),Ce=n(42),Me=n(22);function Ee(e,t,n){return n?Ee(e,t).pipe(Object(ie.a)(function(e){return Object(re.a)(e)?n.apply(void 0,e):n(e)})):new i.a(function(n){var i,r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{i=e(r)}catch(e){return void n.error(e)}if(Object(Me.a)(t))return function(){return t(r,i)}})}function je(e,t,n,r,o){var a,s;if(1==arguments.length){var c=e;s=c.initialState,t=c.condition,n=c.iterate,a=c.resultSelector||X.a,o=c.scheduler}else void 0===r||Object(E.a)(r)?(s=e,a=X.a,o=r):(s=e,a=r);return new i.a(function(e){var i=s;if(o)return o.schedule(Se,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:i});for(;;){if(t){var r=void 0;try{r=t(i)}catch(t){return void e.error(t)}if(!r){e.complete();break}}var c=void 0;try{c=a(i)}catch(t){return void e.error(t)}if(e.next(c),e.closed)break;try{i=n(i)}catch(t){return void e.error(t)}}})}function Se(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(n){var i=void 0;try{i=n(e.state)}catch(e){return void t.error(e)}if(!i)return void t.complete();if(t.closed)return}var r;try{r=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(r),!t.closed))return this.schedule(e)}}function Ae(e,t,n){return void 0===t&&(t=C),void 0===n&&(n=C),xe(function(){return e()?t:n})}function Le(e){return!Object(re.a)(e)&&e-parseFloat(e)+1>=0}function Oe(e,t){return void 0===e&&(e=0),void 0===t&&(t=Z),(!Le(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Z),new i.a(function(n){return n.add(t.schedule(Te,e,{subscriber:n,counter:0,period:e})),n})}function Te(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}var Ne=n(30),_e=new i.a(K.a);function De(){return _e}function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return C;var n=e[0],r=e.slice(1);return 1===e.length&&Object(re.a)(n)?Pe.apply(void 0,n):new i.a(function(e){var t=function(){return e.add(Pe.apply(void 0,r).subscribe(e))};return Object(ye.a)(n).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}function ze(e,t){return t?new i.a(function(n){var i=Object.keys(e),r=new s.a;return r.add(t.schedule(Re,0,{keys:i,index:0,subscriber:n,subscription:r,obj:e})),r}):new i.a(function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var r=n[i];e.hasOwnProperty(r)&&t.next([r,e[r]])}t.complete()})}function Re(e){var t=e.keys,n=e.index,i=e.subscriber,r=e.subscription,o=e.obj;if(!i.closed)if(n<t.length){var a=t[n];i.next([a,o[a]]),r.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:r,obj:o}))}else i.complete()}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!Object(re.a)(e[0]))return e[0];e=e[0]}return Object(j.a)(e,void 0).lift(new Be)}var Be=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Fe(e))},e}(),Fe=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.a(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=Object(he.a)(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var a=this.subscriptions[o];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(de.a);function Ue(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),new i.a(function(i){var r=0,o=e;if(n)return n.schedule(Ye,0,{index:r,count:t,start:e,subscriber:i});for(;;){if(r++>=t){i.complete();break}if(i.next(o++),i.closed)break}})}function Ye(e){var t=e.start,n=e.index,i=e.count,r=e.subscriber;n>=i?r.complete():(r.next(t),r.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}function Ze(e,t,n){void 0===e&&(e=0);var r=-1;return Le(t)?r=Number(t)<1?1:Number(t):Object(E.a)(t)&&(n=t),Object(E.a)(n)||(n=Z),new i.a(function(t){var i=Le(e)?e:+e-n.now();return n.schedule(Ve,i,{index:0,period:r,subscriber:t})})}function Ve(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function He(e,t){return new i.a(function(n){var i,r;try{i=e()}catch(e){return void n.error(e)}try{r=t(i)}catch(e){return void n.error(e)}var o=(r?Object(ye.a)(r):C).subscribe(n);return function(){o.unsubscribe(),i&&i.unsubscribe()}})}var Qe=n(14);function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),Object(j.a)(e,void 0).lift(new Je(n))}var Je=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ke(e,this.resultSelector))},e}(),Ke=function(e){function t(t,n,i){void 0===i&&(i=Object.create(null));var r=e.call(this,t)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return r.a(t,e),t.prototype._next=function(e){var t=this.iterators;Object(re.a)(e)?t.push(new qe(e)):"function"==typeof e[Qe.a]?t.push(new Xe(e[Qe.a]())):t.push(new $e(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.add(i.subscribe(i,n)):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){if("function"==typeof(a=e[i]).hasValue&&!a.hasValue())return}var r=!1,o=[];for(i=0;i<t;i++){var a,s=(a=e[i]).next();if(a.hasCompleted()&&(r=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(a.a),Xe=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),qe=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[Qe.a]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null