|
|
window.cvat=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=89)}([function(t,e,n){(function(e){var n="object",r=function(t){return t&&t.Math==Math&&t};t.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof e==n&&e)||Function("return this")()}).call(this,n(38))},function(t,e,n){var r=n(0),o=n(29),s=n(56),i=n(96),a=r.Symbol,c=o("wks");t.exports=function(t){return c[t]||(c[t]=i&&a[t]||(i?a:s)("Symbol."+t))}},function(t,e,n){"use strict";var r=n(28),o=n(107),s=n(24),i=n(17),a=n(72),c=i.set,u=i.getterFor("Array Iterator");t.exports=a(Array,"Array",function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),s.Arguments=s.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(0),o=n(111),s=n(2),i=n(12),a=n(1),c=a("iterator"),u=a("toStringTag"),l=s.values;for(var p in o){var f=r[p],h=f&&f.prototype;if(h){if(h[c]!==l)try{i(h,c,l)}catch(t){h[c]=l}if(h[u]||i(h,u,p),o[p])for(var d in s)if(h[d]!==s[d])try{i(h,d,s[d])}catch(t){h[d]=s[d]}}}},function(t,e,n){n(9),(()=>{const e=n(112),r=n(114),o=n(47);class s extends Error{constructor(t){super(t);const n=(new Date).toISOString(),s=e.os.toString(),i=`${e.name} ${e.version}`,a=r.parse(this)[0],c=`${a.fileName}`,u=a.lineNumber,l=a.columnNumber,{jobID:p,taskID:f,clientID:h}=o;Object.defineProperties(this,Object.freeze({system:{get:()=>s},client:{get:()=>i},time:{get:()=>n},jobID:{get:()=>p},taskID:{get:()=>f},projID:{get:()=>void 0},clientID:{get:()=>h},filename:{get:()=>c},line:{get:()=>u},column:{get:()=>l}}))}async save(){const t={system:this.system,client:this.client,time:this.time,job_id:this.jobID,task_id:this.taskID,proj_id:this.projID,client_id:this.clientID,message:this.message,filename:this.filename,line:this.line,column:this.column,stack:this.stack};try{const e=n(18);await e.server.exception(t)}catch(t){}}}t.exports={Exception:s,ArgumentError:class extends s{constructor(t){super(t)}},DataError:class extends s{constructor(t){super(t)}},ScriptingError:class extends s{constructor(t){super(t)}},PluginError:class extends s{constructor(t){super(t)}},ServerError:class extends s{constructor(t,e){super(t),Object.defineProperties(this,Object.freeze({code:{get:()=>e}}))}}}})()},function(t,e,n){"use strict";var r=n(77),o=n(125),s=Object.prototype.toString;function i(t){return"[object Array]"===s.call(t)}function a(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===s.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===s.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===s.call(t)},isFile:function(t){return"[object File]"===s.call(t)},isBlob:function(t){return"[object Blob]"===s.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r,o,s,i,a=n(13),c=n(21),u=n(0),l=n(58),p=n(95),f=n(15),h=n(62),d=n(22),b=n(97),g=n(11),m=n(23),y=n(46),v=n(16),w=n(98),O=n(100),x=n(101),k=n(65).set,j=n(102),S=n(103),A=n(104),T=n(68),E=n(105),I=n(67),P=n(17),C=n(61),F=n(1)("species"),_="Promise",N=P.get,M=P.set,$=P.getterFor(_),R=p,D=u.TypeError,L=u.document,B=u.process,z=u.fetch,U=B&&B.versions,W=U&&U.v8||"",G=T.f,q=G,J="process"==v(B),V=!!(L&&L.createEvent&&u.dispatchEvent),X=C(_,function(){var t=R.resolve(1),e=function(){},n=(t.constructor={})[F]=function(t){t(e,e)};return!((J||"function"==typeof PromiseRejectionEvent)&&(!c||t.finally)&&t.then(e)instanceof n&&0!==W.indexOf("6.6")&&-1===I.indexOf("Chrome/66"))}),H=X||!O(function(t){R.all(t).catch(function(){})}),K=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;j(function(){for(var o=e.value,s=1==e.state,i=0;r.length>i;){var a,c,u,l=r[i++],p=s?l.ok:l.fail,f=l.resolve,h=l.reject,d=l.domain;try{p?(s||(2===e.rejection&&et(t,e),e.rejection=1),!0===p?a=o:(d&&d.enter(),a=p(o),d&&(d.exit(),u=!0)),a===l.promise?h(D("Promise-chain cycle")):(c=K(a))?c.call(a,f,h):f(a)):h(o)}catch(t){d&&!u&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Q(t,e)})}},Y=function(t,e,n){var r,o;V?((r=L.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(o=u["on"+t])?o(r):"unhandledrejection"===t&&A("Unhandled promise rejection",n)},Q=function(t,e){k.call(u,function(){var n,r=e.value;if(tt(e)&&(n=E(function(){J?B.emit("unhandledRejection",r,t):Y("unhandledrejection",t,r)}),e.rejection=J||tt(e)?2:1,n.error))throw n.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){k.call(u,function(){J?B.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Z(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw D("Promise can't be resolved itself");var o=K(n);o?j(function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}}):(e.value=n,e.state=1,Z(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};X&&(R=function(t){y(this,R,_),m(t),r.call(this);var e=N(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){M(this,{type:_,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(R.prototype,{then:function(t,e){var n=$(this),r=G(x(this,R));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=J?B.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},T.f=G=function(t){return t===R||t===s?new o(t):q(t)},c||"function"!=typeof p||(i=p.prototype.then,f(p.prototype,"then",function(t,e){var n=this;return new R(function(t,e){i.call(n,t,e)}).then(t,e)}),"function"==typeof z&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return S(R,z.apply(u,arguments))}}))),a({global:!0,wrap:!0,forced:X},{Promise:R}),d(R,_,!1,!0),b(_),s=l.Promise,a({target:_,stat:!0,forced:X},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),a({target:_,stat:!0,forced:c||X},{resolve:function(t){return S(c&&this===s?R:this,t)}}),a({target:_,stat:!0,forced:H},{all:function(t){var e=this,n=G(e),r=n.resolve,o=n.reject,s=E(function(){var n=m(e.resolve),s=[],i=0,a=1;w(t,function(t){var c=i++,u=!1;s.push(void 0),a++,n.call(e,t).then(function(t){u||(u=!0,s[c]=t,--a||r(s))},o)}),--a||r(s)});return s.error&&o(s.value),n.promise},race:function(t){var e=this,n=G(e),r=n.reject,o=E(function(){var o=m(e.resolve);w(t,function(t){o.call(e,t).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(3);t.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(10),o=n(14),s=n(27);t.exports=r?function(t,e,n){return o.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(0),o=n(39).f,s=n(12),i=n(15),a=n(42),c=n(57),u=n(61);t.exports=function(t,e){var n,l,p,f,h,d=t.target,b=t.global,g=t.stat;if(n=b?r:g?r[d]||a(d,{}):(r[d]||{}).prototype)for(l in e){if(f=e[l],p=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(b?l:d+(g?".":"#")+l,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&s(f,"sham",!0),i(n,l,f,t)}}},function(t,e,n){var r=n(10),o=n(54),s=n(4),i=n(40),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(s(t),e=i(e,!0),s(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(29),s=n(12),i=n(8),a=n(42),c=n(55),u=n(17),l=u.get,p=u.enforce,f=String(c).split("toString");o("inspectSource",function(t){return c.call(t)}),(t.exports=function(t,e,n,o){var c=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||s(n,"name",e),p(n).source=f.join("string"==typeof e?e:"")),t!==r?(c?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=n:s(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||c.call(this)})},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r,o,s,i=n(90),a=n(0),c=n(11),u=n(12),l=n(8),p=n(43),f=n(44),h=a.WeakMap;if(i){var d=new h,b=d.get,g=d.has,m=d.set;r=function(t,e){return m.call(d,t,e),e},o=function(t){return b.call(d,t)||{}},s=function(t){return g.call(d,t)}}else{var y=p("state");f[y]=!0,r=function(t,e){return u(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},s=function(t){return l(t,y)}}t.exports={set:r,get:o,has:s,enforce:function(t){return s(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){n(2),n(9),n(116),n(5),(()=>{const e=n(121),{ServerError:r,ScriptingError:o}=n(6),s=n(47);const i=new class{constructor(){const i=n(122),a=n(123);function c(t){a.defaults.headers.delete["X-CSRFToken"]=t,a.defaults.headers.patch["X-CSRFToken"]=t,a.defaults.headers.post["X-CSRFToken"]=t,a.defaults.headers.put["X-CSRFToken"]=t,a.defaults.withCredentials=!0}async function u(t=""){const{backendAPI:e}=s;let n=null;try{n=await a.get(`${e}/tasks?${t}`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get tasks from a server",e)}return n.data.results.count=n.data.count,n.data.results}async function l(t){const{backendAPI:e}=s;try{await a.delete(`${e}/tasks/${t}`)}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not delete the task from the server",e)}}const p=i.get("csrftoken");p&&c(p),Object.defineProperties(this,Object.freeze({server:{value:Object.freeze({about:async function(){const{backendAPI:t}=s;let e=null;try{e=await a.get(`${t}/server/about`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r('Could not get "about" information from the server',e)}return e.data},share:async function(t){const{backendAPI:e}=s;t=encodeURIComponent(t);let n=null;try{n=await a.get(`${e}/server/share?directory=${t}`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r('Could not get "share" information from the server',e)}return n.data},formats:async function(){const{backendAPI:t}=s;let e=null;try{e=await a.get(`${t}/server/annotation/formats`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get annotation formats from the server",e)}return e.data},exception:async function(t){const{backendAPI:e}=s;try{await a.post(`${e}/server/exception`,JSON.stringify(t),{proxy:s.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not send an exception to the server",e)}},login:async function(t,e){function n(t){if(t.headers["set-cookie"]){let e="";for(let n of t.headers["set-cookie"]){[n]=n.split(";");const t=n.split("=")[0],r=n.split("=")[1];"csrftoken"===t&&c(r),i.set(t,r),e+=`${n};`}a.defaults.headers.common.Cookie=e}else{let e=t.data.csrf;if(e)c(e),i.set("csrftoken",e);else{if(!(e=i.get("csrftoken")))throw new o("An environment has been detected as a browser, but CSRF token has not been found in cookies");c(e)}}}const u=s.backendAPI.slice(0,-7);let l=null;try{l=await a.get(`${u}/auth/csrf`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get CSRF token from a server",e)}n(l);const p=[`${encodeURIComponent("username")}=${encodeURIComponent(t)}`,`${encodeURIComponent("password")}=${encodeURIComponent(e)}`].join("&").replace(/%20/g,"+");let f=null;try{f=await a.post(`${u}/auth/login`,p,{"Content-Type":"application/x-www-form-urlencoded",proxy:s.proxy,maxRedirects:0})}catch(t){if(302!==t.response.status){const e=t.response?t.response.status:t.code;throw new r("Could not login on a server",e)}f=t.response}if(f.data.includes("didn't match"))throw new r("The pair login/password is invalid",403);n(f)},logout:async function(){const t=s.backendAPI.slice(0,-7);try{await a.get(`${t}/auth/logout`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not logout from the server",e)}},authorized:async function(){try{await t.exports.users.getSelf()}catch(t){if(403===t.code)return!1;throw t}return!0}}),writable:!1},tasks:{value:Object.freeze({getTasks:u,saveTask:async function(t,e){const{backendAPI:n}=s;try{await a.patch(`${n}/tasks/${t}`,JSON.stringify(e),{proxy:s.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not save the task on the server",e)}},createTask:async function(t,n,o){const{backendAPI:i}=s,c=new e;for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t))for(let e=0;e<n[t].length;e++)c.append(`${t}[${e}]`,n[t][e]);let p=null;o("The task is being created on the server..");try{p=await a.post(`${i}/tasks`,JSON.stringify(t),{proxy:s.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not put task to the server",e)}o("The data is being uploaded to the server..");try{await a.post(`${i}/tasks/${p.data.id}/data`,c,{proxy:s.proxy})}catch(t){await l(p.data.id);const e=t.response?t.response.status:t.code;throw new r("Could not put data to the server",e)}try{await async function(t){return new Promise((e,n)=>{setTimeout(async function s(){try{const c=await a.get(`${i}/tasks/${t}/status`);["Queued","Started"].includes(c.data.state)?(""!==c.data.message&&o(c.data.message),setTimeout(s,1e3)):"Finished"===c.data.state?e():"Failed"===c.data.state?n(new r("Could not create the task on the server",400)):n(new r(`Unknown task state has been recieved: ${c.data.state}`,500))}catch(t){const e=t.response?t.response.status:t.code;n(new r("Data uploading error occured",e))}},1e3)})}(p.data.id)}catch(t){throw await l(p.data.id),t}return(await u(`?id=${p.id}`))[0]},deleteTask:l}),writable:!1},jobs:{value:Object.freeze({getJob:async function(t){const{backendAPI:e}=s;let n=null;try{n=await a.get(`${e}/jobs/${t}`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get jobs from a server",e)}return n.data},saveJob:async function(t,e){const{backendAPI:n}=s;try{await a.patch(`${n}/jobs/${t}`,JSON.stringify(e),{proxy:s.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not save the job on the server",e)}}}),writable:!1},users:{value:Object.freeze({getUsers:async function(){const{backendAPI:t}=s;let e=null;try{e=await a.get(`${t}/users`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get users from the server",e)}return e.data.results},getSelf:async function(){const{backendAPI:t}=s;let e=null;try{e=await a.get(`${t}/users/self`,{proxy:s.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new r("Could not get user data from the server",e)}return e.data}}),writable:!1},frames:{value:Object.freeze({getData:async function(t,e){const{backendAPI:n}=s;let o=null;try{o=await a.get(`${n}/tasks/${t}/frames/${e}`,{proxy:s.proxy,responseType:"blob"})}catch(n){const o=n.response?n.response.status:n.code;throw new r(`Could not get frame ${e} for the task ${t} from the server`,o)}return o.data},getMeta:async function(t){const{backendAPI:e}=s;let n=null;try{n=await a.get(`${e}/tasks/${t}/frames/meta`,{proxy:s.proxy})}catch(e){const n=e.response?e.response.status:e.code;throw new r(`Could not get frame meta info for the task ${t} from the server`,n)}return n.data}}),writable:!1},annotations:{value:Object.freeze({updateAnnotations:async function(t,e,n,o){const{backendAPI:i}=s;let c=null,u=null;"PUT"===o.toUpperCase()?(c=a.put.bind(a),u=`${i}/${t}s/${e}/annotations`):(c=a.patch.bind(a),u=`${i}/${t}s/${e}/annotations?action=${o}`);let l=null;try{l=await c(u,JSON.stringify(n),{proxy:s.proxy,headers:{"Content-Type":"application/json"}})}catch(n){const o=n.response?n.response.status:n.code;throw new r(`Could not updated annotations for the ${t} ${e} on the server`,o)}return l.data},getAnnotations:async function(t,e){const{backendAPI:n}=s;let o=null;try{o=await a.get(`${n}/${t}s/${e}/annotations`,{proxy:s.proxy})}catch(n){const o=n.response?n.response.status:n.code;throw new r(`Could not get annotations for the ${t} ${e} from the server`,o)}return o.data},dumpAnnotations:async function(t,e,n){const{backendAPI:o}=s,i=e.replace(/\//g,"_");let c=`${o}/tasks/${t}/annotations/${i}?format=${n}`;return new Promise((e,n)=>{setTimeout(async function o(){try{202===(await a.get(`${c}`,{proxy:s.proxy})).status?setTimeout(o,3e3):e(c=`${c}&action=download`)}catch(e){const o=e.response?e.response.status:e.code,s=new r(`Could not dump annotations for the task ${t} from the server`,o);n(s)}})})},uploadAnnotations:async function(t,n,o,i){const{backendAPI:c}=s;let u=new e;return u.append("annotation_file",o),new Promise((o,l)=>{setTimeout(async function p(){try{202===(await a.put(`${c}/${t}s/${n}/annotations?format=${i}`,u,{proxy:s.proxy})).status?(u=new e,setTimeout(p,3e3)):o()}catch(e){const o=e.response?e.response.status:e.code,s=new r(`Could not upload annotations for the ${t} ${n}`,o);l(s)}})})}}),writable:!1}}))}};t.exports=i})()},function(t,e){(()=>{const e=Object.freeze({DIR:"DIR",REG:"REG"}),n=Object.freeze({ANNOTATION:"annotation",VALIDATION:"validation",COMPLETED:"completed"}),r=Object.freeze({ANNOTATION:"annotation",INTERPOLATION:"interpolation"}),o=Object.freeze({CHECKBOX:"checkbox",RADIO:"radio",SELECT:"select",NUMBER:"number",TEXT:"text"}),s=Object.freeze({TAG:"tag",SHAPE:"shape",TRACK:"track"}),i=Object.freeze({RECTANGLE:"rectangle",POLYGON:"polygon",POLYLINE:"polyline",POINTS:"points"}),a=Object.freeze({frameDownloaded:0});t.exports={ShareFileType:e,TaskStatus:n,TaskMode:r,AttributeType:o,ObjectType:s,ObjectShape:i,LogType:{pasteObject:0,changeAttribute:1,dragObject:2,deleteObject:3,pressShortcut:4,resizeObject:5,sendLogs:6,saveJob:7,jumpFrame:8,drawObject:9,changeLabel:10,sendTaskInfo:11,loadJob:12,moveImage:13,zoomImage:14,lockObject:15,mergeObjects:16,copyObject:17,propagateObject:18,undoAction:19,redoAction:20,sendUserActivity:21,sendException:22,changeFrame:23,debugInfo:24,fitImage:25,rotateImage:26},EventType:a}})()},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!1},function(t,e,n){var r=n(14).f,o=n(8),s=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,s)&&r(t,s,{configurable:!0,value:e})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports={}},function(t,e,n){n(106),n(2),n(9),n(5),(()=>{const{PluginError:e}=n(6),r=[];class o{static async apiWrapper(t,...n){const r=await o.list();for(const o of r){const r=o.functions.filter(e=>e.callback===t)[0];if(r&&r.enter)try{await r.enter.call(this,o,...n)}catch(t){throw t instanceof e?t:new e(`Exception in plugin ${o.name}: ${t.toString()}`)}}let s=await t.implementation.call(this,...n);for(const o of r){const r=o.functions.filter(e=>e.callback===t)[0];if(r&&r.leave)try{s=await r.leave.call(this,o,s,...n)}catch(t){throw t instanceof e?t:new e(`Exception in plugin ${o.name}: ${t.toString()}`)}}return s}static async register(t){const n=[];if("object"!=typeof t)throw new e(`Plugin should be an object, but got "${typeof t}"`);if(!("name"in t)||"string"!=typeof t.name)throw new e('Plugin must contain a "name" field and it must be a string');if(!("description"in t)||"string"!=typeof t.description)throw new e('Plugin must contain a "description" field and it must be a string');if("functions"in t)throw new e('Plugin must not contain a "functions" field');!function t(e,r){const o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"==typeof e[n]?Object.prototype.hasOwnProperty.call(r,n)&&t(e[n],r[n]):["enter","leave"].includes(n)&&"function"==typeof r&&(e[n],1)&&(o.callback=r,o[n]=e[n]));Object.keys(o).length&&n.push(o)}(t,{cvat:this}),Object.defineProperty(t,"functions",{value:n,writable:!1}),r.push(t)}static async list(){return r}}t.exports=o})()},function(t,e,n){var r=n(20);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(53),o=n(20);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(42),s=n(21),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.2.1",mode:s?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(58),o=n(0),s=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?s(r[t])||s(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(32),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(23);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(99),o=n(24),s=n(1)("iterator");t.exports=function(t){if(null!=t)return t[s]||t["@@iterator"]||o[r(t)]}},function(t,e,n){n(2),n(9),n(141),n(5),n(51),(()=>{const e=n(25),r=n(18),{getFrame:o}=n(144),{ArgumentError:s}=n(6),{TaskStatus:i}=n(19),{Label:a}=n(36);function c(t){Object.defineProperties(t,{annotations:Object.freeze({value:{async upload(n,r){return await e.apiWrapper.call(this,t.annotations.upload,n,r)},async save(){return await e.apiWrapper.call(this,t.annotations.save)},async clear(n=!1){return await e.apiWrapper.call(this,t.annotations.clear,n)},async dump(n,r){return await e.apiWrapper.call(this,t.annotations.dump,n,r)},async statistics(){return await e.apiWrapper.call(this,t.annotations.statistics)},async put(n=[]){return await e.apiWrapper.call(this,t.annotations.put,n)},async get(n,r={}){return await e.apiWrapper.call(this,t.annotations.get,n,r)},async search(n,r,o){return await e.apiWrapper.call(this,t.annotations.search,n,r,o)},async select(n,r,o){return await e.apiWrapper.call(this,t.annotations.select,n,r,o)},async hasUnsavedChanges(){return await e.apiWrapper.call(this,t.annotations.hasUnsavedChanges)},async merge(n){return await e.apiWrapper.call(this,t.annotations.merge,n)},async split(n,r){return await e.apiWrapper.call(this,t.annotations.split,n,r)},async group(n,r=!1){return await e.apiWrapper.call(this,t.annotations.group,n,r)}},writable:!0}),frames:Object.freeze({value:{async get(n){return await e.apiWrapper.call(this,t.frames.get,n)}},writable:!0}),logs:Object.freeze({value:{async put(n,r){return await e.apiWrapper.call(this,t.logs.put,n,r)},async save(n){return await e.apiWrapper.call(this,t.logs.save,n)}},writable:!0}),actions:Object.freeze({value:{async undo(n){return await e.apiWrapper.call(this,t.actions.undo,n)},async redo(n){return await e.apiWrapper.call(this,t.actions.redo,n)},async clear(){return await e.apiWrapper.call(this,t.actions.clear)}},writable:!0}),events:Object.freeze({value:{async subscribe(n,r){return await e.apiWrapper.call(this,t.events.subscribe,n,r)},async unsubscribe(n,r=null){return await e.apiWrapper.call(this,t.events.unsubscribe,n,r)}},writable:!0})})}class u{constructor(){}}class l extends u{constructor(t){super();const e={id:void 0,assignee:void 0,status:void 0,start_frame:void 0,stop_frame:void 0,task:void 0};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&(n in t&&(e[n]=t[n]),void 0===e[n]))throw new s(`Job field "${n}" was not initialized`);Object.defineProperties(this,Object.freeze({id:{get:()=>e.id},assignee:{get:()=>e.assignee,set:()=>t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a non negative integer");e.assignee=t}},status:{get:()=>e.status,set:t=>{const n=i;let r=!1;for(const e in n)if(n[e]===t){r=!0;break}if(!r)throw new s("Value must be a value from the enumeration cvat.enums.TaskStatus");e.status=t}},startFrame:{get:()=>e.start_frame},stopFrame:{get:()=>e.stop_frame},task:{get:()=>e.task}})),this.annotations={get:Object.getPrototypeOf(this).annotations.get.bind(this),put:Object.getPrototypeOf(this).annotations.put.bind(this),save:Object.getPrototypeOf(this).annotations.save.bind(this),dump:Object.getPrototypeOf(this).annotations.dump.bind(this),merge:Object.getPrototypeOf(this).annotations.merge.bind(this),split:Object.getPrototypeOf(this).annotations.split.bind(this),group:Object.getPrototypeOf(this).annotations.group.bind(this),clear:Object.getPrototypeOf(this).annotations.clear.bind(this),upload:Object.getPrototypeOf(this).annotations.upload.bind(this),select:Object.getPrototypeOf(this).annotations.select.bind(this),statistics:Object.getPrototypeOf(this).annotations.statistics.bind(this),hasUnsavedChanges:Object.getPrototypeOf(this).annotations.hasUnsavedChanges.bind(this)},this.frames={get:Object.getPrototypeOf(this).frames.get.bind(this)}}async save(){return await e.apiWrapper.call(this,l.prototype.save)}}class p extends u{constructor(t){super();const e={id:void 0,name:void 0,status:void 0,size:void 0,mode:void 0,owner:void 0,assignee:void 0,created_date:void 0,updated_date:void 0,bug_tracker:void 0,overlap:void 0,segment_size:void 0,z_order:void 0,image_quality:void 0,start_frame:void 0,stop_frame:void 0,frame_filter:void 0};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&n in t&&(e[n]=t[n]);if(e.labels=[],e.jobs=[],e.files=Object.freeze({server_files:[],client_files:[],remote_files:[]}),Array.isArray(t.segments))for(const n of t.segments)if(Array.isArray(n.jobs))for(const t of n.jobs){const r=new l({url:t.url,id:t.id,assignee:t.assignee,status:t.status,start_frame:n.start_frame,stop_frame:n.stop_frame,task:this});e.jobs.push(r)}if(Array.isArray(t.labels))for(const n of t.labels){const t=new a(n);e.labels.push(t)}Object.defineProperties(this,Object.freeze({id:{get:()=>e.id},name:{get:()=>e.name,set:t=>{if(!t.trim().length)throw new s("Value must not be empty");e.name=t}},status:{get:()=>e.status},size:{get:()=>e.size},mode:{get:()=>e.mode},owner:{get:()=>e.owner},assignee:{get:()=>e.assignee,set:()=>t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a non negative integer");e.assignee=t}},createdDate:{get:()=>e.created_date},updatedDate:{get:()=>e.updated_date},bugTracker:{get:()=>e.bug_tracker,set:t=>{e.bug_tracker=t}},overlap:{get:()=>e.overlap,set:t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a non negative integer");e.overlap=t}},segmentSize:{get:()=>e.segment_size,set:t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a positive integer");e.segment_size=t}},zOrder:{get:()=>e.z_order,set:t=>{if("boolean"!=typeof t)throw new s("Value must be a boolean");e.z_order=t}},imageQuality:{get:()=>e.image_quality,set:t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a positive integer");e.image_quality=t}},labels:{get:()=>[...e.labels],set:t=>{if(!Array.isArray(t))throw new s("Value must be an array of Labels");for(const e of t)if(!(e instanceof a))throw new s("Each array value must be an instance of Label. "+`${typeof e} was found`);void 0===e.id?e.labels=[...t]:e.labels=e.labels.concat([...t])}},jobs:{get:()=>[...e.jobs]},serverFiles:{get:()=>[...e.files.server_files],set:t=>{if(!Array.isArray(t))throw new s(`Value must be an array. But ${typeof t} has been got.`);for(const e of t)if("string"!=typeof e)throw new s(`Array values must be a string. But ${typeof e} has been got.`);Array.prototype.push.apply(e.files.server_files,t)}},clientFiles:{get:()=>[...e.files.client_files],set:t=>{if(!Array.isArray(t))throw new s(`Value must be an array. But ${typeof t} has been got.`);for(const e of t)if(!(e instanceof File))throw new s(`Array values must be a File. But ${e.constructor.name} has been got.`);Array.prototype.push.apply(e.files.client_files,t)}},remoteFiles:{get:()=>[...e.files.remote_files],set:t=>{if(!Array.isArray(t))throw new s(`Value must be an array. But ${typeof t} has been got.`);for(const e of t)if("string"!=typeof e)throw new s(`Array values must be a string. But ${typeof e} has been got.`);Array.prototype.push.apply(e.files.remote_files,t)}},startFrame:{get:()=>e.start_frame,set:t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a not negative integer");e.start_frame=t}},stopFrame:{get:()=>e.stop_frame,set:t=>{if(!Number.isInteger(t)||t<0)throw new s("Value must be a not negative integer");e.stop_frame=t}},frameFilter:{get:()=>e.frame_filter,set:t=>{if("string"!=typeof t)throw new s(`Filter value must be a string. But ${typeof t} has been got.`);e.frame_filter=t}}})),this.annotations={get:Object.getPrototypeOf(this).annotations.get.bind(this),put:Object.getPrototypeOf(this).annotations.put.bind(this),save:Object.getPrototypeOf(this).annotations.save.bind(this),dump:Object.getPrototypeOf(this).annotations.dump.bind(this),merge:Object.getPrototypeOf(this).annotations.merge.bind(this),split:Object.getPrototypeOf(this).annotations.split.bind(this),group:Object.getPrototypeOf(this).annotations.group.bind(this),clear:Object.getPrototypeOf(this).annotations.clear.bind(this),upload:Object.getPrototypeOf(this).annotations.upload.bind(this),select:Object.getPrototypeOf(this).annotations.select.bind(this),statistics:Object.getPrototypeOf(this).annotations.statistics.bind(this),hasUnsavedChanges:Object.getPrototypeOf(this).annotations.hasUnsavedChanges.bind(this)},this.frames={get:Object.getPrototypeOf(this).frames.get.bind(this)}}async save(t=(()=>{})){return await e.apiWrapper.call(this,p.prototype.save,t)}async delete(){return await e.apiWrapper.call(this,p.prototype.delete)}}t.exports={Job:l,Task:p};const{getAnnotations:f,putAnnotations:h,saveAnnotations:d,hasUnsavedChanges:b,mergeAnnotations:g,splitAnnotations:m,groupAnnotations:y,clearAnnotations:v,selectObject:w,annotationsStatistics:O,uploadAnnotations:x,dumpAnnotations:k}=n(146);c(l.prototype),c(p.prototype),l.prototype.save.implementation=async function(){if(this.id){const t={status:this.status};return await r.jobs.saveJob(this.id,t),this}throw new s("Can not save job without and id")},l.prototype.frames.get.implementation=async function(t){if(!Number.isInteger(t)||t<0)throw new s(`Frame must be a positive integer. Got: "${t}"`);if(t<this.startFrame||t>this.stopFrame)throw new s(`The frame with number ${t} is out of the job`);return await o(this.task.id,this.task.mode,t)},l.prototype.annotations.get.implementation=async function(t,e){if(t<this.startFrame||t>this.stopFrame)throw new s(`Frame ${t} does not exist in the job`);return await f(this,t,e)},l.prototype.annotations.save.implementation=async function(t){return await d(this,t)},l.prototype.annotations.merge.implementation=async function(t){return await g(this,t)},l.prototype.annotations.split.implementation=async function(t,e){return await m(this,t,e)},l.prototype.annotations.group.implementation=async function(t,e){return await y(this,t,e)},l.prototype.annotations.hasUnsavedChanges.implementation=function(){return b(this)},l.prototype.annotations.clear.implementation=async function(t){return await v(this,t)},l.prototype.annotations.select.implementation=function(t,e,n){return w(this,t,e,n)},l.prototype.annotations.statistics.implementation=function(){return O(this)},l.prototype.annotations.put.implementation=function(t){return h(this,t)},l.prototype.annotations.upload.implementation=async function(t,e){return await x(this,t,e)},l.prototype.annotations.dump.implementation=async function(t,e){return await k(this,t,e)},p.prototype.save.implementation=async function(t){if(void 0!==this.id){const t={name:this.name,bug_tracker:this.bugTracker,z_order:this.zOrder,labels:[...this.labels.map(t=>t.toJSON())]};return await r.tasks.saveTask(this.id,t),this}const e={name:this.name,labels:this.labels.map(t=>t.toJSON()),image_quality:this.imageQuality,z_order:Boolean(this.zOrder)};this.bugTracker&&(e.bug_tracker=this.bugTracker),this.segmentSize&&(e.segment_size=this.segmentSize),this.overlap&&(e.overlap=this.overlap),this.startFrame&&(e.start_frame=this.startFrame),this.stopFrame&&(e.stop_frame=this.stopFrame),this.frameFilter&&(e.frame_filter=this.frameFilter);const n={client_files:this.clientFiles,server_files:this.serverFiles,remote_files:this.remoteFiles},o=await r.tasks.createTask(e,n,t);return new p(o)},p.prototype.delete.implementation=async function(){return await r.tasks.deleteTask(this.id)},p.prototype.frames.get.implementation=async function(t){if(!Number.isInteger(t)||t<0)throw new s(`Frame must be a positive integer. Got: "${t}"`);if(t>=this.size)throw new s(`The frame with number ${t} is out of the task`);return await o(this.id,this.mode,t)},p.prototype.annotations.get.implementation=async function(t,e){if(!Number.isInteger(t)||t<0)throw new s(`Frame must be a positive integer. Got: "${t}"`);if(t>=this.size)throw new s(`Frame ${t} does not exist in the task`);return await f(this,t,e)},p.prototype.annotations.save.implementation=async function(t){return await d(this,t)},p.prototype.annotations.merge.implementation=async function(t){return await g(this,t)},p.prototype.annotations.split.implementation=async function(t,e){return await m(this,t,e)},p.prototype.annotations.group.implementation=async function(t,e){return await y(this,t,e)},p.prototype.annotations.hasUnsavedChanges.implementation=function(){return b(this)},p.prototype.annotations.clear.implementation=async function(t){return await v(this,t)},p.prototype.annotations.select.implementation=function(t,e,n){return w(this,t,e,n)},p.prototype.annotations.statistics.implementation=function(){return O(this)},p.prototype.annotations.put.implementation=function(t){return h(this,t)},p.prototype.annotations.upload.implementation=async function(t,e){return await x(this,t,e)},p.prototype.annotations.dump.implementation=async function(t,e){return await k(this,t,e)}})()},function(t,e,n){n(2),n(5),n(51),(()=>{const{AttributeType:e}=n(19),{ArgumentError:r}=n(6);class o{constructor(t){const n={id:void 0,default_value:void 0,input_type:void 0,mutable:void 0,name:void 0,values:void 0};for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&Object.prototype.hasOwnProperty.call(t,e)&&(Array.isArray(t[e])?n[e]=[...t[e]]:n[e]=t[e]);if(!Object.values(e).includes(n.input_type))throw new r(`Got invalid attribute type ${n.input_type}`);Object.defineProperties(this,Object.freeze({id:{get:()=>n.id},defaultValue:{get:()=>n.default_value},inputType:{get:()=>n.input_type},mutable:{get:()=>n.mutable},name:{get:()=>n.name},values:{get:()=>[...n.values]}}))}toJSON(){const t={name:this.name,mutable:this.mutable,input_type:this.inputType,default_value:this.defaultValue,values:this.values};return void 0!==this.id&&(t.id=this.id),t}}t.exports={Attribute:o,Label:class{constructor(t){const e={id:void 0,name:void 0};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);if(e.attributes=[],Object.prototype.hasOwnProperty.call(t,"attributes")&&Array.isArray(t.attributes))for(const n of t.attributes)e.attributes.push(new o(n));Object.defineProperties(this,Object.freeze({id:{get:()=>e.id},name:{get:()=>e.name},attributes:{get:()=>[...e.attributes]}}))}toJSON(){const t={name:this.name,attributes:[...this.attributes.map(t=>t.toJSON())]};return void 0!==this.id&&(t.id=this.id),t}}}})()},function(t,e,n){(()=>{const{ArgumentError:e}=n(6);t.exports={isBoolean:function(t){return"boolean"==typeof t},isInteger:function(t){return"number"==typeof t&&Number.isInteger(t)},isEnum:function(t){for(const e in this)if(Object.prototype.hasOwnProperty.call(this,e)&&this[e]===t)return!0;return!1},isString:function(t){return"string"==typeof t},checkFilter:function(t,n){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(!(r in n))throw new e(`Unsupported filter property has been recieved: "${r}"`);if(!n[r](t[r]))throw new e(`Received filter property "${r}" is not satisfied for checker`)}},checkObjectType:function(t,n,r,o){if(r){if(typeof n!==r){if("integer"===r&&Number.isInteger(n))return;throw new e(`"${t}" is expected to be "${r}", but "${typeof n}" has been got.`)}}else if(o&&!(n instanceof o)){if(void 0!==n)throw new e(`"${t}" is expected to be ${o.name}, but `+`"${n.constructor.name}" has been got`);throw new e(`"${t}" is expected to be ${o.name}, but "undefined" has been got.`)}}}})()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(10),o=n(52),s=n(27),i=n(28),a=n(40),c=n(8),u=n(54),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=i(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return s(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(11),s=r.document,i=o(s)&&o(s.createElement);t.exports=function(t){return i?s.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(12);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(29),o=n(56),s=r("keys");t.exports=function(t){return s[t]||(s[t]=o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e){t.exports={backendAPI:"http://localhost:7000/api/v1",proxy:!1,taskID:void 0,jobID:void 0,clientID:+Date.now().toString().substr(-6)}},function(t,e,n){var r=n(32),o=n(20),s=function(t){return function(e,n){var s,i,a=String(o(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===u||(i=a.charCodeAt(c+1))<56320||i>57343?t?a.charAt(c):s:t?a.slice(c,c+2):i-56320+(s-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,n){"use strict";(function(e){var r=n(7),o=n(127),s={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={adapter:("undefined"!=typeof XMLHttpRequest?a=n(79):void 0!==e&&(a=n(79)),a),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(s)}),t.exports=c}).call(this,n(78))},function(t,e,n){n(2),n(9),n(5),(()=>{const e=n(25),{ArgumentError:r}=n(6);class o{constructor(t){const e={label:null,attributes:{},points:null,outside:null,occluded:null,keyframe:null,group:null,zOrder:null,lock:null,color:null,clientID:t.clientID,serverID:t.serverID,frame:t.frame,objectType:t.objectType,shapeType:t.shapeType,updateFlags:{}};Object.defineProperty(e.updateFlags,"reset",{value:function(){this.label=!1,this.attributes=!1,this.points=!1,this.outside=!1,this.occluded=!1,this.keyframe=!1,this.group=!1,this.zOrder=!1,this.lock=!1,this.color=!1},writable:!1}),Object.defineProperties(this,Object.freeze({updateFlags:{get:()=>e.updateFlags},frame:{get:()=>e.frame},objectType:{get:()=>e.objectType},shapeType:{get:()=>e.shapeType},clientID:{get:()=>e.clientID},serverID:{get:()=>e.serverID},label:{get:()=>e.label,set:t=>{e.updateFlags.label=!0,e.label=t}},color:{get:()=>e.color,set:t=>{e.updateFlags.color=!0,e.color=t}},points:{get:()=>e.points,set:t=>{if(!Array.isArray(t))throw new r("Points are expected to be an array "+`but got ${"object"==typeof t?t.constructor.name:typeof t}`);e.updateFlags.points=!0,e.points=[...t]}},group:{get:()=>e.group,set:t=>{e.updateFlags.group=!0,e.group=t}},zOrder:{get:()=>e.zOrder,set:t=>{e.updateFlags.zOrder=!0,e.zOrder=t}},outside:{get:()=>e.outside,set:t=>{e.updateFlags.outside=!0,e.outside=t}},keyframe:{get:()=>e.keyframe,set:t=>{e.updateFlags.keyframe=!0,e.keyframe=t}},occluded:{get:()=>e.occluded,set:t=>{e.updateFlags.occluded=!0,e.occluded=t}},lock:{get:()=>e.lock,set:t=>{e.updateFlags.lock=!0,e.lock=t}},attributes:{get:()=>e.attributes,set:t=>{if("object"!=typeof t)throw new r("Attributes are expected to be an object "+`but got ${"object"==typeof t?t.constructor.name:typeof t}`);for(const n of Object.keys(t))e.updateFlags.attributes=!0,e.attributes[n]=t[n]}}})),this.label=t.label,this.group=t.group,this.zOrder=t.zOrder,this.outside=t.outside,this.keyframe=t.keyframe,this.occluded=t.occluded,this.color=t.color,this.lock=t.lock,void 0!==t.points&&(this.points=t.points),void 0!==t.attributes&&(this.attributes=t.attributes),e.updateFlags.reset()}async save(){return await e.apiWrapper.call(this,o.prototype.save)}async delete(t=!1){return await e.apiWrapper.call(this,o.prototype.delete,t)}async up(){return await e.apiWrapper.call(this,o.prototype.up)}async down(){return await e.apiWrapper.call(this,o.prototype.down)}}o.prototype.save.implementation=async function(){return this.hidden&&this.hidden.save?this.hidden.save():this},o.prototype.delete.implementation=async function(t){return!(!this.hidden||!this.hidden.delete)&&this.hidden.delete(t)},o.prototype.up.implementation=async function(){return!(!this.hidden||!this.hidden.up)&&this.hidden.up()},o.prototype.down.implementation=async function(){return!(!this.hidden||!this.hidden.down)&&this.hidden.down()},t.exports=o})()},function(t,e,n){"use strict";n(13)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s=o&&!r.call({1:2},1);e.f=s?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(3),o=n(16),s="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?s.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(10),o=n(3),s=n(41);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(29);t.exports=r("native-function-to-string",Function.toString)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(8),o=n(91),s=n(39),i=n(14);t.exports=function(t,e){for(var n=o(e),a=i.f,c=s.f,u=0;u<n.length;u++){var l=n[u];r(t,l)||a(t,l,c(e,l))}}},function(t,e,n){t.exports=n(0)},function(t,e,n){var r=n(8),o=n(28),s=n(93).indexOf,i=n(44);t.exports=function(t,e){var n,a=o(t),c=0,u=[];for(n in a)!r(i,n)&&r(a,n)&&u.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~s(u,n)||u.push(n));return u}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),o=/#|\.prototype\./,s=function(t,e){var n=a[i(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},i=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(1),o=n(24),s=r("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[s]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var s=t.return;throw void 0!==s&&r(s.call(t)),e}}},function(t,e,n){var r,o,s,i=n(0),a=n(3),c=n(16),u=n(33),l=n(66),p=n(41),f=i.location,h=i.setImmediate,d=i.clearImmediate,b=i.process,g=i.MessageChannel,m=i.Dispatch,y=0,v={},w=function(t){if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},O=function(t){return function(){w(t)}},x=function(t){w(t.data)},k=function(t){i.postMessage(t+"",f.protocol+"//"+f.host)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},d=function(t){delete v[t]},"process"==c(b)?r=function(t){b.nextTick(O(t))}:m&&m.now?r=function(t){m.now(O(t))}:g?(s=(o=new g).port2,o.port1.onmessage=x,r=u(s.postMessage,s,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||a(k)?r="onreadystatechange"in p("script")?function(t){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),w(t)}}:function(t){setTimeout(O(t),0)}:(r=k,i.addEventListener("message",x,!1))),t.exports={set:h,clear:d}},function(t,e,n){var r=n(30);t.exports=r("document","documentElement")},function(t,e,n){var r=n(30);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(23),o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(4),o=n(70),s=n(45),i=n(44),a=n(66),c=n(41),u=n(43)("IE_PROTO"),l=function(){},p=function(){var t,e=c("iframe"),n=s.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),p=t.F;n--;)delete p.prototype[s[n]];return p()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[u]=t):n=p(),void 0===e?n:o(n,e)},i[u]=!0},function(t,e,n){var r=n(10),o=n(14),s=n(4),i=n(71);t.exports=r?Object.defineProperties:function(t,e){s(t);for(var n,r=i(e),a=r.length,c=0;a>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var r=n(59),o=n(45);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(13),o=n(73),s=n(75),i=n(109),a=n(22),c=n(12),u=n(15),l=n(1),p=n(21),f=n(24),h=n(74),d=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m=function(){return this};t.exports=function(t,e,n,l,h,y,v){o(n,e,l);var w,O,x,k=function(t){if(t===h&&E)return E;if(!b&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",S=!1,A=t.prototype,T=A[g]||A["@@iterator"]||h&&A[h],E=!b&&T||k(h),I="Array"==e&&A.entries||T;if(I&&(w=s(I.call(new t)),d!==Object.prototype&&w.next&&(p||s(w)===d||(i?i(w,d):"function"!=typeof w[g]&&c(w,g,m)),a(w,j,!0,!0),p&&(f[j]=m))),"values"==h&&T&&"values"!==T.name&&(S=!0,E=function(){return T.call(this)}),p&&!v||A[g]===E||c(A,g,E),f[e]=E,h)if(O={values:k("values"),keys:y?E:k("keys"),entries:k("entries")},v)for(x in O)!b&&!S&&x in A||u(A,x,O[x]);else r({target:e,proto:!0,forced:b||S},O);return O}},function(t,e,n){"use strict";var r=n(74).IteratorPrototype,o=n(69),s=n(27),i=n(22),a=n(24),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=o(r,{next:s(1,n)}),i(t,u,!1,!0),a[u]=c,t}},function(t,e,n){"use strict";var r,o,s,i=n(75),a=n(12),c=n(8),u=n(1),l=n(21),p=u("iterator"),f=!1;[].keys&&("next"in(s=[].keys())?(o=i(i(s)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),l||c(r,p)||a(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var r=n(8),o=n(26),s=n(43),i=n(108),a=s("IE_PROTO"),c=Object.prototype;t.exports=i?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){"use strict";var r,o,s=n(118),i=RegExp.prototype.exec,a=String.prototype.replace,c=i,u=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(t){var e,n,r,o,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",s.call(c))),u&&(e=c.lastIndex),r=i.call(c,t),u&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),l&&r&&r.length>1&&a.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e){var n,r,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!l){var t=a(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++p<e;)c&&c[p].run();p=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(7),o=n(128),s=n(130),i=n(131),a=n(132),c=n(80);t.exports=function(t){return new Promise(function(e,u){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",d=t.auth.password||"";p.Authorization="Basic "+btoa(h+":"+d)}if(f.open(t.method.toUpperCase(),s(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,r),f=null}},f.onerror=function(){u(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var b=n(133),g=(t.withCredentials||a(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===l&&(l=null),f.send(l)})}},function(t,e,n){"use strict";var r=n(129);t.exports=function(t,e,n,o,s){var i=new Error(t);return r(i,e,n,o,s)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e){t.exports=class{constructor(t){const e={id:null,username:null,email:null,first_name:null,last_name:null,groups:null,last_login:null,date_joined:null,is_staff:null,is_superuser:null,is_active:null};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&n in t&&(e[n]=t[n]);Object.defineProperties(this,Object.freeze({id:{get:()=>e.id},username:{get:()=>e.username},email:{get:()=>e.email},firstName:{get:()=>e.first_name},lastName:{get:()=>e.last_name},groups:{get:()=>JSON.parse(JSON.stringify(e.groups))},lastLogin:{get:()=>e.last_login},dateJoined:{get:()=>e.date_joined},isStaff:{get:()=>e.is_staff},isSuperuser:{get:()=>e.is_superuser},isActive:{get:()=>e.is_active}}))}}},function(t,e){t.exports=class{constructor(t,e){Object.defineProperties(this,Object.freeze({label:{get:()=>JSON.parse(JSON.stringify(t))},total:{get:()=>JSON.parse(JSON.stringify(e))}}))}}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(13),o=n(23),s=n(26),i=n(3),a=n(148),c=[].sort,u=[1,2,3],l=i(function(){u.sort(void 0)}),p=i(function(){u.sort(null)}),f=a("sort");r({target:"Array",proto:!0,forced:l||!p||f},{sort:function(t){return void 0===t?c.call(s(this)):c.call(s(this),o(t))}})},function(t,e,n){n(2),n(5),(()=>{class e{constructor(t){const e=t.display_name,n=t.format,r=t.handler,o=t.version;Object.defineProperties(this,{name:{get:()=>e},format:{get:()=>n},handler:{get:()=>r},version:{get:()=>o}})}}class n{constructor(t){const e=t.display_name,n=t.format,r=t.handler,o=t.version;Object.defineProperties(this,{name:{get:()=>e},format:{get:()=>n},handler:{get:()=>r},version:{get:()=>o}})}}t.exports={AnnotationFormat:class{constructor(t){const r={created_date:t.created_date,updated_date:t.updated_date,id:t.id,owner:t.owner,name:t.name,handler_file:t.handler_file};r.dumpers=t.dumpers.map(t=>new n(t)),r.loaders=t.loaders.map(t=>new e(t)),Object.defineProperties(this,{id:{get:()=>r.id},owner:{get:()=>r.owner},name:{get:()=>r.name},createdDate:{get:()=>r.created_date},updatedDate:{get:()=>r.updated_date},handlerFile:{get:()=>r.handler_file},loaders:{get:()=>[...r.loaders]},dumpers:{get:()=>[...r.dumpers]}})}},Loader:e,Dumper:n}})()},function(t,e,n){var r=n(3),o=n(1),s=n(21),i=o("iterator");t.exports=!r(function(){var t=new URL("b?e=1","http://a"),e=t.searchParams;return t.pathname="c%20d",s&&!t.toJSON||!e.sort||"http://a/c%20d?e=1"!==t.href||"1"!==e.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(t,e,n){n(9),t.exports=function(){const t=n(25),e=n(83),r=n(50),o=n(84),{Job:s,Task:i}=n(35),{Attribute:a,Label:c}=n(36),{ShareFileType:u,TaskStatus:l,TaskMode:p,AttributeType:f,ObjectType:h,ObjectShape:d,LogType:b,EventType:g}=n(19),{Exception:m,ArgumentError:y,DataError:v,ScriptingError:w,PluginError:O,ServerError:x}=n(6),k=n(151),j=n(47),S={server:{about:async()=>await t.apiWrapper(S.server.about),share:async(e="/")=>await t.apiWrapper(S.server.share,e),formats:async()=>await t.apiWrapper(S.server.formats),login:async(e,n)=>await t.apiWrapper(S.server.login,e,n),logout:async()=>await t.apiWrapper(S.server.logout),authorized:async()=>await t.apiWrapper(S.server.authorized)},tasks:{get:async(e={})=>await t.apiWrapper(S.tasks.get,e)},jobs:{get:async(e={})=>await t.apiWrapper(S.jobs.get,e)},users:{get:async(e={})=>await t.apiWrapper(S.users.get,e)},plugins:{list:async()=>await t.apiWrapper(S.plugins.list),register:async e=>await t.apiWrapper(S.plugins.register,e)},config:{get backendAPI(){return j.backendAPI},set backendAPI(t){j.backendAPI=t},get proxy(){return j.proxy},set proxy(t){j.proxy=t},get taskID(){return j.taskID},set taskID(t){j.taskID=t},get jobID(){return j.jobID},set jobID(t){j.jobID=t},get clientID(){return j.clientID}},client:{version:`${k.version}`},enums:{ShareFileType:u,TaskStatus:l,TaskMode:p,AttributeType:f,ObjectType:h,ObjectShape:d,LogType:b,EventType:g},exceptions:{Exception:m,ArgumentError:y,DataError:v,ScriptingError:w,PluginError:O,ServerError:x},classes:{Task:i,User:e,Job:s,Attribute:a,Label:c,Statistics:o,ObjectState:r}};S.server=Object.freeze(S.server),S.tasks=Object.freeze(S.tasks),S.jobs=Object.freeze(S.jobs),S.users=Object.freeze(S.users),S.plugins=Object.freeze(S.plugins),S.client=Object.freeze(S.client),S.enums=Object.freeze(S.enums);const A=n(152);return Math.clamp=function(t,e,n){return Math.min(Math.max(t,e),n)},Object.freeze(A(S))}()},function(t,e,n){var r=n(0),o=n(55),s=r.WeakMap;t.exports="function"==typeof s&&/native code/.test(o.call(s))},function(t,e,n){var r=n(30),o=n(92),s=n(60),i=n(4);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(i(t)),n=s.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(59),o=n(45).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(28),o=n(31),s=n(94),i=function(t){return function(e,n,i){var a,c=r(e),u=o(c.length),l=s(i,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},function(t,e,n){var r=n(32),o=Math.max,s=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):s(n,e)}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(3);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(t,e,n){"use strict";var r=n(30),o=n(14),s=n(1),i=n(10),a=s("species");t.exports=function(t){var e=r(t),n=o.f;i&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(4),o=n(63),s=n(31),i=n(33),a=n(34),c=n(64),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,p){var f,h,d,b,g,m,y=i(e,n,l?2:1);if(p)f=t;else{if("function"!=typeof(h=a(t)))throw TypeError("Target is not iterable");if(o(h)){for(d=0,b=s(t.length);b>d;d++)if((g=l?y(r(m=t[d])[0],m[1]):y(t[d]))&&g instanceof u)return g;return new u(!1)}f=h.call(t)}for(;!(m=f.next()).done;)if((g=c(f,y,m.value,l))&&g instanceof u)return g;return new u(!1)}).stop=function(t){return new u(!0,t)}},function(t,e,n){var r=n(16),o=n(1)("toStringTag"),s="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var s=0,i={next:function(){return{done:!!s++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var s={};s[r]=function(){return{next:function(){return{done:n=!0}}}},t(s)}catch(t){}return n}},function(t,e,n){var r=n(4),o=n(23),s=n(1)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[s])?e:o(n)}},function(t,e,n){var r,o,s,i,a,c,u,l,p=n(0),f=n(39).f,h=n(16),d=n(65).set,b=n(67),g=p.MutationObserver||p.WebKitMutationObserver,m=p.process,y=p.Promise,v="process"==h(m),w=f(p,"queueMicrotask"),O=w&&w.value;O||(r=function(){var t,e;for(v&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?i():s=void 0,t}}s=void 0,t&&t.enter()},v?i=function(){m.nextTick(r)}:g&&!/(iphone|ipod|ipad).*applewebkit/i.test(b)?(a=!0,c=document.createTextNode(""),new g(r).observe(c,{characterData:!0}),i=function(){c.data=a=!a}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,i=function(){l.call(u,r)}):i=function(){d.call(p,r)}),t.exports=O||function(t){var e={fn:t,next:void 0};s&&(s.next=e),o||(o=e,i()),s=e}},function(t,e,n){var r=n(4),o=n(11),s=n(68);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=s.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var r=n(13),o=n(10),s=n(0),i=n(8),a=n(11),c=n(14).f,u=n(57),l=s.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var p={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(p[e]=!0),e};u(f,l);var h=f.prototype=l.prototype;h.constructor=f;var d=h.toString,b="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=d.call(t);if(i(p,t))return"";var n=b?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(t,e,n){var r=n(1),o=n(69),s=n(12),i=r("unscopables"),a=Array.prototype;null==a[i]&&s(a,i,o(null)),t.exports=function(t){a[i][t]=!0}},function(t,e,n){var r=n(3);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){var r=n(4),o=n(110);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,s){return r(n),o(s),e?t.call(n,s):n.__proto__=s,n}}():void 0)},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){(function(t,r){var o;
|
|
|
/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var s={function:!0,object:!0},i=s[typeof window]&&window||this,a=s[typeof e]&&e,c=s[typeof t]&&t&&!t.nodeType&&t,u=a&&c&&"object"==typeof r&&r;!u||u.global!==u&&u.window!==u&&u.self!==u||(i=u);var l=Math.pow(2,53)-1,p=/\bOpera/,f=Object.prototype,h=f.hasOwnProperty,d=f.toString;function b(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function g(t){return t=O(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:b(t)}function m(t,e){for(var n in t)h.call(t,n)&&e(t[n],n,t)}function y(t){return null==t?b(t):d.call(t).slice(8,-1)}function v(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function w(t,e){var n=null;return function(t,e){var n=-1,r=t?t.length:0;if("number"==typeof r&&r>-1&&r<=l)for(;++n<r;)e(t[n],n,t);else m(t,e)}(t,function(r,o){n=e(n,r,o,t)}),n}function O(t){return String(t).replace(/^ +| +$/g,"")}var x=function t(e){var n=i,r=e&&"object"==typeof e&&"String"!=y(e);r&&(n=e,e=null);var o=n.navigator||{},s=o.userAgent||"";e||(e=s);var a,c,u,l,f,h=r?!!o.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(d.toString()),b=r?"Object":"ScriptBridgingProxyObject",x=r?"Object":"Environment",k=r&&n.java?"JavaPackage":y(n.java),j=r?"Object":"RuntimeObject",S=/\bJava/.test(k)&&n.java,A=S&&y(n.environment)==x,T=S?"a":"α",E=S?"b":"β",I=n.document||{},P=n.operamini||n.opera,C=p.test(C=r&&P?P["[[Class]]"]:y(P))?C:P=null,F=e,_=[],N=null,M=e==s,$=M&&P&&"function"==typeof P.version&&P.version(),R=w([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(t,n){return t||RegExp("\\b"+(n.pattern||v(n))+"\\b","i").exec(e)&&(n.label||n)}),D=function(t){return w(t,function(t,n){return t||RegExp("\\b"+(n.pattern||v(n))+"\\b","i").exec(e)&&(n.label||n)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),L=U([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),B=function(t){return w(t,function(t,n,r){return t||(n[L]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+v(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),z=function(t){return w(t,function(t,n){var r=n.pattern||v(n);return!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=function(t,e,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return e&&n&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(r=r[/[\d.]+$/.exec(t)])&&(t="Windows "+r),t=String(t),e&&n&&(t=t.replace(RegExp(e,"i"),n)),t=g(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(t,r,n.label||n)),t})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function U(t){return w(t,function(t,n){var r=n.pattern||v(n);return!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=g(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t})}if(R&&(R=[R]),B&&!L&&(L=U([B])),(a=/\bGoogle TV\b/.exec(L))&&(L=a[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==D&&/\bOPiOS\b/.test(e)&&_.push("running in Turbo/Uncompressed mode"),"IE"==D&&/\blike iPhone OS\b/.test(e)?(B=(a=t(e.replace(/like iPhone OS/,""))).manufacturer,L=a.product):/^iP/.test(L)?(D||(D="Safari"),z="iOS"+((a=/ OS ([\d_]+)/i.exec(e))?" "+a[1].replace(/_/g,"."):"")):"Konqueror"!=D||/buntu/i.test(z)?B&&"Google"!=B&&(/Chrome/.test(D)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(z)&&/^Chrome/.test(D)&&/\bVersion\//i.test(e)?(D="Android Browser",z=/\bAndroid\b/.test(z)?z:"Android"):"Silk"==D?(/\bMobi/i.test(e)||(z="Android",_.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&_.unshift("accelerated")):"PaleMoon"==D&&(a=/\bFirefox\/([\d.]+)\b/.exec(e))?_.push("identifying as Firefox "+a[1]):"Firefox"==D&&(a=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(z||(z="Firefox OS"),L||(L=a[1])):!D||(a=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(D))?(D&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(a+"/")+8))&&(D=null),(a=L||B||z)&&(L||B||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(z))&&(D=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(z)?z:a)+" Browser")):"Electron"==D&&(a=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&_.push("Chromium "+a):z="Kubuntu",$||($=w(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",v(D),"(?:Firefox|Minefield|NetFront)"],function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})),(a=("iCab"==R&&parseFloat($)>3?"WebKit":/\bOpera\b/.test(D)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(R)&&"WebKit"||!R&&/\bMSIE\b/i.test(e)&&("Mac OS"==z?"Tasman":"Trident")||"WebKit"==R&&/\bPlayStation\b(?! Vita\b)/i.test(D)&&"NetFront")&&(R=[a]),"IE"==D&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(D+=" Mobile",z="Windows Phone "+(/\+$/.test(a)?a:a+".x"),_.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(D="IE Mobile",z="Windows Phone 8.x",_.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=D&&"Trident"==R&&(a=/\brv:([\d.]+)/.exec(e))&&(D&&_.push("identifying as "+D+($?" "+$:"")),D="IE",$=a[1]),M){if(l="global",f=null!=(u=n)?typeof u[l]:"number",/^(?:boolean|number|string|undefined)$/.test(f)||"object"==f&&!u[l])y(a=n.runtime)==b?(D="Adobe AIR",z=a.flash.system.Capabilities.os):y(a=n.phantom)==j?(D="PhantomJS",$=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof I.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?($=[$,I.documentMode],(a=+a[1]+4)!=$[1]&&(_.push("IE "+$[1]+" mode"),R&&(R[1]=""),$[1]=a),$="IE"==D?String($[1].toFixed(1)):$[0]):"number"==typeof I.documentMode&&/^(?:Chrome|Firefox)\b/.test(D)&&(_.push("masking as "+D+" "+$),D="IE",$="11.0",R=["Trident"],z="Windows");else if(S&&(F=(a=S.lang.System).getProperty("os.arch"),z=z||a.getProperty("os.name")+" "+a.getProperty("os.version")),A){try{$=n.require("ringo/engine").version.join("."),D="RingoJS"}catch(t){(a=n.system)&&a.global.system==n.system&&(D="Narwhal",z||(z=a[0].os||null))}D||(D="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(_.push("Node "+a.versions.node),D="Electron",$=a.versions.electron):"string"==typeof a.versions.nw&&(_.push("Chromium "+$,"Node "+a.versions.node),D="NW.js",$=a.versions.nw)),D||(D="Node.js",F=a.arch,z=a.platform,$=($=/[\d.]+/.exec(a.version))?$[0]:null));z=z&&g(z)}if($&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(M&&o.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(N=/b/i.test(a)?"beta":"alpha",$=$.replace(RegExp(a+"\\+?$"),"")+("beta"==N?E:T)+(/\d+\+?/.exec(a)||"")),"Fennec"==D||"Firefox"==D&&/\b(?:Android|Firefox OS)\b/.test(z))D="Firefox Mobile";else if("Maxthon"==D&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(z=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&_.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(D)&&(!D||L||/Browser|Mobi/.test(D))||"Windows CE"!=z&&!/Mobi/i.test(e))if("IE"==D&&M)try{null===n.external&&_.unshift("platform preview")}catch(t){_.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(a=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||$)?(z=((a=[a,/BB10/.test(e)])[1]?(L=null,B="BlackBerry"):"Device Software")+" "+a[0],$=null):this!=m&&"Wii"!=L&&(M&&P||/Opera/.test(D)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==D&&/\bOS X (?:\d+\.){2,}/.test(z)||"IE"==D&&(z&&!/^Win/.test(z)&&$>5.5||/\bWindows XP\b/.test(z)&&$>8||8==$&&!/\bTrident\b/.test(e)))&&!p.test(a=t.call(m,e.replace(p,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),p.test(D)?(/\bIE\b/.test(a)&&"Mac OS"==z&&(z=null),a="identify"+a):(a="mask"+a,D=C?g(C.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(z=null),M||($=null)),R=["Presto"],_.push(a));else D+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==D&&"+"==a[1].slice(-1)?(D="WebKit Nightly",N="alpha",$=a[1].slice(0,-1)):$!=a[1]&&$!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||($=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==R&&(R=["Blink"]),M&&(h||a[1])?(R&&(R[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=R?"27":"28")):(R&&(R[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),R&&(R[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==D&&(!$||parseInt($)>45)&&($=a)),"Opera"==D&&(a=/\bzbov|zvav$/.exec(z))?(D+=" ",_.unshift("desktop mode"),"zvav"==a?(D+="Mini",$=null):D+="Mobile",z=z.replace(RegExp(" *"+a+"$"),"")):"Safari"==D&&/\bChrome\b/.exec(R&&R[1])&&(_.unshift("desktop mode"),D="Chrome Mobile",$=null,/\bOS X\b/.test(z)?(B="Apple",z="iOS 4.3+"):z=null),$&&0==$.indexOf(a=/[\d.]+$/.exec(z))&&e.indexOf("/"+a+"-")>-1&&(z=O(z.replace(a,""))),R&&!/\b(?:Avant|Nook)\b/.test(D)&&(/Browser|Lunascape|Maxthon/.test(D)||"Safari"!=D&&/^iOS/.test(z)&&/\bSafari\b/.test(R[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(D)&&R[1])&&(a=R[R.length-1])&&_.push(a),_.length&&(_=["("+_.join("; ")+")"]),B&&L&&L.indexOf(B)<0&&_.push("on "+B),L&&_.push((/^on /.test(_[_.length-1])?"":"on ")+L),z&&(a=/ ([\d.+]+)$/.exec(z),c=a&&"/"==z.charAt(z.length-a[0].length-1),z={architecture:32,family:a&&!c?z.replace(a[0],""):z,version:a?a[1]:null,toString:function(){var t=this.version;return this.family+(t&&!c?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(F))&&!/\bi686\b/i.test(F)?(z&&(z.architecture=64,z.family=z.family.replace(RegExp(" *"+a),"")),D&&(/\bWOW64\b/i.test(e)||M&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(e))&&_.unshift("32-bit")):z&&/^OS X/.test(z.family)&&"Chrome"==D&&parseFloat($)>=39&&(z.architecture=64),e||(e=null);var W={};return W.description=e,W.layout=R&&R[0],W.manufacturer=B,W.name=D,W.prerelease=N,W.product=L,W.ua=e,W.version=D&&$,W.os=z||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=t,W.toString=function(){return this.description||""},W.version&&_.unshift($),W.name&&_.unshift(D),z&&D&&(z!=String(z).split(" ")[0]||z!=D.split(" ")[0]&&!L)&&_.push(L?"("+z+")":"on "+z),_.length&&(W.description=_.join(" ")),W}();i.platform=x,void 0===(o=function(){return x}.call(e,n,e,t))||(t.exports=o)}).call(this)}).call(this,n(113)(t),n(38))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r,o,s;!function(i,a){"use strict";o=[n(115)],void 0===(s="function"==typeof(r=function(t){var e=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"])return this.parseOpera(t);if(t.stack&&t.stack.match(n))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw new Error("Cannot parse given Error object")},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(t.replace(/[\(\)]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(t){return!!t.match(n)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:o.pop()),i=o.join(" ")||void 0,a=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new t({functionName:i,fileName:a,lineNumber:s[1],columnNumber:s[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(t){return!t.match(r)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(n),o=r&&r[1]?r[1]:void 0,s=this.extractLocation(e.replace(n,""));return new t({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:e})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),o=[],s=2,i=r.length;s<i;s+=2){var a=n.exec(r[s]);a&&o.push(new t({fileName:a[2],lineNumber:a[1],source:r[s]}))}return o},parseOpera10:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),o=[],s=0,i=r.length;s<i;s+=2){var a=n.exec(r[s]);a&&o.push(new t({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:r[s]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter(function(t){return!!t.match(e)&&!t.match(/^Error created at/)},this).map(function(e){var n,r=e.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",i=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;s.match(/\(([^\)]*)\)/)&&(n=s.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new t({functionName:i,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})},this)}}})?r.apply(e,o):r)||(t.exports=s)}()},function(t,e,n){var r,o,s;!function(n,i){"use strict";o=[],void 0===(s="function"==typeof(r=function(){function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t){return t.charAt(0).toUpperCase()+t.substring(1)}function n(t){return function(){return this[t]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],s=["fileName","functionName","source"],i=r.concat(o,s,["args"]);function a(t){if(t instanceof Object)for(var n=0;n<i.length;n++)t.hasOwnProperty(i[n])&&void 0!==t[i[n]]&&this["set"+e(i[n])](t[i[n]])}a.prototype={getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof a)this.evalOrigin=t;else{if(!(t instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new a(t)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(",")+")")+(this.getFileName()?"@"+this.getFileName():"")+(t(this.getLineNumber())?":"+this.getLineNumber():"")+(t(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var c=0;c<r.length;c++)a.prototype["get"+e(r[c])]=n(r[c]),a.prototype["set"+e(r[c])]=function(t){return function(e){this[t]=Boolean(e)}}(r[c]);for(var u=0;u<o.length;u++)a.prototype["get"+e(o[u])]=n(o[u]),a.prototype["set"+e(o[u])]=function(e){return function(n){if(!t(n))throw new TypeError(e+" must be a Number");this[e]=Number(n)}}(o[u]);for(var l=0;l<s.length;l++)a.prototype["get"+e(s[l])]=n(s[l]),a.prototype["set"+e(s[l])]=function(t){return function(e){this[t]=String(e)}}(s[l]);return a})?r.apply(e,o):r)||(t.exports=s)}()},function(t,e,n){"use strict";var r=n(117),o=n(4),s=n(26),i=n(31),a=n(32),c=n(20),u=n(119),l=n(120),p=Math.max,f=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g;r("replace",2,function(t,e,n){return[function(n,r){var o=c(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,o,r):e.call(String(o),n,r)},function(t,s){var c=n(e,t,this,s);if(c.done)return c.value;var h=o(t),d=String(this),b="function"==typeof s;b||(s=String(s));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var y=[];;){var v=l(h,d);if(null===v)break;if(y.push(v),!g)break;""===String(v[0])&&(h.lastIndex=u(d,i(h.lastIndex),m))}for(var w,O="",x=0,k=0;k<y.length;k++){v=y[k];for(var j=String(v[0]),S=p(f(a(v.index),d.length),0),A=[],T=1;T<v.length;T++)A.push(void 0===(w=v[T])?w:String(w));var E=v.groups;if(b){var I=[j].concat(A,S,d);void 0!==E&&I.push(E);var P=String(s.apply(void 0,I))}else P=r(j,d,S,A,E,s);S>=x&&(O+=d.slice(x,S)+P,x=S+j.length)}return O+d.slice(x)}];function r(t,n,r,o,i,a){var c=r+t.length,u=o.length,l=b;return void 0!==i&&(i=s(i),l=d),e.call(a,l,function(e,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=i[s.slice(1,-1)];break;default:var l=+s;if(0===l)return e;if(l>u){var p=h(l/10);return 0===p?e:p<=u?void 0===o[p-1]?s.charAt(1):o[p-1]+s.charAt(1):e}a=o[l-1]}return void 0===a?"":a})}})},function(t,e,n){"use strict";var r=n(12),o=n(15),s=n(3),i=n(1),a=n(76),c=i("species"),u=!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=!s(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,e,n,p){var f=i(t),h=!s(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),d=h&&!s(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e});if(!h||!d||"replace"===t&&!u||"split"===t&&!l){var b=/./[f],g=n(f,""[t],function(t,e,n,r,o){return e.exec===a?h&&!o?{done:!0,value:b.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),m=g[0],y=g[1];o(String.prototype,t,m),o(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)}),p&&r(RegExp.prototype[f],"sham",!0)}}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(48).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(16),o=n(76);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var s=n.call(t,e);if("object"!=typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e){t.exports="object"==typeof self?self.FormData:window.FormData},function(t,e,n){var r,o;
|
|
|
/*!
|
|
|
* JavaScript Cookie v2.2.1
|
|
|
* https://github.com/js-cookie/js-cookie
|
|
|
*
|
|
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
|
* Released under the MIT license
|
|
|
*/!function(s){if(void 0===(o="function"==typeof(r=s)?r.call(e,n,e,t):r)||(t.exports=o),!0,t.exports=s(),!!0){var i=window.Cookies,a=window.Cookies=s();a.noConflict=function(){return window.Cookies=i,a}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function s(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=t({path:"/"},o.defaults,s)).expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,!0!==s[c]&&(a+="="+s[c].split(";")[0]));return document.cookie=e+"="+n+a}}function i(t,n){if("undefined"!=typeof document){for(var o={},s=document.cookie?document.cookie.split("; "):[],i=0;i<s.length;i++){var a=s[i].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=e(a[0]);if(c=(r.read||r)(c,u)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[u]=c,t===u)break}catch(t){}}return t?o[t]:o}}return o.set=s,o.get=function(t){return i(t,!1)},o.getJSON=function(t){return i(t,!0)},o.remove=function(e,n){s(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})})},function(t,e,n){t.exports=n(124)},function(t,e,n){"use strict";var r=n(7),o=n(77),s=n(126),i=n(49);function a(t){var e=new s(t),n=o(s.prototype.request,e);return r.extend(n,s.prototype,e),r.extend(n,e),n}var c=a(i);c.Axios=s,c.create=function(t){return a(r.merge(i,t))},c.Cancel=n(82),c.CancelToken=n(139),c.isCancel=n(81),c.all=function(t){return Promise.all(t)},c.spread=n(140),t.exports=c,t.exports.default=c},function(t,e){
|
|
|
/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(49),o=n(7),s=n(134),i=n(135);function a(t){this.defaults=t,this.interceptors={request:new s,response:new s}}a.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(80);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(7);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var s;if(n)s=n(e);else if(r.isURLSearchParams(e))s=e.toString();else{var i=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))}))}),s=i.join("&")}return s&&(t+=(-1===t.indexOf("?")?"?":"&")+s),t}},function(t,e,n){"use strict";var r=n(7),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,s,i={};return t?(r.forEach(t.split("\n"),function(t){if(s=t.indexOf(":"),e=r.trim(t.substr(0,s)).toLowerCase(),n=r.trim(t.substr(s+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}}),i):i}},function(t,e,n){"use strict";var r=n(7);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(7);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,s,i){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(7);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){"use strict";var r=n(7),o=n(136),s=n(81),i=n(49),a=n(137),c=n(138);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!a(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||i.adapter)(t).then(function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(82);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(13),o=n(142).trim;r({target:"String",proto:!0,forced:n(143)("trim")},{trim:function(){return o(this)}})},function(t,e,n){var r=n(20),o="["+n(85)+"]",s=RegExp("^"+o+o+"*"),i=RegExp(o+o+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(s,"")),2&t&&(n=n.replace(i,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e,n){var r=n(3),o=n(85);t.exports=function(t){return r(function(){return!!o[t]()||"
"!="
"[t]()||o[t].name!==t})}},function(t,e,n){(function(e){n(2),n(9),n(5),(()=>{const r=n(25),o=n(18),{ArgumentError:s}=n(6),{isBrowser:i,isNode:a}=n(145),c={},u={};class l{constructor(t,e,n,r){Object.defineProperties(this,Object.freeze({width:{value:t,writable:!1},height:{value:e,writable:!1},tid:{value:n,writable:!1},number:{value:r,writable:!1}}))}async data(t=(()=>{})){return await r.apiWrapper.call(this,l.prototype.data,t)}}l.prototype.data.implementation=async function(t){return new Promise(async(n,r)=>{try{if(this.number in u[this.tid])n(u[this.tid][this.number]);else{t();const r=await o.frames.getData(this.tid,this.number);if(a)u[this.tid][this.number]=e.Buffer.from(r,"binary").toString("base64"),n(u[this.tid][this.number]);else if(i){const t=new FileReader;t.onload=()=>{u[this.tid][this.number]=t.result,n(u[this.tid][this.number])},t.readAsDataURL(r)}}}catch(t){r(t)}})},t.exports={FrameData:l,getFrame:async function(t,e,n){if(t in c||(c[t]={},c[t].meta=await o.frames.getMeta(t),u[t]={}),!(n in c[t])){let r=null;if("interpolation"===e)[r]=c[t].meta;else{if("annotation"!==e)throw new s(`Invalid mode is specified ${e}`);if(n>=c[t].meta.length)throw new s(`Meta information about frame ${n} can't be received from the server`);r=c[t].meta[n]}c[t][n]=new l(r.width,r.height,t,n)}return c[t][n]}}})()}).call(this,n(38))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="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},r="undefined"!=typeof window&&void 0!==window.document,o="object"===("undefined"==typeof self?"undefined":n(self))&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,s=void 0!==t&&null!=t.versions&&null!=t.versions.node;e.isBrowser=r,e.isWebWorker=o,e.isNode=s}).call(this,n(78))},function(t,e,n){n(2),n(9),n(5),(()=>{const e=n(18),r=n(147),o=n(150),{checkObjectType:s}=n(37),{Task:i}=n(35),{Loader:a,Dumper:c}=n(87),{ScriptingError:u,DataError:l,ArgumentError:p}=n(6),f=new WeakMap,h=new WeakMap;function d(t){if("task"===t)return h;if("job"===t)return f;throw new u(`Unknown session type was received ${t}`)}async function b(t){const n=t instanceof i?"task":"job",s=d(n);if(!s.has(t)){const i=await e.annotations.getAnnotations(n,t.id),a="job"===n?t.startFrame:0,c="job"===n?t.stopFrame:t.size-1,u={};for(let e=a;e<=c;e++)u[e]=await t.frames.get(e);const l=new r({labels:t.labels||t.task.labels,startFrame:a,stopFrame:c,frameMeta:u}).import(i),p=new o(i.version,l,t);s.set(t,{collection:l,saver:p})}}t.exports={getAnnotations:async function(t,e,n){return await b(t),d(t instanceof i?"task":"job").get(t).collection.get(e,n)},putAnnotations:function(t,e){const n=d(t instanceof i?"task":"job");if(n.has(t))return n.get(t).collection.put(e);throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},saveAnnotations:async function(t,e){const n=d(t instanceof i?"task":"job");n.has(t)&&await n.get(t).saver.save(e)},hasUnsavedChanges:function(t){const e=d(t instanceof i?"task":"job");return!!e.has(t)&&e.get(t).saver.hasUnsavedChanges()},mergeAnnotations:function(t,e){const n=d(t instanceof i?"task":"job");if(n.has(t))return n.get(t).collection.merge(e);throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},splitAnnotations:function(t,e,n){const r=d(t instanceof i?"task":"job");if(r.has(t))return r.get(t).collection.split(e,n);throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},groupAnnotations:function(t,e,n){const r=d(t instanceof i?"task":"job");if(r.has(t))return r.get(t).collection.group(e,n);throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},clearAnnotations:async function(t,e){s("reload",e,"boolean",null);const n=d(t instanceof i?"task":"job");n.has(t)&&n.get(t).collection.clear(),e&&(n.delete(t),await b(t))},annotationsStatistics:function(t){const e=d(t instanceof i?"task":"job");if(e.has(t))return e.get(t).collection.statistics();throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},selectObject:function(t,e,n,r){const o=d(t instanceof i?"task":"job");if(o.has(t))return o.get(t).collection.select(e,n,r);throw new l("Collection has not been initialized yet. Call annotations.get() or annotations.clear(true) before")},uploadAnnotations:async function(t,n,r){const o=t instanceof i?"task":"job";if(!(r instanceof a))throw new p("A loader must be instance of Loader class");await e.annotations.uploadAnnotations(o,t.id,n,r.name)},dumpAnnotations:async function(t,n,r){if(!(r instanceof c))throw new p("A dumper must be instance of Dumper class");let o=null;return o="job"===(t instanceof i?"task":"job")?await e.annotations.dumpAnnotations(t.task.id,n,r.name):await e.annotations.dumpAnnotations(t.id,n,r.name)}}})()},function(t,e,n){n(2),n(86),n(5),n(51),(()=>{const{RectangleShape:e,PolygonShape:r,PolylineShape:o,PointsShape:s,RectangleTrack:i,PolygonTrack:a,PolylineTrack:c,PointsTrack:u,Track:l,Shape:p,Tag:f,objectStateFactory:h}=n(149),{checkObjectType:d}=n(37),b=n(84),{Label:g}=n(36),{DataError:m,ArgumentError:y,ScriptingError:v}=n(6),{ObjectShape:w,ObjectType:O}=n(19),x=n(50),k=["#0066FF","#AF593E","#01A368","#FF861F","#ED0A3F","#FF3F34","#76D7EA","#8359A3","#FBE870","#C5E17A","#03BB85","#FFDF00","#8B8680","#0A6B0D","#8FD8D8","#A36F40","#F653A6","#CA3435","#FFCBA4","#FF99CC","#FA9D5A","#FFAE42","#A78B00","#788193","#514E49","#1164B4","#F4FA9F","#FED8B1","#C32148","#01796F","#E90067","#FF91A4","#404E5A","#6CDAE7","#FFC1CC","#006A93","#867200","#E2B631","#6EEB6E","#FFC800","#CC99BA","#FF007C","#BC6CAC","#DCCCD7","#EBE1C2","#A6AAAE","#B99685","#0086A7","#5E4330","#C8A2C8","#708EB3","#BC8777","#B2592D","#497E48","#6A2963","#E6335F","#00755E","#B5A895","#0048ba","#EED9C4","#C88A65","#FF6E4A","#87421F","#B2BEB5","#926F5B","#00B9FB","#6456B7","#DB5079","#C62D42","#FA9C44","#DA8A67","#FD7C6E","#93CCEA","#FCF686","#503E32","#FF5470","#9DE093","#FF7A00","#4F69C6","#A50B5E","#F0E68C","#FDFF00","#F091A9","#FFFF66","#6F9940","#FC74FD","#652DC1","#D6AEDD","#EE34D2","#BB3385","#6B3FA0","#33CC99","#FFDB00","#87FF2A","#6EEB6E","#FFC800","#CC99BA","#7A89B8","#006A93","#867200","#E2B631","#D9D6CF"];function j(t,n,i){const{type:a}=t,c=k[n%k.length];let u=null;switch(a){case"rectangle":u=new e(t,n,c,i);break;case"polygon":u=new r(t,n,c,i);break;case"polyline":u=new o(t,n,c,i);break;case"points":u=new s(t,n,c,i);break;default:throw new m(`An unexpected type of shape "${a}"`)}return u}function S(t,e,n){if(t.shapes.length){const{type:r}=t.shapes[0],o=k[e%k.length];let s=null;switch(r){case"rectangle":s=new i(t,e,o,n);break;case"polygon":s=new a(t,e,o,n);break;case"polyline":s=new c(t,e,o,n);break;case"points":s=new u(t,e,o,n);break;default:throw new m(`An unexpected type of track "${r}"`)}return s}return console.warn("The track without any shapes had been found. It was ignored."),null}t.exports=class{constructor(t){this.startFrame=t.startFrame,this.stopFrame=t.stopFrame,this.frameMeta=t.frameMeta,this.labels=t.labels.reduce((t,e)=>(t[e.id]=e,t),{}),this.shapes={},this.tags={},this.tracks=[],this.objects={},this.count=0,this.flush=!1,this.collectionZ={},this.groups={max:0},this.injection={labels:this.labels,collectionZ:this.collectionZ,groups:this.groups,frameMeta:this.frameMeta}}import(t){for(const e of t.tags){const t=++this.count,n=new f(e,t,this.injection);this.tags[n.frame]=this.tags[n.frame]||[],this.tags[n.frame].push(n),this.objects[t]=n}for(const e of t.shapes){const t=++this.count,n=j(e,t,this.injection);this.shapes[n.frame]=this.shapes[n.frame]||[],this.shapes[n.frame].push(n),this.objects[t]=n}for(const e of t.tracks){const t=++this.count,n=S(e,t,this.injection);n&&(this.tracks.push(n),this.objects[t]=n)}return this}export(){return{tracks:this.tracks.filter(t=>!t.removed).map(t=>t.toJSON()),shapes:Object.values(this.shapes).reduce((t,e)=>(t.push(...e),t),[]).filter(t=>!t.removed).map(t=>t.toJSON()),tags:Object.values(this.tags).reduce((t,e)=>(t.push(...e),t),[]).filter(t=>!t.removed).map(t=>t.toJSON())}}get(t){const{tracks:e}=this,n=this.shapes[t]||[],r=this.tags[t]||[],o=e.concat(n).concat(r).filter(t=>!t.removed),s=[];for(const e of o){const n=e.get(t);if(n.outside&&!n.keyframe)continue;const r=h.call(e,t,n);s.push(r)}return s}merge(t){if(d("shapes for merge",t,null,Array),!t.length)return;const e=t.map(t=>{d("object state",t,null,x);const e=this.objects[t.clientID];if(void 0===e)throw new y("The object has not been saved yet. Call ObjectState.put([state]) before you can merge it");return e}),n={},{label:r,shapeType:o}=t[0];if(!(r.id in this.labels))throw new y(`Unknown label for the task: ${r.id}`);if(!Object.values(w).includes(o))throw new y(`Got unknown shapeType "${o}"`);const s=r.attributes.reduce((t,e)=>(t[e.id]=e,t),{});for(let i=0;i<e.length;i++){const a=e[i],c=t[i];if(c.label.id!==r.id)throw new y(`All shape labels are expected to be ${r.name}, but got ${c.label.name}`);if(c.shapeType!==o)throw new y(`All shapes are expected to be ${o}, but got ${c.shapeType}`);if(a instanceof p){if(a.frame in n&&!n[a.frame].outside)throw new y("Expected only one visible shape per frame");n[a.frame]={type:o,frame:a.frame,points:[...a.points],occluded:a.occluded,zOrder:a.zOrder,outside:!1,attributes:Object.keys(a.attributes).reduce((t,e)=>(e in s&&s[e].mutable&&t.push({spec_id:+e,value:a.attributes[e]}),t),[])},a.frame+1 in n||(n[a.frame+1]=JSON.parse(JSON.stringify(n[a.frame])),n[a.frame+1].outside=!0,n[a.frame+1].frame++)}else{if(!(a instanceof l))throw new y(`Trying to merge unknown object type: ${a.constructor.name}. `+"Only shapes and tracks are expected.");{const t={};for(const e of Object.keys(a.shapes)){const r=a.shapes[e];if(e in n&&!n[e].outside){if(r.outside)continue;throw new y("Expected only one visible shape per frame")}let s=!1;for(const e in r.attributes)e in t&&t[e]===r.attributes[e]||(s=!0,t[e]=r.attributes[e]);n[e]={type:o,frame:+e,points:[...r.points],occluded:r.occluded,outside:r.outside,zOrder:r.zOrder,attributes:s?Object.keys(t).reduce((e,n)=>(e.push({spec_id:+n,value:t[n]}),e),[]):[]}}}}}let i=!1;for(const t of Object.keys(n).sort((t,e)=>+t-+e)){if((i=i||n[t].outside)||!n[t].outside)break;delete n[t]}const a=++this.count,c=S({frame:Math.min.apply(null,Object.keys(n).map(t=>+t)),shapes:Object.values(n),group:0,label_id:r.id,attributes:Object.keys(t[0].attributes).reduce((e,n)=>(s[n].mutable||e.push({spec_id:+n,value:t[0].attributes[n]}),e),[])},a,this.injection);this.tracks.push(c),this.objects[a]=c;for(const t of e)t.removed=!0,"function"==typeof t.resetCache&&t.resetCache()}split(t,e){d("object state",t,null,x),d("frame",e,"integer",null);const n=this.objects[t.clientID];if(void 0===n)throw new y("The object has not been saved yet. Call annotations.put([state]) before");if(t.objectType!==O.TRACK)return;const r=Object.keys(n.shapes).sort((t,e)=>+t-+e);if(e<=+r[0]||e>r[r.length-1])return;const o=n.label.attributes.reduce((t,e)=>(t[e.id]=e,t),{}),s=n.toJSON(),i={type:t.shapeType,points:[...t.points],occluded:t.occluded,outside:t.outside,zOrder:0,attributes:Object.keys(t.attributes).reduce((e,n)=>(o[n].mutable||e.push({spec_id:+n,value:t.attributes[n]}),e),[]),frame:e},a={frame:s.frame,group:0,label_id:s.label_id,attributes:s.attributes,shapes:[]},c=JSON.parse(JSON.stringify(a));c.frame=e,c.shapes.push(JSON.parse(JSON.stringify(i))),s.shapes.map(t=>(delete t.id,t.frame<e?a.shapes.push(JSON.parse(JSON.stringify(t))):t.frame>e&&c.shapes.push(JSON.parse(JSON.stringify(t))),t)),a.shapes.push(i),a.shapes[a.shapes.length-1].outside=!0;let u=++this.count;const l=S(a,u,this.injection);this.tracks.push(l),this.objects[u]=l,u=++this.count;const p=S(c,u,this.injection);this.tracks.push(p),this.objects[u]=p,n.removed=!0,n.resetCache()}group(t,e){d("shapes for group",t,null,Array);const n=t.map(t=>{d("object state",t,null,x);const e=this.objects[t.clientID];if(void 0===e)throw new y("The object has not been saved yet. Call annotations.put([state]) before");return e}),r=e?0:++this.groups.max;for(const t of n)t.group=r,"function"==typeof t.resetCache&&t.resetCache();return r}clear(){this.shapes={},this.tags={},this.tracks=[],this.objects={},this.count=0,this.flush=!0}statistics(){const t={},e={rectangle:{shape:0,track:0},polygon:{shape:0,track:0},polyline:{shape:0,track:0},points:{shape:0,track:0},tags:0,manually:0,interpolated:0,total:0},n=JSON.parse(JSON.stringify(e));for(const n of Object.values(this.labels)){const{name:r}=n;t[r]=JSON.parse(JSON.stringify(e))}for(const e of Object.values(this.objects)){let n=null;if(e instanceof p)n="shape";else if(e instanceof l)n="track";else{if(!(e instanceof f))throw new v(`Unexpected object type: "${n}"`);n="tag"}const r=e.label.name;if("tag"===n)t[r].tags++,t[r].manually++,t[r].total++;else{const{shapeType:o}=e;if(t[r][o][n]++,"track"===n){const n=Object.keys(e.shapes).sort((t,e)=>+t-+e).map(t=>+t);let o=n[0],s=!1;for(const i of n){if(s){const e=i-o-1;t[r].interpolated+=e,t[r].total+=e}s=!e.shapes[i].outside,o=i,s&&(t[r].manually++,t[r].total++)}const i=n[n.length-1];if(i!==this.stopFrame&&!e.shapes[i].outside){const e=this.stopFrame-i;t[r].interpolated+=e,t[r].total+=e}}else t[r].manually++,t[r].total++}}for(const e of Object.keys(t))for(const r of Object.keys(t[e]))if("object"==typeof t[e][r])for(const o of Object.keys(t[e][r]))n[r][o]+=t[e][r][o];else n[r]+=t[e][r];return new b(t,n)}put(t){d("shapes for put",t,null,Array);const e={shapes:[],tracks:[],tags:[]};function n(t,e){const n=+e,r=this.attributes[e];return d("attribute id",n,"integer",null),d("attribute value",r,"string",null),t.push({spec_id:n,value:r}),t}for(const r of t){d("object state",r,null,x),d("state client ID",r.clientID,"undefined",null),d("state frame",r.frame,"integer",null),d("state attributes",r.attributes,null,Object),d("state label",r.label,null,g);const t=Object.keys(r.attributes).reduce(n.bind(r),[]),o=r.label.attributes.reduce((t,e)=>(t[e.id]=e,t),{});if("tag"===r.objectType)e.tags.push({attributes:t,frame:r.frame,label_id:r.label.id,group:0});else{d("state occluded",r.occluded,"boolean",null),d("state points",r.points,null,Array);for(const t of r.points)d("point coordinate",t,"number",null);if(!Object.values(w).includes(r.shapeType))throw new y("Object shape must be one of: "+`${JSON.stringify(Object.values(w))}`);if("shape"===r.objectType)e.shapes.push({attributes:t,frame:r.frame,group:0,label_id:r.label.id,occluded:r.occluded||!1,points:[...r.points],type:r.shapeType,z_order:0});else{if("track"!==r.objectType)throw new y("Object type must be one of: "+`${JSON.stringify(Object.values(O))}`);e.tracks.push({attributes:t.filter(t=>!o[t.spec_id].mutable),frame:r.frame,group:0,label_id:r.label.id,shapes:[{attributes:t.filter(t=>o[t.spec_id].mutable),frame:r.frame,occluded:r.occluded||!1,outside:!1,points:[...r.points],type:r.shapeType,z_order:0}]})}}}this.import(e)}select(t,e,n){d("shapes for select",t,null,Array),d("x coordinate",e,"number",null),d("y coordinate",n,"number",null);let r=null,o=null;for(const s of t){if(d("object state",s,null,x),s.outside)continue;const t=this.objects[s.clientID];if(void 0===t)throw new y("The object has not been saved yet. Call annotations.put([state]) before");const i=t.constructor.distance(s.points,e,n);null!==i&&(null===r||i<r)&&(r=i,o=s)}return{state:o,distance:r}}}})()},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!n||!r(function(){n.call(null,e||function(){throw 1},1)})}},function(t,e,n){n(2),n(86),n(5),(()=>{const e=n(50),{checkObjectType:r}=n(37),{ObjectShape:o,ObjectType:s,AttributeType:i}=n(19),{DataError:a,ArgumentError:c,ScriptingError:u}=n(6),{Label:l}=n(36);function p(t,n){const r=new e(n);return r.hidden={save:this.save.bind(this,t,r),delete:this.delete.bind(this),up:this.up.bind(this,t,r),down:this.down.bind(this,t,r)},r}function f(t,e){if(t===o.RECTANGLE){if(e.length/2!=2)throw new a(`Rectangle must have 2 points, but got ${e.length/2}`)}else if(t===o.POLYGON){if(e.length/2<3)throw new a(`Polygon must have at least 3 points, but got ${e.length/2}`)}else if(t===o.POLYLINE){if(e.length/2<2)throw new a(`Polyline must have at least 2 points, but got ${e.length/2}`)}else{if(t!==o.POINTS)throw new c(`Unknown value of shapeType has been recieved ${t}`);if(e.length/2<1)throw new a(`Points must have at least 1 points, but got ${e.length/2}`)}}function h(t,e){if(t===o.POINTS)return!0;let n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;for(let t=0;t<e.length-1;t+=2)n=Math.min(n,e[t]),r=Math.max(r,e[t]),s=Math.min(s,e[t+1]),i=Math.max(i,e[t+1]);if(t===o.POLYLINE){return Math.max(r-n,i-s)>=3}return(r-n)*(i-s)>=9}function d(t,e){const{values:n}=e,r=e.inputType;if("string"!=typeof t)throw new c(`Attribute value is expected to be string, but got ${typeof t}`);return r===i.NUMBER?+t>=+n[0]&&+t<=+n[1]&&!((+t-+n[0])%+n[2]):r===i.CHECKBOX?["true","false"].includes(t.toLowerCase()):n.includes(t)}class b{constructor(t,e,n){this.taskLabels=n.labels,this.clientID=e,this.serverID=t.id,this.group=t.group,this.label=this.taskLabels[t.label_id],this.frame=t.frame,this.removed=!1,this.lock=!1,this.attributes=t.attributes.reduce((t,e)=>(t[e.spec_id]=e.value,t),{}),this.appendDefaultAttributes(this.label),n.groups.max=Math.max(n.groups.max,this.group)}appendDefaultAttributes(t){const e=t.attributes;for(const t of e)t.id in this.attributes||(this.attributes[t.id]=t.defaultValue)}delete(t){return this.lock&&!t||(this.removed=!0),!0}}class g extends b{constructor(t,e,n,r){super(t,e,r),this.frameMeta=r.frameMeta,this.collectionZ=r.collectionZ,this.color=n,this.shapeType=null}_getZ(t){return this.collectionZ[t]=this.collectionZ[t]||{max:0,min:0},this.collectionZ[t]}save(){throw new u("Is not implemented")}get(){throw new u("Is not implemented")}toJSON(){throw new u("Is not implemented")}up(t,e){const n=this._getZ(t);n.max++,e.zOrder=n.max}down(t,e){const n=this._getZ(t);n.min--,e.zOrder=n.min}}class m extends g{constructor(t,e,n,r){super(t,e,n,r),this.points=t.points,this.occluded=t.occluded,this.zOrder=t.z_order;const o=this._getZ(this.frame);o.max=Math.max(o.max,this.zOrder||0),o.min=Math.min(o.min,this.zOrder||0)}toJSON(){return{type:this.shapeType,clientID:this.clientID,occluded:this.occluded,z_order:this.zOrder,points:[...this.points],attributes:Object.keys(this.attributes).reduce((t,e)=>(t.push({spec_id:e,value:this.attributes[e]}),t),[]),id:this.serverID,frame:this.frame,label_id:this.label.id,group:this.group}}get(t){if(t!==this.frame)throw new u("Got frame is not equal to the frame of the shape");return{objectType:s.SHAPE,shapeType:this.shapeType,clientID:this.clientID,serverID:this.serverID,occluded:this.occluded,lock:this.lock,zOrder:this.zOrder,points:[...this.points],attributes:Object.assign({},this.attributes),label:this.label,group:this.group,color:this.color}}save(t,e){if(t!==this.frame)throw new u("Got frame is not equal to the frame of the shape");if(this.lock&&e.lock)return p.call(this,t,this.get(t));const n=this.get(t),o=e.updateFlags;if(o.label&&(r("label",e.label,null,l),n.label=e.label,n.attributes={},this.appendDefaultAttributes.call(n,n.label)),o.attributes){const t=n.label.attributes.reduce((t,e)=>(t[e.id]=e,t),{});for(const r of Object.keys(e.attributes)){const o=e.attributes[r];if(!(r in t&&d(o,t[r])))throw new c(`Trying to save unknown attribute with id ${r} and value ${o}`);n.attributes[r]=o}}if(o.points){r("points",e.points,null,Array),f(this.shapeType,e.points);const{width:o,height:s}=this.frameMeta[t],i=[];for(let t=0;t<e.points.length-1;t+=2){const n=e.points[t],a=e.points[t+1];r("coordinate",n,"number",null),r("coordinate",a,"number",null),i.push(Math.clamp(n,0,o),Math.clamp(a,0,s))}h(this.shapeType,i)&&(n.points=i)}if(o.occluded&&(r("occluded",e.occluded,"boolean",null),n.occluded=e.occluded),o.group&&(r("group",e.group,"integer",null),n.group=e.group),o.zOrder&&(r("zOrder",e.zOrder,"integer",null),n.zOrder=e.zOrder),o.lock&&(r("lock",e.lock,"boolean",null),n.lock=e.lock),o.color){if(r("color",e.color,"string",null),/^#[0-9A-F]{6}$/i.test(e.color))throw new c(`Got invalid color value: "${e.color}"`);n.color=e.color}o.reset();for(const t of Object.keys(n))t in this&&(this[t]=n[t]);return p.call(this,t,this.get(t))}}class y extends g{constructor(t,e,n,r){super(t,e,n,r),this.shapes=t.shapes.reduce((t,e)=>{t[e.frame]={serverID:e.id,occluded:e.occluded,zOrder:e.z_order,points:e.points,outside:e.outside,attributes:e.attributes.reduce((t,e)=>(t[e.spec_id]=e.value,t),{})};const n=this._getZ(e.frame);return n.max=Math.max(n.max,e.z_order),n.min=Math.min(n.min,e.z_order),t},{}),this.cache={}}toJSON(){const t=this.label.attributes.reduce((t,e)=>(t[e.id]=e,t),{});return{clientID:this.clientID,id:this.serverID,frame:this.frame,label_id:this.label.id,group:this.group,attributes:Object.keys(this.attributes).reduce((e,n)=>(t[n].mutable||e.push({spec_id:n,value:this.attributes[n]}),e),[]),shapes:Object.keys(this.shapes).reduce((e,n)=>(e.push({type:this.shapeType,occluded:this.shapes[n].occluded,z_order:this.shapes[n].zOrder,points:[...this.shapes[n].points],outside:this.shapes[n].outside,attributes:Object.keys(this.shapes[n].attributes).reduce((e,r)=>(t[r].mutable&&e.push({spec_id:r,value:this.shapes[n].attributes[r]}),e),[]),id:this.shapes[n].serverID,frame:+n}),e),[])}}get(t){if(!(t in this.cache)){const e=Object.assign({},this.getPosition(t),{attributes:this.getAttributes(t),group:this.group,objectType:s.TRACK,shapeType:this.shapeType,clientID:this.clientID,serverID:this.serverID,lock:this.lock,color:this.color});this.cache[t]=e}const e=JSON.parse(JSON.stringify(this.cache[t]));return e.label=this.label,e}neighborsFrames(t){const e=Object.keys(this.shapes).map(t=>+t);let n=Number.MAX_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER;for(const o of e){const e=Math.abs(t-o);o<=t&&e<n?n=e:e<r&&(r=e)}return{leftFrame:n===Number.MAX_SAFE_INTEGER?null:t-n,rightFrame:r===Number.MAX_SAFE_INTEGER?null:t+r}}getAttributes(t){const e={};for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e[t]=this.attributes[t]);const n=Object.keys(this.shapes).sort((t,e)=>+t-+e);for(const r of n)if(r<=t){const{attributes:t}=this.shapes[r];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}save(t,e){if(this.lock&&e.lock)return p.call(this,t,this.get(t));const n=Object.assign(this.get(t));n.attributes=Object.assign(n.attributes),n.points=[...n.points];const o=e.updateFlags;let s=!1;o.label&&(r("label",e.label,null,l),n.label=e.label,n.attributes={},this.appendDefaultAttributes.call(n,n.label));const i=n.label.attributes.reduce((t,e)=>(t[e.id]=e,t),{});if(o.attributes)for(const t of Object.keys(e.attributes)){const r=e.attributes[t];if(!(t in i&&d(r,i[t])))throw new c(`Trying to save unknown attribute with id ${t} and value ${r}`);n.attributes[t]=r}if(o.points){r("points",e.points,null,Array),f(this.shapeType,e.points);const{width:o,height:i}=this.frameMeta[t],a=[];for(let t=0;t<e.points.length-1;t+=2){const n=e.points[t],s=e.points[t+1];r("coordinate",n,"number",null),r("coordinate",s,"number",null),a.push(Math.clamp(n,0,o),Math.clamp(s,0,i))}h(this.shapeType,a)&&(n.points=a,s=!0)}if(o.occluded&&(r("occluded",e.occluded,"boolean",null),n.occluded=e.occluded,s=!0),o.outside&&(r("outside",e.outside,"boolean",null),n.outside=e.outside,s=!0),o.group&&(r("group",e.group,"integer",null),n.group=e.group),o.zOrder&&(r("zOrder",e.zOrder,"integer",null),n.zOrder=e.zOrder,s=!0),o.lock&&(r("lock",e.lock,"boolean",null),n.lock=e.lock),o.color){if(r("color",e.color,"string",null),/^#[0-9A-F]{6}$/i.test(e.color))throw new c(`Got invalid color value: "${e.color}"`);n.color=e.color}o.keyframe&&r("keyframe",e.keyframe,"boolean",null);for(const e of Object.keys(n))e in this&&(this[e]=n[e]),this.cache[t][e]=n[e];if(o.attributes)for(const r of Object.keys(n.attributes))i[r].mutable||(this.shapes[t].attributes[r]=e.attributes[r],this.shapes[t].attributes[r]=e.attributes[r]);if(o.label)for(const t of Object.values(this.shapes))t.attributes={};if(o.keyframe&&!e.keyframe){for(const e in this.cache)+e>t&&delete this.cache[e];return this.cache[t].keyframe=!1,delete this.shapes[t],o.reset(),p.call(this,t,this.get(t))}if(s||o.keyframe&&e.keyframe){for(const e in this.cache)+e>t&&delete this.cache[e];if(this.cache[t].keyframe=!0,e.keyframe=!0,this.shapes[t]={frame:t,zOrder:n.zOrder,points:n.points,outside:n.outside,occluded:n.occluded,attributes:{}},o.attributes)for(const r of Object.keys(n.attributes))i[r].mutable&&(this.shapes[t].attributes[r]=e.attributes[r],this.shapes[t].attributes[r]=e.attributes[r])}return o.reset(),p.call(this,t,this.get(t))}getPosition(t){const{leftFrame:e,rightFrame:n}=this.neighborsFrames(t),r=Number.isInteger(n)?this.shapes[n]:null,o=Number.isInteger(e)?this.shapes[e]:null;if(o&&e===t)return{points:[...o.points],occluded:o.occluded,outside:o.outside,zOrder:o.zOrder,keyframe:!0};if(r&&o)return Object.assign({},this.interpolatePosition(o,r,(t-e)/(n-e)),{keyframe:!1});if(r)return{points:[...r.points],occluded:r.occluded,outside:!0,zOrder:0,keyframe:!1};if(o)return{points:[...o.points],occluded:o.occluded,outside:o.outside,zOrder:0,keyframe:!1};throw new u(`No one neightbour frame found for the track with client ID: "${this.id}"`)}delete(t){return this.lock&&!t||(this.removed=!0,this.resetCache()),!0}resetCache(){this.cache={}}}class v extends m{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.RECTANGLE,f(this.shapeType,this.points)}static distance(t,e,n){const[r,o,s,i]=t;return e>=r&&e<=s&&n>=o&&n<=i?Math.min.apply(null,[e-r,n-o,s-e,i-n]):null}}class w extends m{constructor(t,e,n,r){super(t,e,n,r)}}class O extends w{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POLYGON,f(this.shapeType,this.points)}static distance(t,e,n){function r(t,r,o,s){return(o-t)*(n-r)-(e-t)*(s-r)}let o=0;const s=[];for(let i=0,a=t.length-2;i<t.length-1;a=i,i+=2){const c=t[a],u=t[a+1],l=t[i],p=t[i+1];u<=n?p>n&&r(c,u,l,p)>0&&o++:p<=n&&r(c,u,l,p)<0&&o--;const f=e-(u-p),h=n-(l-c);(f-c)*(l-f)>=0&&(h-u)*(p-h)>=0?s.push(Math.sqrt(Math.pow(e-f,2)+Math.pow(n-h,2))):s.push(Math.min(Math.sqrt(Math.pow(c-e,2)+Math.pow(u-n,2)),Math.sqrt(Math.pow(l-e,2)+Math.pow(p-n,2))))}return 0!==o?Math.min.apply(null,s):null}}class x extends w{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POLYLINE,f(this.shapeType,this.points)}static distance(t,e,n){const r=[];for(let o=0;o<t.length-2;o+=2){const s=t[o],i=t[o+1],a=t[o+2],c=t[o+3];(e-s)*(a-e)>=0&&(n-i)*(c-n)>=0?r.push(Math.abs((c-i)*e-(a-s)*n+a*i-c*s)/Math.sqrt(Math.pow(c-i,2)+Math.pow(a-s,2))):r.push(Math.min(Math.sqrt(Math.pow(s-e,2)+Math.pow(i-n,2)),Math.sqrt(Math.pow(a-e,2)+Math.pow(c-n,2))))}return Math.min.apply(null,r)}}class k extends w{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POINTS,f(this.shapeType,this.points)}static distance(t,e,n){const r=[];for(let o=0;o<t.length;o+=2){const s=t[o],i=t[o+1];r.push(Math.sqrt(Math.pow(s-e,2)+Math.pow(i-n,2)))}return Math.min.apply(null,r)}}class j extends y{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.RECTANGLE;for(const t of Object.values(this.shapes))f(this.shapeType,t.points)}interpolatePosition(t,e,n){const r=[e.points[0]-t.points[0],e.points[1]-t.points[1],e.points[2]-t.points[2],e.points[3]-t.points[3]];return{points:[t.points[0]+r[0]*n,t.points[1]+r[1]*n,t.points[2]+r[2]*n,t.points[3]+r[3]*n],occluded:t.occluded,outside:t.outside,zOrder:t.zOrder}}}class S extends y{constructor(t,e,n,r){super(t,e,n,r)}interpolatePosition(t,e,n){function r(t){let e=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER;for(let s=0;s<t.length;s+=2)t[s]<e&&(e=t[s]),t[s+1]<n&&(n=t[s+1]),t[s]>r&&(r=t[s]),t[s+1]>o&&(o=t[s+1]);return{xmin:e,ymin:n,xmax:r,ymax:o}}function o(t,e){const n=[],r=e.xmax-e.xmin,o=e.ymax-e.ymin;for(let s=0;s<t.length;s+=2)n.push((t[s]-e.xmin)/r,(t[s+1]-e.ymin)/o);return n}function s(t,e){const n=[],r=e.xmax-e.xmin,o=e.ymax-e.ymin;for(let s=0;s<t.length;s+=2)n.push(t[s]*r+e.xmin,t[s+1]*o+e.ymin);return n}function i(t){const e=[];for(let n=0;n<t.length;n+=2)e.push({x:t[n],y:t[n+1]});return e}function a(t){const e=[];for(const n of t)e.push(n.x,n.y);return e}function c(t,e){function n(t){let e=0;for(let n=1;n<t.length;n+=2){e+=Math.sqrt(Math.pow(t[n].x-t[n-1].x,2)+Math.pow(t[n].y-t[n-1].y,2))}return e||Number.MAX_SAFE_INTEGER}function r(t,e){let n=0;for(let r=1;r<t.length;r+=2){const o=Math.sqrt(Math.pow(t[r].x-t[r-1].x,2)+Math.pow(t[r].y-t[r-1].y,2));n+=Math.pow(o-e,2)}return n}const o=[],s=[],i=function(t,e){const n={};for(let r=0;r<t.length;r++){n[r]=n[r]||{};for(let o=0;o<e.length;o++){const s=t[r].x-e[o].x,i=t[r].y-e[o].y;n[r][o]=Math.sqrt(Math.pow(s,2)+Math.pow(i,2))}}return n}(t,e),a=function(t,e,n){const r={};for(const o of t)r[o]=e.concat().sort((t,e)=>n[o][t]-n[o][e]);const o={},s={};let i=0;for(;Object.values(s).length!==t.length;){for(const e of t){if(s[e])continue;const t=r[e][i],a=n[e][t];if(t in o&&o[t].distance>a){const e=o[t].value;delete o[t],delete s[e]}t in o||(o[t]={value:e,distance:a},s[e]=!0)}i++}const a={};for(const t of Object.keys(o))a[o[t].value]={value:t,distance:o[t].distance};return a}(Array.from(t.keys()),Array.from(e.keys()),i),c=(n(e)+n(t))/(e.length+t.length);!function(t,e){for(const n of Object.keys(t))t[n].distance>e&&delete t[n]}(a,c+3*Math.sqrt((r(t,c)+r(e,c))/(t.length+e.length)));for(const t of Object.keys(a))a[t]=a[t].value;const u=this.appendMapping(a,t,e);for(const n of u)o.push(t[n]),s.push(e[a[n]]);return[o,s]}let u=r(t.points),l=r(e.points);(u.xmax-u.xmin<1||l.ymax-l.ymin<1)&&(l=u={xmin:0,xmax:1024,ymin:0,ymax:768});const p=i(o(t.points,u)),f=i(o(e.points,l));let h=[],d=[];if(p.length>f.length){const[t,e]=c.call(this,f,p);h=e,d=t}else{const[t,e]=c.call(this,p,f);h=t,d=e}const b=s(a(h),u),g=s(a(d),l),m=[];for(let t=0;t<b.length;t++)m.push(b[t]+(g[t]-b[t])*n);return{points:m,occluded:t.occluded,outside:t.outside,zOrder:t.zOrder}}appendMapping(t,e,n){const r=Object.values(t).map(t=>+t),o=Object.keys(t).map(t=>+t),s=[];function i(t){let e=t,o=t;if(!r.length)throw new u("Interpolation mapping is empty");for(;!r.includes(e);)--e<0&&(e=n.length-1);for(;!r.includes(o);)++o>=n.length&&(o=0);return[e,o]}function a(t,e,r){const o=[];for(;e!==r;)o.push(n[e]),++e>=n.length&&(e=0);o.push(n[r]);let s=0,i=0,a=!1;for(let e=1;e<o.length;e++){const r=o[e],c=o[e-1],u=Math.sqrt(Math.pow(r.x-c.x,2)+Math.pow(r.y-c.y,2));a||(i+=u),s+=u,n[t]===o[e]&&(a=!0)}return s?i/s:0}for(let c=0;c<n.length;c++){const u=r.indexOf(c);if(-1===u){const[r,o]=i(c),u=a(c,r,o),l=n[r],p=n[o],f={x:l.x+(p.x-l.x)*u,y:l.y+(p.y-l.y)*u};e.push(f),t[e.length-1]=c,s.push(e.length-1)}else s.push(o[u])}return s}}class A extends S{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POLYGON;for(const t of Object.values(this.shapes))f(this.shapeType,t.points)}}class T extends S{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POLYLINE;for(const t of Object.values(this.shapes))f(this.shapeType,t.points)}}class E extends S{constructor(t,e,n,r){super(t,e,n,r),this.shapeType=o.POINTS;for(const t of Object.values(this.shapes))f(this.shapeType,t.points)}}j.distance=v.distance,A.distance=O.distance,T.distance=x.distance,E.distance=k.distance,t.exports={RectangleShape:v,PolygonShape:O,PolylineShape:x,PointsShape:k,RectangleTrack:j,PolygonTrack:A,PolylineTrack:T,PointsTrack:E,Track:y,Shape:m,Tag:class extends b{constructor(t,e,n){super(t,e,n)}toJSON(){return{clientID:this.clientID,id:this.serverID,frame:this.frame,label_id:this.label.id,group:this.group,attributes:Object.keys(this.attributes).reduce((t,e)=>(t.push({spec_id:e,value:this.attributes[e]}),t),[])}}get(t){if(t!==this.frame)throw new u("Got frame is not equal to the frame of the shape");return{objectType:s.TAG,clientID:this.clientID,serverID:this.serverID,lock:this.lock,attributes:Object.assign({},this.attributes),label:this.label,group:this.group}}save(t,e){if(t!==this.frame)throw new u("Got frame is not equal to the frame of the shape");if(this.lock&&e.lock)return p.call(this,t,this.get(t));const n=this.get(t),o=e.updateFlags;if(o.label&&(r("label",e.label,null,l),n.label=e.label,n.attributes={},this.appendDefaultAttributes.call(n,n.label)),o.attributes){const t=n.label.attributes.map(t=>`${t.id}`);for(const r of Object.keys(e.attributes))t.includes(r)&&(n.attributes[r]=e.attributes[r])}o.group&&(r("group",e.group,"integer",null),n.group=e.group),o.lock&&(r("lock",e.lock,"boolean",null),n.lock=e.lock),o.reset();for(const t of Object.keys(n))t in this&&(this[t]=n[t]);return p.call(this,t,this.get(t))}},objectStateFactory:p}})()},function(t,e,n){n(2),n(9),n(5),(()=>{const e=n(18),{Task:r}=n(35),{ScriptingError:o}="./exceptions";t.exports=class{constructor(t,e,n){this.sessionType=n instanceof r?"task":"job",this.id=n.id,this.version=t,this.collection=e,this.initialObjects=[],this.hash=this._getHash();const o=this.collection.export();for(const t of o.shapes)this.initialObjects[t.id]=t;for(const t of o.tracks)this.initialObjects[t.id]=t;for(const t of o.tags)this.initialObjects[t.id]=t}_getHash(){const t=this.collection.export();return JSON.stringify(t)}async _request(t,n){return await e.annotations.updateAnnotations(this.sessionType,this.id,t,n)}async _put(t){return await this._request(t,"put")}async _create(t){return await this._request(t,"create")}async _update(t){return await this._request(t,"update")}async _delete(t){return await this._request(t,"delete")}_split(t){const e={created:{shapes:[],tracks:[],tags:[]},updated:{shapes:[],tracks:[],tags:[]},deleted:{shapes:[],tracks:[],tags:[]}};for(const n of Object.keys(t))for(const r of t[n])if(r.id in this.initialObjects){JSON.stringify(r)!==JSON.stringify(this.initialObjects[r.id])&&e.updated[n].push(r)}else{if(void 0!==r.id)throw new o(`Id of object is defined "${r.id}"`+"but it absents in initial state");e.created[n].push(r)}const n=t.tracks.concat(t.shapes).concat(t.tags).map(t=>t.id);for(const t of Object.keys(this.initialObjects))if(!n.includes(+t)){const n=this.initialObjects[t];let r=null;r="shapes"in n?"tracks":"points"in n?"shapes":"tags",e.deleted[r].push(n)}return e}_updateCreatedObjects(t,e){const n=t.tracks.length+t.shapes.length+t.tags.length,r=e.tracks.length+e.shapes.length+e.tags.length;if(r!==n)throw new o("Number of indexes is differed by number of saved objects"+`${r} vs ${n}`);for(const n of Object.keys(e))for(let r=0;r<e[n].length;r++){const o=e[n][r];this.collection.objects[o].serverID=t[n][r].id,"tracks"===n&&this.collection.objects[o].resetCache()}}_receiveIndexes(t){const e={tracks:t.tracks.map(t=>t.clientID),shapes:t.shapes.map(t=>t.clientID),tags:t.tags.map(t=>t.clientID)};return t.tracks.concat(t.shapes).concat(t.tags).map(t=>(delete t.clientID,t)),e}async save(t){"function"!=typeof t&&(t=t=>{console.log(t)});try{const e=this.collection.export(),{flush:n}=this.collection;if(n){t("New objects are being saved..");const n=this._receiveIndexes(e),r=await this._put(Object.assign({},e,{version:this.version}));this.version=r.version,this.collection.flush=!1,t("Saved objects are being updated in the client"),this._updateCreatedObjects(r,n),t("Initial state is being updated");for(const t of r.shapes.concat(r.tracks).concat(r.tags))this.initialObjects[t.id]=t}else{const{created:n,updated:r,deleted:o}=this._split(e);t("New objects are being saved..");const s=this._receiveIndexes(n),i=await this._create(Object.assign({},n,{version:this.version}));this.version=i.version,t("Saved objects are being updated in the client"),this._updateCreatedObjects(i,s),t("Initial state is being updated");for(const t of i.shapes.concat(i.tracks).concat(i.tags))this.initialObjects[t.id]=t;t("Changed objects are being saved.."),this._receiveIndexes(r);const a=await this._update(Object.assign({},r,{version:this.version}));this.version=i.version,t("Initial state is being updated");for(const t of a.shapes.concat(a.tracks).concat(a.tags))this.initialObjects[t.id]=t;t("Changed objects are being saved.."),this._receiveIndexes(o);const c=await this._delete(Object.assign({},o,{version:this.version}));this._version=c.version,t("Initial state is being updated");for(const t of c.shapes.concat(c.tracks).concat(c.tags))delete this.initialObjects[t.id]}this.hash=this._getHash(),t("Saving is done")}catch(e){throw t(`Can not save annotations: ${e.message}`),e}}hasUnsavedChanges(){return this._getHash()!==this.hash}}})()},function(t){t.exports=JSON.parse('{"name":"cvat.js","version":"0.1.0","description":"Part of Computer Vision Tool which presents an interface for client-side integration","main":"babel.config.js","scripts":{"build":"webpack","test":"jest --config=jest.config.js --coverage","docs":"jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs","coveralls":"cat ./reports/coverage/lcov.info | coveralls"},"author":"Intel","license":"MIT","devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","core-js":"^3.0.1","coveralls":"^3.0.5","eslint":"^6.1.0","jest":"^24.8.0","jest-junit":"^6.4.0","jsdoc":"^3.6.2","webpack":"^4.31.0","webpack-cli":"^3.3.2"},"dependencies":{"axios":"^0.18.0","browser-or-node":"^1.2.1","error-stack-parser":"^2.0.2","form-data":"^2.5.0","jest-config":"^24.8.0","js-cookie":"^2.2.0","platform":"^1.3.5"}}')},function(t,e,n){n(2),n(9),n(5),n(153),(()=>{const e=n(25),r=n(18),{isBoolean:o,isInteger:s,isEnum:i,isString:a,checkFilter:c}=n(37),{TaskStatus:u,TaskMode:l}=n(19),p=n(83),{AnnotationFormat:f}=n(87),{ArgumentError:h}=n(6),{Task:d}=n(35);t.exports=function(t){return t.plugins.list.implementation=e.list,t.plugins.register.implementation=e.register.bind(t),t.server.about.implementation=async()=>{return await r.server.about()},t.server.share.implementation=async t=>{return await r.server.share(t)},t.server.formats.implementation=async()=>{return(await r.server.formats()).map(t=>new f(t))},t.server.login.implementation=async(t,e)=>{await r.server.login(t,e)},t.server.logout.implementation=async()=>{await r.server.logout()},t.server.authorized.implementation=async()=>{return await r.server.authorized()},t.users.get.implementation=async t=>{c(t,{self:o});let e=null;return e=(e="self"in t&&t.self?[e=await r.users.getSelf()]:await r.users.getUsers()).map(t=>new p(t))},t.jobs.get.implementation=async t=>{if(c(t,{taskID:s,jobID:s}),"taskID"in t&&"jobID"in t)throw new h('Only one of fields "taskID" and "jobID" allowed simultaneously');if(!Object.keys(t).length)throw new h("Job filter must not be empty");let e=null;if("taskID"in t)e=await r.tasks.getTasks(`id=${t.taskID}`);else{const n=await r.jobs.getJob(t.jobID);void 0!==n.task_id&&(e=await r.tasks.getTasks(`id=${n.task_id}`))}if(null!==e&&e.length){const n=new d(e[0]);return t.jobID?n.jobs.filter(e=>e.id===t.jobID):n.jobs}return[]},t.tasks.get.implementation=async t=>{if(c(t,{page:s,name:a,id:s,owner:a,assignee:a,search:a,status:i.bind(u),mode:i.bind(l)}),"search"in t&&Object.keys(t).length>1&&!("page"in t&&2===Object.keys(t).length))throw new h('Do not use the filter field "search" with others');if("id"in t&&Object.keys(t).length>1&&!("page"in t&&2===Object.keys(t).length))throw new h('Do not use the filter field "id" with others');const e=new URLSearchParams;for(const n of["name","owner","assignee","search","status","mode","id","page"])Object.prototype.hasOwnProperty.call(t,n)&&e.set(n,t[n]);const n=await r.tasks.getTasks(e.toString()),o=n.map(t=>new d(t));return o.count=n.count,o},t}})()},function(t,e,n){"use strict";n(154);var r,o=n(13),s=n(10),i=n(88),a=n(0),c=n(70),u=n(15),l=n(46),p=n(8),f=n(155),h=n(156),d=n(48).codeAt,b=n(158),g=n(22),m=n(159),y=n(17),v=a.URL,w=m.URLSearchParams,O=m.getState,x=y.set,k=y.getterFor("URL"),j=Math.floor,S=Math.pow,A=/[A-Za-z]/,T=/[\d+\-.A-Za-z]/,E=/\d/,I=/^(0x|0X)/,P=/^[0-7]+$/,C=/^\d+$/,F=/^[\dA-Fa-f]+$/,_=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$=/[\u0009\u000A\u000D]/g,R=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=L(e.slice(1,-1))))return"Invalid host";t.host=n}else if(V(t)){if(e=b(e),_.test(e))return"Invalid host";if(null===(n=D(e)))return"Invalid host";t.host=n}else{if(N.test(e))return"Invalid host";for(n="",r=h(e),o=0;o<r.length;o++)n+=q(r[o],z);t.host=n}},D=function(t){var e,n,r,o,s,i,a,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(o=c[r]))return t;if(s=10,o.length>1&&"0"==o.charAt(0)&&(s=I.test(o)?16:8,o=o.slice(8==s?1:2)),""===o)i=0;else{if(!(10==s?C:8==s?P:F).test(o))return t;i=parseInt(o,s)}n.push(i)}for(r=0;r<e;r++)if(i=n[r],r==e-1){if(i>=S(256,5-e))return null}else if(i>255)return null;for(a=n.pop(),r=0;r<n.length;r++)a+=n[r]*S(256,3-r);return a},L=function(t){var e,n,r,o,s,i,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,p=0,f=function(){return t.charAt(p)};if(":"==f()){if(":"!=t.charAt(1))return;p+=2,l=++u}for(;f();){if(8==u)return;if(":"!=f()){for(e=n=0;n<4&&F.test(f());)e=16*e+parseInt(f(),16),p++,n++;if("."==f()){if(0==n)return;if(p-=n,u>6)return;for(r=0;f();){if(o=null,r>0){if(!("."==f()&&r<4))return;p++}if(!E.test(f()))return;for(;E.test(f());){if(s=parseInt(f(),10),null===o)o=s;else{if(0==o)return;o=10*o+s}if(o>255)return;p++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==f()){if(p++,!f())return}else if(f())return;c[u++]=e}else{if(null!==l)return;p++,l=++u}}if(null!==l)for(i=u-l,u=7;0!=u&&i>0;)a=c[u],c[u--]=c[l+i-1],c[l+--i]=a;else if(8!=u)return;return c},B=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=j(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,s=0;s<8;s++)0!==t[s]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=s),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},z={},U=f({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),W=f({},U,{"#":1,"?":1,"{":1,"}":1}),G=f({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(t,e){var n=d(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},V=function(t){return p(J,t.scheme)},X=function(t){return""!=t.username||""!=t.password},H=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var n;return 2==t.length&&A.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Z=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Y=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&K(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},ot={},st={},it={},at={},ct={},ut={},lt={},pt={},ft={},ht={},dt={},bt={},gt={},mt={},yt={},vt={},wt={},Ot=function(t,e,n,o){var s,i,a,c,u,l=n||tt,f=0,d="",b=!1,g=!1,m=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(M,"")),e=e.replace($,""),s=h(e);f<=s.length;){switch(i=s[f],l){case tt:if(!i||!A.test(i)){if(n)return"Invalid scheme";l=nt;continue}d+=i.toLowerCase(),l=et;break;case et:if(i&&(T.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return"Invalid scheme";d="",l=nt,f=0;continue}if(n&&(V(t)!=p(J,d)||"file"==d&&(X(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,n)return void(V(t)&&J[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?l=ht:V(t)&&o&&o.scheme==t.scheme?l=rt:V(t)?l=at:"/"==s[f+1]?(l=ot,f++):(t.cannotBeABaseURL=!0,t.path.push(""),l=yt)}break;case nt:if(!o||o.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==i){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,l=wt;break}l="file"==o.scheme?ht:st;continue;case rt:if("/"!=i||"/"!=s[f+1]){l=st;continue}l=ct,f++;break;case ot:if("/"==i){l=ut;break}l=mt;continue;case st:if(t.scheme=o.scheme,i==r)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==i||"\\"==i&&V(t))l=it;else if("?"==i)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",l=vt;else{if("#"!=i){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),l=mt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",l=wt}break;case it:if(!V(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,l=mt;continue}l=ut}else l=ct;break;case at:if(l=ct,"/"!=i||"/"!=d.charAt(f+1))continue;f++;break;case ct:if("/"!=i&&"\\"!=i){l=ut;continue}break;case ut:if("@"==i){b&&(d="%40"+d),b=!0,a=h(d);for(var y=0;y<a.length;y++){var v=a[y];if(":"!=v||m){var w=q(v,G);m?t.password+=w:t.username+=w}else m=!0}d=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&V(t)){if(b&&""==d)return"Invalid authority";f-=h(d).length+1,d="",l=lt}else d+=i;break;case lt:case pt:if(n&&"file"==t.scheme){l=bt;continue}if(":"!=i||g){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&V(t)){if(V(t)&&""==d)return"Invalid host";if(n&&""==d&&(X(t)||null!==t.port))return;if(c=R(t,d))return c;if(d="",l=gt,n)return;continue}"["==i?g=!0:"]"==i&&(g=!1),d+=i}else{if(""==d)return"Invalid host";if(c=R(t,d))return c;if(d="",l=ft,n==pt)return}break;case ft:if(!E.test(i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&V(t)||n){if(""!=d){var O=parseInt(d,10);if(O>65535)return"Invalid port";t.port=V(t)&&O===J[t.scheme]?null:O,d=""}if(n)return;l=gt;continue}return"Invalid port"}d+=i;break;case ht:if(t.scheme="file","/"==i||"\\"==i)l=dt;else{if(!o||"file"!=o.scheme){l=mt;continue}if(i==r)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==i)t.host=o.host,t.path=o.path.slice(),t.query="",l=vt;else{if("#"!=i){Z(s.slice(f).join(""))||(t.host=o.host,t.path=o.path.slice(),Y(t)),l=mt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",l=wt}}break;case dt:if("/"==i||"\\"==i){l=bt;break}o&&"file"==o.scheme&&!Z(s.slice(f).join(""))&&(K(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),l=mt;continue;case bt:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&K(d))l=mt;else if(""==d){if(t.host="",n)return;l=gt}else{if(c=R(t,d))return c;if("localhost"==t.host&&(t.host=""),n)return;d="",l=gt}continue}d+=i;break;case gt:if(V(t)){if(l=mt,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(l=mt,"/"!=i))continue}else t.fragment="",l=wt;else t.query="",l=vt;break;case mt:if(i==r||"/"==i||"\\"==i&&V(t)||!n&&("?"==i||"#"==i)){if(".."===(u=(u=d).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(Y(t),"/"==i||"\\"==i&&V(t)||t.path.push("")):Q(d)?"/"==i||"\\"==i&&V(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(i==r||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",l=vt):"#"==i&&(t.fragment="",l=wt)}else d+=q(i,W);break;case yt:"?"==i?(t.query="",l=vt):"#"==i?(t.fragment="",l=wt):i!=r&&(t.path[0]+=q(i,z));break;case vt:n||"#"!=i?i!=r&&("'"==i&&V(t)?t.query+="%27":t.query+="#"==i?"%23":q(i,z)):(t.fragment="",l=wt);break;case wt:i!=r&&(t.fragment+=q(i,U))}f++}},xt=function(t){var e,n,r=l(this,xt,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(t),a=x(r,{type:"URL"});if(void 0!==o)if(o instanceof xt)e=k(o);else if(n=Ot(e={},String(o)))throw TypeError(n);if(n=Ot(a,i,null,e))throw TypeError(n);var c=a.searchParams=new w,u=O(c);u.updateSearchParams(a.query),u.updateURL=function(){a.query=String(c)||null},s||(r.href=jt.call(r),r.origin=St.call(r),r.protocol=At.call(r),r.username=Tt.call(r),r.password=Et.call(r),r.host=It.call(r),r.hostname=Pt.call(r),r.port=Ct.call(r),r.pathname=Ft.call(r),r.search=_t.call(r),r.searchParams=Nt.call(r),r.hash=Mt.call(r))},kt=xt.prototype,jt=function(){var t=k(this),e=t.scheme,n=t.username,r=t.password,o=t.host,s=t.port,i=t.path,a=t.query,c=t.fragment,u=e+":";return null!==o?(u+="//",X(t)&&(u+=n+(r?":"+r:"")+"@"),u+=B(o),null!==s&&(u+=":"+s)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},St=function(){var t=k(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&V(t)?e+"://"+B(t.host)+(null!==n?":"+n:""):"null"},At=function(){return k(this).scheme+":"},Tt=function(){return k(this).username},Et=function(){return k(this).password},It=function(){var t=k(this),e=t.host,n=t.port;return null===e?"":null===n?B(e):B(e)+":"+n},Pt=function(){var t=k(this).host;return null===t?"":B(t)},Ct=function(){var t=k(this).port;return null===t?"":String(t)},Ft=function(){var t=k(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},_t=function(){var t=k(this).query;return t?"?"+t:""},Nt=function(){return k(this).searchParams},Mt=function(){var t=k(this).fragment;return t?"#"+t:""},$t=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(s&&c(kt,{href:$t(jt,function(t){var e=k(this),n=String(t),r=Ot(e,n);if(r)throw TypeError(r);O(e.searchParams).updateSearchParams(e.query)}),origin:$t(St),protocol:$t(At,function(t){var e=k(this);Ot(e,String(t)+":",tt)}),username:$t(Tt,function(t){var e=k(this),n=h(String(t));if(!H(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=q(n[r],G)}}),password:$t(Et,function(t){var e=k(this),n=h(String(t));if(!H(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=q(n[r],G)}}),host:$t(It,function(t){var e=k(this);e.cannotBeABaseURL||Ot(e,String(t),lt)}),hostname:$t(Pt,function(t){var e=k(this);e.cannotBeABaseURL||Ot(e,String(t),pt)}),port:$t(Ct,function(t){var e=k(this);H(e)||(""==(t=String(t))?e.port=null:Ot(e,t,ft))}),pathname:$t(Ft,function(t){var e=k(this);e.cannotBeABaseURL||(e.path=[],Ot(e,t+"",gt))}),search:$t(_t,function(t){var e=k(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Ot(e,t,vt)),O(e.searchParams).updateSearchParams(e.query)}),searchParams:$t(Nt),hash:$t(Mt,function(t){var e=k(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Ot(e,t,wt)):e.fragment=null})}),u(kt,"toJSON",function(){return jt.call(this)},{enumerable:!0}),u(kt,"toString",function(){return jt.call(this)},{enumerable:!0}),v){var Rt=v.createObjectURL,Dt=v.revokeObjectURL;Rt&&u(xt,"createObjectURL",function(t){return Rt.apply(v,arguments)}),Dt&&u(xt,"revokeObjectURL",function(t){return Dt.apply(v,arguments)})}g(xt,"URL"),o({global:!0,forced:!i,sham:!s},{URL:xt})},function(t,e,n){"use strict";var r=n(48).charAt,o=n(17),s=n(72),i=o.set,a=o.getterFor("String Iterator");s(String,"String",function(t){i(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(10),o=n(3),s=n(71),i=n(60),a=n(52),c=n(26),u=n(53),l=Object.assign;t.exports=!l||o(function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=s(l({},e)).join("")})?function(t,e){for(var n=c(t),o=arguments.length,l=1,p=i.f,f=a.f;o>l;)for(var h,d=u(arguments[l++]),b=p?s(d).concat(p(d)):s(d),g=b.length,m=0;g>m;)h=b[m++],r&&!f.call(d,h)||(n[h]=d[h]);return n}:l},function(t,e,n){"use strict";var r=n(33),o=n(26),s=n(64),i=n(63),a=n(31),c=n(157),u=n(34);t.exports=function(t){var e,n,l,p,f=o(t),h="function"==typeof this?this:Array,d=arguments.length,b=d>1?arguments[1]:void 0,g=void 0!==b,m=0,y=u(f);if(g&&(b=r(b,d>2?arguments[2]:void 0,2)),null==y||h==Array&&i(y))for(n=new h(e=a(f.length));e>m;m++)c(n,m,g?b(f[m],m):f[m]);else for(p=y.call(f),n=new h;!(l=p.next()).done;m++)c(n,m,g?s(p,b,[l.value,m],!0):l.value);return n.length=m,n}},function(t,e,n){"use strict";var r=n(40),o=n(14),s=n(27);t.exports=function(t,e,n){var i=r(e);i in t?o.f(t,i,s(0,n)):t[i]=n}},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,c=function(t){return t+22+75*(t<26)},u=function(t,e,n){var r=0;for(t=n?i(t/700):t>>1,t+=i(t/e);t>455;r+=36)t=i(t/35);return i(r+36*t/(t+38))},l=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&o)<<10)+(1023&s)+65536):(e.push(o),n--)}else e.push(o)}return e}(t)).length,l=128,p=0,f=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(a(n));var h=r.length,d=h;for(h&&r.push("-");d<o;){var b=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=l&&n<b&&(b=n);var g=d+1;if(b-l>i((2147483647-p)/g))throw RangeError(s);for(p+=(b-l)*g,l=b,e=0;e<t.length;e++){if((n=t[e])<l&&++p>2147483647)throw RangeError(s);if(n==l){for(var m=p,y=36;;y+=36){var v=y<=f?1:y>=f+26?26:y-f;if(m<v)break;var w=m-v,O=36-v;r.push(a(c(v+w%O))),m=i(w/O)}r.push(a(c(m))),f=u(p,g,d==h),p=0,++d}}++p,++l}return r.join("")};t.exports=function(t){var e,n,s=[],i=t.toLowerCase().replace(o,".").split(".");for(e=0;e<i.length;e++)n=i[e],s.push(r.test(n)?"xn--"+l(n):n);return s.join(".")}},function(t,e,n){"use strict";n(2);var r=n(13),o=n(88),s=n(15),i=n(62),a=n(22),c=n(73),u=n(17),l=n(46),p=n(8),f=n(33),h=n(4),d=n(11),b=n(160),g=n(34),m=n(1)("iterator"),y=u.set,v=u.getterFor("URLSearchParams"),w=u.getterFor("URLSearchParamsIterator"),O=/\+/g,x=Array(4),k=function(t){return x[t-1]||(x[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},j=function(t){try{return decodeURIComponent(t)}catch(e){return t}},S=function(t){var e=t.replace(O," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(k(n--),j);return e}},A=/[!'()~]|%20/g,T={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},E=function(t){return T[t]},I=function(t){return encodeURIComponent(t).replace(A,E)},P=function(t,e){if(e)for(var n,r,o=e.split("&"),s=0;s<o.length;)(n=o[s++]).length&&(r=n.split("="),t.push({key:S(r.shift()),value:S(r.join("="))}))},C=function(t){this.entries.length=0,P(this.entries,t)},F=function(t,e){if(t<e)throw TypeError("Not enough arguments")},_=c(function(t,e){y(this,{type:"URLSearchParamsIterator",iterator:b(v(t).entries),kind:e})},"Iterator",function(){var t=w(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),N=function(){l(this,N,"URLSearchParams");var t,e,n,r,o,s,i,a=arguments.length>0?arguments[0]:void 0,c=this,u=[];if(y(c,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:C}),void 0!==a)if(d(a))if("function"==typeof(t=g(a)))for(e=t.call(a);!(n=e.next()).done;){if((o=(r=b(h(n.value))).next()).done||(s=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");u.push({key:o.value+"",value:s.value+""})}else for(i in a)p(a,i)&&u.push({key:i,value:a[i]+""});else P(u,"string"==typeof a?"?"===a.charAt(0)?a.slice(1):a:a+"")},M=N.prototype;i(M,{append:function(t,e){F(arguments.length,2);var n=v(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){F(arguments.length,1);for(var e=v(this),n=e.entries,r=t+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){F(arguments.length,1);for(var e=v(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){F(arguments.length,1);for(var e=v(this).entries,n=t+"",r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){F(arguments.length,1);for(var e=v(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){F(arguments.length,1);for(var n,r=v(this),o=r.entries,s=!1,i=t+"",a=e+"",c=0;c<o.length;c++)(n=o[c]).key===i&&(s?o.splice(c--,1):(s=!0,n.value=a));s||o.push({key:i,value:a}),r.updateURL()},sort:function(){var t,e,n,r=v(this),o=r.entries,s=o.slice();for(o.length=0,n=0;n<s.length;n++){for(t=s[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){for(var e,n=v(this).entries,r=f(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new _(this,"keys")},values:function(){return new _(this,"values")},entries:function(){return new _(this,"entries")}},{enumerable:!0}),s(M,m,M.entries),s(M,"toString",function(){for(var t,e=v(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(I(t.key)+"="+I(t.value));return n.join("&")},{enumerable:!0}),a(N,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:N}),t.exports={URLSearchParams:N,getState:v}},function(t,e,n){var r=n(4),o=n(34);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}}]);
|
|
|
//# sourceMappingURL=cvat-core.js.map
|