UNPKG

swagger-ui-dist

Version:

[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)

1 lines 311 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(function(){try{return require("esprima")}catch(t){}}()):"function"==typeof define&&define.amd?define(["esprima"],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e(function(){try{return require("esprima")}catch(t){}}()):t.SwaggerUIStandalonePreset=e(t.esprima)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist",n(n.s=191)}([function(t,e,n){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return u(t)?t:F(t)}function r(t){return s(t)?t:B(t)}function i(t){return a(t)?t:G(t)}function o(t){return u(t)&&!c(t)?t:W(t)}function u(t){return!(!t||!t[l])}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[p])}function c(t){return s(t)||a(t)}function f(t){return!(!t||!t[d])}e(r,n),e(i,n),e(o,n),n.isIterable=u,n.isKeyed=s,n.isIndexed=a,n.isAssociative=c,n.isOrdered=f,n.Keyed=r,n.Indexed=i,n.Set=o;var l="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",y={},v={value:!1},w={value:!1};function g(t){return t.value=!1,t}function M(t){t&&(t.value=!0)}function _(){}function m(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function L(t){return void 0===t.size&&(t.size=t.__iterate(j)),t.size}function b(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?L(t)+e:e}function j(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function N(t,e){return D(t,e,0)}function S(t,e){return D(t,e,e)}function D(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I,E,A,C="function"==typeof Symbol&&Symbol.iterator,T=C||"@@iterator";function O(t){this.next=t}function z(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function k(){return{value:void 0,done:!0}}function U(t){return!!R(t)}function Y(t){return t&&"function"==typeof t.next}function P(t){var e=R(t);return e&&e.call(t)}function R(t){var e=t&&(C&&t[C]||t["@@iterator"]);if("function"==typeof e)return e}function Q(t){return t&&"number"==typeof t.length}function F(t){return null==t?H():u(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new J(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function B(t){return null==t?H().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():K(t)}function G(t){return null==t?H():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():$(t)}function W(t){return(null==t?H():u(t)?s(t)?t.entrySeq():t:$(t)).toSetSeq()}function q(t){this._array=t,this.size=t.length}function J(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function Z(t){this._iterable=t,this.size=t.length||t.size}function V(t){this._iterator=t,this._iteratorCache=[]}function X(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function H(){return I||(I=new q([]))}function K(t){var e=Array.isArray(t)?new q(t).fromEntrySeq():Y(t)?new V(t).fromEntrySeq():U(t)?new Z(t).fromEntrySeq():"object"==typeof t?new J(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function $(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return Q(t)?new q(t):Y(t)?new V(t):U(t)?new Z(t):void 0}function et(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[n?o-u:u];if(!1===e(s[1],r?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,n)}function nt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,u=0;return new O((function(){var t=i[n?o-u:u];return u++>o?{value:void 0,done:!0}:z(e,r?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,n)}function rt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,G(n).map((function(r,i){return t(e,r,i,n)}))):ot(n)?e.call(i,r,B(n).map((function(r,i){return t(e,r,i,n)}))):n}(e,t,"",{"":t}):it(t)}function it(t){return Array.isArray(t)?G(t).map(it).toList():ot(t)?B(t).map(it).toMap():t}function ot(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ut(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function st(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(f(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&ut(i[1],t)&&(n||ut(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var l=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ut(e,t.get(r,y)):!ut(t.get(r,y),e))return l=!1,!1}));return l&&t.size===h}function at(t,e){if(!(this instanceof at))return new at(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(E)return E;E=this}}function ct(t,e){if(!t)throw new Error(e)}function ft(t,e,n){if(!(this instanceof ft))return new ft(t,e,n);if(ct(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(A)return A;A=this}}function lt(){throw TypeError("Abstract")}function ht(){}function pt(){}function dt(){}O.prototype.toString=function(){return"[Iterator]"},O.KEYS=0,O.VALUES=1,O.ENTRIES=2,O.prototype.inspect=O.prototype.toSource=function(){return this.toString()},O.prototype[T]=function(){return this},e(F,n),F.of=function(){return F(arguments)},F.prototype.toSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq {","}")},F.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},F.prototype.__iterate=function(t,e){return et(this,t,e,!0)},F.prototype.__iterator=function(t,e){return nt(this,t,e,!0)},e(B,F),B.prototype.toKeyedSeq=function(){return this},e(G,F),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return et(this,t,e,!1)},G.prototype.__iterator=function(t,e){return nt(this,t,e,!1)},e(W,F),W.of=function(){return W(arguments)},W.prototype.toSetSeq=function(){return this},F.isSeq=X,F.Keyed=B,F.Set=W,F.Indexed=G,F.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,e(q,G),q.prototype.get=function(t,e){return this.has(t)?this._array[b(this,t)]:e},q.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},q.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new O((function(){return i>r?{value:void 0,done:!0}:z(t,i,n[e?r-i++:i++])}))},e(J,B),J.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},J.prototype.has=function(t){return this._object.hasOwnProperty(t)},J.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var u=r[e?i-o:o];if(!1===t(n[u],u,this))return o+1}return o},J.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new O((function(){var u=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:z(t,u,n[u])}))},J.prototype[d]=!0,e(Z,G),Z.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=P(this._iterable),r=0;if(Y(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},Z.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=P(this._iterable);if(!Y(n))return new O(k);var r=0;return new O((function(){var e=n.next();return e.done?e:z(t,r++,e.value)}))},e(V,G),V.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(n=r.next()).done;){var u=n.value;if(i[o]=u,!1===t(u,o++,this))break}return o},V.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new O((function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return z(t,i,r[i++])}))},e(at,G),at.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},at.prototype.get=function(t,e){return this.has(t)?this._value:e},at.prototype.includes=function(t){return ut(this._value,t)},at.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:new at(this._value,S(e,n)-N(t,n))},at.prototype.reverse=function(){return this},at.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},at.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},at.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},at.prototype.__iterator=function(t,e){var n=this,r=0;return new O((function(){return r<n.size?z(t,r++,n._value):{value:void 0,done:!0}}))},at.prototype.equals=function(t){return t instanceof at?ut(this._value,t._value):st(t)},e(ft,G),ft.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ft.prototype.get=function(t,e){return this.has(t)?this._start+b(this,t)*this._step:e},ft.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},ft.prototype.slice=function(t,e){return x(t,e,this.size)?this:(t=N(t,this.size),(e=S(e,this.size))<=t?new ft(0,0):new ft(this.get(t,this._end),this.get(e,this._end),this._step))},ft.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},ft.prototype.lastIndexOf=function(t){return this.indexOf(t)},ft.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===t(i,o,this))return o+1;i+=e?-r:r}return o},ft.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new O((function(){var u=i;return i+=e?-r:r,o>n?{value:void 0,done:!0}:z(t,o++,u)}))},ft.prototype.equals=function(t){return t instanceof ft?this._start===t._start&&this._end===t._end&&this._step===t._step:st(this,t)},e(lt,n),e(ht,lt),e(pt,lt),e(dt,lt),lt.Keyed=ht,lt.Indexed=pt,lt.Set=dt;var yt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function vt(t){return t>>>1&1073741824|3221225471&t}function wt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return vt(n)}if("string"===e)return t.length>xt?function(t){var e=Dt[t];return void 0===e&&(e=gt(t),St===Nt&&(St=0,Dt={}),St++,Dt[t]=e),e}(t):gt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Lt&&void 0!==(e=Mt.get(t)))return e;if(void 0!==(e=t[jt]))return e;if(!mt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[jt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++bt,1073741824&bt&&(bt=0),Lt)Mt.set(t,e);else{if(void 0!==_t&&!1===_t(t))throw new Error("Non-extensible objects are not allowed as keys.");if(mt)Object.defineProperty(t,jt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[jt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[jt]=e}}return e}(t);if("function"==typeof t.toString)return gt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function gt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return vt(e)}var Mt,_t=Object.isExtensible,mt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Lt="function"==typeof WeakMap;Lt&&(Mt=new WeakMap);var bt=0,jt="__immutablehash__";"function"==typeof Symbol&&(jt=Symbol(jt));var xt=16,Nt=255,St=0,Dt={};function It(t){ct(t!==1/0,"Cannot perform this action with an infinite size.")}function Et(t){return null==t?Gt():At(t)&&!f(t)?t:Gt().withMutations((function(e){var n=r(t);It(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function At(t){return!(!t||!t[Tt])}e(Et,ht),Et.of=function(){var e=t.call(arguments,0);return Gt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},Et.prototype.toString=function(){return this.__toString("Map {","}")},Et.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Et.prototype.set=function(t,e){return Wt(this,t,e)},Et.prototype.setIn=function(t,e){return this.updateIn(t,y,(function(){return e}))},Et.prototype.remove=function(t){return Wt(this,t,y)},Et.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return y}))},Et.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Et.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,i){var o=e===y,u=n.next();if(u.done){var s=o?r:e,a=i(s);return a===s?e:a}ct(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?y:e.get(c,y),l=t(f,n,r,i);return l===f?e:l===y?e.remove(c):(o?Gt():e).set(c,l)}(this,Ve(t),e,n);return r===y?void 0:r},Et.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},Et.prototype.merge=function(){return Vt(this,void 0,arguments)},Et.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Vt(this,e,n)},Et.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},Et.prototype.mergeDeep=function(){return Vt(this,Xt,arguments)},Et.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Vt(this,Ht(e),n)},Et.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},Et.prototype.sort=function(t){return me(Ye(this,t))},Et.prototype.sortBy=function(t,e){return me(Ye(this,e,t))},Et.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Et.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Et.prototype.asImmutable=function(){return this.__ensureOwner()},Et.prototype.wasAltered=function(){return this.__altered},Et.prototype.__iterator=function(t,e){return new Rt(this,t,e)},Et.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},Et.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Bt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Et.isMap=At;var Ct,Tt="@@__IMMUTABLE_MAP__@@",Ot=Et.prototype;function zt(t,e){this.ownerID=t,this.entries=e}function kt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Ut(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Yt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Pt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Rt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Ft(t._root)}function Qt(t,e){return z(t,e[0],e[1])}function Ft(t,e){return{node:t,index:0,__prev:e}}function Bt(t,e,n,r){var i=Object.create(Ot);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Gt(){return Ct||(Ct=Bt(0))}function Wt(t,e,n){var r,i;if(t._root){var o=g(v),u=g(w);if(r=qt(t._root,t.__ownerID,0,void 0,e,n,o,u),!u.value)return t;i=t.size+(o.value?n===y?-1:1:0)}else{if(n===y)return t;i=1,r=new zt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Bt(i,r):Gt()}function qt(t,e,n,r,i,o,u,s){return t?t.update(e,n,r,i,o,u,s):o===y?t:(M(s),M(u),new Pt(e,r,[i,o]))}function Jt(t){return t.constructor===Pt||t.constructor===Yt}function Zt(t,e,n,r,i){if(t.keyHash===r)return new Yt(e,r,[t.entry,i]);var o,u=31&(0===n?t.keyHash:t.keyHash>>>n),s=31&(0===n?r:r>>>n);return new kt(e,1<<u|1<<s,u===s?[Zt(t,e,n+5,r,i)]:(o=new Pt(e,r,i),u<s?[t,o]:[o,t]))}function Vt(t,e,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=r(s);u(s)||(a=a.map((function(t){return rt(t)}))),i.push(a)}return Kt(t,e,i)}function Xt(t,e,n){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):ut(t,e)?t:e}function Ht(t){return function(e,n,r){if(e&&e.mergeDeepWith&&u(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return ut(e,i)?e:i}}function Kt(t,e,n){return 0===(n=n.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(n,r){t.update(r,y,(function(t){return t===y?n:e(t,n,r)}))}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)})):t.constructor(n[0])}function $t(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function te(t,e,n,r){var i=r?t:m(t);return i[e]=n,i}Ot[Tt]=!0,Ot.delete=Ot.remove,Ot.removeIn=Ot.deleteIn,zt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},zt.prototype.update=function(t,e,n,r,i,o,u){for(var s=i===y,a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var l=c<f;if(l?a[c][1]===i:s)return this;if(M(u),(s||!l)&&M(o),!s||1!==a.length){if(!l&&!s&&a.length>=ee)return function(t,e,n,r){t||(t=new _);for(var i=new Pt(t,wt(n),[n,r]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,r,i);var h=t&&t===this.ownerID,p=h?a:m(a);return l?s?c===f-1?p.pop():p[c]=p.pop():p[c]=[r,i]:p.push([r,i]),h?(this.entries=p,this):new zt(t,p)}},kt.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=1<<(31&(0===t?e:e>>>t)),o=this.bitmap;return 0==(o&i)?r:this.nodes[$t(o&i-1)].get(t+5,e,n,r)},kt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=wt(r));var s=31&(0===e?n:n>>>e),a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===y)return this;var l=$t(c&a-1),h=this.nodes,p=f?h[l]:void 0,d=qt(p,t,e+5,n,r,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=ne)return function(t,e,n,r,i){for(var o=0,u=new Array(32),s=0;0!==n;s++,n>>>=1)u[s]=1&n?e[o++]:void 0;return u[r]=i,new Ut(t,o+1,u)}(t,h,c,s,d);if(f&&!d&&2===h.length&&Jt(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&Jt(d))return d;var v=t&&t===this.ownerID,w=f?d?c:c^a:c|a,g=f?d?te(h,l,d,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,u=0;u<r;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,l,v):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=n,u=-1):o[s]=t[s+u];return o}(h,l,d,v);return v?(this.bitmap=w,this.nodes=g,this):new kt(t,w,g)},Ut.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=31&(0===t?e:e>>>t),o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Ut.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=wt(r));var s=31&(0===e?n:n>>>e),a=i===y,c=this.nodes,f=c[s];if(a&&!f)return this;var l=qt(f,t,e+5,n,r,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<re)return function(t,e,n,r){for(var i=0,o=0,u=new Array(n),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==r&&(i|=a,u[o++]=f)}return new kt(t,i,u)}(t,c,h,s)}else h++;var p=t&&t===this.ownerID,d=te(c,s,l,p);return p?(this.count=h,this.nodes=d,this):new Ut(t,h,d)},Yt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(ut(n,i[o][0]))return i[o][1];return r},Yt.prototype.update=function(t,e,n,r,i,o,u){void 0===n&&(n=wt(r));var s=i===y;if(n!==this.keyHash)return s?this:(M(u),M(o),Zt(this,t,e,n,[r,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!ut(r,a[c][0]);c++);var l=c<f;if(l?a[c][1]===i:s)return this;if(M(u),(s||!l)&&M(o),s&&2===f)return new Pt(t,this.keyHash,a[1^c]);var h=t&&t===this.ownerID,p=h?a:m(a);return l?s?c===f-1?p.pop():p[c]=p.pop():p[c]=[r,i]:p.push([r,i]),h?(this.entries=p,this):new Yt(t,this.keyHash,p)},Pt.prototype.get=function(t,e,n,r){return ut(n,this.entry[0])?this.entry[1]:r},Pt.prototype.update=function(t,e,n,r,i,o,u){var s=i===y,a=ut(r,this.entry[0]);return(a?i===this.entry[1]:s)?this:(M(u),s?void M(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Pt(t,this.keyHash,[r,i]):(M(o),Zt(this,t,e,wt(r),[r,i])))},zt.prototype.iterate=Yt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},kt.prototype.iterate=Ut.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},Pt.prototype.iterate=function(t,e){return t(this.entry)},e(Rt,O),Rt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return Qt(t,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Qt(t,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Qt(t,o.entry);e=this._stack=Ft(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ee=8,ne=16,re=8;function ie(t){var e=de();if(null==t)return e;if(oe(t))return t;var n=i(t),r=n.size;return 0===r?e:(It(r),r>0&&r<32?pe(0,r,5,null,new ae(n.toArray())):e.withMutations((function(t){t.setSize(r),n.forEach((function(e,n){return t.set(n,e)}))})))}function oe(t){return!(!t||!t[ue])}e(ie,pt),ie.of=function(){return this(arguments)},ie.prototype.toString=function(){return this.__toString("List [","]")},ie.prototype.get=function(t,e){if((t=b(this,t))>=0&&t<this.size){var n=we(this,t+=this._origin);return n&&n.array[31&t]}return e},ie.prototype.set=function(t,e){return function(t,e,n){if((e=b(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?ge(t,e).set(0,n):ge(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o=g(w);return e>=_e(t._capacity)?r=ye(r,t.__ownerID,0,e,n,o):i=ye(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):pe(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},ie.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ie.prototype.insert=function(t,e){return this.splice(t,0,e)},ie.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):de()},ie.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){ge(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},ie.prototype.pop=function(){return ge(this,0,-1)},ie.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){ge(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},ie.prototype.shift=function(){return ge(this,1)},ie.prototype.merge=function(){return Me(this,void 0,arguments)},ie.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Me(this,e,n)},ie.prototype.mergeDeep=function(){return Me(this,Xt,arguments)},ie.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Me(this,Ht(e),n)},ie.prototype.setSize=function(t){return ge(this,0,t)},ie.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:ge(this,N(t,n),S(e,n))},ie.prototype.__iterator=function(t,e){var n=0,r=he(this,e);return new O((function(){var e=r();return e===le?{value:void 0,done:!0}:z(t,n++,e)}))},ie.prototype.__iterate=function(t,e){for(var n,r=0,i=he(this,e);(n=i())!==le&&!1!==t(n,r++,this););return r},ie.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?pe(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ie.isList=oe;var ue="@@__IMMUTABLE_LIST__@@",se=ie.prototype;function ae(t,e){this.array=t,this.ownerID=e}se[ue]=!0,se.delete=se.remove,se.setIn=Ot.setIn,se.deleteIn=se.removeIn=Ot.removeIn,se.update=Ot.update,se.updateIn=Ot.updateIn,se.mergeIn=Ot.mergeIn,se.mergeDeepIn=Ot.mergeDeepIn,se.withMutations=Ot.withMutations,se.asMutable=Ot.asMutable,se.asImmutable=Ot.asImmutable,se.wasAltered=Ot.wasAltered,ae.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&31;if(r>=this.array.length)return new ae([],t);var i,o=0===r;if(e>0){var u=this.array[r];if((i=u&&u.removeBefore(t,e-5,n))===u&&o)return this}if(o&&!i)return this;var s=ve(this,t);if(!o)for(var a=0;a<r;a++)s.array[a]=void 0;return i&&(s.array[r]=i),s},ae.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i===this.array.length-1)return this}var u=ve(this,t);return u.array.splice(i+1),r&&(u.array[i]=r),u};var ce,fe,le={};function he(t,e){var n=t._origin,r=t._capacity,i=_e(r),o=t._tail;return u(t._root,t._level,0);function u(t,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>n?0:n-u,c=r-u;return c>32&&(c=32),function(){if(a===c)return le;var t=e?--c:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,c=o>n?0:n-o>>i,f=1+(r-o>>i);return f>32&&(f=32),function(){for(;;){if(s){var t=s();if(t!==le)return t;s=null}if(c===f)return le;var n=e?--f:c++;s=u(a&&a[n],i-5,o+(n<<i))}}}(t,s,a)}}function pe(t,e,n,r,i,o,u){var s=Object.create(se);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function de(){return ce||(ce=pe(0,0,5))}function ye(t,e,n,r,i,o){var u,s=r>>>n&31,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(n>0){var c=t&&t.array[s],f=ye(c,e,n-5,r,i,o);return f===c?t:((u=ve(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(M(o),u=ve(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function ve(t,e){return e&&t&&e===t.ownerID?t:new ae(t?t.array.slice():[],e)}function we(t,e){if(e>=_e(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&31],r-=5;return n}}function ge(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new _,i=t._origin,o=t._capacity,u=i+e,s=void 0===n?o:n<0?o+n:i+n;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new ae(c&&c.array.length?[void 0,c]:[],r),f+=1<<(a+=5);f&&(u+=f,i+=f,s+=f,o+=f);for(var l=_e(o),h=_e(s);h>=1<<a+5;)c=new ae(c&&c.array.length?[c]:[],r),a+=5;var p=t._tail,d=h<l?we(t,s-1):h>l?new ae([],r):p;if(p&&h>l&&u<o&&p.array.length){for(var y=c=ve(c,r),v=a;v>5;v-=5){var w=l>>>v&31;y=y.array[w]=ve(y.array[w],r)}y.array[l>>>5&31]=p}if(s<o&&(d=d&&d.removeAfter(r,0,s)),u>=h)u-=h,s-=h,a=5,c=null,d=d&&d.removeBefore(r,0,u);else if(u>i||h<l){for(f=0;c;){var g=u>>>a&31;if(g!==h>>>a&31)break;g&&(f+=(1<<a)*g),a-=5,c=c.array[g]}c&&u>i&&(c=c.removeBefore(r,a,u-f)),c&&h<l&&(c=c.removeAfter(r,a,h-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):pe(u,s,a,c,d)}function Me(t,e,n){for(var r=[],o=0,s=0;s<n.length;s++){var a=n[s],c=i(a);c.size>o&&(o=c.size),u(a)||(c=c.map((function(t){return rt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),Kt(t,e,r)}function _e(t){return t<32?0:t-1>>>5<<5}function me(t){return null==t?je():Le(t)?t:je().withMutations((function(e){var n=r(t);It(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Le(t){return At(t)&&f(t)}function be(t,e,n,r){var i=Object.create(me.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function je(){return fe||(fe=be(Gt(),de()))}function xe(t,e,n){var r,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(n===y){if(!a)return t;u.size>=32&&u.size>=2*o.size?(r=(i=u.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(n===u.get(s)[1])return t;r=o,i=u.set(s,[e,n])}else r=o.set(e,u.size),i=u.set(u.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):be(r,i)}function Ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Se(t){this._iter=t,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function Ie(t){this._iter=t,this.size=t.size}function Ee(t){var e=qe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Je,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new O((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Ae(t,e,n){var r=qe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,y);return o===y?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate((function(t,i,u){return!1!==r(e.call(n,t,i,u),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(2,i);return new O((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return z(r,s,e.call(n,u[1],s,t),i)}))},r}function Ce(t,e){var n=qe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Ee(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Je,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Te(t,e,n,r){var i=qe(t);return r&&(i.has=function(r){var i=t.get(r,y);return i!==y&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,y);return o!==y&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(e.call(n,t,o,a))return s++,i(t,r?o:s-1,u)}),o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),s=0;return new O((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(n,f,c,t))return z(i,r?c:s++,f,o)}}))},i}function Oe(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),x(e,n,i))return t;var o=N(e,i),u=S(n,i);if(o!=o||u!=u)return Oe(t.toSeq().cacheResult(),e,n,r);var s,a=u-o;a==a&&(s=a<0?0:a);var c=qe(t);return c.size=0===s?s:t.size&&s||void 0,!r&&X(t)&&s>=0&&(c.get=function(e,n){return(e=b(this,e))>=0&&e<s?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var u=0,a=!0,c=0;return t.__iterate((function(t,n){if(!a||!(a=u++<o))return c++,!1!==e(t,r?n:c-1,i)&&c!==s})),c},c.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),u=0,a=0;return new O((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:z(e,a-1,0===e?void 0:t.value[1],t)}))},c}function ze(t,e,n,r){var i=qe(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return a++,i(t,r?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),a=!0,c=0;return new O((function(){var t,o,f;do{if((t=s.next()).done)return r||1===i?t:z(i,c++,0===i?void 0:t.value[1],t);var l=t.value;o=l[0],f=l[1],a&&(a=e.call(n,f,o,u))}while(a);return 2===i?t:z(i,o,f,t)}))},i}function ke(t,e){var n=s(t),i=[t].concat(e).map((function(t){return u(t)?n&&(t=r(t)):t=n?K(t):$(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||a(t)&&a(o))return o}var c=new q(i);return n?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),c}function Ue(t,e,n){var r=qe(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function t(a,c){var f=this;a.__iterate((function(i,a){return(!e||c<e)&&u(i)?t(i,c+1):!1===r(i,n?a:o++,f)&&(s=!0),!s}),i)}(t,0),o},r.__iteratorUncached=function(r,i){var o=t.__iterator(r,i),s=[],a=0;return new O((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(s.length<e)||!u(c))return n?t:z(r,a++,c,t);s.push(o),o=c.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Ye(t,e,n){e||(e=Ze);var r=s(t),i=0,o=t.toSeq().map((function(e,r){return[r,e,i++,n?n(e,r,t):e]})).toArray();return o.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?B(o):a(t)?G(o):W(o)}function Pe(t,e,n){if(e||(e=Ze),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Re(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Re(e,t,n)?n:t}))}function Re(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Qe(t,e,r){var i=qe(t);return i.size=new q(r).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=n(t),P(i?t.reverse():t)})),u=0,s=!1;return new O((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:z(t,u++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Fe(t,e){return X(t)?e:t.constructor(e)}function Be(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ge(t){return It(t.size),L(t)}function We(t){return s(t)?r:a(t)?i:o}function qe(t){return Object.create((s(t)?B:a(t)?G:W).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function Ze(t,e){return t>e?1:t<e?-1:0}function Ve(t){var e=P(t);if(!e){if(!Q(t))throw new TypeError("Expected iterable or array-like: "+t);e=P(n(t))}return e}function Xe(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var u=Object.keys(t);!function(t,e){try{e.forEach(tn.bind(void 0,t))}catch(t){}}(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Et(o)},i=r.prototype=Object.create(He);return i.constructor=r,r}e(me,Et),me.of=function(){return this(arguments)},me.prototype.toString=function(){return this.__toString("OrderedMap {","}")},me.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},me.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):je()},me.prototype.set=function(t,e){return xe(this,t,e)},me.prototype.remove=function(t){return xe(this,t,y)},me.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},me.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},me.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},me.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?be(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},me.isOrderedMap=Le,me.prototype[d]=!0,me.prototype.delete=me.prototype.remove,e(Ne,B),Ne.prototype.get=function(t,e){return this._iter.get(t,e)},Ne.prototype.has=function(t){return this._iter.has(t)},Ne.prototype.valueSeq=function(){return this._iter.valueSeq()},Ne.prototype.reverse=function(){var t=this,e=Ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Ne.prototype.map=function(t,e){var n=this,r=Ae(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Ne.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ge(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?Ge(this):0;return new O((function(){var i=n.next();return i.done?i:z(t,e?--r:r++,i.value,i)}))},Ne.prototype[d]=!0,e(Se,G),Se.prototype.includes=function(t){return this._iter.includes(t)},Se.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate((function(e){return t(e,r++,n)}),e)},Se.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new O((function(){var e=n.next();return e.done?e:z(t,r++,e.value,e)}))},e(De,W),De.prototype.has=function(t){return this._iter.includes(t)},De.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},De.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new O((function(){var e=n.next();return e.done?e:z(t,e.value,e.value,e)}))},e(Ie,B),Ie.prototype.entrySeq=function(){return this._iter.toSeq()},Ie.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Be(e);var r=u(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},Ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new O((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Be(r);var i=u(r);return z(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}}))},Se.prototype.cacheResult=Ne.prototype.cacheResult=De.prototype.cacheResult=Ie.prototype.cacheResult=Je,e(Xe,ht),Xe.prototype.toString=function(){return this.__toString($e(this)+" {","}")},Xe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Xe.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Xe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ke(this,Gt()))},Xe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+$e(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Ke(this,n)},Xe.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Ke(this,e)},Xe.prototype.wasAltered=function(){return this._map.wasAltered()},Xe.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterator(t,e)},Xe.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterate(t,e)},Xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ke(this,e,t):(this.__ownerID=t,this._map=e,this)};var He=Xe.prototype;function Ke(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function $e(t){return t._name||t.constructor.name||"Record"}function tn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ct(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function en(t){return null==t?cn():nn(t)&&!f(t)?t:cn().withMutations((function(e){var n=o(t);It(n.size),n.forEach((function(t){return e.add(t)}))}))}function nn(t){return!(!t||!t[on])}He.delete=He.remove,He.deleteIn=He.removeIn=Ot.removeIn,He.merge=Ot.merge,He.mergeWith=Ot.mergeWith,He.mergeIn=Ot.mergeIn,He.mergeDeep=Ot.mergeDeep,He.mergeDeepWith=Ot.mergeDeepWith,He.mergeDeepIn=Ot.mergeDeepIn,He.setIn=Ot.setIn,He.update=Ot.update,He.updateIn=Ot.updateIn,He.withMutations=Ot.withMutations,He.asMutable=Ot.asMutable,He.asImmutable=Ot.asImmutable,e(en,dt),en.of=function(){return this(arguments)},en.fromKeys=function(t){return this(r(t).keySeq())},en.prototype.toString=function(){return this.__toString("Set {","}")},en.prototype.has=function(t){return this._map.has(t)},en.prototype.add=function(t){return sn(this,this._map.set(t,!0))},en.prototype.remove=function(t){return sn(this,this._map.remove(t))},en.prototype.clear=function(){return sn(this,this._map.clear())},en.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var n=0;n<e.length;n++)o(e[n]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},en.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.every((function(t){return t.includes(n)}))||t.remove(n)}))}))},en.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.some((function(t){return t.includes(n)}))&&t.remove(n)}))}))},en.prototype.merge=function(){return this.union.apply(this,arguments)},en.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},en.prototype.sort=function(t){return fn(Ye(this,t))},en.prototype.sortBy=function(t,e){return fn(Ye(this,e,t))},en.prototype.wasAltered=function(){return this._map.wasAltered()},en.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e,r){return t(r,r,n)}),e)},en.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},en.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},en.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",un=en.prototype;function sn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function an(t,e){var n=Object.create(un);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function cn(){return rn||(rn=an(Gt()))}function fn(t){return null==t?yn():ln(t)?t:yn().withMutations((function(e){var n=o(t);It(n.size),n.forEach((function(t){return e.add(t)}))}))}function ln(t){return nn(t)&&f(t)}un[on]=!0,un.delete=un.remove,un.mergeDeep=un.merge,un.mergeDeepWith=un.mergeWith,un.withMutations=Ot.withMutations,un.asMutable=Ot.asMutable,un.asImmutable=Ot.asImmutable,un.__empty=cn,un.__make=an,e(fn,en),fn.of=function(){return this(arguments)},fn.fromKeys=function(t){return this(r(t).keySeq())},fn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},fn.isOrderedSet=ln;var hn,pn=fn.prototype;function dn(t,e){var n=Object.create(pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function yn(){return hn||(hn=dn(je()))}function vn(t){return null==t?Ln():wn(t)?t:Ln().unshiftAll(t)}function wn(t){return!(!t||!t[Mn])}pn[d]=!0,pn.__empty=yn,pn.__make=dn,e(vn,pt),vn.of=function(){return this(arguments)},vn.prototype.toString=function(){return this.__toString("Stack [","]")},vn.prototype.get=function(t,e){var n=this._head;for(t=b(this,t);n&&t--;)n=n.next;return n?n.value:e},vn.prototype.peek=function(){return this._head&&this._head.value},vn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):mn(t,e)},vn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;It(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):mn(e,n)},vn.prototype.pop=function(){return this.slice(1)},vn.prototype.unshift=function(){return this.push.apply(this,arguments)},vn.prototype.unshiftAll=function(t){return this.pushAll(t)},vn.prototype.shift=function(){return this.pop.apply(this,arguments)},vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ln()},vn.prototype.slice=function(t,e){if(x(t,e,this.size))return this;var n=N(t,this.size);if(S(e,this.size)!==this.size)return pt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):mn(r,i)},vn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?mn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},vn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},vn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new O((function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return{value:void 0,done:!0}}))},vn.isStack=wn;var gn,Mn="@@__IMMUTABLE_STACK__@@",_n=vn.prototype;function mn(t,e,n,r){var i=Object.create(_n);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ln(){return gn||(gn=mn(0))}function bn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}_n[Mn]=!0,_n.withMutations=Ot.withMutations,_n.asMutable=Ot.asMutable,_n.asImmutable=Ot.asImmutable,_n.wasAltered=Ot.wasAltered,n.Iterator=O,bn(n,{toArray:function(){It(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Se(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Ne(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:function(){It(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return me(this.toKeyedSeq())},toOrderedSet:function(){return fn(s(this)?this.valueSeq():this)},toSet:function(){return en(s(this)?this.valueSeq():this)},toSetSeq:function(){return new De(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return vn(s(this)?this.valueSeq():this)},toList:function(){return ie(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Fe(this,ke(this,e))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){It(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1})),n},filter:function(t,e){return Fe(this,Te(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return It(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){It(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Fe(this,Ae(this,t,e))},reduce:function(t,e,n){var r,i;return It(this.size),arguments.length<2?i=!0:r=e,this.__iterate((function(e,o,u){i?(i=!1,r=e):r=t.call(n,r,e,o,u)})),r},red