@sassoftware/restafedit
Version:
Library for data editing in SAS Viya
107 lines (105 loc) • 591 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("restafedit", [], factory);
else if(typeof exports === 'object')
exports["restafedit"] = factory();
else
root["restafedit"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({
/***/ "../node_modules/@sassoftware/restaf/dist/restaf.min.js":
/*!**************************************************************!*\
!*** ../node_modules/@sassoftware/restaf/dist/restaf.min.js ***!
\**************************************************************/
/*! no static exports found */
/*! exports used: default, initStore */
/***/ (function(module, exports, __webpack_require__) {
eval("!function(t,e){ true?module.exports=e():undefined}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=51)}([function(t,e,r){\"use strict\";var n=r(19);const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(u=Object.create(null),t=>{const e=o.call(t);return u[e]||(u[e]=e.slice(8,-1).toLowerCase())});var u;const s=t=>(t=t.toLowerCase(),e=>a(e)===t),c=t=>e=>typeof e===t,{isArray:f}=Array,l=c(\"undefined\");const p=s(\"ArrayBuffer\");const h=c(\"string\"),d=c(\"function\"),y=c(\"number\"),v=t=>null!==t&&\"object\"==typeof t,g=t=>{if(\"object\"!==a(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=s(\"Date\"),m=s(\"File\"),b=s(\"Blob\"),w=s(\"FileList\"),O=s(\"URLSearchParams\");function S(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if(\"object\"!=typeof t&&(t=[t]),f(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(n=0;n<i;n++)a=o[n],e.call(null,t[a],a,t)}}function j(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const E=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:Object({}),x=t=>!l(t)&&t!==E;const A=(k=\"undefined\"!=typeof Uint8Array&&i(Uint8Array),t=>k&&t instanceof k);var k;const P=s(\"HTMLFormElement\"),T=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),I=s(\"RegExp\"),R=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};S(r,(r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)}),Object.defineProperties(t,n)},C=\"abcdefghijklmnopqrstuvwxyz\",L={DIGIT:\"0123456789\",ALPHA:C,ALPHA_DIGIT:C+C.toUpperCase()+\"0123456789\"};const M=s(\"AsyncFunction\");e.a={isArray:f,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&(\"function\"==typeof FormData&&t instanceof FormData||d(t.append)&&(\"formdata\"===(e=a(t))||\"object\"===e&&d(t.toString)&&\"[object FormData]\"===t.toString()))},isArrayBufferView:function(t){let e;return e=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:h,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:v,isPlainObject:g,isUndefined:l,isDate:_,isFile:m,isBlob:b,isRegExp:I,isFunction:d,isStream:t=>v(t)&&d(t.pipe),isURLSearchParams:O,isTypedArray:A,isFileList:w,forEach:S,merge:function t(){const{caseless:e}=x(this)&&this||{},r={},n=(n,o)=>{const i=e&&j(r,o)||o;g(r[i])&&g(n)?r[i]=t(r[i],n):g(n)?r[i]=t({},n):f(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:o}={})=>(S(e,(e,o)=>{r&&d(e)?t[o]=Object(n.a)(e,r):t[o]=e},{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\"),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,\"super\",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,a,u;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)u=o[a],n&&!n(u,t,e)||s[u]||(e[u]=t[u],s[u]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:s,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(f(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:R,freezeMethods:t=>{R(t,(e,r)=>{if(d(t)&&-1!==[\"arguments\",\"caller\",\"callee\"].indexOf(r))return!1;const n=t[r];d(n)&&(e.enumerable=!1,\"writable\"in e?e.writable=!1:e.set||(e.set=()=>{throw Error(\"Can not rewrite read-only method '\"+r+\"'\")}))})},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return f(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:j,global:E,isContextDefined:x,ALPHABET:L,generateString:(t=16,e=L.ALPHA_DIGIT)=>{let r=\"\";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&d(t.append)&&\"FormData\"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!(\"toJSON\"in t)){e[n]=t;const o=f(t)?[]:{};return S(t,(t,e)=>{const i=r(t,n+1);!l(i)&&(o[e]=i)}),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:M,isThenable:t=>t&&(v(t)||d(t))&&d(t.then)&&d(t.catch)}},function(t,e,r){var n=r(54)();t.exports=n;try{regeneratorRuntime=n}catch(t){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=n:Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(t,e,r){\"use strict\";var n=r(0);function o(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name=\"AxiosError\",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.a.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const i=o.prototype,a={};[\"ERR_BAD_OPTION_VALUE\",\"ERR_BAD_OPTION\",\"ECONNABORTED\",\"ETIMEDOUT\",\"ERR_NETWORK\",\"ERR_FR_TOO_MANY_REDIRECTS\",\"ERR_DEPRECATED\",\"ERR_BAD_RESPONSE\",\"ERR_BAD_REQUEST\",\"ERR_CANCELED\",\"ERR_NOT_SUPPORT\",\"ERR_INVALID_URL\"].forEach(t=>{a[t]={value:t}}),Object.defineProperties(o,a),Object.defineProperty(i,\"isAxiosError\",{value:!0}),o.from=(t,e,r,a,u,s)=>{const c=Object.create(i);return n.a.toFlatObject(t,c,(function(t){return t!==Error.prototype}),t=>\"isAxiosError\"!==t),o.call(c,t.message,e,r,a,u),c.cause=t,c.name=t.name,s&&Object.assign(c,s),c},e.a=o},function(t,e,r){var n=r(52);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,\"next\",t)}function s(t){r(a,o,i,u,s,\"throw\",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(85),o=r(86),i=r(87),a=r(88);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"Collection\",(function(){return _})),r.d(e,\"Iterable\",(function(){return ln})),r.d(e,\"List\",(function(){return Ve})),r.d(e,\"Map\",(function(){return je})),r.d(e,\"OrderedMap\",(function(){return ur})),r.d(e,\"OrderedSet\",(function(){return Kr})),r.d(e,\"PairSorting\",(function(){return Xr})),r.d(e,\"Range\",(function(){return Pr})),r.d(e,\"Record\",(function(){return Zr})),r.d(e,\"Repeat\",(function(){return an})),r.d(e,\"Seq\",(function(){return U})),r.d(e,\"Set\",(function(){return Or})),r.d(e,\"Stack\",(function(){return pr})),r.d(e,\"fromJS\",(function(){return un})),r.d(e,\"get\",(function(){return $t})),r.d(e,\"getIn\",(function(){return Tr})),r.d(e,\"has\",(function(){return Yt})),r.d(e,\"hasIn\",(function(){return Rr})),r.d(e,\"hash\",(function(){return nt})),r.d(e,\"is\",(function(){return Q})),r.d(e,\"isAssociative\",(function(){return g})),r.d(e,\"isCollection\",(function(){return d})),r.d(e,\"isImmutable\",(function(){return j})),r.d(e,\"isIndexed\",(function(){return v})),r.d(e,\"isKeyed\",(function(){return y})),r.d(e,\"isList\",(function(){return Ke})),r.d(e,\"isMap\",(function(){return J})),r.d(e,\"isOrdered\",(function(){return x})),r.d(e,\"isOrderedMap\",(function(){return X})),r.d(e,\"isOrderedSet\",(function(){return _r})),r.d(e,\"isPlainObject\",(function(){return Gt})),r.d(e,\"isRecord\",(function(){return S})),r.d(e,\"isSeq\",(function(){return O})),r.d(e,\"isSet\",(function(){return gr})),r.d(e,\"isStack\",(function(){return lr})),r.d(e,\"isValueObject\",(function(){return Z})),r.d(e,\"merge\",(function(){return fe})),r.d(e,\"mergeDeep\",(function(){return pe})),r.d(e,\"mergeDeepWith\",(function(){return he})),r.d(e,\"mergeWith\",(function(){return le})),r.d(e,\"remove\",(function(){return Xt})),r.d(e,\"removeIn\",(function(){return re})),r.d(e,\"set\",(function(){return Zt})),r.d(e,\"setIn\",(function(){return te})),r.d(e,\"update\",(function(){return oe})),r.d(e,\"updateIn\",(function(){return Qt})),r.d(e,\"version\",(function(){return cn}));var n={};function o(t){t&&(t.value=!0)}function i(){}function a(t){return void 0===t.size&&(t.size=t.__iterate(s)),t.size}function u(t,e){if(\"number\"!=typeof e){var r=e>>>0;if(\"\"+r!==e||4294967295===r)return NaN;e=r}return e<0?a(t)+e:e}function s(){return!0}function c(t,e,r){return(0===t&&!h(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function f(t,e){return p(t,e,0)}function l(t,e){return p(t,e,e)}function p(t,e,r){return void 0===t?r:h(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function h(t){return t<0||0===t&&1/t==-1/0}function d(t){return Boolean(t&&t[\"@@__IMMUTABLE_ITERABLE__@@\"])}function y(t){return Boolean(t&&t[\"@@__IMMUTABLE_KEYED__@@\"])}function v(t){return Boolean(t&&t[\"@@__IMMUTABLE_INDEXED__@@\"])}function g(t){return y(t)||v(t)}var _=function(t){return d(t)?t:U(t)},m=function(t){function e(t){return y(t)?t:B(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_),b=function(t){function e(t){return v(t)?t:z(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_),w=function(t){function e(t){return d(t)&&!g(t)?t:q(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_);_.Keyed=m,_.Indexed=b,_.Set=w;function O(t){return Boolean(t&&t[\"@@__IMMUTABLE_SEQ__@@\"])}function S(t){return Boolean(t&&t[\"@@__IMMUTABLE_RECORD__@@\"])}function j(t){return d(t)||S(t)}var E=\"@@__IMMUTABLE_ORDERED__@@\";function x(t){return Boolean(t&&t[E])}var A=\"function\"==typeof Symbol&&Symbol.iterator,k=A||\"@@iterator\",P=function(t){this.next=t};function T(t,e,r,n){var o=0===t?e:1===t?r:[e,r];return n?n.value=o:n={value:o,done:!1},n}function I(){return{value:void 0,done:!0}}function R(t){return!!Array.isArray(t)||!!M(t)}function C(t){return t&&\"function\"==typeof t.next}function L(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(A&&t[A]||t[\"@@iterator\"]);if(\"function\"==typeof e)return e}P.prototype.toString=function(){return\"[Iterator]\"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[k]=function(){return this};var D=Object.prototype.hasOwnProperty;function N(t){return!(!Array.isArray(t)&&\"string\"!=typeof t)||t&&\"object\"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var U=function(t){function e(t){return null==t?K():j(t)?t.toSeq():function(t){var e=$(t);if(e)return(n=M(r=t))&&n===r.entries?e.fromEntrySeq():function(t){var e=M(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var r,n;if(\"object\"==typeof t)return new W(t);throw new TypeError(\"Expected Array or collection object of values, or keyed object: \"+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString(\"Seq {\",\"}\")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,o=0;o!==n;){var i=r[e?n-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,o=0;return new P((function(){if(o===n)return{value:void 0,done:!0};var i=r[e?n-++o:o++];return T(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(_),B=function(t){function e(t){return null==t?K().toKeyedSeq():d(t)?y(t)?t.toSeq():t.fromEntrySeq():S(t)?t.toSeq():V(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(U),z=function(t){function e(t){return null==t?K():d(t)?y(t)?t.entrySeq():t.toIndexedSeq():S(t)?t.toSeq().entrySeq():Y(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString(\"Seq [\",\"]\")},e}(U),q=function(t){function e(t){return(d(t)&&!g(t)?t:z(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(U);U.isSeq=O,U.Keyed=B,U.Set=q,U.Indexed=z,U.prototype[\"@@__IMMUTABLE_SEQ__@@\"]=!0;var F=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,o=0;o!==n;){var i=e?n-++o:o++;if(!1===t(r[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,o=0;return new P((function(){if(o===n)return{value:void 0,done:!0};var i=e?n-++o:o++;return T(t,i,r[i])}))},e}(z),W=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return D.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,o=n.length,i=0;i!==o;){var a=n[e?o-++i:i++];if(!1===t(r[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,o=n.length,i=0;return new P((function(){if(i===o)return{value:void 0,done:!0};var a=n[e?o-++i:i++];return T(t,a,r[a])}))},e}(B);W.prototype[E]=!0;var H,G=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=L(this._collection),n=0;if(C(r))for(var o;!(o=r.next()).done&&!1!==t(o.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=L(this._collection);if(!C(r))return new P(I);var n=0;return new P((function(){var e=r.next();return e.done?e:T(t,n++,e.value)}))},e}(z);function K(){return H||(H=new F([]))}function V(t){var e=$(t);if(e)return e.fromEntrySeq();if(\"object\"==typeof t)return new W(t);throw new TypeError(\"Expected Array or collection object of [k, v] entries, or keyed object: \"+t)}function Y(t){var e=$(t);if(e)return e;throw new TypeError(\"Expected Array or collection object of values: \"+t)}function $(t){return N(t)?new F(t):R(t)?new G(t):void 0}function J(t){return Boolean(t&&t[\"@@__IMMUTABLE_MAP__@@\"])}function X(t){return J(t)&&x(t)}function Z(t){return Boolean(t&&\"function\"==typeof t.equals&&\"function\"==typeof t.hashCode)}function Q(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if(\"function\"==typeof t.valueOf&&\"function\"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(Z(t)&&Z(e)&&t.equals(e))}var tt=\"function\"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function et(t){return t>>>1&1073741824|3221225471&t}var rt=Object.prototype.valueOf;function nt(t){if(null==t)return ot(t);if(\"function\"==typeof t.hashCode)return et(t.hashCode(t));var e,r=(e=t).valueOf!==rt&&\"function\"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return ot(r);switch(typeof r){case\"boolean\":return r?1108378657:1108378656;case\"number\":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return et(e)}(r);case\"string\":return r.length>dt?function(t){var e=gt[t];void 0===e&&(e=it(t),vt===yt&&(vt=0,gt={}),vt++,gt[t]=e);return e}(r):it(r);case\"object\":case\"function\":return function(t){var e;if(ft&&void 0!==(e=ct.get(t)))return e;if(void 0!==(e=t[ht]))return e;if(!ut){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[ht]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=st(),ft)ct.set(t,e);else{if(void 0!==at&&!1===at(t))throw new Error(\"Non-extensible objects are not allowed as keys.\");if(ut)Object.defineProperty(t,ht,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[ht]=e;else{if(void 0===t.nodeType)throw new Error(\"Unable to set a non-enumerable property on object.\");t[ht]=e}}return e}(r);case\"symbol\":return function(t){var e=lt[t];if(void 0!==e)return e;return e=st(),lt[t]=e,e}(r);default:if(\"function\"==typeof r.toString)return it(r.toString());throw new Error(\"Value type \"+typeof r+\" cannot be hashed.\")}}function ot(t){return null===t?1108378658:1108378659}function it(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return et(e)}var at=Object.isExtensible,ut=function(){try{return Object.defineProperty({},\"@\",{}),!0}catch(t){return!1}}();function st(){var t=++pt;return 1073741824&pt&&(pt=0),t}var ct,ft=\"function\"==typeof WeakMap;ft&&(ct=new WeakMap);var lt=Object.create(null),pt=0,ht=\"__immutablehash__\";\"function\"==typeof Symbol&&(ht=Symbol(ht));var dt=16,yt=255,vt=0,gt={},_t=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=jt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=St(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e,n){return t(e,n,r)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(B);_t.prototype[E]=!0;var mt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&a(this),this._iter.__iterate((function(o){return t(o,e?r.size-++n:n++,r)}),e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(1,e),o=0;return e&&a(this),new P((function(){var i=n.next();return i.done?i:T(t,e?r.size-++o:o++,i.value,i)}))},e}(z),bt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P((function(){var e=r.next();return e.done?e:T(t,e.value,e.value,e)}))},e}(q),wt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Mt(e);var n=d(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Mt(n);var o=d(n);return T(t,o?n.get(0):n[0],o?n.get(1):n[1],e)}}}))},e}(B);function Ot(t){var e=Nt(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=Ut,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new P((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(1===e?0:1,r)},e}function St(t,e,r){var o=Nt(t);return o.size=t.size,o.has=function(e){return t.has(e)},o.get=function(o,i){var a=t.get(o,n);return a===n?i:e.call(r,a,o,t)},o.__iterateUncached=function(n,o){var i=this;return t.__iterate((function(t,o,a){return!1!==n(e.call(r,t,o,a),o,i)}),o)},o.__iteratorUncached=function(n,o){var i=t.__iterator(2,o);return new P((function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return T(n,u,e.call(r,a[1],u,t),o)}))},o}function jt(t,e){var r=this,n=Nt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Ot(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ut,n.__iterate=function(r,n){var o=this,i=0;return n&&a(t),t.__iterate((function(t,a){return r(t,e?a:n?o.size-++i:i++,o)}),!n)},n.__iterator=function(n,o){var i=0;o&&a(t);var u=t.__iterator(2,!o);return new P((function(){var t=u.next();if(t.done)return t;var a=t.value;return T(n,e?a[0]:o?r.size-++i:i++,a[1],t)}))},n}function Et(t,e,r,o){var i=Nt(t);return o&&(i.has=function(o){var i=t.get(o,n);return i!==n&&!!e.call(r,i,o,t)},i.get=function(o,i){var a=t.get(o,n);return a!==n&&e.call(r,a,o,t)?a:i}),i.__iterateUncached=function(n,i){var a=this,u=0;return t.__iterate((function(t,i,s){if(e.call(r,t,i,s))return u++,n(t,o?i:u-1,a)}),i),u},i.__iteratorUncached=function(n,i){var a=t.__iterator(2,i),u=0;return new P((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return T(n,o?c:u++,f,i)}}))},i}function xt(t,e,r,n){var o=t.size;if(c(e,r,o))return t;var i=f(e,o),a=l(r,o);if(i!=i||a!=a)return xt(t.toSeq().cacheResult(),e,r,n);var s,p=a-i;p==p&&(s=p<0?0:p);var h=Nt(t);return h.size=0===s?s:t.size&&s||void 0,!n&&O(t)&&s>=0&&(h.get=function(e,r){return(e=u(this,e))>=0&&e<s?t.get(e+i,r):r}),h.__iterateUncached=function(e,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=a++<i))return c++,!1!==e(t,n?r:c-1,o)&&c!==s})),c},h.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);if(0===s)return new P(I);var o=t.__iterator(e,r),a=0,u=0;return new P((function(){for(;a++<i;)o.next();if(++u>s)return{value:void 0,done:!0};var t=o.next();return n||1===e||t.done?t:T(e,u-1,0===e?void 0:t.value[1],t)}))},h}function At(t,e,r,n){var o=Nt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,s=0;return t.__iterate((function(t,i,c){if(!u||!(u=e.call(r,t,i,c)))return s++,o(t,n?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=t.__iterator(2,i),s=!0,c=0;return new P((function(){var t,i,f;do{if((t=u.next()).done)return n||1===o?t:T(o,c++,0===o?void 0:t.value[1],t);var l=t.value;i=l[0],f=l[1],s&&(s=e.call(r,f,i,a))}while(s);return 2===o?t:T(o,i,f,t)}))},o}function kt(t,e){var r=y(t),n=[t].concat(e).map((function(t){return d(t)?r&&(t=m(t)):t=r?V(t):Y(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var o=n[0];if(o===t||r&&y(o)||v(t)&&v(o))return o}var i=new F(n);return r?i=i.toKeyedSeq():v(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=n.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),i}function Pt(t,e,r){var n=Nt(t);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,u=!1;return function t(s,c){s.__iterate((function(i,s){return(!e||c<e)&&d(i)?t(i,c+1):(a++,!1===o(i,r?s:a-1,n)&&(u=!0)),!u}),i)}(t,0),a},n.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=t.__iterator(n,o),a=[],u=0;return new P((function(){for(;i;){var t=i.next();if(!1===t.done){var s=t.value;if(2===n&&(s=s[1]),e&&!(a.length<e)||!d(s))return r?t:T(n,u++,s,t);a.push(i),i=s.__iterator(n,o)}else i=a.pop()}return{value:void 0,done:!0}}))},n}function Tt(t,e,r){e||(e=Bt);var n=y(t),o=0,i=t.toSeq().map((function(e,n){return[n,e,o++,r?r(e,n,t):e]})).valueSeq().toArray();return i.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),n?B(i):v(t)?z(i):q(i)}function It(t,e,r){if(e||(e=Bt),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Rt(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Rt(e,t,r)?r:t}))}function Rt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ct(t,e,r,n){var o=Nt(t),i=new F(r).map((function(t){return t.size}));return o.size=n?i.max():i.min(),o.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),o=0;!(r=n.next()).done&&!1!==t(r.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map((function(t){return t=_(t),L(o?t.reverse():t)})),a=0,u=!1;return new P((function(){var r;return u||(r=i.map((function(t){return t.next()})),u=n?r.every((function(t){return t.done})):r.some((function(t){return t.done}))),u?{value:void 0,done:!0}:T(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))},o}function Lt(t,e){return t===e?t:O(t)?e:t.constructor(e)}function Mt(t){if(t!==Object(t))throw new TypeError(\"Expected [K, V] tuple: \"+t)}function Dt(t){return y(t)?m:v(t)?b:w}function Nt(t){return Object.create((y(t)?B:v(t)?z:q).prototype)}function Ut(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):U.prototype.cacheResult.call(this)}function Bt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function zt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),o=0;o<r;o++)n[o]=t[o+e];return n}function qt(t,e){if(!t)throw new Error(e)}function Ft(t){qt(t!==1/0,\"Cannot perform this action with an infinite size.\")}function Wt(t){if(N(t)&&\"string\"!=typeof t)return t;if(x(t))return t.toArray();throw new TypeError(\"Invalid keyPath: expected Ordered Collection or Array: \"+t)}mt.prototype.cacheResult=_t.prototype.cacheResult=bt.prototype.cacheResult=wt.prototype.cacheResult=Ut;var Ht=Object.prototype.toString;function Gt(t){if(!t||\"object\"!=typeof t||\"[object Object]\"!==Ht.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function Kt(t){return\"object\"==typeof t&&(j(t)||Array.isArray(t)||Gt(t))}function Vt(t){try{return\"string\"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Yt(t,e){return j(t)?t.has(e):Kt(t)&&D.call(t,e)}function $t(t,e,r){return j(t)?t.get(e,r):Yt(t,e)?\"function\"==typeof t.get?t.get(e):t[e]:r}function Jt(t){if(Array.isArray(t))return zt(t);var e={};for(var r in t)D.call(t,r)&&(e[r]=t[r]);return e}function Xt(t,e){if(!Kt(t))throw new TypeError(\"Cannot update non-data-structure value: \"+t);if(j(t)){if(!t.remove)throw new TypeError(\"Cannot update immutable value without .remove() method: \"+t);return t.remove(e)}if(!D.call(t,e))return t;var r=Jt(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function Zt(t,e,r){if(!Kt(t))throw new TypeError(\"Cannot update non-data-structure value: \"+t);if(j(t)){if(!t.set)throw new TypeError(\"Cannot update immutable value without .set() method: \"+t);return t.set(e,r)}if(D.call(t,e)&&r===t[e])return t;var n=Jt(t);return n[e]=r,n}function Qt(t,e,r,o){o||(o=r,r=void 0);var i=function t(e,r,o,i,a,u){var s=r===n;if(i===o.length){var c=s?a:r,f=u(c);return f===c?r:f}if(!s&&!Kt(r))throw new TypeError(\"Cannot update within non-data-structure value in path [\"+o.slice(0,i).map(Vt)+\"]: \"+r);var l=o[i],p=s?n:$t(r,l,n),h=t(p===n?e:j(p),p,o,i+1,a,u);return h===p?r:h===n?Xt(r,l):Zt(s?e?De():{}:r,l,h)}(j(t),t,Wt(e),0,r,o);return i===n?r:i}function te(t,e,r){return Qt(t,e,n,(function(){return r}))}function ee(t,e){return te(this,t,e)}function re(t,e){return Qt(t,e,(function(){return n}))}function ne(t){return re(this,t)}function oe(t,e,r,n){return Qt(t,[e],r,n)}function ie(t,e,r){return 1===arguments.length?t(this):oe(this,t,e,r)}function ae(t,e,r){return Qt(this,t,e,r)}function ue(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ce(this,t)}function se(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if(\"function\"!=typeof t)throw new TypeError(\"Invalid merger function: \"+t);return ce(this,e,t)}function ce(t,e,r){for(var o=[],i=0;i<e.length;i++){var a=m(e[i]);0!==a.size&&o.push(a)}return 0===o.length?t:0!==t.toSeq().size||t.__ownerID||1!==o.length?t.withMutations((function(t){for(var e=r?function(e,o){oe(t,o,n,(function(t){return t===n?e:r(t,e,o)}))}:function(e,r){t.set(r,e)},i=0;i<o.length;i++)o[i].forEach(e)})):t.constructor(o[0])}function fe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ye(t,e)}function le(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return ye(e,r,t)}function pe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return de(t,e)}function he(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return de(e,r,t)}function de(t,e,r){return ye(t,e,function(t){return function e(r,n,o){return Kt(r)&&Kt(n)&&(i=n,a=U(r),u=U(i),v(a)===v(u)&&y(a)===y(u))?ye(r,[n],e):t?t(r,n,o):n;var i,a,u}}(r))}function ye(t,e,r){if(!Kt(t))throw new TypeError(\"Cannot merge into non-data-structure value: \"+t);if(j(t))return\"function\"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),o=t,i=n?b:m,a=n?function(e){o===t&&(o=Jt(o)),o.push(e)}:function(e,n){var i=D.call(o,n),a=i&&r?r(o[n],e,n):e;i&&a===o[n]||(o===t&&(o=Jt(o)),o[n]=a)},u=0;u<e.length;u++)i(e[u]).forEach(a);return o}function ve(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return de(this,t)}function ge(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return de(this,e,t)}function _e(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Qt(this,t,De(),(function(t){return ye(t,e)}))}function me(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Qt(this,t,De(),(function(t){return de(t,e)}))}function be(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function we(){return this.__ownerID?this:this.__ensureOwner(new i)}function Oe(){return this.__ensureOwner()}function Se(){return this.__altered}var je=function(t){function e(e){return null==e?De():J(e)&&!x(e)?e:De().withMutations((function(r){var n=t(e);Ft(n.size),n.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return De().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error(\"Missing value for key: \"+t[r]);e.set(t[r],t[r+1])}}))},e.prototype.toString=function(){return this.__toString(\"Map {\",\"}\")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ne(this,t,e)},e.prototype.remove=function(t){return Ne(this,t,n)},e.prototype.deleteAll=function(t){var e=_(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):De()},e.prototype.sort=function(t){return ur(Tt(this,t))},e.prototype.sortBy=function(t,e){return ur(Tt(this,e,t))},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){n.forEach((function(o,i){n.set(i,t.call(e,o,i,r))}))}))},e.prototype.__iterator=function(t,e){return new Re(this,t,e)},e.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},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Me(this.size,this._root,t,this.__hash):0===this.size?De():(this.__ownerID=t,this.__altered=!1,this)},e}(m);je.isMap=J;var Ee=je.prototype;Ee[\"@@__IMMUTABLE_MAP__@@\"]=!0,Ee.delete=Ee.remove,Ee.removeAll=Ee.deleteAll,Ee.setIn=ee,Ee.removeIn=Ee.deleteIn=ne,Ee.update=ie,Ee.updateIn=ae,Ee.merge=Ee.concat=ue,Ee.mergeWith=se,Ee.mergeDeep=ve,Ee.mergeDeepWith=ge,Ee.mergeIn=_e,Ee.mergeDeepIn=me,Ee.withMutations=be,Ee.wasAltered=Se,Ee.asImmutable=Oe,Ee[\"@@transducer/init\"]=Ee.asMutable=we,Ee[\"@@transducer/step\"]=function(t,e){return t.set(e[0],e[1])},Ee[\"@@transducer/result\"]=function(t){return t.asImmutable()};var xe=function(t,e){this.ownerID=t,this.entries=e};xe.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Q(r,o[i][0]))return o[i][1];return n},xe.prototype.update=function(t,e,r,a,u,s,c){for(var f=u===n,l=this.entries,p=0,h=l.length;p<h&&!Q(a,l[p][0]);p++);var d=p<h;if(d?l[p][1]===u:f)return this;if(o(c),(f||!d)&&o(s),!f||1!==l.length){if(!d&&!f&&l.length>=We)return function(t,e,r,n){t||(t=new i);for(var o=new Te(t,nt(r),[r,n]),a=0;a<e.length;a++){var u=e[a];o=o.update(t,0,void 0,u[0],u[1])}return o}(t,l,a,u);var y=t&&t===this.ownerID,v=y?l:zt(l);return d?f?p===h-1?v.pop():v[p]=v.pop():v[p]=[a,u]:v.push([a,u]),y?(this.entries=v,this):new xe(t,v)}};var Ae=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Ae.prototype.get=function(t,e,r,n){void 0===e&&(e=nt(r));var o=1<<(31&(0===t?e:e>>>t)),i=this.bitmap;return 0==(i&o)?n:this.nodes[qe(i&o-1)].get(t+5,e,r,n)},Ae.prototype.update=function(t,e,r,o,i,a,u){void 0===r&&(r=nt(o));var s=31&(0===e?r:r>>>e),c=1<<s,f=this.bitmap,l=0!=(f&c);if(!l&&i===n)return this;var p=qe(f&c-1),h=this.nodes,d=l?h[p]:void 0,y=Ue(d,t,e+5,r,o,i,a,u);if(y===d)return this;if(!l&&y&&h.length>=He)return function(t,e,r,n,o){for(var i=0,a=new Array(32),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[i++]:void 0;return a[n]=o,new ke(t,i+1,a)}(t,h,f,s,y);if(l&&!y&&2===h.length&&Be(h[1^p]))return h[1^p];if(l&&y&&1===h.length&&Be(y))return y;var v=t&&t===this.ownerID,g=l?y?f:f^c:f|c,_=l?y?Fe(h,p,y,v):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var o=new Array(n),i=0,a=0;a<n;a++)a===e&&(i=1),o[a]=t[a+i];return o}(h,p,v):function(t,e,r,n){var o=t.length+1;if(n&&e+1===o)return t[e]=r,t;for(var i=new Array(o),a=0,u=0;u<o;u++)u===e?(i[u]=r,a=-1):i[u]=t[u+a];return i}(h,p,y,v);return v?(this.bitmap=g,this.nodes=_,this):new Ae(t,g,_)};var ke=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};ke.prototype.get=function(t,e,r,n){void 0===e&&(e=nt(r));var o=31&(0===t?e:e>>>t),i=this.nodes[o];return i?i.get(t+5,e,r,n):n},ke.prototype.update=function(t,e,r,o,i,a,u){void 0===r&&(r=nt(o));var s=31&(0===e?r:r>>>e),c=i===n,f=this.nodes,l=f[s];if(c&&!l)return this;var p=Ue(l,t,e+5,r,o,i,a,u);if(p===l)return this;var h=this.count;if(l){if(!p&&--h<Ge)return function(t,e,r,n){for(var o=0,i=0,a=new Array(r),u=0,s=1,c=e.length;u<c;u++,s<<=1){var f=e[u];void 0!==f&&u!==n&&(o|=s,a[i++]=f)}return new Ae(t,o,a)}(t,f,h,s)}else h++;var d=t&&t===this.ownerID,y=Fe(f,s,p,d);return d?(this.count=h,this.nodes=y,this):new ke(t,h,y)};var Pe=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Pe.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Q(r,o[i][0]))return o[i][1];return n},Pe.prototype.update=function(t,e,r,i,a,u,s){void 0===r&&(r=nt(i));var c=a===n;if(r!==this.keyHash)return c?this:(o(s),o(u),ze(this,t,e,r,[i,a]));for(var f=this.entries,l=0,p=f.length;l<p&&!Q(i,f[l][0]);l++);var h=l<p;if(h?f[l][1]===a:c)return this;if(o(s),(c||!h)&&o(u),c&&2===p)return new Te(t,this.keyHash,f[1^l]);var d=t&&t===this.ownerID,y=d?f:zt(f);return h?c?l===p-1?y.pop():y[l]=y.pop():y[l]=[i,a]:y.push([i,a]),d?(this.entries=y,this):new Pe(t,this.keyHash,y)};var Te=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};Te.prototype.get=function(t,e,r,n){return Q(r,this.entry[0])?this.entry[1]:n},Te.prototype.update=function(t,e,r,i,a,u,s){var c=a===n,f=Q(i,this.entry[0]);return(f?a===this.entry[1]:c)?this:(o(s),c?void o(u):f?t&&t===this.ownerID?(this.entry[1]=a,this):new Te(t,this.keyHash,[i,a]):(o(u),ze(this,t,e,nt(i),[i,a])))},xe.prototype.iterate=Pe.prototype.iterate=function(t,e){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===t(r[e?o-n:n]))return!1},Ae.prototype.iterate=ke.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[e?o-n:n];if(i&&!1===i.iterate(t,e))return!1}},Te.prototype.iterate=function(t,e){return t(this.entry)};var Ie,Re=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Le(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,o=void 0;if(r.entry){if(0===n)return Ce(t,r.entry)}else if(r.entries){if(n<=(o=r.entries.length-1))return Ce(t,r.entries[this._reverse?o-n:n])}else if(n<=(o=r.nodes.length-1)){var i=r.nodes[this._reverse?o-n:n];if(i){if(i.entry)return Ce(t,i.entry);e=this._stack=Le(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(P);function Ce(t,e){return T(t,e[0],e[1])}function Le(t,e){return{node:t,index:0,__prev:e}}function Me(t,e,r,n){var o=Object.create(Ee);return o.size=t,o._root=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function De(){return Ie||(Ie=Me(0))}function Ne(t,e,r){var o,i;if(t._root){var a={value:!1},u={value:!1};if(o=Ue(t._root,t.__ownerID,0,void 0,e,r,a,u),!u.value)return t;i=t.size+(a.value?r===n?-1:1:0)}else{if(r===n)return t;i=1,o=new xe(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Me(i,o):De()}function Ue(t,e,r,i,a,u,s,c){return t?t.update(e,r,i,a,u,s,c):u===n?t:(o(c),o(s),new Te(e,i,[a,u]))}function Be(t){return t.constructor===Te||t.constructor===Pe}function ze(t,e,r,n,o){if(t.keyHash===n)return new Pe(e,n,[t.entry,o]);var i,a=31&(0===r?t.keyHash:t.keyHash>>>r),u=31&(0===r?n:n>>>r),s=a===u?[ze(t,e,r+5,n,o)]:(i=new Te(e,n,o),a<u?[t,i]:[i,t]);return new Ae(e,1<<a|1<<u,s)}function qe(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Fe(t,e,r,n){var o=n?t:zt(t);return o[e]=r,o}var We=8,He=16,Ge=8;function Ke(t){return Boolean(t&&t[\"@@__IMMUTABLE_LIST__@@\"])}var Ve=function(t){function e(e){var r=tr();if(null==e)return r;if(Ke(e))return e;var n=t(e),o=n.size;return 0===o?r:(Ft(o),o>0&&o<32?Qe(0,o,5,null,new $e(n.toArray())):r.withMutations((function(t){t.setSize(o),n.forEach((function(e,r){return t.set(r,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString(\"List [\",\"]\")},e.prototype.get=function(t,e){if((t=u(this,t))>=0&&t<this.size){var r=nr(this,t+=this._origin);return r&&r.array[31&t]}return e},e.prototype.set=function(t,e){return function(t,e,r){if((e=u(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?or(t,e).set(0,r):or(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,o=t._root,i={value:!1};e>=ir(t._capacity)?n=er(n,t.__ownerID,0,e,r,i):o=er(o,t.__ownerID,t._level,e,r,i);if(!i.value)return t;if(t.__ownerID)return t._root=o,t._tail=n,t.__hash=void 0,t.__altered=!0,t;return Qe(t._origin,t._capacity,t._level,o,n)}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):tr()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){or(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},e.prototype.pop=function(){return or(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){or(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},e.prototype.shift=function(){return or(this,1)},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var o=e[n],i=t(\"string\"!=typeof o&&R(o)?o:[o]);0!==i.size&&r.push(i)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations((function(t){r.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(r[0])},e.prototype.setSize=function(t){return or(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){for(var o=0;o<r.size;o++)n.set(o,t.call(e,n.get(o),o,r))}))},e.prototype.slice=function(t,e){var r=this.size;return c(t,e,r)?this:or(this,f(t,r),l(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=Ze(this,e);return new P((function(){var o=n();return o===Xe?{value:void 0,done:!0}:T(t,e?--r:r++,o)}))},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,o=Ze(this,e);(r=o())!==Xe&&!1!==t(r,e?--n:n++,this););return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qe(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?tr():(this.__ownerID=t,this.__altered=!1,this)},e}(b);Ve.isList=Ke;var Ye=Ve.prototype;Ye[\"@@__IMMUTABLE_LIST__@@\"]=!0,Ye.delete=Ye.remove,Ye.merge=Ye.concat,Ye.setIn=ee,Ye.deleteIn=Ye.removeIn=ne,Ye.update=ie,Ye.updateIn=ae,Ye.mergeIn=_e,Ye.mergeDeepIn=me,Ye.withMutations=be,Ye.wasAltered=Se,Ye.asImmutable=Oe,Ye[\"@@transducer/init\"]=Ye.asMutable=we,Ye[\"@@transducer/step\"]=function(t,e){return t.push(e)},Ye[\"@@transducer/result\"]=function(t){return t.asImmutable()};var $e=function(t,e){this.array=t,this.ownerID=e};$e.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&31;if(n>=this.array.length)return new $e