From f2e098ce7a8b1898b9985658b8b0cb81d53a94e8 Mon Sep 17 00:00:00 2001 From: Robin Bressan Date: Sat, 27 Feb 2016 19:41:52 +0100 Subject: [PATCH] 0.9.6 --- CHANGELOG.md | 6 ++++++ bower.json | 2 +- dist/es5/model/endpoint.js | 12 ++++++------ dist/restful.js | 12 ++++++------ dist/restful.min.js | 4 ++-- dist/restful.standalone.js | 12 ++++++------ dist/restful.standalone.min.js | 2 +- package.json | 2 +- 8 files changed, 29 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc99df3..ba036fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +v0.9.6 - 27 Feb. 2016 +--------------------- + +* Define all used HTTP methods as uppercase according to spec [#83](https://github.com/marmelab/restful.js/pull/83) ([opengeek](https://github.com/opengeek)) + + v0.9.5 - 11 Feb. 2016 --------------------- diff --git a/bower.json b/bower.json index 7bfbe13..9c8c084 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "restful.js", - "version": "0.9.5", + "version": "0.9.6", "homepage": "https://github.com/marmelab/restful.js", "authors": [ "Robin Bressan " diff --git a/dist/es5/model/endpoint.js b/dist/es5/model/endpoint.js index 3f8d44b..08ee932 100644 --- a/dist/es5/model/endpoint.js +++ b/dist/es5/model/endpoint.js @@ -108,7 +108,7 @@ exports['default'] = function (request) { addErrorInterceptor: addInterceptor('error'), addRequestInterceptor: addInterceptor('request'), addResponseInterceptor: addInterceptor('response'), - 'delete': _httpMethodFactory('delete'), + 'delete': _httpMethodFactory('DELETE'), identifier: function identifier(newIdentifier) { if (newIdentifier === undefined) { return scope.get('config').get('entityIdentifier'); @@ -118,8 +118,8 @@ exports['default'] = function (request) { return endpoint; }, - get: _httpMethodFactory('get', false), - head: _httpMethodFactory('head', false), + get: _httpMethodFactory('GET', false), + head: _httpMethodFactory('HEAD', false), header: function header(key, value) { return scope.assign('headers', key, value); }, @@ -134,9 +134,9 @@ exports['default'] = function (request) { }, on: scope.on, once: scope.once, - patch: _httpMethodFactory('patch'), - post: _httpMethodFactory('post'), - put: _httpMethodFactory('put'), + patch: _httpMethodFactory('PATCH'), + post: _httpMethodFactory('POST'), + put: _httpMethodFactory('PUT'), url: function url() { return scope.get('url'); } diff --git a/dist/restful.js b/dist/restful.js index 97449ec..5ce252b 100644 --- a/dist/restful.js +++ b/dist/restful.js @@ -246,7 +246,7 @@ return /******/ (function(modules) { // webpackBootstrap addErrorInterceptor: addInterceptor('error'), addRequestInterceptor: addInterceptor('request'), addResponseInterceptor: addInterceptor('response'), - 'delete': _httpMethodFactory('delete'), + 'delete': _httpMethodFactory('DELETE'), identifier: function identifier(newIdentifier) { if (newIdentifier === undefined) { return scope.get('config').get('entityIdentifier'); @@ -256,8 +256,8 @@ return /******/ (function(modules) { // webpackBootstrap return endpoint; }, - get: _httpMethodFactory('get', false), - head: _httpMethodFactory('head', false), + get: _httpMethodFactory('GET', false), + head: _httpMethodFactory('HEAD', false), header: function header(key, value) { return scope.assign('headers', key, value); }, @@ -272,9 +272,9 @@ return /******/ (function(modules) { // webpackBootstrap }, on: scope.on, once: scope.once, - patch: _httpMethodFactory('patch'), - post: _httpMethodFactory('post'), - put: _httpMethodFactory('put'), + patch: _httpMethodFactory('PATCH'), + post: _httpMethodFactory('POST'), + put: _httpMethodFactory('PUT'), url: function url() { return scope.get('url'); } diff --git a/dist/restful.min.js b/dist/restful.min.js index 00a6776..fa8a43e 100644 --- a/dist/restful.min.js +++ b/dist/restful.min.js @@ -1,3 +1,3 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.restful=e():t.restful=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i);e["default"]=o["default"],t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var r=(0,v["default"])();r.assign("config","entityIdentifier","id"),!t&&"undefined"!=typeof window&&window.location?r.set("url",window.location.protocol+"//"+window.location.host):r.set("url",t);var n=(0,h.member)((0,u["default"])((0,c["default"])(e))(r));return d.push(n),n}Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),u=n(o),s=r(9),a=n(s),f=r(14),c=n(f),h=r(15),p=r(16),l=n(p),_=r(17),v=n(_),d=[];i._instances=function(){return d},i._flush=function(){return d.length=0},e.fetchBackend=a["default"],e.requestBackend=l["default"],e["default"]=i},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),o=n(i),u=r(4),s=n(u),a=r(6),f=r(7),c=n(f);e["default"]=function(t){return function e(r){function n(t,e,n,i){var o=(0,a.Map)({errorInterceptors:(0,a.List)(r.get("errorInterceptors")),headers:(0,a.Map)(r.get("headers")).mergeDeep((0,a.Map)(i)),method:t,params:n,requestInterceptors:(0,a.List)(r.get("requestInterceptors")),responseInterceptors:(0,a.List)(r.get("responseInterceptors")),url:r.get("url")});return e&&(o.hasIn(["headers","Content-Type"])||(o=o.setIn(["headers","Content-Type"],"application/json;charset=UTF-8")),o=o.set("data",(0,a.fromJS)(e))),o}function i(t,e){var n=(0,s["default"])(e,p);return r.emit("response",n,(0,c["default"])(t)),n}function u(t,e){throw r.emit("error",e,(0,c["default"])(t)),e}function f(e){var o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],s=function(){r.emit.apply(r,arguments)};return o?function(r){var o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],f=n(e,r,o,a);return t(f,s).then(function(t){return i(f,t)},function(t){return u(f,t)})}:function(){var r=arguments.length<=0||void 0===arguments[0]?null:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=n(e,null,r,o);return t(a,s).then(function(t){return i(a,t)},function(t){return u(a,t)})}}function h(t){return function(e){return r.push(t+"Interceptors",e),p}}r.on("error",function(){return!0});var p={};return(0,o["default"])(p,{addErrorInterceptor:h("error"),addRequestInterceptor:h("request"),addResponseInterceptor:h("response"),"delete":f("delete"),identifier:function(t){return void 0===t?r.get("config").get("entityIdentifier"):(r.assign("config","entityIdentifier",t),p)},get:f("get",!1),head:f("head",!1),header:function(t,e){return r.assign("headers",t,e)},headers:function(){return r.get("headers")},"new":function(t){var n=r["new"]();return n.set("url",t),e(n)},on:r.on,once:r.once,patch:f("patch"),post:f("post"),put:f("put"),url:function(){return r.get("url")}}),p}},t.exports=e["default"]},function(t,e){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var n,i,o=r(t),u=1;ui;i++)n[i]=arguments[i];return e.put.apply(e,[t].concat(n))},url:e.url}},t.exports=e["default"]},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:E(t)}function r(t){return u(t)?t:q(t)}function n(t){return s(t)?t:D(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[fr])}function s(t){return!(!t||!t[cr])}function a(t){return u(t)||s(t)}function f(t){return!(!t||!t[hr])}function c(t){return t.value=!1,t}function h(t){t&&(t.value=!0)}function p(){}function l(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(d)),t.size}function v(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?_(t)+e:e}function d(){return!0}function y(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function b(t){this.next=t}function S(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function I(){return{value:void 0,done:!0}}function z(t){return!!M(t)}function O(t){return t&&"function"==typeof t.next}function x(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(Sr&&t[Sr]||t[Ir]);return"function"==typeof e?e:void 0}function j(t){return t&&"number"==typeof t.length}function E(t){return null===t||void 0===t?P():o(t)?t.toSeq():C(t)}function q(t){return null===t||void 0===t?P().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():K(t)}function D(t){return null===t||void 0===t?P():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():N(t)}function A(t){return(null===t||void 0===t?P():o(t)?u(t)?t.entrySeq():t:N(t)).toSetSeq()}function k(t){this._array=t,this.size=t.length}function L(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function T(t){this._iterable=t,this.size=t.length||t.size}function R(t){this._iterator=t,this._iteratorCache=[]}function U(t){return!(!t||!t[Or])}function P(){return xr||(xr=new k([]))}function K(t){var e=Array.isArray(t)?new k(t).fromEntrySeq():O(t)?new R(t).fromEntrySeq():z(t)?new T(t).fromEntrySeq():"object"==typeof t?new L(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function N(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function C(t){var e=B(t)||"object"==typeof t&&new L(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return j(t)?new k(t):O(t)?new R(t):z(t)?new T(t):void 0}function W(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function H(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new b(function(){var t=i[r?o-u:u];return u++>o?I():S(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function J(t,e){return e?V(e,t,"",{"":t}):F(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,D(e).map(function(r,n){return V(t,r,n,e)})):Y(e)?t.call(n,r,q(e).map(function(r,n){return V(t,r,n,e)})):e}function F(t){return Array.isArray(t)?D(t).map(F).toList():Y(t)?q(t).map(F).toMap():t}function Y(t){return t&&(t.constructor===Object||void 0===t.constructor)}function G(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===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function Q(t,e){if(t===e)return!0;if(!o(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||u(t)!==u(e)||s(t)!==s(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(f(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&G(i[1],t)&&(r||G(i[0],e))})&&n.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 c=t;t=e,e=c}var h=!0,p=e.__iterate(function(e,n){return(r?t.has(e):i?G(e,t.get(n,dr)):G(t.get(n,dr),e))?void 0:(h=!1,!1)});return h&&t.size===p}function X(t,e){if(!(this instanceof X))return new X(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Mr)return Mr;Mr=this}}function $(t,e){if(!t)throw new Error(e)}function Z(t,e,r){if(!(this instanceof Z))return new Z(t,e,r);if($(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(jr)return jr;jr=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Rr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Kr[t];return void 0===e&&(e=st(t),Pr===Ur&&(Pr=0,Kr={}),Pr++,Kr[t]=e),e}function st(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){$(t!==1/0,"Cannot perform this action with an infinite size.")}function ht(t){return null===t||void 0===t?St():pt(t)&&!f(t)?t:St().withMutations(function(e){var n=r(t);ct(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function pt(t){return!(!t||!t[Nr])}function lt(t,e){this.ownerID=t,this.entries=e}function _t(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function vt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return S(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function bt(t,e,r,n){var i=Object.create(Cr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function St(){return Br||(Br=bt(0))}function It(t,e,r){var n,i;if(t._root){var o=c(yr),u=c(mr);if(n=zt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===dr?-1:1:0)}else{if(r===dr)return t;i=1,n=new lt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?bt(i,n):St()}function zt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===dr?t:(h(s),h(u),new yt(e,n,[i,o]))}function Ot(t){return t.constructor===yt||t.constructor===dt}function xt(t,e,r,n,i){if(t.keyHash===n)return new dt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&vr,s=(0===r?n:n>>>r)&vr,a=u===s?[xt(t,e,r+lr,n,i)]:(o=new yt(e,n,i),s>u?[t,o]:[o,t]);return new _t(e,1<s;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new _t(t,i,u)}function Et(t,e,r,n,i){for(var o=0,u=new Array(_r),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new vt(t,o+1,u)}function qt(t,e,n){for(var i=[],u=0;u>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Rt(t,e,r,n){var i=n?t:l(t);return i[e]=r,i}function Ut(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Pt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Kt(t){var e=Ht();if(null===t||void 0===t)return e;if(Nt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ct(i),i>0&&_r>i?Wt(0,i,lr,null,new Ct(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Nt(t){return!(!t||!t[Vr])}function Ct(t,e){this.array=t,this.ownerID=e}function Bt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,f=u-r;return f>_r&&(f=_r),function(){if(i===f)return Gr;var t=e?--f:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,f=i>o?0:o-i>>n,c=(u-i>>n)+1;return c>_r&&(c=_r),function(){for(;;){if(s){var t=s();if(t!==Gr)return t;s=null}if(f===c)return Gr;var o=e?--c:f++;s=r(a&&a[o],n-lr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Gt(t,e).set(0,r):Gt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=c(mr);return e>=Xt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Wt(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&vr,s=t&&u0){var f=t&&t.array[u],c=Vt(f,e,r-lr,n,i,o);return c===f?t:(a=Ft(t,e),a.array[u]=c,a)}return s&&t.array[u]===i?t:(h(o),a=Ft(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Ft(t,e){return e&&t&&e===t.ownerID?t:new Ct(t?t.array.slice():[],e)}function Yt(t,e){if(e>=Xt(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&vr],n-=lr;return r}}function Gt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new p,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;0>u+c;)f=new Ct(f&&f.array.length?[void 0,f]:[],n),a+=lr,c+=1<=1<l?Yt(t,s-1):l>h?new Ct([],n):_;if(_&&l>h&&o>u&&_.array.length){f=Ft(f,n);for(var d=f,y=a;y>lr;y-=lr){var m=h>>>y&vr;d=d.array[m]=Ft(d.array[m],n)}d.array[h>>>lr&vr]=_}if(o>s&&(v=v&&v.removeAfter(n,0,s)),u>=l)u-=l,s-=l,a=lr,f=null,v=v&&v.removeBefore(n,0,u);else if(u>i||h>l){for(c=0;f;){var g=u>>>a&vr;if(g!==l>>>a&vr)break;g&&(c+=(1<i&&(f=f.removeBefore(n,a,u-c)),f&&h>l&&(f=f.removeAfter(n,a,l-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Wt(u,s,a,f,v)}function Qt(t,e,r){for(var i=[],u=0,s=0;su&&(u=f.size),o(a)||(f=f.map(function(t){return J(t)})),i.push(f)}return u>t.size&&(t=t.setSize(u)),kt(t,e,i)}function Xt(t){return _r>t?0:t-1>>>lr<=_r&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=je(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=Ee,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===br){var n=t.__iterator(e,r);return new b(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=je(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,dr);return o===dr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(br,i);return new b(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return S(n,s,e.call(r,u[1],s,t),i)})},n}function fe(t,e){var r=je(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Ee,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function ce(t,e,r,n){var i=je(t);return n&&(i.has=function(n){var i=t.get(n,dr);return i!==dr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,dr);return o!==dr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(br,o),s=0;return new b(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return S(i,n?f:s++,c,o)}})},i}function he(t,e,r){var n=ht().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function pe(t,e,r){var n=u(t),i=(f(t)?$t():ht()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Me(t);return i.map(function(e){return ze(t,o(e))})}function le(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=0|r),y(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return le(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var f=je(t);return f.size=0===s?s:t.size&&s||void 0,!n&&U(t)&&s>=0&&(f.get=function(e,r){return e=v(this,e),e>=0&&s>e?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){return a&&(a=u++s)return I();var t=i.next();return n||e===wr?t:e===gr?S(e,a-1,void 0,t):S(e,a-1,t.value[1],t)})},f}function _e(t,e,r){var n=je(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(br,i),s=!0;return new b(function(){if(!s)return I();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===br?t:S(n,a,f,t):(s=!1,I())})},n}function ve(t,e,r,n){var i=je(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,f){return s&&(s=e.call(r,t,o,f))?void 0:(a++,i(t,n?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(br,o),a=!0,f=0;return new b(function(){var t,o,c;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?S(i,f++,void 0,t):S(i,f++,t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===br?t:S(i,o,c,t)})},i}function de(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?K(t):N(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var f=new k(i);return n?f=f.toKeyedSeq():s(t)||(f=f.toSetSeq()),f=f.flatten(!0),f.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}function ye(t,e,r){var n=je(t);return n.__iterateUncached=function(n,i){function u(t,f){var c=this;t.__iterate(function(t,i){return(!e||e>f)&&o(t)?u(t,f+1):n(t,r?i:s++,c)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new b(function(){for(;u;){var t=u.next();if(t.done===!1){var f=t.value;if(n===br&&(f=f[1]),e&&!(s.length0}function Ie(t,r,n){var i=je(t);return i.size=new k(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),x(i?t.reverse():t)}),u=0,s=!1;return new b(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?I():S(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function ze(t,e){return U(t)?e:t.constructor(e)}function Oe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function xe(t){return ct(t.size),_(t)}function Me(t){return u(t)?r:s(t)?n:i}function je(t){return Object.create((u(t)?q:s(t)?D:A).prototype)}function Ee(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):E.prototype.cacheResult.call(this)}function qe(t,e){return t>e?1:e>t?-1:0}function De(t){var r=x(t);if(!r){if(!j(t))throw new TypeError("Expected iterable or array-like: "+t);r=x(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Te(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ht(o)},i=n.prototype=Object.create(Xr);return i.constructor=n,n}function ke(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Le(t){return t._name||t.constructor.name||"Record"}function Te(t,e){try{e.forEach(Re.bind(void 0,t))}catch(r){}}function Re(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){$(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Ue(t){return null===t||void 0===t?Ce():Pe(t)&&!f(t)?t:Ce().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function Pe(t){return!(!t||!t[$r])}function Ke(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 Ne(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ce(){return tn||(tn=Ne(St()))}function Be(t){return null===t||void 0===t?Je():We(t)?t:Je().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function We(t){return Pe(t)&&f(t)}function He(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return rn||(rn=He(ee()))}function Ve(t){return null===t||void 0===t?Ge():Fe(t)?t:Ge().unshiftAll(t)}function Fe(t){return!(!t||!t[nn])}function Ye(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ge(){return un||(un=Ye(0))}function Qe(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Xe(t,e){return e}function $e(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t}function rr(){return l(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=f(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=qr(e,3432918353),e=qr(e<<15|e>>>-15,461845907),e=qr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=qr(e^e>>>16,2246822507),e=qr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=f,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",fr="@@__IMMUTABLE_KEYED__@@",cr="@@__IMMUTABLE_INDEXED__@@",hr="@@__IMMUTABLE_ORDERED__@@",pr="delete",lr=5,_r=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},k.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new b(function(){return i>n?I():S(t,i,r[e?n-i++:i++])})},t(L,q),L.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},L.prototype.has=function(t){return this._object.hasOwnProperty(t)},L.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},L.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new b(function(){var u=n[e?i-o:o];return o++>i?I():S(t,u,r[u])})},L.prototype[hr]=!0,t(T,D),T.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=x(r),i=0;if(O(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},T.prototype.__iteratorUncached=function(t,e){ -if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=x(r);if(!O(n))return new b(I);var i=0;return new b(function(){var e=n.next();return e.done?e:S(t,i++,e.value)})},t(R,D),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;i=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return S(t,i,n[i++])})};var xr;t(X,D),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(t,e){return this.has(t)?this._value:e},X.prototype.includes=function(t){return G(this._value,t)},X.prototype.slice=function(t,e){var r=this.size;return y(t,e,r)?this:new X(this._value,g(e,r)-m(t,r))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(t){return G(this._value,t)?0:-1},X.prototype.lastIndexOf=function(t){return G(this._value,t)?this.size:-1},X.prototype.__iterate=function(t,e){for(var r=0;r1?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=e?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},Z.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new b(function(){var u=i;return i+=e?-n:n,o>r?I():S(t,o++,u)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:Q(this,t)};var jr;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var Er,qr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},Dr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),kr="function"==typeof WeakMap;kr&&(Er=new WeakMap);var Lr=0,Tr="__immutablehash__";"function"==typeof Symbol&&(Tr=Symbol(Tr));var Rr=16,Ur=255,Pr=0,Kr={};t(ht,et),ht.prototype.toString=function(){return this.__toString("Map {","}")},ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ht.prototype.set=function(t,e){return It(this,t,e)},ht.prototype.setIn=function(t,e){return this.updateIn(t,dr,function(){return e})},ht.prototype.remove=function(t){return It(this,t,dr)},ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return dr})},ht.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},ht.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Lt(this,De(t),e,r);return n===dr?void 0:n},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):St()},ht.prototype.merge=function(){return qt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return qt(this,t,e)},ht.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,St(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ht.prototype.mergeDeep=function(){return qt(this,Dt,arguments)},ht.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return qt(this,At(t),e)},ht.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,St(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ht.prototype.sort=function(t){return $t(we(this,t))},ht.prototype.sortBy=function(t,e){return $t(we(this,e,t))},ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ht.prototype.asImmutable=function(){return this.__ensureOwner()},ht.prototype.wasAltered=function(){return this.__altered},ht.prototype.__iterator=function(t,e){return new mt(this,t,e)},ht.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ht.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)},ht.isMap=pt;var Nr="@@__IMMUTABLE_MAP__@@",Cr=ht.prototype;Cr[Nr]=!0,Cr[pr]=Cr.remove,Cr.removeIn=Cr.deleteIn,lt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(G(r,i[o][0]))return i[o][1];return n},lt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===dr,a=this.entries,f=0,c=a.length;c>f&&!G(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),!s||1!==a.length){if(!p&&!s&&a.length>=Wr)return Mt(t,a,n,i);var _=t&&t===this.ownerID,v=_?a:l(a);return p?s?f===c-1?v.pop():v[f]=v.pop():v[f]=[n,i]:v.push([n,i]),_?(this.entries=v,this):new lt(t,v)}},_t.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&vr),o=this.bitmap;return 0===(o&i)?n:this.nodes[Tt(o&i-1)].get(t+lr,e,r,n)},_t.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&vr,a=1<=Hr)return Et(t,p,f,s,_);if(c&&!_&&2===p.length&&Ot(p[1^h]))return p[1^h];if(c&&_&&1===p.length&&Ot(_))return _;var v=t&&t===this.ownerID,d=c?_?f:f^a:f|a,y=c?_?Rt(p,h,_,v):Pt(p,h,v):Ut(p,h,_,v);return v?(this.bitmap=d,this.nodes=y,this):new _t(t,d,y)},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&vr,o=this.nodes[i];return o?o.get(t+lr,e,r,n):n},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&vr,a=i===dr,f=this.nodes,c=f[s];if(a&&!c)return this;var h=zt(c,t,e+lr,r,n,i,o,u);if(h===c)return this;var p=this.count;if(c){if(!h&&(p--,Jr>p))return jt(t,f,p,s)}else p++;var l=t&&t===this.ownerID,_=Rt(f,s,h,l);return l?(this.count=p,this.nodes=_,this):new vt(t,p,_)},dt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(G(r,i[o][0]))return i[o][1];return n},dt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===dr;if(r!==this.keyHash)return s?this:(h(u),h(o),xt(this,t,e,r,[n,i]));for(var a=this.entries,f=0,c=a.length;c>f&&!G(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),s&&2===c)return new yt(t,this.keyHash,a[1^f]);var _=t&&t===this.ownerID,v=_?a:l(a);return p?s?f===c-1?v.pop():v[f]=v.pop():v[f]=[n,i]:v.push([n,i]),_?(this.entries=v,this):new dt(t,this.keyHash,v)},yt.prototype.get=function(t,e,r,n){return G(r,this.entry[0])?this.entry[1]:n},yt.prototype.update=function(t,e,r,n,i,o,u){var s=i===dr,a=G(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(h(u),s?void h(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new yt(t,this.keyHash,[n,i]):(h(o),xt(this,t,e,ot(n),[n,i])))},lt.prototype.iterate=dt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},_t.prototype.iterate=vt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},yt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,b),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return I()};var Br,Wr=_r/4,Hr=_r/2,Jr=_r/4;t(Kt,rt),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("List [","]")},Kt.prototype.get=function(t,e){if(t=v(this,t),t>=0&&t>>e&vr;if(n>=this.array.length)return new Ct([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-lr,r),i===u&&o)return this}if(o&&!i)return this;var s=Ft(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ct.prototype.removeAfter=function(t,e,r){if(r===(e?1<>>e&vr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-lr,r),i===o&&n===this.array.length-1)return this}var u=Ft(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Yr,Gr={};t($t,ht),$t.of=function(){return this(arguments)},$t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},$t.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},$t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},$t.prototype.set=function(t,e){return re(this,t,e)},$t.prototype.remove=function(t){return re(this,t,dr)},$t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},$t.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},$t.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},$t.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},$t.isOrderedMap=Zt,$t.prototype[hr]=!0,$t.prototype[pr]=$t.prototype.remove;var Qr;t(ne,q),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=fe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?xe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?xe(this):0;return new b(function(){var i=r.next();return i.done?i:S(t,e?--n:n++,i.value,i)})},ne.prototype[hr]=!0,t(ie,D),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;return new b(function(){var e=r.next();return e.done?e:S(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){var e=r.next();return e.done?e:S(t,e.value,e.value,e)})},t(ue,q),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Oe(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Oe(n);var i=o(n);return S(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=Ee,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Le(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ke(this,St()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Le(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ke(this,r)},Ae.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)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.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 Xr=Ae.prototype;Xr[pr]=Xr.remove,Xr.deleteIn=Xr.removeIn=Cr.removeIn,Xr.merge=Cr.merge,Xr.mergeWith=Cr.mergeWith,Xr.mergeIn=Cr.mergeIn,Xr.mergeDeep=Cr.mergeDeep,Xr.mergeDeepWith=Cr.mergeDeepWith,Xr.mergeDeepIn=Cr.mergeDeepIn,Xr.setIn=Cr.setIn,Xr.update=Cr.update,Xr.updateIn=Cr.updateIn,Xr.withMutations=Cr.withMutations,Xr.asMutable=Cr.asMutable,Xr.asImmutable=Cr.asImmutable,t(Ue,nt),Ue.of=function(){return this(arguments)},Ue.fromKeys=function(t){return this(r(t).keySeq())},Ue.prototype.toString=function(){return this.__toString("Set {","}")},Ue.prototype.has=function(t){return this._map.has(t)},Ue.prototype.add=function(t){return Ke(this,this._map.set(t,!0))},Ue.prototype.remove=function(t){return Ke(this,this._map.remove(t))},Ue.prototype.clear=function(){return Ke(this,this._map.clear())},Ue.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ye(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ct(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ye(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.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):Ge()},Ve.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var r=m(t,this.size),n=g(e,this.size);if(n!==this.size)return rt.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ye(i,o)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ye(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new b(function(){if(n){var e=n.value;return n=n.next,S(t,r++,e)}return I()})},Ve.isStack=Fe;var nn="@@__IMMUTABLE_STACK__@@",on=Ve.prototype;on[nn]=!0,on.withMutations=Cr.withMutations,on.asMutable=Cr.asMutable,on.asImmutable=Cr.asImmutable,on.wasAltered=Cr.wasAltered;var un;e.Iterator=b,Qe(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(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 ht(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return $t(this.toKeyedSeq())},toOrderedSet:function(){return Be(u(this)?this.valueSeq():this)},toSet:function(){return Ue(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(u(this)?this.valueSeq():this)},toList:function(){return Kt(u(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 t=sr.call(arguments,0);return ze(this,de(this,t))},includes:function(t){return this.some(function(e){return G(e,t)})},entries:function(){return this.__iterator(br)},every:function(t,e){ct(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return ze(this,ce(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?(r=[i,n],!1):void 0}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return ze(this,ae(this,t,e))},reduce:function(t,e,r){ct(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return ze(this,fe(this,!0))},slice:function(t,e){return ze(this,le(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return ze(this,we(this,t))},values:function(){return this.__iterator(wr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return he(this,t,e)},equals:function(t){return Q(this,t)},entrySeq:function(){var t=this;if(t._cache)return new k(t._cache);var e=t.toSeq().map($e).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(d)},flatMap:function(t,e){return ze(this,me(this,t,e))},flatten:function(t){return ze(this,ye(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return G(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=De(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,dr):dr,n===dr)return e}return n},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,dr)!==dr},hasIn:function(t){return this.getIn(t,dr)!==dr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(Xe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return be(this,t)},maxBy:function(t,e){return be(this,e,t)},min:function(t){return be(this,t?tr(t):nr)},minBy:function(t,e){return be(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ze(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ze(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return ze(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ze(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ze(this,_e(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var sn=e.prototype;sn[ar]=!0,sn[zr]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=er,sn.inspect=sn.toSource=function(){return this.toString()},sn.chain=sn.flatMap,sn.contains=sn.includes,function(){try{Object.defineProperty(sn,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(r){t=r.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Qe(r,{flip:function(){return ze(this,se(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return G(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return G(e,t)})},mapEntries:function(t,e){var r=this,n=0;return ze(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return ze(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var an=r.prototype;an[fr]=!0,an[zr]=sn.entries,an.__toJS=sn.toObject,an.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Qe(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return ze(this,ce(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return ze(this,fe(this,!1))},slice:function(t,e){return ze(this,le(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,0>t?this.count():this.size);var n=this.slice(0,t);return ze(this,1===r?n:n.concat(l(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return ze(this,ye(this,t,!1))},get:function(t,e){return t=v(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=v(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t=200&&t.status<300)return p;var l=new Error(t.statusText);throw l.response=p,l})})}},t.exports=e["default"]},function(t,e,r){var n=r(11),i=r(13);t.exports={stringify:n,parse:i}},function(t,e,r){var n=r(12),i={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}},strictNullHandling:!1,skipNulls:!1,encode:!0};i.stringify=function(t,e,r,o,u,s,a,f){if("function"==typeof a)t=a(e,t);else if(n.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){if(o)return s?n.encode(e):e;t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return s?[n.encode(e)+"="+n.encode(t)]:[e+"="+t];var c=[]; +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.restful=e():t.restful=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i);e["default"]=o["default"],t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var r=(0,v["default"])();r.assign("config","entityIdentifier","id"),!t&&"undefined"!=typeof window&&window.location?r.set("url",window.location.protocol+"//"+window.location.host):r.set("url",t);var n=(0,h.member)((0,u["default"])((0,c["default"])(e))(r));return d.push(n),n}Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),u=n(o),s=r(9),a=n(s),f=r(14),c=n(f),h=r(15),p=r(16),l=n(p),_=r(17),v=n(_),d=[];i._instances=function(){return d},i._flush=function(){return d.length=0},e.fetchBackend=a["default"],e.requestBackend=l["default"],e["default"]=i},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),o=n(i),u=r(4),s=n(u),a=r(6),f=r(7),c=n(f);e["default"]=function(t){return function e(r){function n(t,e,n,i){var o=(0,a.Map)({errorInterceptors:(0,a.List)(r.get("errorInterceptors")),headers:(0,a.Map)(r.get("headers")).mergeDeep((0,a.Map)(i)),method:t,params:n,requestInterceptors:(0,a.List)(r.get("requestInterceptors")),responseInterceptors:(0,a.List)(r.get("responseInterceptors")),url:r.get("url")});return e&&(o.hasIn(["headers","Content-Type"])||(o=o.setIn(["headers","Content-Type"],"application/json;charset=UTF-8")),o=o.set("data",(0,a.fromJS)(e))),o}function i(t,e){var n=(0,s["default"])(e,p);return r.emit("response",n,(0,c["default"])(t)),n}function u(t,e){throw r.emit("error",e,(0,c["default"])(t)),e}function f(e){var o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],s=function(){r.emit.apply(r,arguments)};return o?function(r){var o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],f=n(e,r,o,a);return t(f,s).then(function(t){return i(f,t)},function(t){return u(f,t)})}:function(){var r=arguments.length<=0||void 0===arguments[0]?null:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=n(e,null,r,o);return t(a,s).then(function(t){return i(a,t)},function(t){return u(a,t)})}}function h(t){return function(e){return r.push(t+"Interceptors",e),p}}r.on("error",function(){return!0});var p={};return(0,o["default"])(p,{addErrorInterceptor:h("error"),addRequestInterceptor:h("request"),addResponseInterceptor:h("response"),"delete":f("DELETE"),identifier:function(t){return void 0===t?r.get("config").get("entityIdentifier"):(r.assign("config","entityIdentifier",t),p)},get:f("GET",!1),head:f("HEAD",!1),header:function(t,e){return r.assign("headers",t,e)},headers:function(){return r.get("headers")},"new":function(t){var n=r["new"]();return n.set("url",t),e(n)},on:r.on,once:r.once,patch:f("PATCH"),post:f("POST"),put:f("PUT"),url:function(){return r.get("url")}}),p}},t.exports=e["default"]},function(t,e){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var n,i,o=r(t),u=1;ui;i++)n[i]=arguments[i];return e.put.apply(e,[t].concat(n))},url:e.url}},t.exports=e["default"]},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:j(t)}function r(t){return u(t)?t:q(t)}function n(t){return s(t)?t:D(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[fr])}function s(t){return!(!t||!t[cr])}function a(t){return u(t)||s(t)}function f(t){return!(!t||!t[hr])}function c(t){return t.value=!1,t}function h(t){t&&(t.value=!0)}function p(){}function l(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(d)),t.size}function v(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?_(t)+e:e}function d(){return!0}function y(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function b(t){this.next=t}function S(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function I(){return{value:void 0,done:!0}}function z(t){return!!M(t)}function O(t){return t&&"function"==typeof t.next}function x(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(Sr&&t[Sr]||t[Ir]);return"function"==typeof e?e:void 0}function E(t){return t&&"number"==typeof t.length}function j(t){return null===t||void 0===t?R():o(t)?t.toSeq():C(t)}function q(t){return null===t||void 0===t?R().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():K(t)}function D(t){return null===t||void 0===t?R():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():N(t)}function A(t){return(null===t||void 0===t?R():o(t)?u(t)?t.entrySeq():t:N(t)).toSetSeq()}function k(t){this._array=t,this.size=t.length}function L(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function T(t){this._iterable=t,this.size=t.length||t.size}function U(t){this._iterator=t,this._iteratorCache=[]}function P(t){return!(!t||!t[Or])}function R(){return xr||(xr=new k([]))}function K(t){var e=Array.isArray(t)?new k(t).fromEntrySeq():O(t)?new U(t).fromEntrySeq():z(t)?new T(t).fromEntrySeq():"object"==typeof t?new L(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function N(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function C(t){var e=B(t)||"object"==typeof t&&new L(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return E(t)?new k(t):O(t)?new U(t):z(t)?new T(t):void 0}function H(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function W(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new b(function(){var t=i[r?o-u:u];return u++>o?I():S(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function J(t,e){return e?V(e,t,"",{"":t}):F(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,D(e).map(function(r,n){return V(t,r,n,e)})):G(e)?t.call(n,r,q(e).map(function(r,n){return V(t,r,n,e)})):e}function F(t){return Array.isArray(t)?D(t).map(F).toList():G(t)?q(t).map(F).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function Y(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===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function Q(t,e){if(t===e)return!0;if(!o(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||u(t)!==u(e)||s(t)!==s(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(f(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&Y(i[1],t)&&(r||Y(i[0],e))})&&n.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 c=t;t=e,e=c}var h=!0,p=e.__iterate(function(e,n){return(r?t.has(e):i?Y(e,t.get(n,dr)):Y(t.get(n,dr),e))?void 0:(h=!1,!1)});return h&&t.size===p}function X(t,e){if(!(this instanceof X))return new X(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Mr)return Mr;Mr=this}}function $(t,e){if(!t)throw new Error(e)}function Z(t,e,r){if(!(this instanceof Z))return new Z(t,e,r);if($(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Er)return Er;Er=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Ur?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Kr[t];return void 0===e&&(e=st(t),Rr===Pr&&(Rr=0,Kr={}),Rr++,Kr[t]=e),e}function st(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){$(t!==1/0,"Cannot perform this action with an infinite size.")}function ht(t){return null===t||void 0===t?St():pt(t)&&!f(t)?t:St().withMutations(function(e){var n=r(t);ct(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function pt(t){return!(!t||!t[Nr])}function lt(t,e){this.ownerID=t,this.entries=e}function _t(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function vt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return S(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function bt(t,e,r,n){var i=Object.create(Cr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function St(){return Br||(Br=bt(0))}function It(t,e,r){var n,i;if(t._root){var o=c(yr),u=c(mr);if(n=zt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===dr?-1:1:0)}else{if(r===dr)return t;i=1,n=new lt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?bt(i,n):St()}function zt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===dr?t:(h(s),h(u),new yt(e,n,[i,o]))}function Ot(t){return t.constructor===yt||t.constructor===dt}function xt(t,e,r,n,i){if(t.keyHash===n)return new dt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&vr,s=(0===r?n:n>>>r)&vr,a=u===s?[xt(t,e,r+lr,n,i)]:(o=new yt(e,n,i),s>u?[t,o]:[o,t]);return new _t(e,1<s;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new _t(t,i,u)}function jt(t,e,r,n,i){for(var o=0,u=new Array(_r),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new vt(t,o+1,u)}function qt(t,e,n){for(var i=[],u=0;u>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Ut(t,e,r,n){var i=n?t:l(t);return i[e]=r,i}function Pt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Rt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Kt(t){var e=Wt();if(null===t||void 0===t)return e;if(Nt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ct(i),i>0&&_r>i?Ht(0,i,lr,null,new Ct(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Nt(t){return!(!t||!t[Vr])}function Ct(t,e){this.array=t,this.ownerID=e}function Bt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,f=u-r;return f>_r&&(f=_r),function(){if(i===f)return Yr;var t=e?--f:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,f=i>o?0:o-i>>n,c=(u-i>>n)+1;return c>_r&&(c=_r),function(){for(;;){if(s){var t=s();if(t!==Yr)return t;s=null}if(f===c)return Yr;var o=e?--c:f++;s=r(a&&a[o],n-lr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Yt(t,e).set(0,r):Yt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=c(mr);return e>=Xt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ht(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&vr,s=t&&u0){var f=t&&t.array[u],c=Vt(f,e,r-lr,n,i,o);return c===f?t:(a=Ft(t,e),a.array[u]=c,a)}return s&&t.array[u]===i?t:(h(o),a=Ft(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Ft(t,e){return e&&t&&e===t.ownerID?t:new Ct(t?t.array.slice():[],e)}function Gt(t,e){if(e>=Xt(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&vr],n-=lr;return r}}function Yt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new p,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;0>u+c;)f=new Ct(f&&f.array.length?[void 0,f]:[],n),a+=lr,c+=1<=1<l?Gt(t,s-1):l>h?new Ct([],n):_;if(_&&l>h&&o>u&&_.array.length){f=Ft(f,n);for(var d=f,y=a;y>lr;y-=lr){var m=h>>>y&vr;d=d.array[m]=Ft(d.array[m],n)}d.array[h>>>lr&vr]=_}if(o>s&&(v=v&&v.removeAfter(n,0,s)),u>=l)u-=l,s-=l,a=lr,f=null,v=v&&v.removeBefore(n,0,u);else if(u>i||h>l){for(c=0;f;){var g=u>>>a&vr;if(g!==l>>>a&vr)break;g&&(c+=(1<i&&(f=f.removeBefore(n,a,u-c)),f&&h>l&&(f=f.removeAfter(n,a,l-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Ht(u,s,a,f,v)}function Qt(t,e,r){for(var i=[],u=0,s=0;su&&(u=f.size),o(a)||(f=f.map(function(t){return J(t)})),i.push(f)}return u>t.size&&(t=t.setSize(u)),kt(t,e,i)}function Xt(t){return _r>t?0:t-1>>>lr<=_r&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=Ee(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,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===br){var n=t.__iterator(e,r);return new b(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=Ee(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,dr);return o===dr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(br,i);return new b(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return S(n,s,e.call(r,u[1],s,t),i)})},n}function fe(t,e){var r=Ee(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=je,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function ce(t,e,r,n){var i=Ee(t);return n&&(i.has=function(n){var i=t.get(n,dr);return i!==dr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,dr);return o!==dr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(br,o),s=0;return new b(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return S(i,n?f:s++,c,o)}})},i}function he(t,e,r){var n=ht().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function pe(t,e,r){var n=u(t),i=(f(t)?$t():ht()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Me(t);return i.map(function(e){return ze(t,o(e))})}function le(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=0|r),y(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return le(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var f=Ee(t);return f.size=0===s?s:t.size&&s||void 0,!n&&P(t)&&s>=0&&(f.get=function(e,r){return e=v(this,e),e>=0&&s>e?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){return a&&(a=u++s)return I();var t=i.next();return n||e===wr?t:e===gr?S(e,a-1,void 0,t):S(e,a-1,t.value[1],t)})},f}function _e(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(br,i),s=!0;return new b(function(){if(!s)return I();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===br?t:S(n,a,f,t):(s=!1,I())})},n}function ve(t,e,r,n){var i=Ee(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,f){return s&&(s=e.call(r,t,o,f))?void 0:(a++,i(t,n?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(br,o),a=!0,f=0;return new b(function(){var t,o,c;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?S(i,f++,void 0,t):S(i,f++,t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===br?t:S(i,o,c,t)})},i}function de(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?K(t):N(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var f=new k(i);return n?f=f.toKeyedSeq():s(t)||(f=f.toSetSeq()),f=f.flatten(!0),f.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}function ye(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){function u(t,f){var c=this;t.__iterate(function(t,i){return(!e||e>f)&&o(t)?u(t,f+1):n(t,r?i:s++,c)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new b(function(){for(;u;){var t=u.next();if(t.done===!1){var f=t.value;if(n===br&&(f=f[1]),e&&!(s.length0}function Ie(t,r,n){var i=Ee(t);return i.size=new k(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),x(i?t.reverse():t)}),u=0,s=!1;return new b(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?I():S(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function ze(t,e){return P(t)?e:t.constructor(e)}function Oe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function xe(t){return ct(t.size),_(t)}function Me(t){return u(t)?r:s(t)?n:i}function Ee(t){return Object.create((u(t)?q:s(t)?D:A).prototype)}function je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function qe(t,e){return t>e?1:e>t?-1:0}function De(t){var r=x(t);if(!r){if(!E(t))throw new TypeError("Expected iterable or array-like: "+t);r=x(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Te(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ht(o)},i=n.prototype=Object.create(Xr);return i.constructor=n,n}function ke(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Le(t){return t._name||t.constructor.name||"Record"}function Te(t,e){try{e.forEach(Ue.bind(void 0,t))}catch(r){}}function Ue(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){$(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Pe(t){return null===t||void 0===t?Ce():Re(t)&&!f(t)?t:Ce().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function Re(t){return!(!t||!t[$r])}function Ke(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 Ne(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ce(){return tn||(tn=Ne(St()))}function Be(t){return null===t||void 0===t?Je():He(t)?t:Je().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function He(t){return Re(t)&&f(t)}function We(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return rn||(rn=We(ee()))}function Ve(t){return null===t||void 0===t?Ye():Fe(t)?t:Ye().unshiftAll(t)}function Fe(t){return!(!t||!t[nn])}function Ge(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ye(){return un||(un=Ge(0))}function Qe(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Xe(t,e){return e}function $e(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t}function rr(){return l(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=f(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=qr(e,3432918353),e=qr(e<<15|e>>>-15,461845907),e=qr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=qr(e^e>>>16,2246822507),e=qr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=f,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",fr="@@__IMMUTABLE_KEYED__@@",cr="@@__IMMUTABLE_INDEXED__@@",hr="@@__IMMUTABLE_ORDERED__@@",pr="delete",lr=5,_r=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},k.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new b(function(){return i>n?I():S(t,i,r[e?n-i++:i++])})},t(L,q),L.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},L.prototype.has=function(t){return this._object.hasOwnProperty(t)},L.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},L.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new b(function(){var u=n[e?i-o:o];return o++>i?I():S(t,u,r[u])})},L.prototype[hr]=!0,t(T,D),T.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=x(r),i=0;if(O(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},T.prototype.__iteratorUncached=function(t,e){ +if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=x(r);if(!O(n))return new b(I);var i=0;return new b(function(){var e=n.next();return e.done?e:S(t,i++,e.value)})},t(U,D),U.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;i=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return S(t,i,n[i++])})};var xr;t(X,D),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(t,e){return this.has(t)?this._value:e},X.prototype.includes=function(t){return Y(this._value,t)},X.prototype.slice=function(t,e){var r=this.size;return y(t,e,r)?this:new X(this._value,g(e,r)-m(t,r))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(t){return Y(this._value,t)?0:-1},X.prototype.lastIndexOf=function(t){return Y(this._value,t)?this.size:-1},X.prototype.__iterate=function(t,e){for(var r=0;r1?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=e?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},Z.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new b(function(){var u=i;return i+=e?-n:n,o>r?I():S(t,o++,u)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:Q(this,t)};var Er;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var jr,qr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},Dr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),kr="function"==typeof WeakMap;kr&&(jr=new WeakMap);var Lr=0,Tr="__immutablehash__";"function"==typeof Symbol&&(Tr=Symbol(Tr));var Ur=16,Pr=255,Rr=0,Kr={};t(ht,et),ht.prototype.toString=function(){return this.__toString("Map {","}")},ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ht.prototype.set=function(t,e){return It(this,t,e)},ht.prototype.setIn=function(t,e){return this.updateIn(t,dr,function(){return e})},ht.prototype.remove=function(t){return It(this,t,dr)},ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return dr})},ht.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},ht.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Lt(this,De(t),e,r);return n===dr?void 0:n},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):St()},ht.prototype.merge=function(){return qt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return qt(this,t,e)},ht.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,St(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ht.prototype.mergeDeep=function(){return qt(this,Dt,arguments)},ht.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return qt(this,At(t),e)},ht.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,St(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ht.prototype.sort=function(t){return $t(we(this,t))},ht.prototype.sortBy=function(t,e){return $t(we(this,e,t))},ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ht.prototype.asImmutable=function(){return this.__ensureOwner()},ht.prototype.wasAltered=function(){return this.__altered},ht.prototype.__iterator=function(t,e){return new mt(this,t,e)},ht.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ht.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)},ht.isMap=pt;var Nr="@@__IMMUTABLE_MAP__@@",Cr=ht.prototype;Cr[Nr]=!0,Cr[pr]=Cr.remove,Cr.removeIn=Cr.deleteIn,lt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(Y(r,i[o][0]))return i[o][1];return n},lt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===dr,a=this.entries,f=0,c=a.length;c>f&&!Y(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),!s||1!==a.length){if(!p&&!s&&a.length>=Hr)return Mt(t,a,n,i);var _=t&&t===this.ownerID,v=_?a:l(a);return p?s?f===c-1?v.pop():v[f]=v.pop():v[f]=[n,i]:v.push([n,i]),_?(this.entries=v,this):new lt(t,v)}},_t.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&vr),o=this.bitmap;return 0===(o&i)?n:this.nodes[Tt(o&i-1)].get(t+lr,e,r,n)},_t.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&vr,a=1<=Wr)return jt(t,p,f,s,_);if(c&&!_&&2===p.length&&Ot(p[1^h]))return p[1^h];if(c&&_&&1===p.length&&Ot(_))return _;var v=t&&t===this.ownerID,d=c?_?f:f^a:f|a,y=c?_?Ut(p,h,_,v):Rt(p,h,v):Pt(p,h,_,v);return v?(this.bitmap=d,this.nodes=y,this):new _t(t,d,y)},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&vr,o=this.nodes[i];return o?o.get(t+lr,e,r,n):n},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&vr,a=i===dr,f=this.nodes,c=f[s];if(a&&!c)return this;var h=zt(c,t,e+lr,r,n,i,o,u);if(h===c)return this;var p=this.count;if(c){if(!h&&(p--,Jr>p))return Et(t,f,p,s)}else p++;var l=t&&t===this.ownerID,_=Ut(f,s,h,l);return l?(this.count=p,this.nodes=_,this):new vt(t,p,_)},dt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(Y(r,i[o][0]))return i[o][1];return n},dt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===dr;if(r!==this.keyHash)return s?this:(h(u),h(o),xt(this,t,e,r,[n,i]));for(var a=this.entries,f=0,c=a.length;c>f&&!Y(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),s&&2===c)return new yt(t,this.keyHash,a[1^f]);var _=t&&t===this.ownerID,v=_?a:l(a);return p?s?f===c-1?v.pop():v[f]=v.pop():v[f]=[n,i]:v.push([n,i]),_?(this.entries=v,this):new dt(t,this.keyHash,v)},yt.prototype.get=function(t,e,r,n){return Y(r,this.entry[0])?this.entry[1]:n},yt.prototype.update=function(t,e,r,n,i,o,u){var s=i===dr,a=Y(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(h(u),s?void h(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new yt(t,this.keyHash,[n,i]):(h(o),xt(this,t,e,ot(n),[n,i])))},lt.prototype.iterate=dt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},_t.prototype.iterate=vt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},yt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,b),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return I()};var Br,Hr=_r/4,Wr=_r/2,Jr=_r/4;t(Kt,rt),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("List [","]")},Kt.prototype.get=function(t,e){if(t=v(this,t),t>=0&&t>>e&vr;if(n>=this.array.length)return new Ct([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-lr,r),i===u&&o)return this}if(o&&!i)return this;var s=Ft(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ct.prototype.removeAfter=function(t,e,r){if(r===(e?1<>>e&vr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-lr,r),i===o&&n===this.array.length-1)return this}var u=Ft(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Gr,Yr={};t($t,ht),$t.of=function(){return this(arguments)},$t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},$t.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},$t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},$t.prototype.set=function(t,e){return re(this,t,e)},$t.prototype.remove=function(t){return re(this,t,dr)},$t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},$t.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},$t.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},$t.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},$t.isOrderedMap=Zt,$t.prototype[hr]=!0,$t.prototype[pr]=$t.prototype.remove;var Qr;t(ne,q),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=fe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?xe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?xe(this):0;return new b(function(){var i=r.next();return i.done?i:S(t,e?--n:n++,i.value,i)})},ne.prototype[hr]=!0,t(ie,D),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;return new b(function(){var e=r.next();return e.done?e:S(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){var e=r.next();return e.done?e:S(t,e.value,e.value,e)})},t(ue,q),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Oe(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Oe(n);var i=o(n);return S(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=je,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Le(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ke(this,St()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Le(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ke(this,r)},Ae.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)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.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 Xr=Ae.prototype;Xr[pr]=Xr.remove,Xr.deleteIn=Xr.removeIn=Cr.removeIn,Xr.merge=Cr.merge,Xr.mergeWith=Cr.mergeWith,Xr.mergeIn=Cr.mergeIn,Xr.mergeDeep=Cr.mergeDeep,Xr.mergeDeepWith=Cr.mergeDeepWith,Xr.mergeDeepIn=Cr.mergeDeepIn,Xr.setIn=Cr.setIn,Xr.update=Cr.update,Xr.updateIn=Cr.updateIn,Xr.withMutations=Cr.withMutations,Xr.asMutable=Cr.asMutable,Xr.asImmutable=Cr.asImmutable,t(Pe,nt),Pe.of=function(){return this(arguments)},Pe.fromKeys=function(t){return this(r(t).keySeq())},Pe.prototype.toString=function(){return this.__toString("Set {","}")},Pe.prototype.has=function(t){return this._map.has(t)},Pe.prototype.add=function(t){return Ke(this,this._map.set(t,!0))},Pe.prototype.remove=function(t){return Ke(this,this._map.remove(t))},Pe.prototype.clear=function(){return Ke(this,this._map.clear())},Pe.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ge(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ct(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ge(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.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):Ye()},Ve.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var r=m(t,this.size),n=g(e,this.size);if(n!==this.size)return rt.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ge(i,o)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ge(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new b(function(){if(n){var e=n.value;return n=n.next,S(t,r++,e)}return I()})},Ve.isStack=Fe;var nn="@@__IMMUTABLE_STACK__@@",on=Ve.prototype;on[nn]=!0,on.withMutations=Cr.withMutations,on.asMutable=Cr.asMutable,on.asImmutable=Cr.asImmutable,on.wasAltered=Cr.wasAltered;var un;e.Iterator=b,Qe(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(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 ht(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return $t(this.toKeyedSeq())},toOrderedSet:function(){return Be(u(this)?this.valueSeq():this)},toSet:function(){return Pe(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(u(this)?this.valueSeq():this)},toList:function(){return Kt(u(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 t=sr.call(arguments,0);return ze(this,de(this,t))},includes:function(t){return this.some(function(e){return Y(e,t)})},entries:function(){return this.__iterator(br)},every:function(t,e){ct(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return ze(this,ce(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?(r=[i,n],!1):void 0}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return ze(this,ae(this,t,e))},reduce:function(t,e,r){ct(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return ze(this,fe(this,!0))},slice:function(t,e){return ze(this,le(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return ze(this,we(this,t))},values:function(){return this.__iterator(wr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return he(this,t,e)},equals:function(t){return Q(this,t)},entrySeq:function(){var t=this;if(t._cache)return new k(t._cache);var e=t.toSeq().map($e).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(d)},flatMap:function(t,e){return ze(this,me(this,t,e))},flatten:function(t){return ze(this,ye(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return Y(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=De(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,dr):dr,n===dr)return e}return n},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,dr)!==dr},hasIn:function(t){return this.getIn(t,dr)!==dr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(Xe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return be(this,t)},maxBy:function(t,e){return be(this,e,t)},min:function(t){return be(this,t?tr(t):nr)},minBy:function(t,e){return be(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ze(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ze(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return ze(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ze(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ze(this,_e(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var sn=e.prototype;sn[ar]=!0,sn[zr]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=er,sn.inspect=sn.toSource=function(){return this.toString()},sn.chain=sn.flatMap,sn.contains=sn.includes,function(){try{Object.defineProperty(sn,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(r){t=r.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Qe(r,{flip:function(){return ze(this,se(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return Y(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return Y(e,t)})},mapEntries:function(t,e){var r=this,n=0;return ze(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return ze(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var an=r.prototype;an[fr]=!0,an[zr]=sn.entries,an.__toJS=sn.toObject,an.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Qe(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return ze(this,ce(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return ze(this,fe(this,!1))},slice:function(t,e){return ze(this,le(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,0>t?this.count():this.size);var n=this.slice(0,t);return ze(this,1===r?n:n.concat(l(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return ze(this,ye(this,t,!1))},get:function(t,e){return t=v(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=v(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t=200&&t.status<300)return p;var l=new Error(t.statusText);throw l.response=p,l})})}},t.exports=e["default"]},function(t,e,r){var n=r(11),i=r(13);t.exports={stringify:n,parse:i}},function(t,e,r){var n=r(12),i={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}},strictNullHandling:!1,skipNulls:!1,encode:!0};i.stringify=function(t,e,r,o,u,s,a,f){if("function"==typeof a)t=a(e,t);else if(n.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){if(o)return s?n.encode(e):e;t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return s?[n.encode(e)+"="+n.encode(t)]:[e+"="+t];var c=[]; if("undefined"==typeof t)return c;var h;if(Array.isArray(a))h=a;else{var p=Object.keys(t);h=f?p.sort(f):p}for(var l=0,_=h.length;_>l;++l){var v=h[l];u&&null===t[v]||(c=Array.isArray(t)?c.concat(i.stringify(t[v],r(e,v),r,o,u,s,a)):c.concat(i.stringify(t[v],e+"["+v+"]",r,o,u,s,a)))}return c},t.exports=function(t,e){e=e||{};var r,n,o="undefined"==typeof e.delimiter?i.delimiter:e.delimiter,u="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,s="boolean"==typeof e.skipNulls?e.skipNulls:i.skipNulls,a="boolean"==typeof e.encode?e.encode:i.encode,f="function"==typeof e.sort?e.sort:null;"function"==typeof e.filter?(n=e.filter,t=n("",t)):Array.isArray(e.filter)&&(r=n=e.filter);var c=[];if("object"!=typeof t||null===t)return"";var h;h=e.arrayFormat in i.arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":"indices";var p=i.arrayPrefixGenerators[h];r||(r=Object.keys(t)),f&&r.sort(f);for(var l=0,_=r.length;_>l;++l){var v=r[l];s&&null===t[v]||(c=c.concat(i.stringify(t[v],v,p,u,s,a,n,f)))}return c.join(o)}},function(t,e){var r={};r.hexTable=new Array(256);for(var n=0;256>n;++n)r.hexTable[n]="%"+((16>n?"0":"")+n.toString(16)).toUpperCase();e.arrayToObject=function(t,e){for(var r=e.plainObjects?Object.create(null):{},n=0,i=t.length;i>n;++n)"undefined"!=typeof t[n]&&(r[n]=t[n]);return r},e.merge=function(t,r,n){if(!r)return t;if("object"!=typeof r)return Array.isArray(t)?t.push(r):"object"==typeof t?t[r]=!0:t=[t,r],t;if("object"!=typeof t)return t=[t].concat(r);Array.isArray(t)&&!Array.isArray(r)&&(t=e.arrayToObject(t,n));for(var i=Object.keys(r),o=0,u=i.length;u>o;++o){var s=i[o],a=r[s];Object.prototype.hasOwnProperty.call(t,s)?t[s]=e.merge(t[s],a,n):t[s]=a}return t},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;"string"!=typeof t&&(t=""+t);for(var e="",n=0,i=t.length;i>n;++n){var o=t.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&57>=o||o>=65&&90>=o||o>=97&&122>=o?e+=t[n]:128>o?e+=r.hexTable[o]:2048>o?e+=r.hexTable[192|o>>6]+r.hexTable[128|63&o]:55296>o||o>=57344?e+=r.hexTable[224|o>>12]+r.hexTable[128|o>>6&63]+r.hexTable[128|63&o]:(++n,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),e+=r.hexTable[240|o>>18]+r.hexTable[128|o>>12&63]+r.hexTable[128|o>>6&63]+r.hexTable[128|63&o])}return e},e.compact=function(t,r){if("object"!=typeof t||null===t)return t;r=r||[];var n=r.indexOf(t);if(-1!==n)return r[n];if(r.push(t),Array.isArray(t)){for(var i=[],o=0,u=t.length;u>o;++o)"undefined"!=typeof t[o]&&i.push(t[o]);return i}var s=Object.keys(t);for(o=0,u=s.length;u>o;++o){var a=s[o];t[a]=e.compact(t[a],r)}return t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null===t||"undefined"==typeof t?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},function(t,e,r){var n=r(12),i={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};i.parseValues=function(t,e){for(var r={},i=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0,u=i.length;u>o;++o){var s=i[o],a=-1===s.indexOf("]=")?s.indexOf("="):s.indexOf("]=")+1;if(-1===a)r[n.decode(s)]="",e.strictNullHandling&&(r[n.decode(s)]=null);else{var f=n.decode(s.slice(0,a)),c=n.decode(s.slice(a+1));Object.prototype.hasOwnProperty.call(r,f)?r[f]=[].concat(r[f]).concat(c):r[f]=c}}return r},i.parseObject=function(t,e,r){if(!t.length)return e;var n,o=t.shift();if("[]"===o)n=[],n=n.concat(i.parseObject(t,e,r));else{n=r.plainObjects?Object.create(null):{};var u="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,s=parseInt(u,10),a=""+s;!isNaN(s)&&o!==u&&a===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(n=[],n[s]=i.parseObject(t,e,r)):n[u]=i.parseObject(t,e,r)}return n},i.parseKeys=function(t,e,r){if(t){r.allowDots&&(t=t.replace(/\.([^\.\[]+)/g,"[$1]"));var n=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,u=n.exec(t),s=[];if(u[1]){if(!r.plainObjects&&Object.prototype.hasOwnProperty(u[1])&&!r.allowPrototypes)return;s.push(u[1])}for(var a=0;null!==(u=o.exec(t))&&as;++s){var f=u[s],c=i.parseKeys(f,r[f],e);o=n.merge(o,c,e)}return n.compact(o)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e1?n-1:0),o=1;n>o;o++)i[o-1]=arguments[o];r.apply(void 0,[t+":"+e].concat(i))}}var i=(0,a.List)(e.get("errorInterceptors")),u=(0,a.List)(e.get("requestInterceptors")),s=(0,a.List)(e.get("responseInterceptors")),f=e["delete"]("errorInterceptors")["delete"]("requestInterceptors")["delete"]("responseInterceptors");return o(n("request:interceptor"),u,f).then(function(e){return r("request",(0,c["default"])(e)),t((0,c["default"])(e)).then(function(t){return o(n("response:interceptor"),s,(0,a.fromJS)(t),[(0,c["default"])(e)])})}).then(null,function(t){return o(n("error:interceptor"),i,t,[(0,c["default"])(f)]).then(function(t){return Promise.reject(t)})})}},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(e){var r=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return u(r?t["new"](t.url()+"/"+e):t["new"](e))}}function o(t){function e(e){return function(){for(var r,n=arguments.length,i=Array(n),o=0;n>o;o++)i[o]=arguments[o];var s=i.shift();return(r=u(t["new"](t.url()+"/"+s)))[e].apply(r,i)}}return(0,a["default"])(t,{custom:i(t),"delete":e("delete"),getAll:t.get,get:e("get"),head:e("head"),patch:e("patch"),put:e("put")})}function u(t){return(0,a["default"])(t,{all:function(e){return o(t["new"](t.url()+"/"+e))},custom:i(t),one:function(e,r){return u(t["new"](t.url()+"/"+e+"/"+r))}})}Object.defineProperty(e,"__esModule",{value:!0}),e.custom=i,e.collection=o,e.member=u;var s=r(3),a=n(s)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return function(e){return e.data&&(e.form=/application\/json/.test(e.headers["Content-Type"])?JSON.stringify(e.data):e.data,delete e.data),e.params&&(e.qs=e.params,delete e.params),new Promise(function(r,n){t(e,function(t,e,i){if(t)throw t;var o=void 0;try{o=JSON.parse(i)}catch(u){o=i}var s={data:o,headers:e.headers,statusCode:e.statusCode};if(e.statusCode>=200&&e.statusCode<300)return r(s);var a=new Error(e.statusMessage);a.response=s,n(a)})})}},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){var e=(0,o.Map)(),r=new i.EventEmitter,u={assign:function(t,r,n){return u.has(t)||u.set(t,(0,o.Map)()),e=e.setIn([t,r],n),u},emit:function(){r.emit.apply(r,arguments),t&&t.emit.apply(t,arguments)},get:function(r){var n=e.get(r);if(u.has(r)&&!o.Iterable.isIterable(n)||!t)return n;if(!u.has(r)&&t)return t.get(r);var i=t.get(r);return i?o.List.isList(i)?i.concat(n):i.mergeDeep(n):n},has:function(t){return e.has(t)},"new":function(){return n(u)},on:r.on.bind(r),once:r.once.bind(r),push:function(t,r){return u.has(t)||u.set(t,(0,o.List)()),e=e.update(t,function(t){return t.push(r)}),u},set:function(t,r){return e=e.set(t,r),u}};return u}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var i=r(18),o=r(6);t.exports=e["default"]},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function u(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,r,i,s,a,f;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[t],u(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(i=arguments.length,s=new Array(i-1),a=1;i>a;a++)s[a-1]=arguments[a];r.apply(this,s)}else if(o(r)){for(i=arguments.length,s=new Array(i-1),a=1;i>a;a++)s[a-1]=arguments[a];for(f=r.slice(),i=f.length,a=0;i>a;a++)f[a].apply(this,s)}return!0},r.prototype.addListener=function(t,e){var i;if(!n(e))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned){var i;i=u(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function r(){this.removeListener(t,r),i||(i=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var i=!1;return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var r,i,u,s;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],u=r.length,i=-1,r===e||n(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(r)){for(s=u;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){i=s;break}if(0>i)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],n(r))this.removeListener(t,r);else for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.listenerCount=function(t,e){var r;return r=t._events&&t._events[e]?n(t._events[e])?1:t._events[e].length:0}}])}); \ No newline at end of file diff --git a/dist/restful.standalone.js b/dist/restful.standalone.js index a1e584e..97ceee3 100644 --- a/dist/restful.standalone.js +++ b/dist/restful.standalone.js @@ -257,7 +257,7 @@ return /******/ (function(modules) { // webpackBootstrap addErrorInterceptor: addInterceptor('error'), addRequestInterceptor: addInterceptor('request'), addResponseInterceptor: addInterceptor('response'), - 'delete': _httpMethodFactory('delete'), + 'delete': _httpMethodFactory('DELETE'), identifier: function identifier(newIdentifier) { if (newIdentifier === undefined) { return scope.get('config').get('entityIdentifier'); @@ -267,8 +267,8 @@ return /******/ (function(modules) { // webpackBootstrap return endpoint; }, - get: _httpMethodFactory('get', false), - head: _httpMethodFactory('head', false), + get: _httpMethodFactory('GET', false), + head: _httpMethodFactory('HEAD', false), header: function header(key, value) { return scope.assign('headers', key, value); }, @@ -283,9 +283,9 @@ return /******/ (function(modules) { // webpackBootstrap }, on: scope.on, once: scope.once, - patch: _httpMethodFactory('patch'), - post: _httpMethodFactory('post'), - put: _httpMethodFactory('put'), + patch: _httpMethodFactory('PATCH'), + post: _httpMethodFactory('POST'), + put: _httpMethodFactory('PUT'), url: function url() { return scope.get('url'); } diff --git a/dist/restful.standalone.min.js b/dist/restful.standalone.min.js index e2285fb..e2a1a30 100644 --- a/dist/restful.standalone.min.js +++ b/dist/restful.standalone.min.js @@ -1,3 +1,3 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.restful=e():t.restful=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i),u=r(9),s=n(u);r(19),e["default"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?(0,s["default"])(fetch):arguments[1];return(0,o["default"])(t,e)},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var r=(0,d["default"])();r.assign("config","entityIdentifier","id"),!t&&"undefined"!=typeof window&&window.location?r.set("url",window.location.protocol+"//"+window.location.host):r.set("url",t);var n=(0,h.member)((0,u["default"])((0,c["default"])(e))(r));return v.push(n),n}Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),u=n(o),s=r(9),a=n(s),f=r(14),c=n(f),h=r(15),p=r(16),l=n(p),_=r(17),d=n(_),v=[];i._instances=function(){return v},i._flush=function(){return v.length=0},e.fetchBackend=a["default"],e.requestBackend=l["default"],e["default"]=i},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),o=n(i),u=r(4),s=n(u),a=r(6),f=r(7),c=n(f);e["default"]=function(t){return function e(r){function n(t,e,n,i){var o=(0,a.Map)({errorInterceptors:(0,a.List)(r.get("errorInterceptors")),headers:(0,a.Map)(r.get("headers")).mergeDeep((0,a.Map)(i)),method:t,params:n,requestInterceptors:(0,a.List)(r.get("requestInterceptors")),responseInterceptors:(0,a.List)(r.get("responseInterceptors")),url:r.get("url")});return e&&(o.hasIn(["headers","Content-Type"])||(o=o.setIn(["headers","Content-Type"],"application/json;charset=UTF-8")),o=o.set("data",(0,a.fromJS)(e))),o}function i(t,e){var n=(0,s["default"])(e,p);return r.emit("response",n,(0,c["default"])(t)),n}function u(t,e){throw r.emit("error",e,(0,c["default"])(t)),e}function f(e){var o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],s=function(){r.emit.apply(r,arguments)};return o?function(r){var o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],f=n(e,r,o,a);return t(f,s).then(function(t){return i(f,t)},function(t){return u(f,t)})}:function(){var r=arguments.length<=0||void 0===arguments[0]?null:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=n(e,null,r,o);return t(a,s).then(function(t){return i(a,t)},function(t){return u(a,t)})}}function h(t){return function(e){return r.push(t+"Interceptors",e),p}}r.on("error",function(){return!0});var p={};return(0,o["default"])(p,{addErrorInterceptor:h("error"),addRequestInterceptor:h("request"),addResponseInterceptor:h("response"),"delete":f("delete"),identifier:function(t){return void 0===t?r.get("config").get("entityIdentifier"):(r.assign("config","entityIdentifier",t),p)},get:f("get",!1),head:f("head",!1),header:function(t,e){return r.assign("headers",t,e)},headers:function(){return r.get("headers")},"new":function(t){var n=r["new"]();return n.set("url",t),e(n)},on:r.on,once:r.once,patch:f("patch"),post:f("post"),put:f("put"),url:function(){return r.get("url")}}),p}},t.exports=e["default"]},function(t,e){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var n,i,o=r(t),u=1;ui;i++)n[i]=arguments[i];return e.put.apply(e,[t].concat(n))},url:e.url}},t.exports=e["default"]},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:j(t)}function r(t){return u(t)?t:M(t)}function n(t){return s(t)?t:q(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[fr])}function s(t){return!(!t||!t[cr])}function a(t){return u(t)||s(t)}function f(t){return!(!t||!t[hr])}function c(t){return t.value=!1,t}function h(t){t&&(t.value=!0)}function p(){}function l(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(v)),t.size}function d(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?_(t)+e:e}function v(){return!0}function y(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function b(t){this.next=t}function I(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function S(){return{value:void 0,done:!0}}function x(t){return!!E(t)}function z(t){return t&&"function"==typeof t.next}function O(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&(Ir&&t[Ir]||t[Sr]);return"function"==typeof e?e:void 0}function D(t){return t&&"number"==typeof t.length}function j(t){return null===t||void 0===t?U():o(t)?t.toSeq():N(t)}function M(t){return null===t||void 0===t?U().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():B(t)}function q(t){return null===t||void 0===t?U():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():K(t)}function A(t){return(null===t||void 0===t?U():o(t)?u(t)?t.entrySeq():t:K(t)).toSetSeq()}function k(t){this._array=t,this.size=t.length}function L(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function T(t){this._iterable=t,this.size=t.length||t.size}function R(t){this._iterator=t,this._iteratorCache=[]}function P(t){return!(!t||!t[zr])}function U(){return Or||(Or=new k([]))}function B(t){var e=Array.isArray(t)?new k(t).fromEntrySeq():z(t)?new R(t).fromEntrySeq():x(t)?new T(t).fromEntrySeq():"object"==typeof t?new L(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function K(t){var e=C(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function N(t){var e=C(t)||"object"==typeof t&&new L(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function C(t){return D(t)?new k(t):z(t)?new R(t):x(t)?new T(t):void 0}function H(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function W(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new b(function(){var t=i[r?o-u:u];return u++>o?S():I(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function J(t,e){return e?F(e,t,"",{"":t}):V(t)}function F(t,e,r,n){return Array.isArray(e)?t.call(n,r,q(e).map(function(r,n){return F(t,r,n,e)})):G(e)?t.call(n,r,M(e).map(function(r,n){return F(t,r,n,e)})):e}function V(t){return Array.isArray(t)?q(t).map(V).toList():G(t)?M(t).map(V).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(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===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function Y(t,e){if(t===e)return!0;if(!o(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||u(t)!==u(e)||s(t)!==s(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(f(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.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 c=t;t=e,e=c}var h=!0,p=e.__iterate(function(e,n){return(r?t.has(e):i?X(e,t.get(n,vr)):X(t.get(n,vr),e))?void 0:(h=!1,!1)});return h&&t.size===p}function $(t,e){if(!(this instanceof $))return new $(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Er)return Er;Er=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,r){if(!(this instanceof Z))return new Z(t,e,r);if(Q(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Dr)return Dr;Dr=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Rr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Br[t];return void 0===e&&(e=st(t),Ur===Pr&&(Ur=0,Br={}),Ur++,Br[t]=e),e}function st(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ht(t){return null===t||void 0===t?It():pt(t)&&!f(t)?t:It().withMutations(function(e){var n=r(t);ct(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function pt(t){return!(!t||!t[Kr])}function lt(t,e){this.ownerID=t,this.entries=e}function _t(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function vt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return I(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function bt(t,e,r,n){var i=Object.create(Nr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function It(){return Cr||(Cr=bt(0))}function St(t,e,r){var n,i;if(t._root){var o=c(yr),u=c(mr);if(n=xt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===vr?-1:1:0)}else{if(r===vr)return t;i=1,n=new lt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?bt(i,n):It()}function xt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===vr?t:(h(s),h(u),new yt(e,n,[i,o]))}function zt(t){return t.constructor===yt||t.constructor===vt}function Ot(t,e,r,n,i){if(t.keyHash===n)return new vt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&dr,s=(0===r?n:n>>>r)&dr,a=u===s?[Ot(t,e,r+lr,n,i)]:(o=new yt(e,n,i),s>u?[t,o]:[o,t]);return new _t(e,1<s;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new _t(t,i,u)}function jt(t,e,r,n,i){for(var o=0,u=new Array(_r),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new dt(t,o+1,u)}function Mt(t,e,n){for(var i=[],u=0;u>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Rt(t,e,r,n){var i=n?t:l(t);return i[e]=r,i}function Pt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Ut(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Bt(t){var e=Wt();if(null===t||void 0===t)return e;if(Kt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ct(i),i>0&&_r>i?Ht(0,i,lr,null,new Nt(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Kt(t){return!(!t||!t[Fr])}function Nt(t,e){this.array=t,this.ownerID=e}function Ct(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,f=u-r;return f>_r&&(f=_r),function(){if(i===f)return Xr;var t=e?--f:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,f=i>o?0:o-i>>n,c=(u-i>>n)+1;return c>_r&&(c=_r),function(){for(;;){if(s){var t=s();if(t!==Xr)return t;s=null}if(f===c)return Xr;var o=e?--c:f++;s=r(a&&a[o],n-lr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=c(mr);return e>=$t(t._capacity)?n=Ft(n,t.__ownerID,0,e,r,o):i=Ft(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ht(t._origin,t._capacity,t._level,i,n):t}function Ft(t,e,r,n,i,o){var u=n>>>r&dr,s=t&&u0){var f=t&&t.array[u],c=Ft(f,e,r-lr,n,i,o);return c===f?t:(a=Vt(t,e),a.array[u]=c,a)}return s&&t.array[u]===i?t:(h(o),a=Vt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Vt(t,e){return e&&t&&e===t.ownerID?t:new Nt(t?t.array.slice():[],e)}function Gt(t,e){if(e>=$t(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&dr],n-=lr;return r}}function Xt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new p,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;0>u+c;)f=new Nt(f&&f.array.length?[void 0,f]:[],n),a+=lr,c+=1<=1<l?Gt(t,s-1):l>h?new Nt([],n):_;if(_&&l>h&&o>u&&_.array.length){f=Vt(f,n);for(var v=f,y=a;y>lr;y-=lr){var m=h>>>y&dr;v=v.array[m]=Vt(v.array[m],n)}v.array[h>>>lr&dr]=_}if(o>s&&(d=d&&d.removeAfter(n,0,s)),u>=l)u-=l,s-=l,a=lr,f=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h>l){for(c=0;f;){var g=u>>>a&dr;if(g!==l>>>a&dr)break;g&&(c+=(1<i&&(f=f.removeBefore(n,a,u-c)),f&&h>l&&(f=f.removeAfter(n,a,l-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Ht(u,s,a,f,d)}function Yt(t,e,r){for(var i=[],u=0,s=0;su&&(u=f.size),o(a)||(f=f.map(function(t){return J(t)})),i.push(f)}return u>t.size&&(t=t.setSize(u)),kt(t,e,i)}function $t(t){return _r>t?0:t-1>>>lr<=_r&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=De(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,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===br){var n=t.__iterator(e,r);return new b(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=De(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,vr);return o===vr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(br,i);return new b(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return I(n,s,e.call(r,u[1],s,t),i)})},n}function fe(t,e){var r=De(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=je,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function ce(t,e,r,n){var i=De(t);return n&&(i.has=function(n){var i=t.get(n,vr);return i!==vr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,vr);return o!==vr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(br,o),s=0;return new b(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return I(i,n?f:s++,c,o)}})},i}function he(t,e,r){var n=ht().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function pe(t,e,r){var n=u(t),i=(f(t)?Qt():ht()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Ee(t);return i.map(function(e){return xe(t,o(e))})}function le(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=0|r),y(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return le(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var f=De(t);return f.size=0===s?s:t.size&&s||void 0,!n&&P(t)&&s>=0&&(f.get=function(e,r){return e=d(this,e),e>=0&&s>e?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){return a&&(a=u++s)return S();var t=i.next();return n||e===wr?t:e===gr?I(e,a-1,void 0,t):I(e,a-1,t.value[1],t)})},f}function _e(t,e,r){var n=De(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(br,i),s=!0;return new b(function(){if(!s)return S();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===br?t:I(n,a,f,t):(s=!1,S())})},n}function de(t,e,r,n){var i=De(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,f){return s&&(s=e.call(r,t,o,f))?void 0:(a++,i(t,n?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(br,o),a=!0,f=0;return new b(function(){var t,o,c;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?I(i,f++,void 0,t):I(i,f++,t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===br?t:I(i,o,c,t)})},i}function ve(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?B(t):K(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var f=new k(i);return n?f=f.toKeyedSeq():s(t)||(f=f.toSetSeq()),f=f.flatten(!0),f.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}function ye(t,e,r){var n=De(t);return n.__iterateUncached=function(n,i){function u(t,f){var c=this;t.__iterate(function(t,i){return(!e||e>f)&&o(t)?u(t,f+1):n(t,r?i:s++,c)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new b(function(){for(;u;){var t=u.next();if(t.done===!1){var f=t.value;if(n===br&&(f=f[1]),e&&!(s.length0}function Se(t,r,n){var i=De(t);return i.size=new k(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),O(i?t.reverse():t)}),u=0,s=!1;return new b(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?S():I(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function xe(t,e){return P(t)?e:t.constructor(e)}function ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Oe(t){return ct(t.size),_(t)}function Ee(t){return u(t)?r:s(t)?n:i}function De(t){return Object.create((u(t)?M:s(t)?q:A).prototype)}function je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function Me(t,e){return t>e?1:e>t?-1:0}function qe(t){var r=O(t);if(!r){if(!D(t))throw new TypeError("Expected iterable or array-like: "+t);r=O(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Te(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ht(o)},i=n.prototype=Object.create($r);return i.constructor=n,n}function ke(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Le(t){return t._name||t.constructor.name||"Record"}function Te(t,e){try{e.forEach(Re.bind(void 0,t))}catch(r){}}function Re(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Pe(t){return null===t||void 0===t?Ne():Ue(t)&&!f(t)?t:Ne().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function Ue(t){return!(!t||!t[Qr])}function Be(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 Ke(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ne(){return tn||(tn=Ke(It()))}function Ce(t){return null===t||void 0===t?Je():He(t)?t:Je().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function He(t){return Ue(t)&&f(t)}function We(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return rn||(rn=We(ee()))}function Fe(t){return null===t||void 0===t?Xe():Ve(t)?t:Xe().unshiftAll(t)}function Ve(t){return!(!t||!t[nn])}function Ge(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return un||(un=Ge(0))}function Ye(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function $e(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t}function rr(){return l(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=f(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=Mr(e,3432918353),e=Mr(e<<15|e>>>-15,461845907),e=Mr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Mr(e^e>>>16,2246822507),e=Mr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=f,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",fr="@@__IMMUTABLE_KEYED__@@",cr="@@__IMMUTABLE_INDEXED__@@",hr="@@__IMMUTABLE_ORDERED__@@",pr="delete",lr=5,_r=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},k.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new b(function(){return i>n?S():I(t,i,r[e?n-i++:i++])})},t(L,M),L.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},L.prototype.has=function(t){return this._object.hasOwnProperty(t)},L.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},L.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new b(function(){var u=n[e?i-o:o];return o++>i?S():I(t,u,r[u])})},L.prototype[hr]=!0,t(T,q),T.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e); +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.restful=e():t.restful=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i),u=r(9),s=n(u);r(19),e["default"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?(0,s["default"])(fetch):arguments[1];return(0,o["default"])(t,e)},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var r=(0,d["default"])();r.assign("config","entityIdentifier","id"),!t&&"undefined"!=typeof window&&window.location?r.set("url",window.location.protocol+"//"+window.location.host):r.set("url",t);var n=(0,h.member)((0,u["default"])((0,c["default"])(e))(r));return v.push(n),n}Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),u=n(o),s=r(9),a=n(s),f=r(14),c=n(f),h=r(15),p=r(16),l=n(p),_=r(17),d=n(_),v=[];i._instances=function(){return v},i._flush=function(){return v.length=0},e.fetchBackend=a["default"],e.requestBackend=l["default"],e["default"]=i},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(3),o=n(i),u=r(4),s=n(u),a=r(6),f=r(7),c=n(f);e["default"]=function(t){return function e(r){function n(t,e,n,i){var o=(0,a.Map)({errorInterceptors:(0,a.List)(r.get("errorInterceptors")),headers:(0,a.Map)(r.get("headers")).mergeDeep((0,a.Map)(i)),method:t,params:n,requestInterceptors:(0,a.List)(r.get("requestInterceptors")),responseInterceptors:(0,a.List)(r.get("responseInterceptors")),url:r.get("url")});return e&&(o.hasIn(["headers","Content-Type"])||(o=o.setIn(["headers","Content-Type"],"application/json;charset=UTF-8")),o=o.set("data",(0,a.fromJS)(e))),o}function i(t,e){var n=(0,s["default"])(e,p);return r.emit("response",n,(0,c["default"])(t)),n}function u(t,e){throw r.emit("error",e,(0,c["default"])(t)),e}function f(e){var o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],s=function(){r.emit.apply(r,arguments)};return o?function(r){var o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],f=n(e,r,o,a);return t(f,s).then(function(t){return i(f,t)},function(t){return u(f,t)})}:function(){var r=arguments.length<=0||void 0===arguments[0]?null:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1],a=n(e,null,r,o);return t(a,s).then(function(t){return i(a,t)},function(t){return u(a,t)})}}function h(t){return function(e){return r.push(t+"Interceptors",e),p}}r.on("error",function(){return!0});var p={};return(0,o["default"])(p,{addErrorInterceptor:h("error"),addRequestInterceptor:h("request"),addResponseInterceptor:h("response"),"delete":f("DELETE"),identifier:function(t){return void 0===t?r.get("config").get("entityIdentifier"):(r.assign("config","entityIdentifier",t),p)},get:f("GET",!1),head:f("HEAD",!1),header:function(t,e){return r.assign("headers",t,e)},headers:function(){return r.get("headers")},"new":function(t){var n=r["new"]();return n.set("url",t),e(n)},on:r.on,once:r.once,patch:f("PATCH"),post:f("POST"),put:f("PUT"),url:function(){return r.get("url")}}),p}},t.exports=e["default"]},function(t,e){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var n,i,o=r(t),u=1;ui;i++)n[i]=arguments[i];return e.put.apply(e,[t].concat(n))},url:e.url}},t.exports=e["default"]},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:j(t)}function r(t){return u(t)?t:M(t)}function n(t){return s(t)?t:q(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[fr])}function s(t){return!(!t||!t[cr])}function a(t){return u(t)||s(t)}function f(t){return!(!t||!t[hr])}function c(t){return t.value=!1,t}function h(t){t&&(t.value=!0)}function p(){}function l(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(v)),t.size}function d(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?_(t)+e:e}function v(){return!0}function y(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function b(t){this.next=t}function I(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function S(){return{value:void 0,done:!0}}function x(t){return!!E(t)}function z(t){return t&&"function"==typeof t.next}function O(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&(Ir&&t[Ir]||t[Sr]);return"function"==typeof e?e:void 0}function D(t){return t&&"number"==typeof t.length}function j(t){return null===t||void 0===t?U():o(t)?t.toSeq():N(t)}function M(t){return null===t||void 0===t?U().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():B(t)}function q(t){return null===t||void 0===t?U():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():K(t)}function A(t){return(null===t||void 0===t?U():o(t)?u(t)?t.entrySeq():t:K(t)).toSetSeq()}function k(t){this._array=t,this.size=t.length}function L(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function T(t){this._iterable=t,this.size=t.length||t.size}function R(t){this._iterator=t,this._iteratorCache=[]}function P(t){return!(!t||!t[zr])}function U(){return Or||(Or=new k([]))}function B(t){var e=Array.isArray(t)?new k(t).fromEntrySeq():z(t)?new R(t).fromEntrySeq():x(t)?new T(t).fromEntrySeq():"object"==typeof t?new L(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function K(t){var e=C(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function N(t){var e=C(t)||"object"==typeof t&&new L(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function C(t){return D(t)?new k(t):z(t)?new R(t):x(t)?new T(t):void 0}function H(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function W(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new b(function(){var t=i[r?o-u:u];return u++>o?S():I(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function J(t,e){return e?F(e,t,"",{"":t}):V(t)}function F(t,e,r,n){return Array.isArray(e)?t.call(n,r,q(e).map(function(r,n){return F(t,r,n,e)})):G(e)?t.call(n,r,M(e).map(function(r,n){return F(t,r,n,e)})):e}function V(t){return Array.isArray(t)?q(t).map(V).toList():G(t)?M(t).map(V).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(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===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function Y(t,e){if(t===e)return!0;if(!o(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||u(t)!==u(e)||s(t)!==s(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(f(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.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 c=t;t=e,e=c}var h=!0,p=e.__iterate(function(e,n){return(r?t.has(e):i?X(e,t.get(n,vr)):X(t.get(n,vr),e))?void 0:(h=!1,!1)});return h&&t.size===p}function $(t,e){if(!(this instanceof $))return new $(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Er)return Er;Er=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,r){if(!(this instanceof Z))return new Z(t,e,r);if(Q(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Dr)return Dr;Dr=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Rr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Br[t];return void 0===e&&(e=st(t),Ur===Pr&&(Ur=0,Br={}),Ur++,Br[t]=e),e}function st(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ht(t){return null===t||void 0===t?It():pt(t)&&!f(t)?t:It().withMutations(function(e){var n=r(t);ct(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function pt(t){return!(!t||!t[Kr])}function lt(t,e){this.ownerID=t,this.entries=e}function _t(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function vt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return I(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function bt(t,e,r,n){var i=Object.create(Nr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function It(){return Cr||(Cr=bt(0))}function St(t,e,r){var n,i;if(t._root){var o=c(yr),u=c(mr);if(n=xt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===vr?-1:1:0)}else{if(r===vr)return t;i=1,n=new lt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?bt(i,n):It()}function xt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===vr?t:(h(s),h(u),new yt(e,n,[i,o]))}function zt(t){return t.constructor===yt||t.constructor===vt}function Ot(t,e,r,n,i){if(t.keyHash===n)return new vt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&dr,s=(0===r?n:n>>>r)&dr,a=u===s?[Ot(t,e,r+lr,n,i)]:(o=new yt(e,n,i),s>u?[t,o]:[o,t]);return new _t(e,1<s;s++,a<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=a,u[o++]=c)}return new _t(t,i,u)}function jt(t,e,r,n,i){for(var o=0,u=new Array(_r),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new dt(t,o+1,u)}function Mt(t,e,n){for(var i=[],u=0;u>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Rt(t,e,r,n){var i=n?t:l(t);return i[e]=r,i}function Pt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Ut(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Bt(t){var e=Wt();if(null===t||void 0===t)return e;if(Kt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ct(i),i>0&&_r>i?Ht(0,i,lr,null,new Nt(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Kt(t){return!(!t||!t[Fr])}function Nt(t,e){this.array=t,this.ownerID=e}function Ct(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,f=u-r;return f>_r&&(f=_r),function(){if(i===f)return Xr;var t=e?--f:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,f=i>o?0:o-i>>n,c=(u-i>>n)+1;return c>_r&&(c=_r),function(){for(;;){if(s){var t=s();if(t!==Xr)return t;s=null}if(f===c)return Xr;var o=e?--c:f++;s=r(a&&a[o],n-lr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=c(mr);return e>=$t(t._capacity)?n=Ft(n,t.__ownerID,0,e,r,o):i=Ft(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ht(t._origin,t._capacity,t._level,i,n):t}function Ft(t,e,r,n,i,o){var u=n>>>r&dr,s=t&&u0){var f=t&&t.array[u],c=Ft(f,e,r-lr,n,i,o);return c===f?t:(a=Vt(t,e),a.array[u]=c,a)}return s&&t.array[u]===i?t:(h(o),a=Vt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Vt(t,e){return e&&t&&e===t.ownerID?t:new Nt(t?t.array.slice():[],e)}function Gt(t,e){if(e>=$t(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&dr],n-=lr;return r}}function Xt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new p,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,f=t._root,c=0;0>u+c;)f=new Nt(f&&f.array.length?[void 0,f]:[],n),a+=lr,c+=1<=1<l?Gt(t,s-1):l>h?new Nt([],n):_;if(_&&l>h&&o>u&&_.array.length){f=Vt(f,n);for(var v=f,y=a;y>lr;y-=lr){var m=h>>>y&dr;v=v.array[m]=Vt(v.array[m],n)}v.array[h>>>lr&dr]=_}if(o>s&&(d=d&&d.removeAfter(n,0,s)),u>=l)u-=l,s-=l,a=lr,f=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h>l){for(c=0;f;){var g=u>>>a&dr;if(g!==l>>>a&dr)break;g&&(c+=(1<i&&(f=f.removeBefore(n,a,u-c)),f&&h>l&&(f=f.removeAfter(n,a,l-c)),c&&(u-=c,s-=c)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=f,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Ht(u,s,a,f,d)}function Yt(t,e,r){for(var i=[],u=0,s=0;su&&(u=f.size),o(a)||(f=f.map(function(t){return J(t)})),i.push(f)}return u>t.size&&(t=t.setSize(u)),kt(t,e,i)}function $t(t){return _r>t?0:t-1>>>lr<=_r&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=De(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,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===br){var n=t.__iterator(e,r);return new b(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=De(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,vr);return o===vr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(br,i);return new b(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return I(n,s,e.call(r,u[1],s,t),i)})},n}function fe(t,e){var r=De(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=je,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function ce(t,e,r,n){var i=De(t);return n&&(i.has=function(n){var i=t.get(n,vr);return i!==vr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,vr);return o!==vr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(br,o),s=0;return new b(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,f=a[0],c=a[1];if(e.call(r,c,f,t))return I(i,n?f:s++,c,o)}})},i}function he(t,e,r){var n=ht().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function pe(t,e,r){var n=u(t),i=(f(t)?Qt():ht()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Ee(t);return i.map(function(e){return xe(t,o(e))})}function le(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=0|r),y(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return le(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var f=De(t);return f.size=0===s?s:t.size&&s||void 0,!n&&P(t)&&s>=0&&(f.get=function(e,r){return e=d(this,e),e>=0&&s>e?t.get(e+o,r):r}),f.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,f=0;return t.__iterate(function(t,r){return a&&(a=u++s)return S();var t=i.next();return n||e===wr?t:e===gr?I(e,a-1,void 0,t):I(e,a-1,t.value[1],t)})},f}function _e(t,e,r){var n=De(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(br,i),s=!0;return new b(function(){if(!s)return S();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],f=i[1];return e.call(r,f,a,o)?n===br?t:I(n,a,f,t):(s=!1,S())})},n}function de(t,e,r,n){var i=De(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,f){return s&&(s=e.call(r,t,o,f))?void 0:(a++,i(t,n?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(br,o),a=!0,f=0;return new b(function(){var t,o,c;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?I(i,f++,void 0,t):I(i,f++,t.value[1],t);var h=t.value;o=h[0],c=h[1],a&&(a=e.call(r,c,o,u))}while(a);return i===br?t:I(i,o,c,t)})},i}function ve(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?B(t):K(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var f=new k(i);return n?f=f.toKeyedSeq():s(t)||(f=f.toSetSeq()),f=f.flatten(!0),f.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),f}function ye(t,e,r){var n=De(t);return n.__iterateUncached=function(n,i){function u(t,f){var c=this;t.__iterate(function(t,i){return(!e||e>f)&&o(t)?u(t,f+1):n(t,r?i:s++,c)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new b(function(){for(;u;){var t=u.next();if(t.done===!1){var f=t.value;if(n===br&&(f=f[1]),e&&!(s.length0}function Se(t,r,n){var i=De(t);return i.size=new k(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),O(i?t.reverse():t)}),u=0,s=!1;return new b(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?S():I(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function xe(t,e){return P(t)?e:t.constructor(e)}function ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Oe(t){return ct(t.size),_(t)}function Ee(t){return u(t)?r:s(t)?n:i}function De(t){return Object.create((u(t)?M:s(t)?q:A).prototype)}function je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function Me(t,e){return t>e?1:e>t?-1:0}function qe(t){var r=O(t);if(!r){if(!D(t))throw new TypeError("Expected iterable or array-like: "+t);r=O(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Te(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ht(o)},i=n.prototype=Object.create($r);return i.constructor=n,n}function ke(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Le(t){return t._name||t.constructor.name||"Record"}function Te(t,e){try{e.forEach(Re.bind(void 0,t))}catch(r){}}function Re(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Pe(t){return null===t||void 0===t?Ne():Ue(t)&&!f(t)?t:Ne().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function Ue(t){return!(!t||!t[Qr])}function Be(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 Ke(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ne(){return tn||(tn=Ke(It()))}function Ce(t){return null===t||void 0===t?Je():He(t)?t:Je().withMutations(function(e){var r=i(t);ct(r.size),r.forEach(function(t){return e.add(t)})})}function He(t){return Ue(t)&&f(t)}function We(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return rn||(rn=We(ee()))}function Fe(t){return null===t||void 0===t?Xe():Ve(t)?t:Xe().unshiftAll(t)}function Ve(t){return!(!t||!t[nn])}function Ge(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return un||(un=Ge(0))}function Ye(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function $e(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t}function rr(){return l(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=f(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=Mr(e,3432918353),e=Mr(e<<15|e>>>-15,461845907),e=Mr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Mr(e^e>>>16,2246822507),e=Mr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=f,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",fr="@@__IMMUTABLE_KEYED__@@",cr="@@__IMMUTABLE_INDEXED__@@",hr="@@__IMMUTABLE_ORDERED__@@",pr="delete",lr=5,_r=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},k.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new b(function(){return i>n?S():I(t,i,r[e?n-i++:i++])})},t(L,M),L.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},L.prototype.has=function(t){return this._object.hasOwnProperty(t)},L.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},L.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new b(function(){var u=n[e?i-o:o];return o++>i?S():I(t,u,r[u])})},L.prototype[hr]=!0,t(T,q),T.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e); var r=this._iterable,n=O(r),i=0;if(z(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},T.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=O(r);if(!z(n))return new b(S);var i=0;return new b(function(){var e=n.next();return e.done?e:I(t,i++,e.value)})},t(R,q),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;i=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return I(t,i,n[i++])})};var Or;t($,q),$.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},$.prototype.get=function(t,e){return this.has(t)?this._value:e},$.prototype.includes=function(t){return X(this._value,t)},$.prototype.slice=function(t,e){var r=this.size;return y(t,e,r)?this:new $(this._value,g(e,r)-m(t,r))},$.prototype.reverse=function(){return this},$.prototype.indexOf=function(t){return X(this._value,t)?0:-1},$.prototype.lastIndexOf=function(t){return X(this._value,t)?this.size:-1},$.prototype.__iterate=function(t,e){for(var r=0;r1?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+d(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=e?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},Z.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new b(function(){var u=i;return i+=e?-n:n,o>r?S():I(t,o++,u)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:Y(this,t)};var Dr;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var jr,Mr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},qr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),kr="function"==typeof WeakMap;kr&&(jr=new WeakMap);var Lr=0,Tr="__immutablehash__";"function"==typeof Symbol&&(Tr=Symbol(Tr));var Rr=16,Pr=255,Ur=0,Br={};t(ht,et),ht.prototype.toString=function(){return this.__toString("Map {","}")},ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ht.prototype.set=function(t,e){return St(this,t,e)},ht.prototype.setIn=function(t,e){return this.updateIn(t,vr,function(){return e})},ht.prototype.remove=function(t){return St(this,t,vr)},ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return vr})},ht.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},ht.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Lt(this,qe(t),e,r);return n===vr?void 0:n},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):It()},ht.prototype.merge=function(){return Mt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return Mt(this,t,e)},ht.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,It(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ht.prototype.mergeDeep=function(){return Mt(this,qt,arguments)},ht.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return Mt(this,At(t),e)},ht.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,It(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ht.prototype.sort=function(t){return Qt(we(this,t))},ht.prototype.sortBy=function(t,e){return Qt(we(this,e,t))},ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ht.prototype.asImmutable=function(){return this.__ensureOwner()},ht.prototype.wasAltered=function(){return this.__altered},ht.prototype.__iterator=function(t,e){return new mt(this,t,e)},ht.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ht.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)},ht.isMap=pt;var Kr="@@__IMMUTABLE_MAP__@@",Nr=ht.prototype;Nr[Kr]=!0,Nr[pr]=Nr.remove,Nr.removeIn=Nr.deleteIn,lt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},lt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===vr,a=this.entries,f=0,c=a.length;c>f&&!X(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),!s||1!==a.length){if(!p&&!s&&a.length>=Hr)return Et(t,a,n,i);var _=t&&t===this.ownerID,d=_?a:l(a);return p?s?f===c-1?d.pop():d[f]=d.pop():d[f]=[n,i]:d.push([n,i]),_?(this.entries=d,this):new lt(t,d)}},_t.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&dr),o=this.bitmap;return 0===(o&i)?n:this.nodes[Tt(o&i-1)].get(t+lr,e,r,n)},_t.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&dr,a=1<=Wr)return jt(t,p,f,s,_);if(c&&!_&&2===p.length&&zt(p[1^h]))return p[1^h];if(c&&_&&1===p.length&&zt(_))return _;var d=t&&t===this.ownerID,v=c?_?f:f^a:f|a,y=c?_?Rt(p,h,_,d):Ut(p,h,d):Pt(p,h,_,d);return d?(this.bitmap=v,this.nodes=y,this):new _t(t,v,y)},dt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&dr,o=this.nodes[i];return o?o.get(t+lr,e,r,n):n},dt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&dr,a=i===vr,f=this.nodes,c=f[s];if(a&&!c)return this;var h=xt(c,t,e+lr,r,n,i,o,u);if(h===c)return this;var p=this.count;if(c){if(!h&&(p--,Jr>p))return Dt(t,f,p,s)}else p++;var l=t&&t===this.ownerID,_=Rt(f,s,h,l);return l?(this.count=p,this.nodes=_,this):new dt(t,p,_)},vt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===vr;if(r!==this.keyHash)return s?this:(h(u),h(o),Ot(this,t,e,r,[n,i]));for(var a=this.entries,f=0,c=a.length;c>f&&!X(n,a[f][0]);f++);var p=c>f;if(p?a[f][1]===i:s)return this;if(h(u),(s||!p)&&h(o),s&&2===c)return new yt(t,this.keyHash,a[1^f]);var _=t&&t===this.ownerID,d=_?a:l(a);return p?s?f===c-1?d.pop():d[f]=d.pop():d[f]=[n,i]:d.push([n,i]),_?(this.entries=d,this):new vt(t,this.keyHash,d)},yt.prototype.get=function(t,e,r,n){return X(r,this.entry[0])?this.entry[1]:n},yt.prototype.update=function(t,e,r,n,i,o,u){var s=i===vr,a=X(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(h(u),s?void h(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new yt(t,this.keyHash,[n,i]):(h(o),Ot(this,t,e,ot(n),[n,i])))},lt.prototype.iterate=vt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},_t.prototype.iterate=dt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},yt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,b),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return S()};var Cr,Hr=_r/4,Wr=_r/2,Jr=_r/4;t(Bt,rt),Bt.of=function(){return this(arguments)},Bt.prototype.toString=function(){return this.__toString("List [","]")},Bt.prototype.get=function(t,e){if(t=d(this,t),t>=0&&t>>e&dr;if(n>=this.array.length)return new Nt([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-lr,r),i===u&&o)return this}if(o&&!i)return this;var s=Vt(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Nt.prototype.removeAfter=function(t,e,r){if(r===(e?1<>>e&dr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-lr,r),i===o&&n===this.array.length-1)return this}var u=Vt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Gr,Xr={};t(Qt,ht),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return re(this,t,e)},Qt.prototype.remove=function(t){return re(this,t,vr)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Qt.isOrderedMap=Zt,Qt.prototype[hr]=!0,Qt.prototype[pr]=Qt.prototype.remove;var Yr;t(ne,M),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=fe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Oe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?Oe(this):0;return new b(function(){var i=r.next();return i.done?i:I(t,e?--n:n++,i.value,i)})},ne.prototype[hr]=!0,t(ie,q),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;return new b(function(){var e=r.next();return e.done?e:I(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){var e=r.next();return e.done?e:I(t,e.value,e.value,e)})},t(ue,M),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){ze(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new b(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){ze(n);var i=o(n);return I(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=je,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Le(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ke(this,It()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Le(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ke(this,r)},Ae.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)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.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 $r=Ae.prototype;$r[pr]=$r.remove,$r.deleteIn=$r.removeIn=Nr.removeIn,$r.merge=Nr.merge,$r.mergeWith=Nr.mergeWith,$r.mergeIn=Nr.mergeIn,$r.mergeDeep=Nr.mergeDeep,$r.mergeDeepWith=Nr.mergeDeepWith,$r.mergeDeepIn=Nr.mergeDeepIn,$r.setIn=Nr.setIn,$r.update=Nr.update,$r.updateIn=Nr.updateIn,$r.withMutations=Nr.withMutations,$r.asMutable=Nr.asMutable,$r.asImmutable=Nr.asImmutable,t(Pe,nt),Pe.of=function(){return this(arguments)},Pe.fromKeys=function(t){return this(r(t).keySeq())},Pe.prototype.toString=function(){return this.__toString("Set {","}")},Pe.prototype.has=function(t){return this._map.has(t)},Pe.prototype.add=function(t){return Be(this,this._map.set(t,!0))},Pe.prototype.remove=function(t){return Be(this,this._map.remove(t))},Pe.prototype.clear=function(){return Be(this,this._map.clear())},Pe.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ge(t,e)},Fe.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ct(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ge(e,r)},Fe.prototype.pop=function(){return this.slice(1)},Fe.prototype.unshift=function(){return this.push.apply(this,arguments)},Fe.prototype.unshiftAll=function(t){return this.pushAll(t)},Fe.prototype.shift=function(){return this.pop.apply(this,arguments)},Fe.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):Xe()},Fe.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var r=m(t,this.size),n=g(e,this.size);if(n!==this.size)return rt.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ge(i,o)},Fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ge(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Fe.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},Fe.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new b(function(){if(n){var e=n.value;return n=n.next,I(t,r++,e)}return S()})},Fe.isStack=Ve;var nn="@@__IMMUTABLE_STACK__@@",on=Fe.prototype;on[nn]=!0,on.withMutations=Nr.withMutations,on.asMutable=Nr.asMutable,on.asImmutable=Nr.asImmutable,on.wasAltered=Nr.wasAltered;var un;e.Iterator=b,Ye(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(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 ht(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return Ce(u(this)?this.valueSeq():this)},toSet:function(){return Pe(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Fe(u(this)?this.valueSeq():this)},toList:function(){return Bt(u(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 t=sr.call(arguments,0);return xe(this,ve(this,t))},includes:function(t){return this.some(function(e){return X(e,t)})},entries:function(){return this.__iterator(br)},every:function(t,e){ct(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return xe(this,ce(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?(r=[i,n],!1):void 0}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return xe(this,ae(this,t,e))},reduce:function(t,e,r){ct(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return xe(this,fe(this,!0))},slice:function(t,e){return xe(this,le(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return xe(this,we(this,t))},values:function(){return this.__iterator(wr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return he(this,t,e)},equals:function(t){return Y(this,t)},entrySeq:function(){var t=this;if(t._cache)return new k(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(v)},flatMap:function(t,e){return xe(this,me(this,t,e))},flatten:function(t){return xe(this,ye(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return X(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=qe(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,vr):vr,n===vr)return e}return n},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,vr)!==vr},hasIn:function(t){return this.getIn(t,vr)!==vr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map($e).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return be(this,t)},maxBy:function(t,e){return be(this,e,t)},min:function(t){return be(this,t?tr(t):nr)},minBy:function(t,e){return be(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return xe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return xe(this,de(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return xe(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return xe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return xe(this,_e(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var sn=e.prototype;sn[ar]=!0,sn[xr]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=er,sn.inspect=sn.toSource=function(){return this.toString()},sn.chain=sn.flatMap,sn.contains=sn.includes,function(){try{Object.defineProperty(sn,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(r){t=r.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Ye(r,{flip:function(){return xe(this,se(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return X(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return X(e,t)})},mapEntries:function(t,e){var r=this,n=0;return xe(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return xe(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var an=r.prototype;an[fr]=!0,an[xr]=sn.entries,an.__toJS=sn.toObject,an.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Ye(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return xe(this,ce(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return xe(this,fe(this,!1))},slice:function(t,e){return xe(this,le(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,0>t?this.count():this.size);var n=this.slice(0,t);return xe(this,1===r?n:n.concat(l(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return xe(this,ye(this,t,!1))},get:function(t,e){return t=d(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=d(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t=200&&t.status<300)return p;var l=new Error(t.statusText);throw l.response=p,l})})}},t.exports=e["default"]},function(t,e,r){var n=r(11),i=r(13);t.exports={stringify:n,parse:i}},function(t,e,r){var n=r(12),i={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}},strictNullHandling:!1,skipNulls:!1,encode:!0};i.stringify=function(t,e,r,o,u,s,a,f){if("function"==typeof a)t=a(e,t);else if(n.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){ if(o)return s?n.encode(e):e;t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return s?[n.encode(e)+"="+n.encode(t)]:[e+"="+t];var c=[];if("undefined"==typeof t)return c;var h;if(Array.isArray(a))h=a;else{var p=Object.keys(t);h=f?p.sort(f):p}for(var l=0,_=h.length;_>l;++l){var d=h[l];u&&null===t[d]||(c=Array.isArray(t)?c.concat(i.stringify(t[d],r(e,d),r,o,u,s,a)):c.concat(i.stringify(t[d],e+"["+d+"]",r,o,u,s,a)))}return c},t.exports=function(t,e){e=e||{};var r,n,o="undefined"==typeof e.delimiter?i.delimiter:e.delimiter,u="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,s="boolean"==typeof e.skipNulls?e.skipNulls:i.skipNulls,a="boolean"==typeof e.encode?e.encode:i.encode,f="function"==typeof e.sort?e.sort:null;"function"==typeof e.filter?(n=e.filter,t=n("",t)):Array.isArray(e.filter)&&(r=n=e.filter);var c=[];if("object"!=typeof t||null===t)return"";var h;h=e.arrayFormat in i.arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":"indices";var p=i.arrayPrefixGenerators[h];r||(r=Object.keys(t)),f&&r.sort(f);for(var l=0,_=r.length;_>l;++l){var d=r[l];s&&null===t[d]||(c=c.concat(i.stringify(t[d],d,p,u,s,a,n,f)))}return c.join(o)}},function(t,e){var r={};r.hexTable=new Array(256);for(var n=0;256>n;++n)r.hexTable[n]="%"+((16>n?"0":"")+n.toString(16)).toUpperCase();e.arrayToObject=function(t,e){for(var r=e.plainObjects?Object.create(null):{},n=0,i=t.length;i>n;++n)"undefined"!=typeof t[n]&&(r[n]=t[n]);return r},e.merge=function(t,r,n){if(!r)return t;if("object"!=typeof r)return Array.isArray(t)?t.push(r):"object"==typeof t?t[r]=!0:t=[t,r],t;if("object"!=typeof t)return t=[t].concat(r);Array.isArray(t)&&!Array.isArray(r)&&(t=e.arrayToObject(t,n));for(var i=Object.keys(r),o=0,u=i.length;u>o;++o){var s=i[o],a=r[s];Object.prototype.hasOwnProperty.call(t,s)?t[s]=e.merge(t[s],a,n):t[s]=a}return t},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;"string"!=typeof t&&(t=""+t);for(var e="",n=0,i=t.length;i>n;++n){var o=t.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&57>=o||o>=65&&90>=o||o>=97&&122>=o?e+=t[n]:128>o?e+=r.hexTable[o]:2048>o?e+=r.hexTable[192|o>>6]+r.hexTable[128|63&o]:55296>o||o>=57344?e+=r.hexTable[224|o>>12]+r.hexTable[128|o>>6&63]+r.hexTable[128|63&o]:(++n,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),e+=r.hexTable[240|o>>18]+r.hexTable[128|o>>12&63]+r.hexTable[128|o>>6&63]+r.hexTable[128|63&o])}return e},e.compact=function(t,r){if("object"!=typeof t||null===t)return t;r=r||[];var n=r.indexOf(t);if(-1!==n)return r[n];if(r.push(t),Array.isArray(t)){for(var i=[],o=0,u=t.length;u>o;++o)"undefined"!=typeof t[o]&&i.push(t[o]);return i}var s=Object.keys(t);for(o=0,u=s.length;u>o;++o){var a=s[o];t[a]=e.compact(t[a],r)}return t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null===t||"undefined"==typeof t?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},function(t,e,r){var n=r(12),i={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};i.parseValues=function(t,e){for(var r={},i=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0,u=i.length;u>o;++o){var s=i[o],a=-1===s.indexOf("]=")?s.indexOf("="):s.indexOf("]=")+1;if(-1===a)r[n.decode(s)]="",e.strictNullHandling&&(r[n.decode(s)]=null);else{var f=n.decode(s.slice(0,a)),c=n.decode(s.slice(a+1));Object.prototype.hasOwnProperty.call(r,f)?r[f]=[].concat(r[f]).concat(c):r[f]=c}}return r},i.parseObject=function(t,e,r){if(!t.length)return e;var n,o=t.shift();if("[]"===o)n=[],n=n.concat(i.parseObject(t,e,r));else{n=r.plainObjects?Object.create(null):{};var u="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,s=parseInt(u,10),a=""+s;!isNaN(s)&&o!==u&&a===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(n=[],n[s]=i.parseObject(t,e,r)):n[u]=i.parseObject(t,e,r)}return n},i.parseKeys=function(t,e,r){if(t){r.allowDots&&(t=t.replace(/\.([^\.\[]+)/g,"[$1]"));var n=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,u=n.exec(t),s=[];if(u[1]){if(!r.plainObjects&&Object.prototype.hasOwnProperty(u[1])&&!r.allowPrototypes)return;s.push(u[1])}for(var a=0;null!==(u=o.exec(t))&&as;++s){var f=u[s],c=i.parseKeys(f,r[f],e);o=n.merge(o,c,e)}return n.compact(o)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e1?n-1:0),o=1;n>o;o++)i[o-1]=arguments[o];r.apply(void 0,[t+":"+e].concat(i))}}var i=(0,a.List)(e.get("errorInterceptors")),u=(0,a.List)(e.get("requestInterceptors")),s=(0,a.List)(e.get("responseInterceptors")),f=e["delete"]("errorInterceptors")["delete"]("requestInterceptors")["delete"]("responseInterceptors");return o(n("request:interceptor"),u,f).then(function(e){return r("request",(0,c["default"])(e)),t((0,c["default"])(e)).then(function(t){return o(n("response:interceptor"),s,(0,a.fromJS)(t),[(0,c["default"])(e)])})}).then(null,function(t){return o(n("error:interceptor"),i,t,[(0,c["default"])(f)]).then(function(t){return Promise.reject(t)})})}},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(e){var r=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return u(r?t["new"](t.url()+"/"+e):t["new"](e))}}function o(t){function e(e){return function(){for(var r,n=arguments.length,i=Array(n),o=0;n>o;o++)i[o]=arguments[o];var s=i.shift();return(r=u(t["new"](t.url()+"/"+s)))[e].apply(r,i)}}return(0,a["default"])(t,{custom:i(t),"delete":e("delete"),getAll:t.get,get:e("get"),head:e("head"),patch:e("patch"),put:e("put")})}function u(t){return(0,a["default"])(t,{all:function(e){return o(t["new"](t.url()+"/"+e))},custom:i(t),one:function(e,r){return u(t["new"](t.url()+"/"+e+"/"+r))}})}Object.defineProperty(e,"__esModule",{value:!0}),e.custom=i,e.collection=o,e.member=u;var s=r(3),a=n(s)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return function(e){return e.data&&(e.form=/application\/json/.test(e.headers["Content-Type"])?JSON.stringify(e.data):e.data,delete e.data),e.params&&(e.qs=e.params,delete e.params),new Promise(function(r,n){t(e,function(t,e,i){if(t)throw t;var o=void 0;try{o=JSON.parse(i)}catch(u){o=i}var s={data:o,headers:e.headers,statusCode:e.statusCode};if(e.statusCode>=200&&e.statusCode<300)return r(s);var a=new Error(e.statusMessage);a.response=s,n(a)})})}},t.exports=e["default"]},function(t,e,r){"use strict";function n(t){var e=(0,o.Map)(),r=new i.EventEmitter,u={assign:function(t,r,n){return u.has(t)||u.set(t,(0,o.Map)()),e=e.setIn([t,r],n),u},emit:function(){r.emit.apply(r,arguments),t&&t.emit.apply(t,arguments)},get:function(r){var n=e.get(r);if(u.has(r)&&!o.Iterable.isIterable(n)||!t)return n;if(!u.has(r)&&t)return t.get(r);var i=t.get(r);return i?o.List.isList(i)?i.concat(n):i.mergeDeep(n):n},has:function(t){return e.has(t)},"new":function(){return n(u)},on:r.on.bind(r),once:r.once.bind(r),push:function(t,r){return u.has(t)||u.set(t,(0,o.List)()),e=e.update(t,function(t){return t.push(r)}),u},set:function(t,r){return e=e.set(t,r),u}};return u}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var i=r(18),o=r(6);t.exports=e["default"]},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function u(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,r,i,s,a,f;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[t],u(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(i=arguments.length,s=new Array(i-1),a=1;i>a;a++)s[a-1]=arguments[a];r.apply(this,s)}else if(o(r)){for(i=arguments.length,s=new Array(i-1),a=1;i>a;a++)s[a-1]=arguments[a];for(f=r.slice(),i=f.length,a=0;i>a;a++)f[a].apply(this,s)}return!0},r.prototype.addListener=function(t,e){var i;if(!n(e))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned){var i;i=u(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function r(){this.removeListener(t,r),i||(i=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var i=!1;return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var r,i,u,s;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],u=r.length,i=-1,r===e||n(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(r)){for(s=u;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){i=s;break}if(0>i)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],n(r))this.removeListener(t,r);else for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.listenerCount=function(t,e){var r;return r=t._events&&t._events[e]?n(t._events[e])?1:t._events[e].length:0}},function(t,e){!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function n(t){this.map={},t instanceof n?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function o(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader;return e.readAsArrayBuffer(t),o(e)}function s(t){var e=new FileReader;return e.readAsText(t),o(e)}function a(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(_.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(_.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!_.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type&&this.headers.set("content-type",this._bodyBlob.type))},_.blob?(this.blob=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(u)},this.text=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=i(this);return t?t:Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(t){var e=t.toUpperCase();return d.indexOf(e)>-1?e:t}function c(t,e){e=e||{};var r=e.body;if(c.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new n(t.headers)),this.method=t.method,this.mode=t.mode,r||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",(e.headers||!this.headers)&&(this.headers=new n(e.headers)),this.method=f(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function p(t){var e=new n,r=t.getAllResponseHeaders().trim().split("\n");return r.forEach(function(t){var r=t.trim().split(":"),n=r.shift().trim(),i=r.join(":").trim();e.append(n,i)}),e}function l(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof n?e.headers:new n(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){n.prototype.append=function(t,n){t=e(t),n=r(n);var i=this.map[t];i||(i=[],this.map[t]=i),i.push(n)},n.prototype["delete"]=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var r=this.map[e(t)];return r?r[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(t,n){this.map[e(t)]=[r(n)]},n.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(n){t.call(e,n,r,this)},this)},this)};var _={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},a.call(c.prototype),a.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},l.error=function(){var t=new l(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];l.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new l(null,{status:e,headers:{location:t}})},t.Headers=n,t.Request=c,t.Response=l,t.fetch=function(t,e){return new Promise(function(r,n){function i(){return"responseURL"in u?u.responseURL:/^X-Request-URL:/m.test(u.getAllResponseHeaders())?u.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(t)&&!e?t:new c(t,e);var u=new XMLHttpRequest;u.onload=function(){var t=1223===u.status?204:u.status;if(100>t||t>599)return void n(new TypeError("Network request failed"));var e={status:t,statusText:u.statusText,headers:p(u),url:i()},o="response"in u?u.response:u.responseText;r(new l(o,e))},u.onerror=function(){n(new TypeError("Network request failed"))},u.open(o.method,o.url,!0),"include"===o.credentials&&(u.withCredentials=!0),"responseType"in u&&_.blob&&(u.responseType="blob"),o.headers.forEach(function(t,e){u.setRequestHeader(e,t)}),u.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}])}); \ No newline at end of file diff --git a/package.json b/package.json index 90d01cc..c12fe5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "restful.js", - "version": "0.9.5", + "version": "0.9.6", "repository": { "type": "git", "url": "https://github.com/marmelab/restful.js"